github lynx-family/lynx-stack @lynx-js/web-core@0.22.0

Minor Changes

  • Support lynx.fetchBundle and lynx.loadScript for async external bundles on the web platform. (#2846)

    @lynx-js/externals-loading-webpack-plugin (via @lynx-js/external-bundle-rsbuild-plugin) can now load external bundles at runtime on web. Both APIs are available on the lynx object in the main-thread and background JS realms. An external bundle reuses the card's own chunk machinery rather than custom sections: its main-thread chunk rides the LepusCode section (loaded in the mts realm via lepusCodeUrls) and its background chunk rides the Manifest section (loaded in the bts worker via updateBTSChunktemplateCache), while its pre-processed style section is applied globally through the existing wasm style engine. The background thread now requires @lynx-js/lynx-core >= 0.1.4, whose lynx.loadScript runs the loaded section's init.

    Web binary external bundles are produced by @lynx-js/lynx-bundle-rslib-config with target: 'web'.

    Only the async usage is supported (async: true); the synchronous promise.wait() usage is not available on web.

Patch Changes

  • Implement web performance profiling APIs by bridging ReactLynx profileStart, profileEnd, profileMark, profileFlowId, and isProfileRecording to browser User Timing entries. (#2874)

  • Updated dependencies []:

    • @lynx-js/web-worker-rpc@0.22.0

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.