@lynx-js/web-constants 0.7.0 → 0.7.1
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 +22 -0
- package/dist/constants.d.ts +2 -1
- package/dist/constants.js +3 -0
- package/dist/types/ElementOperation.d.ts +0 -4
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support NPM provenance. ([#30](https://github.com/lynx-family/lynx-stack/pull/30))
|
|
8
|
+
|
|
9
|
+
- fix: some valus should be updateable by global scope ([#130](https://github.com/lynx-family/lynx-stack/pull/130))
|
|
10
|
+
|
|
11
|
+
Now we add an allowlist to allow some identifiers could be updated by globalThis.
|
|
12
|
+
|
|
13
|
+
For those values in the allowlist:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
globalThis.foo = 'xx';
|
|
17
|
+
console.log(foo); //'xx'
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- refractor: improve some internal logic for element creating in MTS ([#71](https://github.com/lynx-family/lynx-stack/pull/71))
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`c617453`](https://github.com/lynx-family/lynx-stack/commit/c617453aea967aba702967deb2916b5c883f03bb)]:
|
|
23
|
+
- @lynx-js/web-worker-rpc@0.7.1
|
|
24
|
+
|
|
3
25
|
## 0.7.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/constants.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export declare const lynxRuntimeValue: unique symbol;
|
|
|
8
8
|
export declare const lynxDefaultDisplayLinearAttribute: "lynx-default-display-linear";
|
|
9
9
|
export declare const lynxViewRootDomId: "lynx-view-root";
|
|
10
10
|
export declare const __lynx_timing_flag: "__lynx_timing_flag";
|
|
11
|
-
export declare const lynxViewEntryIdPrefix
|
|
11
|
+
export declare const lynxViewEntryIdPrefix: "lynx-view-id";
|
|
12
|
+
export declare const globalMuteableVars: readonly ["registerDataProcessor"];
|
package/dist/constants.js
CHANGED
|
@@ -12,4 +12,7 @@ export const lynxDefaultDisplayLinearAttribute = 'lynx-default-display-linear';
|
|
|
12
12
|
export const lynxViewRootDomId = 'lynx-view-root';
|
|
13
13
|
export const __lynx_timing_flag = '__lynx_timing_flag';
|
|
14
14
|
export const lynxViewEntryIdPrefix = 'lynx-view-id';
|
|
15
|
+
export const globalMuteableVars = [
|
|
16
|
+
'registerDataProcessor',
|
|
17
|
+
];
|
|
15
18
|
//# sourceMappingURL=constants.js.map
|
|
@@ -29,10 +29,6 @@ export interface CreateOperation extends ElementOperationBase {
|
|
|
29
29
|
type: OperationType.Create;
|
|
30
30
|
tag: string;
|
|
31
31
|
cssId?: number;
|
|
32
|
-
/**
|
|
33
|
-
* parent component unique id
|
|
34
|
-
*/
|
|
35
|
-
puid: string;
|
|
36
32
|
}
|
|
37
33
|
export interface SetAttributeOperation extends ElementOperationBase {
|
|
38
34
|
type: OperationType.SetAttribute;
|
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/lynx-family/lynx-stack.git",
|
|
10
|
+
"directory": "packages/web-platform/web-constants"
|
|
11
|
+
},
|
|
7
12
|
"license": "Apache-2.0",
|
|
8
13
|
"type": "module",
|
|
9
14
|
"main": "dist/index.js",
|
|
@@ -18,6 +23,6 @@
|
|
|
18
23
|
"**/*.css"
|
|
19
24
|
],
|
|
20
25
|
"dependencies": {
|
|
21
|
-
"@lynx-js/web-worker-rpc": "0.7.
|
|
26
|
+
"@lynx-js/web-worker-rpc": "0.7.1"
|
|
22
27
|
}
|
|
23
28
|
}
|