diff --git a/.changeset/afraid-shirts-try.md b/.changeset/afraid-shirts-try.md deleted file mode 100644 index c06b1431c7..0000000000 --- a/.changeset/afraid-shirts-try.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -"@lynx-js/web-worker-runtime": minor -"@lynx-js/web-constants": patch -"@lynx-js/web-core": minor ---- - -feat: `nativeModulesUrl` of lynx-view is changed to `nativeModulesMap`, and the usage is completely aligned with `napiModulesMap`. - -"warning: This is a breaking change." - -`nativeModulesMap` will be a map: key is module-name, value should be a esm url which export default a -function with two parameters(you never need to use `this`): - -- `NativeModules`: oriented `NativeModules`, which you can use to call - other Native-Modules. - -- `NativeModulesCall`: trigger `onNativeModulesCall`, same as the deprecated `this.nativeModulesCall`. - -example: - -```js -const nativeModulesMap = { - CustomModule: URL.createObjectURL( - new Blob( - [ - `export default function(NativeModules, NativeModulesCall) { - return { - async getColor(data, callback) { - const color = await NativeModulesCall('getColor', data); - callback(color); - }, - } - };`, - ], - { type: 'text/javascript' }, - ), - ), -}; -lynxView.nativeModulesMap = nativeModulesMap; -``` - -In addition, we will use Promise.all to load `nativeModules`, which will optimize performance in the case of multiple modules. diff --git a/.changeset/deep-words-hope.md b/.changeset/deep-words-hope.md deleted file mode 100644 index 474a64c941..0000000000 --- a/.changeset/deep-words-hope.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/template-webpack-plugin": patch ---- - -expose main.lynx.bundle to compiler diff --git a/.changeset/famous-jeans-learn.md b/.changeset/famous-jeans-learn.md deleted file mode 100644 index a845151cc8..0000000000 --- a/.changeset/famous-jeans-learn.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/metal-kids-arrive.md b/.changeset/metal-kids-arrive.md deleted file mode 100644 index baf15ef183..0000000000 --- a/.changeset/metal-kids-arrive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/react": patch ---- - -Modified the format of data sent from background threads to the main thread. diff --git a/.changeset/modern-papayas-boil.md b/.changeset/modern-papayas-boil.md deleted file mode 100644 index dfe4d35d0e..0000000000 --- a/.changeset/modern-papayas-boil.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@lynx-js/web-elements": minor ---- - -feat(web): The list element supports list-type with **flow**. - -It supports all attributes and events under single, and also provides `full-span`. - -For detailed usage, please refer to the official website. diff --git a/.changeset/olive-ears-punch.md b/.changeset/olive-ears-punch.md deleted file mode 100644 index 23a1d8b683..0000000000 --- a/.changeset/olive-ears-punch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/web-core": patch ---- - -fix: When the width and height of lynx-view are not auto, the width and height of the `lynx-tag="page"` need to be correctly set to 100%. diff --git a/.changeset/rotten-humans-sniff.md b/.changeset/rotten-humans-sniff.md deleted file mode 100644 index a0d48e4b82..0000000000 --- a/.changeset/rotten-humans-sniff.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@lynx-js/web-mainthread-apis": minor -"@lynx-js/web-worker-runtime": minor -"@lynx-js/web-constants": minor -"@lynx-js/web-core": minor ---- - -refractor: remove entryId concept - -After the PR #198 -All contents are isolated by a shadowroot. -Therefore we don't need to add the entryId selector to avoid the lynx-view's style taking effect on the whole page. diff --git a/.changeset/sharp-cougars-go.md b/.changeset/sharp-cougars-go.md deleted file mode 100644 index a6e871a337..0000000000 --- a/.changeset/sharp-cougars-go.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/web-webpack-plugin": patch ---- - -chore: remove unused file diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 79c8572860..9be86c1ac0 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,11 @@ # @lynx-js/react +## 0.105.3 + +### Patch Changes + +- Modified the format of data sent from background threads to the main thread. ([#207](https://github.com/lynx-family/lynx-stack/pull/207)) + ## 0.105.2 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 21a98806b6..8d398d688c 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/react", - "version": "0.105.2", + "version": "0.105.3", "description": "ReactLynx is a framework for developing Lynx applications with familiar React.", "repository": { "type": "git", diff --git a/packages/rspeedy/plugin-react-alias/CHANGELOG.md b/packages/rspeedy/plugin-react-alias/CHANGELOG.md index f591a5122a..b9ca662e5e 100644 --- a/packages/rspeedy/plugin-react-alias/CHANGELOG.md +++ b/packages/rspeedy/plugin-react-alias/CHANGELOG.md @@ -1,5 +1,7 @@ # @lynx-js/react-alias-rsbuild-plugin +## 0.9.3 + ## 0.9.2 ## 0.9.1 diff --git a/packages/rspeedy/plugin-react-alias/package.json b/packages/rspeedy/plugin-react-alias/package.json index 429253e3f7..3663ff9811 100644 --- a/packages/rspeedy/plugin-react-alias/package.json +++ b/packages/rspeedy/plugin-react-alias/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/react-alias-rsbuild-plugin", - "version": "0.9.2", + "version": "0.9.3", "description": "A rsbuild plugin for making alias in ReactLynx", "keywords": [ "rsbuild", diff --git a/packages/rspeedy/plugin-react/CHANGELOG.md b/packages/rspeedy/plugin-react/CHANGELOG.md index 108c4a8651..443700d72c 100644 --- a/packages/rspeedy/plugin-react/CHANGELOG.md +++ b/packages/rspeedy/plugin-react/CHANGELOG.md @@ -1,5 +1,17 @@ # @lynx-js/react-rsbuild-plugin +## 0.9.3 + +### Patch Changes + +- Updated dependencies [[`ba26a4d`](https://github.com/lynx-family/lynx-stack/commit/ba26a4db1ec3dcfd445dd834533b3bc10b091686), [`d2d55ef`](https://github.com/lynx-family/lynx-stack/commit/d2d55ef9fe438c35921d9db0daa40d5228822ecc)]: + - @lynx-js/template-webpack-plugin@0.6.6 + - @lynx-js/web-webpack-plugin@0.6.3 + - @lynx-js/css-extract-webpack-plugin@0.5.2 + - @lynx-js/react-webpack-plugin@0.6.8 + - @lynx-js/react-alias-rsbuild-plugin@0.9.3 + - @lynx-js/react-refresh-webpack-plugin@0.3.2 + ## 0.9.2 ### Patch Changes diff --git a/packages/rspeedy/plugin-react/package.json b/packages/rspeedy/plugin-react/package.json index ed7b6f6011..86925a629b 100644 --- a/packages/rspeedy/plugin-react/package.json +++ b/packages/rspeedy/plugin-react/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/react-rsbuild-plugin", - "version": "0.9.2", + "version": "0.9.3", "description": "A rsbuild plugin for ReactLynx", "keywords": [ "rsbuild", diff --git a/packages/web-platform/web-constants/CHANGELOG.md b/packages/web-platform/web-constants/CHANGELOG.md index 856d0e2e90..503ca67821 100644 --- a/packages/web-platform/web-constants/CHANGELOG.md +++ b/packages/web-platform/web-constants/CHANGELOG.md @@ -1,5 +1,57 @@ # @lynx-js/web-constants +## 0.9.0 + +### Minor Changes + +- refractor: remove entryId concept ([#217](https://github.com/lynx-family/lynx-stack/pull/217)) + + After the PR #198 + All contents are isolated by a shadowroot. + Therefore we don't need to add the entryId selector to avoid the lynx-view's style taking effect on the whole page. + +### Patch Changes + +- feat: `nativeModulesUrl` of lynx-view is changed to `nativeModulesMap`, and the usage is completely aligned with `napiModulesMap`. ([#220](https://github.com/lynx-family/lynx-stack/pull/220)) + + "warning: This is a breaking change." + + `nativeModulesMap` will be a map: key is module-name, value should be a esm url which export default a + function with two parameters(you never need to use `this`): + + - `NativeModules`: oriented `NativeModules`, which you can use to call + other Native-Modules. + + - `NativeModulesCall`: trigger `onNativeModulesCall`, same as the deprecated `this.nativeModulesCall`. + + example: + + ```js + const nativeModulesMap = { + CustomModule: URL.createObjectURL( + new Blob( + [ + `export default function(NativeModules, NativeModulesCall) { + return { + async getColor(data, callback) { + const color = await NativeModulesCall('getColor', data); + callback(color); + }, + } + };`, + ], + { type: 'text/javascript' }, + ), + ), + }; + lynxView.nativeModulesMap = nativeModulesMap; + ``` + + In addition, we will use Promise.all to load `nativeModules`, which will optimize performance in the case of multiple modules. + +- Updated dependencies []: + - @lynx-js/web-worker-rpc@0.9.0 + ## 0.8.0 ### Minor Changes diff --git a/packages/web-platform/web-constants/package.json b/packages/web-platform/web-constants/package.json index 1f39968616..18961a1ffc 100644 --- a/packages/web-platform/web-constants/package.json +++ b/packages/web-platform/web-constants/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/web-constants", - "version": "0.8.0", + "version": "0.9.0", "private": false, "description": "", "keywords": [], diff --git a/packages/web-platform/web-core/CHANGELOG.md b/packages/web-platform/web-core/CHANGELOG.md index cb6e14105e..3ee982e989 100644 --- a/packages/web-platform/web-core/CHANGELOG.md +++ b/packages/web-platform/web-core/CHANGELOG.md @@ -1,5 +1,61 @@ # @lynx-js/web-core +## 0.9.0 + +### Minor Changes + +- feat: `nativeModulesUrl` of lynx-view is changed to `nativeModulesMap`, and the usage is completely aligned with `napiModulesMap`. ([#220](https://github.com/lynx-family/lynx-stack/pull/220)) + + "warning: This is a breaking change." + + `nativeModulesMap` will be a map: key is module-name, value should be a esm url which export default a + function with two parameters(you never need to use `this`): + + - `NativeModules`: oriented `NativeModules`, which you can use to call + other Native-Modules. + + - `NativeModulesCall`: trigger `onNativeModulesCall`, same as the deprecated `this.nativeModulesCall`. + + example: + + ```js + const nativeModulesMap = { + CustomModule: URL.createObjectURL( + new Blob( + [ + `export default function(NativeModules, NativeModulesCall) { + return { + async getColor(data, callback) { + const color = await NativeModulesCall('getColor', data); + callback(color); + }, + } + };`, + ], + { type: 'text/javascript' }, + ), + ), + }; + lynxView.nativeModulesMap = nativeModulesMap; + ``` + + In addition, we will use Promise.all to load `nativeModules`, which will optimize performance in the case of multiple modules. + +- refractor: remove entryId concept ([#217](https://github.com/lynx-family/lynx-stack/pull/217)) + + After the PR #198 + All contents are isolated by a shadowroot. + Therefore we don't need to add the entryId selector to avoid the lynx-view's style taking effect on the whole page. + +### Patch Changes + +- fix: When the width and height of lynx-view are not auto, the width and height of the `lynx-tag="page"` need to be correctly set to 100%. ([#228](https://github.com/lynx-family/lynx-stack/pull/228)) + +- Updated dependencies [[`5b5e090`](https://github.com/lynx-family/lynx-stack/commit/5b5e090fdf0e896f1c38a49bf3ed9889117c4fb8), [`d2d55ef`](https://github.com/lynx-family/lynx-stack/commit/d2d55ef9fe438c35921d9db0daa40d5228822ecc)]: + - @lynx-js/web-worker-runtime@0.9.0 + - @lynx-js/web-constants@0.9.0 + - @lynx-js/web-worker-rpc@0.9.0 + ## 0.8.0 ### Minor Changes diff --git a/packages/web-platform/web-core/package.json b/packages/web-platform/web-core/package.json index 4dddf0d2a7..f8e65a8155 100644 --- a/packages/web-platform/web-core/package.json +++ b/packages/web-platform/web-core/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/web-core", - "version": "0.8.0", + "version": "0.9.0", "private": false, "description": "", "keywords": [], diff --git a/packages/web-platform/web-elements/CHANGELOG.md b/packages/web-platform/web-elements/CHANGELOG.md index 53ce4abef4..abfd6de17a 100644 --- a/packages/web-platform/web-elements/CHANGELOG.md +++ b/packages/web-platform/web-elements/CHANGELOG.md @@ -1,5 +1,15 @@ # @lynx-js/web-elements +## 0.5.0 + +### Minor Changes + +- feat(web): The list element supports list-type with **flow**. ([#240](https://github.com/lynx-family/lynx-stack/pull/240)) + + It supports all attributes and events under single, and also provides `full-span`. + + For detailed usage, please refer to the official website. + ## 0.4.0 ### Minor Changes diff --git a/packages/web-platform/web-elements/package.json b/packages/web-platform/web-elements/package.json index 7b0351b2da..3a48dc909e 100644 --- a/packages/web-platform/web-elements/package.json +++ b/packages/web-platform/web-elements/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/web-elements", - "version": "0.4.0", + "version": "0.5.0", "private": false, "repository": { "type": "git", diff --git a/packages/web-platform/web-mainthread-apis/CHANGELOG.md b/packages/web-platform/web-mainthread-apis/CHANGELOG.md index 02d0f8d845..3b14c3e5f0 100644 --- a/packages/web-platform/web-mainthread-apis/CHANGELOG.md +++ b/packages/web-platform/web-mainthread-apis/CHANGELOG.md @@ -1,5 +1,20 @@ # @lynx-js/web-mainthread-apis +## 0.9.0 + +### Minor Changes + +- refractor: remove entryId concept ([#217](https://github.com/lynx-family/lynx-stack/pull/217)) + + After the PR #198 + All contents are isolated by a shadowroot. + Therefore we don't need to add the entryId selector to avoid the lynx-view's style taking effect on the whole page. + +### Patch Changes + +- Updated dependencies [[`5b5e090`](https://github.com/lynx-family/lynx-stack/commit/5b5e090fdf0e896f1c38a49bf3ed9889117c4fb8), [`d2d55ef`](https://github.com/lynx-family/lynx-stack/commit/d2d55ef9fe438c35921d9db0daa40d5228822ecc)]: + - @lynx-js/web-constants@0.9.0 + ## 0.8.0 ### Minor Changes diff --git a/packages/web-platform/web-mainthread-apis/package.json b/packages/web-platform/web-mainthread-apis/package.json index 578fab09fe..c30a632807 100644 --- a/packages/web-platform/web-mainthread-apis/package.json +++ b/packages/web-platform/web-mainthread-apis/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/web-mainthread-apis", - "version": "0.8.0", + "version": "0.9.0", "private": false, "description": "", "keywords": [], diff --git a/packages/web-platform/web-worker-rpc/CHANGELOG.md b/packages/web-platform/web-worker-rpc/CHANGELOG.md index 2bb2b5242d..6a2d341d4c 100644 --- a/packages/web-platform/web-worker-rpc/CHANGELOG.md +++ b/packages/web-platform/web-worker-rpc/CHANGELOG.md @@ -1,5 +1,7 @@ # @lynx-js/web-worker-rpc +## 0.9.0 + ## 0.8.0 ### Patch Changes diff --git a/packages/web-platform/web-worker-rpc/package.json b/packages/web-platform/web-worker-rpc/package.json index 875e081138..9861d8eabb 100644 --- a/packages/web-platform/web-worker-rpc/package.json +++ b/packages/web-platform/web-worker-rpc/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/web-worker-rpc", - "version": "0.8.0", + "version": "0.9.0", "private": false, "description": "", "keywords": [], diff --git a/packages/web-platform/web-worker-runtime/CHANGELOG.md b/packages/web-platform/web-worker-runtime/CHANGELOG.md index 9a68bc6396..50aa7c2ade 100644 --- a/packages/web-platform/web-worker-runtime/CHANGELOG.md +++ b/packages/web-platform/web-worker-runtime/CHANGELOG.md @@ -1,5 +1,59 @@ # @lynx-js/web-worker-runtime +## 0.9.0 + +### Minor Changes + +- feat: `nativeModulesUrl` of lynx-view is changed to `nativeModulesMap`, and the usage is completely aligned with `napiModulesMap`. ([#220](https://github.com/lynx-family/lynx-stack/pull/220)) + + "warning: This is a breaking change." + + `nativeModulesMap` will be a map: key is module-name, value should be a esm url which export default a + function with two parameters(you never need to use `this`): + + - `NativeModules`: oriented `NativeModules`, which you can use to call + other Native-Modules. + + - `NativeModulesCall`: trigger `onNativeModulesCall`, same as the deprecated `this.nativeModulesCall`. + + example: + + ```js + const nativeModulesMap = { + CustomModule: URL.createObjectURL( + new Blob( + [ + `export default function(NativeModules, NativeModulesCall) { + return { + async getColor(data, callback) { + const color = await NativeModulesCall('getColor', data); + callback(color); + }, + } + };`, + ], + { type: 'text/javascript' }, + ), + ), + }; + lynxView.nativeModulesMap = nativeModulesMap; + ``` + + In addition, we will use Promise.all to load `nativeModules`, which will optimize performance in the case of multiple modules. + +- refractor: remove entryId concept ([#217](https://github.com/lynx-family/lynx-stack/pull/217)) + + After the PR #198 + All contents are isolated by a shadowroot. + Therefore we don't need to add the entryId selector to avoid the lynx-view's style taking effect on the whole page. + +### Patch Changes + +- Updated dependencies [[`5b5e090`](https://github.com/lynx-family/lynx-stack/commit/5b5e090fdf0e896f1c38a49bf3ed9889117c4fb8), [`d2d55ef`](https://github.com/lynx-family/lynx-stack/commit/d2d55ef9fe438c35921d9db0daa40d5228822ecc)]: + - @lynx-js/web-constants@0.9.0 + - @lynx-js/web-mainthread-apis@0.9.0 + - @lynx-js/web-worker-rpc@0.9.0 + ## 0.8.0 ### Minor Changes diff --git a/packages/web-platform/web-worker-runtime/package.json b/packages/web-platform/web-worker-runtime/package.json index b60b5fb6fb..0684c59ad5 100644 --- a/packages/web-platform/web-worker-runtime/package.json +++ b/packages/web-platform/web-worker-runtime/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/web-worker-runtime", - "version": "0.8.0", + "version": "0.9.0", "private": false, "description": "", "keywords": [], diff --git a/packages/webpack/template-webpack-plugin/CHANGELOG.md b/packages/webpack/template-webpack-plugin/CHANGELOG.md index 2cc47f4698..513628d692 100644 --- a/packages/webpack/template-webpack-plugin/CHANGELOG.md +++ b/packages/webpack/template-webpack-plugin/CHANGELOG.md @@ -1,5 +1,11 @@ # @lynx-js/template-webpack-plugin +## 0.6.6 + +### Patch Changes + +- expose main.lynx.bundle to compiler ([#231](https://github.com/lynx-family/lynx-stack/pull/231)) + ## 0.6.5 ### Patch Changes diff --git a/packages/webpack/template-webpack-plugin/package.json b/packages/webpack/template-webpack-plugin/package.json index 177d344b4a..27a9dcaa0c 100644 --- a/packages/webpack/template-webpack-plugin/package.json +++ b/packages/webpack/template-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/template-webpack-plugin", - "version": "0.6.5", + "version": "0.6.6", "description": "Simplifies creation of Lynx template files to serve your webpack bundles", "keywords": [ "webpack", diff --git a/packages/webpack/web-webpack-plugin/CHANGELOG.md b/packages/webpack/web-webpack-plugin/CHANGELOG.md index eabd468b25..ddaaeb796b 100644 --- a/packages/webpack/web-webpack-plugin/CHANGELOG.md +++ b/packages/webpack/web-webpack-plugin/CHANGELOG.md @@ -1,5 +1,11 @@ # @lynx-js/web-webpack-plugin +## 0.6.3 + +### Patch Changes + +- chore: remove unused file ([#217](https://github.com/lynx-family/lynx-stack/pull/217)) + ## 0.6.2 ### Patch Changes diff --git a/packages/webpack/web-webpack-plugin/package.json b/packages/webpack/web-webpack-plugin/package.json index c892e774e2..20fb10e7e5 100644 --- a/packages/webpack/web-webpack-plugin/package.json +++ b/packages/webpack/web-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/web-webpack-plugin", - "version": "0.6.2", + "version": "0.6.3", "private": false, "description": "TBD", "keywords": [],