diff --git a/.changeset/all-crabs-smell.md b/.changeset/all-crabs-smell.md deleted file mode 100644 index 930134bda1..0000000000 --- a/.changeset/all-crabs-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lynx-js/testing-environment': patch ---- - -Add `__RemoveGestureDetector` PAPI binding diff --git a/.changeset/calm-zebras-smile.md b/.changeset/calm-zebras-smile.md deleted file mode 100644 index 853d812bb3..0000000000 --- a/.changeset/calm-zebras-smile.md +++ /dev/null @@ -1,3 +0,0 @@ ---- - ---- diff --git a/.changeset/debug-metadata.md b/.changeset/debug-metadata.md deleted file mode 100644 index 1b058905a4..0000000000 --- a/.changeset/debug-metadata.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lynx-js/template-webpack-plugin': patch ---- - -Introduce `LynxDebugMetadataPlugin` to emit debug-metadata assets. diff --git a/.changeset/easy-waves-pump.md b/.changeset/easy-waves-pump.md deleted file mode 100644 index 6b6239c210..0000000000 --- a/.changeset/easy-waves-pump.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@lynx-js/react-webpack-plugin": patch -"@lynx-js/react-rsbuild-plugin": patch ---- - -Support rstest for testing library using a dedicated testing loader. diff --git a/.changeset/fair-guests-visit.md b/.changeset/fair-guests-visit.md deleted file mode 100644 index 7a1a55c5de..0000000000 --- a/.changeset/fair-guests-visit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/react-rsbuild-plugin": patch ---- - -Fix `environments.lynx.performance.profile` so it overrides the default profile behavior for the current environment. diff --git a/.changeset/fair-horses-worry.md b/.changeset/fair-horses-worry.md deleted file mode 100644 index 15bd66cb5e..0000000000 --- a/.changeset/fair-horses-worry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lynx-js/react': patch ---- - -Remove stale gestures when gestures are removed diff --git a/.changeset/fair-plums-share.md b/.changeset/fair-plums-share.md deleted file mode 100644 index a6a64189b7..0000000000 --- a/.changeset/fair-plums-share.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@lynx-js/testing-environment": minor ---- - -**BREAKING CHANGE**: - -Align the public test-environment API around `LynxEnv`. - -`LynxTestingEnv` now expects a `{ window }`-shaped environment instead of relying on a concrete `JSDOM` instance or `global.jsdom`. Callers that construct `LynxTestingEnv` manually or initialize the environment through globals should migrate to `new LynxTestingEnv({ window })` or set `global.lynxEnv`. - -This release also adds the `@lynx-js/testing-environment/env/rstest` entry for running the shared testing-environment suite under rstest. diff --git a/.changeset/fix-duplicate-loadscript-calls.md b/.changeset/fix-duplicate-loadscript-calls.md deleted file mode 100644 index b11d0a6c9b..0000000000 --- a/.changeset/fix-duplicate-loadscript-calls.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@lynx-js/externals-loading-webpack-plugin': patch ---- - -fix: deduplicate `loadScript` calls for externals sharing the same (bundle, section) pair - -When multiple externals had different `libraryName` values but pointed to the same -bundle URL and section path, `createLoadExternalSync`/`createLoadExternalAsync` was -called once per external, causing `lynx.loadScript` to execute redundantly for the -same section. Now only the first external in each `(url, sectionPath)` group triggers -the load; subsequent externals in the group are assigned the already-loaded result -directly. diff --git a/.changeset/fix-rstest-jsx-runtime-alias.md b/.changeset/fix-rstest-jsx-runtime-alias.md deleted file mode 100644 index 6e90a87189..0000000000 --- a/.changeset/fix-rstest-jsx-runtime-alias.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@lynx-js/react-alias-rsbuild-plugin': patch ---- - -fix(rstest): add global fallback aliases for `@lynx-js/react/jsx-runtime` and `@lynx-js/react/jsx-dev-runtime` - -`pluginReactAlias` only aliased these entries inside layer-specific rules (`issuerLayer: BACKGROUND/MAIN_THREAD`). In rstest mode there are no layers, so JSX transformed by the testing loader—which emits `import { jsx } from '@lynx-js/react/jsx-runtime'`—could not be resolved, causing a `Cannot find module '@lynx-js/react/jsx-runtime'` error. Added global (non-layer-specific) fallback aliases pointing to the background jsx-runtime. diff --git a/.changeset/fix-rstest-testing-loader-compat.md b/.changeset/fix-rstest-testing-loader-compat.md deleted file mode 100644 index 520a998041..0000000000 --- a/.changeset/fix-rstest-testing-loader-compat.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@lynx-js/react-webpack-plugin': patch ---- - -fix(rstest): normalize partial `compat` options in the testing loader - -The testing loader forwards `compat` directly to `transformReactLynxSync` without normalization. When `compat` is supplied as a partial object, the required `target` field is absent and the WASM transform throws `Error: Missing field 'target'`. Added the same normalization already present in `getCommonOptions` for the background/main-thread loaders: fills in `target: 'MIXED'` and all other required fields with sensible defaults. diff --git a/.changeset/fix-touch-detail.md b/.changeset/fix-touch-detail.md deleted file mode 100644 index 33c3ee2146..0000000000 --- a/.changeset/fix-touch-detail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lynx-js/web-core': patch ---- - -fix: map clientX and clientY to x and y in touch event detail diff --git a/.changeset/fix-wasmcontext-memory-leak.md b/.changeset/fix-wasmcontext-memory-leak.md deleted file mode 100644 index 5436abaf4c..0000000000 --- a/.changeset/fix-wasmcontext-memory-leak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/web-core": patch ---- - -fix(web-platform): completely detach event listeners and forcefully free `MainThreadWasmContext` pointer alongside strict FIFO async component disposal to ensure total memory reclamation without use-after-free risks diff --git a/.changeset/full-walls-behave.md b/.changeset/full-walls-behave.md deleted file mode 100644 index f36a7fd6d7..0000000000 --- a/.changeset/full-walls-behave.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@lynx-js/react": patch ---- - -Trace refactor - -- Remove `ReactLynx::renderOpcodes` from the trace -- Use `ReactLynx::transferRoot` to measure the time spent transferring the root to the background thread diff --git a/.changeset/metal-carrots-itch.md b/.changeset/metal-carrots-itch.md deleted file mode 100644 index 1a7036ea28..0000000000 --- a/.changeset/metal-carrots-itch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/react": patch ---- - -refactor: set state of suspense to render fallback diff --git a/.changeset/mighty-buckets-train.md b/.changeset/mighty-buckets-train.md deleted file mode 100644 index 853d812bb3..0000000000 --- a/.changeset/mighty-buckets-train.md +++ /dev/null @@ -1,3 +0,0 @@ ---- - ---- diff --git a/.changeset/ninety-pants-tease.md b/.changeset/ninety-pants-tease.md deleted file mode 100644 index 644f29a76b..0000000000 --- a/.changeset/ninety-pants-tease.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-rspeedy": patch ---- - -Add Rstest ReactLynx Testing Library template. diff --git a/.changeset/red-lamps-arrive.md b/.changeset/red-lamps-arrive.md deleted file mode 100644 index 4ad4b4d80e..0000000000 --- a/.changeset/red-lamps-arrive.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -"@lynx-js/react": patch ---- - -Support rstest for testing library, you can use rstest with RLTL now: - -Create a config file `rstest.config.ts` with the following content: - -```ts -import { defineConfig } from '@rstest/core'; -import { withLynxConfig } from '@lynx-js/react/testing-library/rstest-config'; - -export default defineConfig({ - extends: withLynxConfig(), -}); -``` - -`@lynx-js/react/testing-library/rstest-config` will automatically load your `lynx.config.ts` and apply the same configuration to rstest, so you can keep your test environment consistent with your development environment. - -And then use rstest as usual: - -```bash -$ rstest -``` - -For more usage detail, see https://rstest.rs/ diff --git a/.changeset/refactor-weakref-webcore.md b/.changeset/refactor-weakref-webcore.md deleted file mode 100644 index 3000a3f15b..0000000000 --- a/.changeset/refactor-weakref-webcore.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/web-core": patch ---- - -refactor: with WeakRef in element APIs and WASM bindings to improve memory management. diff --git a/.changeset/sharp-icons-guess.md b/.changeset/sharp-icons-guess.md deleted file mode 100644 index 22b437fd90..0000000000 --- a/.changeset/sharp-icons-guess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/react": patch ---- - -Update preact version diff --git a/.changeset/short-planes-cut.md b/.changeset/short-planes-cut.md deleted file mode 100644 index ded777976b..0000000000 --- a/.changeset/short-planes-cut.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/web-core": patch ---- - -fix: preserve CSS variable fallback values when encoding web-core stylesheets so declarations like `var(--token, rgba(...))` are emitted with their fallback intact. diff --git a/.changeset/soft-pumas-push.md b/.changeset/soft-pumas-push.md deleted file mode 100644 index 83a5d8b735..0000000000 --- a/.changeset/soft-pumas-push.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/react": patch ---- - -Add `nodeIndex` to generated FiberElement creation calls and expose React transform debug metadata as `uiSourceMapRecords`. diff --git a/.changeset/ten-lions-accept.md b/.changeset/ten-lions-accept.md deleted file mode 100644 index 6a4a5518f7..0000000000 --- a/.changeset/ten-lions-accept.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@lynx-js/react-rsbuild-plugin': patch -'@lynx-js/react-webpack-plugin': patch ---- - -Add `enableUiSourceMap` option to enable UI source map generation and debug-metadata asset emission. diff --git a/.changeset/tidy-buttons-tie.md b/.changeset/tidy-buttons-tie.md deleted file mode 100644 index 104ef66dcb..0000000000 --- a/.changeset/tidy-buttons-tie.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@lynx-js/react': minor -'@lynx-js/react-alias-rsbuild-plugin': minor -'@lynx-js/react-rsbuild-plugin': minor ---- - -Simplify hooks for main-thread runtime, which only can run during the first screen. diff --git a/.changeset/tidy-clubs-wink.md b/.changeset/tidy-clubs-wink.md deleted file mode 100644 index f60a2d4139..0000000000 --- a/.changeset/tidy-clubs-wink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/web-core": patch ---- - -fix: avoid to do use-after-free for rust instance diff --git a/.changeset/web-core-unique-id.md b/.changeset/web-core-unique-id.md deleted file mode 100644 index d8264f5314..0000000000 --- a/.changeset/web-core-unique-id.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lynx-js/web-core": patch ---- - -fix: Change uniqueId to uid in LynxCrossThreadEventTarget diff --git a/packages/react-umd/CHANGELOG.md b/packages/react-umd/CHANGELOG.md index 6d26389c12..21a57cb779 100644 --- a/packages/react-umd/CHANGELOG.md +++ b/packages/react-umd/CHANGELOG.md @@ -1,5 +1,7 @@ # @lynx-js/react-umd +## 0.119.0 + ## 0.118.0 ## 0.117.1 diff --git a/packages/react-umd/package.json b/packages/react-umd/package.json index c4e5c5f14f..ada7b6c3f3 100644 --- a/packages/react-umd/package.json +++ b/packages/react-umd/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/react-umd", - "version": "0.118.0", + "version": "0.119.0", "description": "UMD build for ReactLynx", "keywords": [ "ReactLynx", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 9406dcb0a7..dca4de257a 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,49 @@ # @lynx-js/react +## 0.119.0 + +### Minor Changes + +- Simplify hooks for main-thread runtime, which only can run during the first screen. ([#2441](https://github.com/lynx-family/lynx-stack/pull/2441)) + +### Patch Changes + +- Remove stale gestures when gestures are removed ([#2297](https://github.com/lynx-family/lynx-stack/pull/2297)) + +- Trace refactor ([#2466](https://github.com/lynx-family/lynx-stack/pull/2466)) + + - Remove `ReactLynx::renderOpcodes` from the trace + - Use `ReactLynx::transferRoot` to measure the time spent transferring the root to the background thread + +- refactor: set state of suspense to render fallback ([#2450](https://github.com/lynx-family/lynx-stack/pull/2450)) + +- Support rstest for testing library, you can use rstest with RLTL now: ([#2328](https://github.com/lynx-family/lynx-stack/pull/2328)) + + Create a config file `rstest.config.ts` with the following content: + + ```ts + import { defineConfig } from '@rstest/core'; + import { withLynxConfig } from '@lynx-js/react/testing-library/rstest-config'; + + export default defineConfig({ + extends: withLynxConfig(), + }); + ``` + + `@lynx-js/react/testing-library/rstest-config` will automatically load your `lynx.config.ts` and apply the same configuration to rstest, so you can keep your test environment consistent with your development environment. + + And then use rstest as usual: + + ```bash + $ rstest + ``` + + For more usage detail, see https://rstest.rs/ + +- Update preact version ([#2456](https://github.com/lynx-family/lynx-stack/pull/2456)) + +- Add `nodeIndex` to generated FiberElement creation calls and expose React transform debug metadata as `uiSourceMapRecords`. ([#2402](https://github.com/lynx-family/lynx-stack/pull/2402)) + ## 0.118.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index abbd09865e..0f344d5738 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/react", - "version": "0.118.0", + "version": "0.119.0", "description": "ReactLynx is a framework for developing Lynx applications with familiar React.", "repository": { "type": "git", diff --git a/packages/rspeedy/core/CHANGELOG.md b/packages/rspeedy/core/CHANGELOG.md index 6bfa129584..899351b739 100644 --- a/packages/rspeedy/core/CHANGELOG.md +++ b/packages/rspeedy/core/CHANGELOG.md @@ -1,5 +1,12 @@ # @lynx-js/rspeedy +## 0.14.2 + +### Patch Changes + +- Updated dependencies []: + - @lynx-js/web-rsbuild-server-middleware@0.20.2 + ## 0.14.1 ### Patch Changes diff --git a/packages/rspeedy/core/package.json b/packages/rspeedy/core/package.json index 1efaaedff3..92fb5f9e5a 100644 --- a/packages/rspeedy/core/package.json +++ b/packages/rspeedy/core/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/rspeedy", - "version": "0.14.1", + "version": "0.14.2", "description": "A webpack/rspack-based frontend toolchain for Lynx", "keywords": [ "webpack", diff --git a/packages/rspeedy/create-rspeedy/CHANGELOG.md b/packages/rspeedy/create-rspeedy/CHANGELOG.md index 6be640d092..7a70d6b630 100644 --- a/packages/rspeedy/create-rspeedy/CHANGELOG.md +++ b/packages/rspeedy/create-rspeedy/CHANGELOG.md @@ -1,5 +1,11 @@ # create-rspeedy +## 0.14.2 + +### Patch Changes + +- Add Rstest ReactLynx Testing Library template. ([#2328](https://github.com/lynx-family/lynx-stack/pull/2328)) + ## 0.14.1 ### Patch Changes diff --git a/packages/rspeedy/create-rspeedy/package.json b/packages/rspeedy/create-rspeedy/package.json index 1e65491320..9e8ad50045 100644 --- a/packages/rspeedy/create-rspeedy/package.json +++ b/packages/rspeedy/create-rspeedy/package.json @@ -1,6 +1,6 @@ { "name": "create-rspeedy", - "version": "0.14.1", + "version": "0.14.2", "description": "Create Rspeedy-powered ReactLynx apps with one command", "keywords": [ "webpack", diff --git a/packages/rspeedy/plugin-external-bundle/CHANGELOG.md b/packages/rspeedy/plugin-external-bundle/CHANGELOG.md index dde1469de0..47b14bc725 100644 --- a/packages/rspeedy/plugin-external-bundle/CHANGELOG.md +++ b/packages/rspeedy/plugin-external-bundle/CHANGELOG.md @@ -1,5 +1,12 @@ # @lynx-js/external-bundle-rsbuild-plugin +## 0.1.1 + +### Patch Changes + +- Updated dependencies [[`3262ca8`](https://github.com/lynx-family/lynx-stack/commit/3262ca88e93f66a1b745d4cc12b98959d20e9413)]: + - @lynx-js/externals-loading-webpack-plugin@0.1.1 + ## 0.1.0 ### Minor Changes diff --git a/packages/rspeedy/plugin-external-bundle/package.json b/packages/rspeedy/plugin-external-bundle/package.json index 8eca7899aa..2ada96dbd6 100644 --- a/packages/rspeedy/plugin-external-bundle/package.json +++ b/packages/rspeedy/plugin-external-bundle/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/external-bundle-rsbuild-plugin", - "version": "0.1.0", + "version": "0.1.1", "description": "An rsbuild plugin for loading lynx external bundles.", "keywords": [ "rsbuild", diff --git a/packages/rspeedy/plugin-react-alias/CHANGELOG.md b/packages/rspeedy/plugin-react-alias/CHANGELOG.md index 4a10dd2260..bbe51ee8c6 100644 --- a/packages/rspeedy/plugin-react-alias/CHANGELOG.md +++ b/packages/rspeedy/plugin-react-alias/CHANGELOG.md @@ -1,5 +1,17 @@ # @lynx-js/react-alias-rsbuild-plugin +## 0.16.0 + +### Minor Changes + +- Simplify hooks for main-thread runtime, which only can run during the first screen. ([#2441](https://github.com/lynx-family/lynx-stack/pull/2441)) + +### Patch Changes + +- fix(rstest): add global fallback aliases for `@lynx-js/react/jsx-runtime` and `@lynx-js/react/jsx-dev-runtime` ([#2464](https://github.com/lynx-family/lynx-stack/pull/2464)) + + `pluginReactAlias` only aliased these entries inside layer-specific rules (`issuerLayer: BACKGROUND/MAIN_THREAD`). In rstest mode there are no layers, so JSX transformed by the testing loader—which emits `import { jsx } from '@lynx-js/react/jsx-runtime'`—could not be resolved, causing a `Cannot find module '@lynx-js/react/jsx-runtime'` error. Added global (non-layer-specific) fallback aliases pointing to the background jsx-runtime. + ## 0.15.0 ## 0.14.0 diff --git a/packages/rspeedy/plugin-react-alias/package.json b/packages/rspeedy/plugin-react-alias/package.json index 453ba4a230..bdce5c5bff 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.15.0", + "version": "0.16.0", "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 d6bf12afaf..c043b79b43 100644 --- a/packages/rspeedy/plugin-react/CHANGELOG.md +++ b/packages/rspeedy/plugin-react/CHANGELOG.md @@ -1,5 +1,27 @@ # @lynx-js/react-rsbuild-plugin +## 0.16.0 + +### Minor Changes + +- Simplify hooks for main-thread runtime, which only can run during the first screen. ([#2441](https://github.com/lynx-family/lynx-stack/pull/2441)) + +### Patch Changes + +- Support rstest for testing library using a dedicated testing loader. ([#2328](https://github.com/lynx-family/lynx-stack/pull/2328)) + +- Fix `environments.lynx.performance.profile` so it overrides the default profile behavior for the current environment. ([#2468](https://github.com/lynx-family/lynx-stack/pull/2468)) + +- Add `enableUiSourceMap` option to enable UI source map generation and debug-metadata asset emission. ([#2402](https://github.com/lynx-family/lynx-stack/pull/2402)) + +- Updated dependencies [[`a9f8d05`](https://github.com/lynx-family/lynx-stack/commit/a9f8d0548664ea32ebae2072c13f2cf6fee676eb), [`b1ad1b9`](https://github.com/lynx-family/lynx-stack/commit/b1ad1b98ed8d4635ad89fac42fe2fbb7e8e56c39), [`f6184f3`](https://github.com/lynx-family/lynx-stack/commit/f6184f32c3eb160d16ee852da4955765b5ad1398), [`f6184f3`](https://github.com/lynx-family/lynx-stack/commit/f6184f32c3eb160d16ee852da4955765b5ad1398), [`a9f8d05`](https://github.com/lynx-family/lynx-stack/commit/a9f8d0548664ea32ebae2072c13f2cf6fee676eb), [`f542d9c`](https://github.com/lynx-family/lynx-stack/commit/f542d9c98b376d340443b4683ed0c7707beeb5ad)]: + - @lynx-js/template-webpack-plugin@0.10.9 + - @lynx-js/react-webpack-plugin@0.9.1 + - @lynx-js/react-alias-rsbuild-plugin@0.16.0 + - @lynx-js/css-extract-webpack-plugin@0.7.0 + - @lynx-js/react-refresh-webpack-plugin@0.3.5 + - @lynx-js/use-sync-external-store@1.5.0 + ## 0.15.0 ### Minor Changes diff --git a/packages/rspeedy/plugin-react/package.json b/packages/rspeedy/plugin-react/package.json index ec82ae8961..52c95c1221 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.15.0", + "version": "0.16.0", "description": "A rsbuild plugin for ReactLynx", "keywords": [ "rsbuild", diff --git a/packages/rspeedy/upgrade-rspeedy/CHANGELOG.md b/packages/rspeedy/upgrade-rspeedy/CHANGELOG.md index 6abf2de1d0..5528814b3a 100644 --- a/packages/rspeedy/upgrade-rspeedy/CHANGELOG.md +++ b/packages/rspeedy/upgrade-rspeedy/CHANGELOG.md @@ -1,5 +1,7 @@ # upgrade-rspeedy +## 0.14.2 + ## 0.14.1 ## 0.14.0 diff --git a/packages/rspeedy/upgrade-rspeedy/package.json b/packages/rspeedy/upgrade-rspeedy/package.json index 8b135c7b8a..bc66254a52 100644 --- a/packages/rspeedy/upgrade-rspeedy/package.json +++ b/packages/rspeedy/upgrade-rspeedy/package.json @@ -1,6 +1,6 @@ { "name": "upgrade-rspeedy", - "version": "0.14.1", + "version": "0.14.2", "description": "Upgrade Rspeedy-related packages", "keywords": [ "webpack", diff --git a/packages/testing-library/testing-environment/CHANGELOG.md b/packages/testing-library/testing-environment/CHANGELOG.md index c80efe513c..fcd097609e 100644 --- a/packages/testing-library/testing-environment/CHANGELOG.md +++ b/packages/testing-library/testing-environment/CHANGELOG.md @@ -1,5 +1,21 @@ # @lynx-js/testing-environment +## 0.2.0 + +### Minor Changes + +- **BREAKING CHANGE**: ([#2328](https://github.com/lynx-family/lynx-stack/pull/2328)) + + Align the public test-environment API around `LynxEnv`. + + `LynxTestingEnv` now expects a `{ window }`-shaped environment instead of relying on a concrete `JSDOM` instance or `global.jsdom`. Callers that construct `LynxTestingEnv` manually or initialize the environment through globals should migrate to `new LynxTestingEnv({ window })` or set `global.lynxEnv`. + + This release also adds the `@lynx-js/testing-environment/env/rstest` entry for running the shared testing-environment suite under rstest. + +### Patch Changes + +- Add `__RemoveGestureDetector` PAPI binding ([#2297](https://github.com/lynx-family/lynx-stack/pull/2297)) + ## 0.1.12 ### Patch Changes diff --git a/packages/testing-library/testing-environment/package.json b/packages/testing-library/testing-environment/package.json index 7ae99d6abc..6a6770f1b5 100644 --- a/packages/testing-library/testing-environment/package.json +++ b/packages/testing-library/testing-environment/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/testing-environment", - "version": "0.1.12", + "version": "0.2.0", "description": "A subset of a Lynx environment to be useful for testing", "keywords": [ "Lynx", diff --git a/packages/web-platform/web-core/CHANGELOG.md b/packages/web-platform/web-core/CHANGELOG.md index 9745e2444f..bc3444856c 100644 --- a/packages/web-platform/web-core/CHANGELOG.md +++ b/packages/web-platform/web-core/CHANGELOG.md @@ -1,5 +1,24 @@ # @lynx-js/web-core +## 0.20.2 + +### Patch Changes + +- fix: map clientX and clientY to x and y in touch event detail ([#2458](https://github.com/lynx-family/lynx-stack/pull/2458)) + +- fix(web-platform): completely detach event listeners and forcefully free `MainThreadWasmContext` pointer alongside strict FIFO async component disposal to ensure total memory reclamation without use-after-free risks ([#2457](https://github.com/lynx-family/lynx-stack/pull/2457)) + +- refactor: with WeakRef in element APIs and WASM bindings to improve memory management. ([#2439](https://github.com/lynx-family/lynx-stack/pull/2439)) + +- fix: preserve CSS variable fallback values when encoding web-core stylesheets so declarations like `var(--token, rgba(...))` are emitted with their fallback intact. ([#2460](https://github.com/lynx-family/lynx-stack/pull/2460)) + +- fix: avoid to do use-after-free for rust instance ([#2461](https://github.com/lynx-family/lynx-stack/pull/2461)) + +- fix: Change uniqueId to uid in LynxCrossThreadEventTarget ([#2467](https://github.com/lynx-family/lynx-stack/pull/2467)) + +- Updated dependencies []: + - @lynx-js/web-worker-rpc@0.20.2 + ## 0.20.1 ### Patch Changes diff --git a/packages/web-platform/web-core/package.json b/packages/web-platform/web-core/package.json index 4bfd132f8d..c4c093bffe 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.20.1", + "version": "0.20.2", "description": "This is an internal experimental package, do not use", "repository": { "type": "git", diff --git a/packages/web-platform/web-rsbuild-server-middleware/CHANGELOG.md b/packages/web-platform/web-rsbuild-server-middleware/CHANGELOG.md index 1b37cf1dbc..9c7ef71721 100644 --- a/packages/web-platform/web-rsbuild-server-middleware/CHANGELOG.md +++ b/packages/web-platform/web-rsbuild-server-middleware/CHANGELOG.md @@ -1,5 +1,7 @@ # @lynx-js/web-rsbuild-server-middleware +## 0.20.2 + ## 0.20.1 ## 0.20.0 diff --git a/packages/web-platform/web-rsbuild-server-middleware/package.json b/packages/web-platform/web-rsbuild-server-middleware/package.json index 117d21eb23..60beb3d6dd 100644 --- a/packages/web-platform/web-rsbuild-server-middleware/package.json +++ b/packages/web-platform/web-rsbuild-server-middleware/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/web-rsbuild-server-middleware", - "version": "0.20.1", + "version": "0.20.2", "private": false, "description": "a dev server middleware for rsbuild to serve Lynx Web Platform shell project", "keywords": [], diff --git a/packages/web-platform/web-worker-rpc/CHANGELOG.md b/packages/web-platform/web-worker-rpc/CHANGELOG.md index e74eb81d42..940ae36998 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.20.2 + ## 0.20.1 ## 0.20.0 diff --git a/packages/web-platform/web-worker-rpc/package.json b/packages/web-platform/web-worker-rpc/package.json index 9ee1f18cf4..27d6535a90 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.20.1", + "version": "0.20.2", "private": false, "description": "", "keywords": [], diff --git a/packages/webpack/externals-loading-webpack-plugin/CHANGELOG.md b/packages/webpack/externals-loading-webpack-plugin/CHANGELOG.md index 6bd493fc29..ddbb7f025f 100644 --- a/packages/webpack/externals-loading-webpack-plugin/CHANGELOG.md +++ b/packages/webpack/externals-loading-webpack-plugin/CHANGELOG.md @@ -1,5 +1,18 @@ # @lynx-js/externals-loading-webpack-plugin +## 0.1.1 + +### Patch Changes + +- fix: deduplicate `loadScript` calls for externals sharing the same (bundle, section) pair ([#2465](https://github.com/lynx-family/lynx-stack/pull/2465)) + + When multiple externals had different `libraryName` values but pointed to the same + bundle URL and section path, `createLoadExternalSync`/`createLoadExternalAsync` was + called once per external, causing `lynx.loadScript` to execute redundantly for the + same section. Now only the first external in each `(url, sectionPath)` group triggers + the load; subsequent externals in the group are assigned the already-loaded result + directly. + ## 0.1.0 ### Minor Changes diff --git a/packages/webpack/externals-loading-webpack-plugin/package.json b/packages/webpack/externals-loading-webpack-plugin/package.json index 5285505942..abb2784544 100644 --- a/packages/webpack/externals-loading-webpack-plugin/package.json +++ b/packages/webpack/externals-loading-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/externals-loading-webpack-plugin", - "version": "0.1.0", + "version": "0.1.1", "description": "A webpack plugin to load lynx external bundles.", "keywords": [ "webpack", diff --git a/packages/webpack/react-webpack-plugin/CHANGELOG.md b/packages/webpack/react-webpack-plugin/CHANGELOG.md index 3c512e9459..e488d994d3 100644 --- a/packages/webpack/react-webpack-plugin/CHANGELOG.md +++ b/packages/webpack/react-webpack-plugin/CHANGELOG.md @@ -1,5 +1,17 @@ # @lynx-js/react-webpack-plugin +## 0.9.1 + +### Patch Changes + +- Support rstest for testing library using a dedicated testing loader. ([#2328](https://github.com/lynx-family/lynx-stack/pull/2328)) + +- fix(rstest): normalize partial `compat` options in the testing loader ([#2464](https://github.com/lynx-family/lynx-stack/pull/2464)) + + The testing loader forwards `compat` directly to `transformReactLynxSync` without normalization. When `compat` is supplied as a partial object, the required `target` field is absent and the WASM transform throws `Error: Missing field 'target'`. Added the same normalization already present in `getCommonOptions` for the background/main-thread loaders: fills in `target: 'MIXED'` and all other required fields with sensible defaults. + +- Add `enableUiSourceMap` option to enable UI source map generation and debug-metadata asset emission. ([#2402](https://github.com/lynx-family/lynx-stack/pull/2402)) + ## 0.9.0 ### Minor Changes diff --git a/packages/webpack/react-webpack-plugin/package.json b/packages/webpack/react-webpack-plugin/package.json index f7722bdab3..c7a68e77a0 100644 --- a/packages/webpack/react-webpack-plugin/package.json +++ b/packages/webpack/react-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@lynx-js/react-webpack-plugin", - "version": "0.9.0", + "version": "0.9.1", "description": "A webpack plugin for ReactLynx", "keywords": [ "webpack", diff --git a/packages/webpack/template-webpack-plugin/CHANGELOG.md b/packages/webpack/template-webpack-plugin/CHANGELOG.md index b08f16e96e..0a0d63ab13 100644 --- a/packages/webpack/template-webpack-plugin/CHANGELOG.md +++ b/packages/webpack/template-webpack-plugin/CHANGELOG.md @@ -1,5 +1,14 @@ # @lynx-js/template-webpack-plugin +## 0.10.9 + +### Patch Changes + +- Introduce `LynxDebugMetadataPlugin` to emit debug-metadata assets. ([#2402](https://github.com/lynx-family/lynx-stack/pull/2402)) + +- Updated dependencies [[`24c4c69`](https://github.com/lynx-family/lynx-stack/commit/24c4c695022de45831cbab8c2c94dc931fedc256), [`7332eb4`](https://github.com/lynx-family/lynx-stack/commit/7332eb4ff7ee736b28d32fb0ef29d1b5d1d5059d), [`fd0cc6e`](https://github.com/lynx-family/lynx-stack/commit/fd0cc6ea8bb67b19ab9fb2203ccb6835405dd8c1), [`e5b0f66`](https://github.com/lynx-family/lynx-stack/commit/e5b0f6681961a444e955ec4f8892c9db5ec3fd43), [`5aa97d8`](https://github.com/lynx-family/lynx-stack/commit/5aa97d8f6da11d8ad8f5fdb4df39a8c39ff80180), [`5c39654`](https://github.com/lynx-family/lynx-stack/commit/5c396543f1c97e626f49a0970974d996edf8d942)]: + - @lynx-js/web-core@0.20.2 + ## 0.10.8 ### Patch Changes diff --git a/packages/webpack/template-webpack-plugin/package.json b/packages/webpack/template-webpack-plugin/package.json index 36540bf630..972925dc8b 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.10.8", + "version": "0.10.9", "description": "Simplifies creation of Lynx template files to serve your webpack bundles", "keywords": [ "webpack",