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

latest releases: @lynx-js/testing-environment@0.2.0, upgrade-rspeedy@0.14.2, @lynx-js/external-bundle-rsbuild-plugin@0.1.1...
9 hours ago

Minor Changes

  • Simplify hooks for main-thread runtime, which only can run during the first screen. (#2441)

Patch Changes

  • Remove stale gestures when gestures are removed (#2297)

  • Trace refactor (#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)

  • Support rstest for testing library, you can use rstest with RLTL now: (#2328)

    Create a config file rstest.config.ts with the following content:

    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:

    $ rstest

    For more usage detail, see https://rstest.rs/

  • Update preact version (#2456)

  • Add nodeIndex to generated FiberElement creation calls and expose React transform debug metadata as uiSourceMapRecords. (#2402)

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.