github lynx-family/lynx-stack @lynx-js/react@0.115.1

latest releases: @lynx-js/web-mainthread-apis@0.19.1, @lynx-js/web-core-server@0.19.1, @lynx-js/react-webpack-plugin@0.7.3...
2 days ago

Patch Changes

  • Auto define lynx.loadLazyBundle when using import(/* relative path */). (#1956)

  • feat: support declaring cross-thread shared modules via Import Attributes, enabling Main Thread Functions to call standard JS functions directly. (#1968)

    • Usage: Add with { runtime: "shared" } to the import statement. For example:

      import { func } from './utils.js' with { runtime: 'shared' };
      
      function worklet() {
        'main thread';
        func(); // callable inside a main thread function
      }
    • Limitations:

      • Only directly imported identifiers are treated as shared; assigning the import to a new variable will result in the loss of this shared capability.
      • Functions defined within shared modules do not automatically become Main Thread Functions. Accessing main-thread-only APIs (e.g., MainThreadRef) will cause errors.

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.