From 63a62dcfdd4aea2da3d3dbeb3462446bf9b93670 Mon Sep 17 00:00:00 2001 From: danpeen Date: Tue, 10 Oct 2023 21:20:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(vm-sandbox):=20=E4=BF=AE=E5=A4=8D=20dis?= =?UTF-8?q?ableCollect=20=E8=B5=8B=E5=80=BC=E9=97=AE=E9=A2=98=20(#643)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(loader): fix the requestConfig type definition in beforeLoad * fix: 修复 disableCollect 赋值问题 --- packages/browser-vm/src/pluginify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/browser-vm/src/pluginify.ts b/packages/browser-vm/src/pluginify.ts index 4a3762340..49e3e438f 100644 --- a/packages/browser-vm/src/pluginify.ts +++ b/packages/browser-vm/src/pluginify.ts @@ -134,7 +134,7 @@ function createOptions(Garfish: interfaces.Garfish) { disableElementtiming: Boolean(appInfo.sandbox?.disableElementtiming), strictIsolation: Boolean(appInfo.sandbox?.strictIsolation), // 缓存模式,不收集副作用 - disableCollect: Boolean(appInfo.cache || true), + disableCollect: appInfo.cache === undefined ? true : Boolean(appInfo.cache), el: () => appInstance.htmlNode, styleScopeId: () => appInstance.appContainer.id, protectVariable: () => appInfo.protectVariable || [], From 56f717406a5449ff584a150af8305d1bb1959693 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Oct 2023 03:20:33 +0000 Subject: [PATCH 2/2] release: v1.17.1 --- package.json | 2 +- packages/bridge-react-v18/package.json | 2 +- packages/bridge-react/package.json | 2 +- packages/bridge-vue-v2/package.json | 2 +- packages/bridge-vue-v3/package.json | 2 +- packages/browser-snapshot/package.json | 2 +- packages/browser-vm/package.json | 2 +- packages/core/package.json | 2 +- packages/css-scope/package.json | 2 +- packages/es-module/package.json | 2 +- packages/garfish/package.json | 2 +- packages/hooks/package.json | 2 +- packages/loader/package.json | 2 +- packages/remote-module/package.json | 2 +- packages/router/package.json | 2 +- packages/test-suite/package.json | 2 +- packages/utils/package.json | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index eff935318..ab97be351 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "workspace-tools": "0.16.2", "zx": "4.2.0" }, - "version": "1.17.0", + "version": "1.17.1", "packageManager": "pnpm@7.6.0", "engines": { "node": ">=16.14.0" diff --git a/packages/bridge-react-v18/package.json b/packages/bridge-react-v18/package.json index b2181c7bd..42be14853 100644 --- a/packages/bridge-react-v18/package.json +++ b/packages/bridge-react-v18/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/bridge-react-v18", - "version": "1.17.0", + "version": "1.17.1", "description": "garfish module.", "keywords": [ "garfish", diff --git a/packages/bridge-react/package.json b/packages/bridge-react/package.json index 169b5e25c..32d38137f 100644 --- a/packages/bridge-react/package.json +++ b/packages/bridge-react/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/bridge-react", - "version": "1.17.0", + "version": "1.17.1", "description": "garfish module.", "keywords": [ "garfish", diff --git a/packages/bridge-vue-v2/package.json b/packages/bridge-vue-v2/package.json index 9ce62df4c..12288f970 100644 --- a/packages/bridge-vue-v2/package.json +++ b/packages/bridge-vue-v2/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/bridge-vue-v2", - "version": "1.17.0", + "version": "1.17.1", "description": "garfish vue bridge for v2.", "keywords": [ "garfish", diff --git a/packages/bridge-vue-v3/package.json b/packages/bridge-vue-v3/package.json index 41092be94..928ade010 100644 --- a/packages/bridge-vue-v3/package.json +++ b/packages/bridge-vue-v3/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/bridge-vue-v3", - "version": "1.17.0", + "version": "1.17.1", "description": "garfish vue bridge for v3.", "keywords": [ "garfish", diff --git a/packages/browser-snapshot/package.json b/packages/browser-snapshot/package.json index 78a3c991f..05190a03f 100644 --- a/packages/browser-snapshot/package.json +++ b/packages/browser-snapshot/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/browser-snapshot", - "version": "1.17.0", + "version": "1.17.1", "description": "browser-snapshot module.", "keywords": [ "garfish", diff --git a/packages/browser-vm/package.json b/packages/browser-vm/package.json index 2648623f7..eaa290d07 100644 --- a/packages/browser-vm/package.json +++ b/packages/browser-vm/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/browser-vm", - "version": "1.17.0", + "version": "1.17.1", "description": "vm-sandbox module.", "keywords": [ "garfish", diff --git a/packages/core/package.json b/packages/core/package.json index a4f506f02..fe9d0437f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/core", - "version": "1.17.0", + "version": "1.17.1", "description": "core module.", "keywords": [ "garfish", diff --git a/packages/css-scope/package.json b/packages/css-scope/package.json index 45693e78a..980117356 100644 --- a/packages/css-scope/package.json +++ b/packages/css-scope/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/css-scope", - "version": "1.17.0", + "version": "1.17.1", "description": "css scope", "keywords": [ "garfish", diff --git a/packages/es-module/package.json b/packages/es-module/package.json index c0f200915..28e154856 100644 --- a/packages/es-module/package.json +++ b/packages/es-module/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/es-module", - "version": "1.17.0", + "version": "1.17.1", "description": "es module polyfill", "keywords": [ "garfish", diff --git a/packages/garfish/package.json b/packages/garfish/package.json index 9775dcc47..874449916 100644 --- a/packages/garfish/package.json +++ b/packages/garfish/package.json @@ -1,6 +1,6 @@ { "name": "garfish", - "version": "1.17.0", + "version": "1.17.1", "description": "garfish module.", "keywords": [ "garfish", diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 2547d2241..af6d926a5 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/hooks", - "version": "1.17.0", + "version": "1.17.1", "description": "hooks module.", "keywords": [ "garfish", diff --git a/packages/loader/package.json b/packages/loader/package.json index cf5180ecc..68ac19f8e 100644 --- a/packages/loader/package.json +++ b/packages/loader/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/loader", - "version": "1.17.0", + "version": "1.17.1", "description": "loader module.", "keywords": [ "garfish", diff --git a/packages/remote-module/package.json b/packages/remote-module/package.json index 178b93f41..aaf765c41 100644 --- a/packages/remote-module/package.json +++ b/packages/remote-module/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/remote-module", - "version": "1.17.0", + "version": "1.17.1", "description": "remote-module module.", "keywords": [ "garfish", diff --git a/packages/router/package.json b/packages/router/package.json index 529080508..204d48201 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/router", - "version": "1.17.0", + "version": "1.17.1", "description": "router module.", "keywords": [ "garfish", diff --git a/packages/test-suite/package.json b/packages/test-suite/package.json index 166c34603..6f423ad9f 100644 --- a/packages/test-suite/package.json +++ b/packages/test-suite/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/test-suite", - "version": "1.17.0", + "version": "1.17.1", "description": "garfish test suite.", "keywords": [ "garfish", diff --git a/packages/utils/package.json b/packages/utils/package.json index a7274c658..0c383c6bc 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@garfish/utils", - "version": "1.17.0", + "version": "1.17.1", "description": "utils module.", "keywords": [ "garfish",