github lynx-family/lynx-stack @lynx-js/testing-environment@0.4.0

latest releases: @lynx-js/genui@0.7.0, @lynx-js/react-rsbuild-plugin@0.21.0, @lynx-js/vanilla-rsbuild-plugin@0.1.4...
3 hours ago

Minor Changes

  • Deliver the main-thread runtime through named imports from its init entry, including background-only definitions that carry their registration dependencies into the main-thread graph. Runtime code participates in business defines and release processing. Every supported transform supplies semantic runtime requirements, including for definitions injected from background-only modules; watch rebuilds refresh their dependencies and metadata. (#4066)

    Upgrade the build plugins and @lynx-js/react together. This release requires @lynx-js/react@^0.128.0; its runtime and bundled transform use the same module-delivery protocol. The refresh plugin adds support for @lynx-js/react-webpack-plugin@^0.13.0 while retaining its existing supported versions. Older compiler output is unsupported. The prebuilt worklet-runtime chunk, its package entries, and loadWorkletRuntime are removed. Combined lazy chunks share their paired main runtime, and standalone lazy bundles bootstrap themselves.

    The worklet init entry follows worklet.runtimePkg: remove a trailing /internal, if present, and append /worklet-runtime/init. Its registerWorklet export uses the existing host registration function when the runtime is already initialized. Default worklet options use @lynx-js/react/internal for helpers.

    Testing-library initializes module-delivered worklets on its emulated main thread in Vitest and Rstest.

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.