@lynx-js/web-worker-runtime 0.15.5 → 0.15.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
+ ## 0.15.7
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: globalThis is never accessible in MTS ([#1531](https://github.com/lynx-family/lynx-stack/pull/1531))
8
+
9
+ - Updated dependencies [[`70863fb`](https://github.com/lynx-family/lynx-stack/commit/70863fbc311d8885ebda40855668097b0631f521)]:
10
+ - @lynx-js/web-mainthread-apis@0.15.7
11
+ - @lynx-js/web-constants@0.15.7
12
+ - @lynx-js/web-worker-rpc@0.15.7
13
+
14
+ ## 0.15.6
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`405a917`](https://github.com/lynx-family/lynx-stack/commit/405a9170442ae32603b7687549b49ab4b34aff92), [`b8f89e2`](https://github.com/lynx-family/lynx-stack/commit/b8f89e25f106a15ba9d70f2df06dfb684cbb6633), [`f76aae9`](https://github.com/lynx-family/lynx-stack/commit/f76aae9ea06abdc7022ba508d22f9f4eb00864e8), [`b8b060b`](https://github.com/lynx-family/lynx-stack/commit/b8b060b9bef722bb47bd90c33fab3922160c711d), [`d8381a5`](https://github.com/lynx-family/lynx-stack/commit/d8381a58d12af6424cab4955617251e798bdc9f1), [`214898b`](https://github.com/lynx-family/lynx-stack/commit/214898bb9c74fc9b44e68cb220a4c02485102ce2), [`ab8cee4`](https://github.com/lynx-family/lynx-stack/commit/ab8cee4bab384fa905c045c4b4b93e5d4a95d57f)]:
19
+ - @lynx-js/web-mainthread-apis@0.15.6
20
+ - @lynx-js/web-constants@0.15.6
21
+ - @lynx-js/web-worker-rpc@0.15.6
22
+
3
23
  ## 0.15.5
4
24
 
5
25
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { callLepusMethodEndpoint, setNativePropsEndpoint, triggerComponentEventEndpoint, selectComponentEndpoint, systemInfo, I18nResource, reportErrorEndpoint, } from '@lynx-js/web-constants';
1
+ import { callLepusMethodEndpoint, setNativePropsEndpoint, triggerComponentEventEndpoint, selectComponentEndpoint, systemInfo, I18nResource, reportErrorEndpoint, globalDisallowedVars, } from '@lynx-js/web-constants';
2
2
  import { createInvokeUIMethod } from './crossThreadHandlers/createInvokeUIMethod.js';
3
3
  import { registerPublicComponentEventHandler } from './crossThreadHandlers/registerPublicComponentEventHandler.js';
4
4
  import { registerGlobalExposureEventHandler } from './crossThreadHandlers/registerGlobalExposureEventHandler.js';
@@ -28,6 +28,9 @@ export async function createNativeApp(config) {
28
28
  lynxCoreInject.tt.lynxCoreInject = lynxCoreInject;
29
29
  lynxCoreInject.tt.globalThis ??= new Proxy(lynxCoreInject, {
30
30
  get(target, prop) {
31
+ if (typeof prop === 'string' && globalDisallowedVars.includes(prop)) {
32
+ return undefined;
33
+ }
31
34
  // @ts-expect-error
32
35
  return target[prop] ?? globalThis[prop];
33
36
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime",
3
- "version": "0.15.5",
3
+ "version": "0.15.7",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -23,14 +23,14 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@lynx-js/offscreen-document": "0.1.3",
26
- "@lynx-js/web-constants": "0.15.5",
27
- "@lynx-js/web-mainthread-apis": "0.15.5",
28
- "@lynx-js/web-worker-rpc": "0.15.5"
26
+ "@lynx-js/web-constants": "0.15.7",
27
+ "@lynx-js/web-mainthread-apis": "0.15.7",
28
+ "@lynx-js/web-worker-rpc": "0.15.7"
29
29
  },
30
30
  "devDependencies": {
31
- "@lynx-js/lynx-core": "0.1.2"
31
+ "@lynx-js/lynx-core": "0.1.3"
32
32
  },
33
33
  "peerDependencies": {
34
- "@lynx-js/lynx-core": "0.1.2"
34
+ "@lynx-js/lynx-core": "0.1.3"
35
35
  }
36
36
  }