@lynx-js/react 0.126.1 → 0.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/components/tsconfig.tsbuildinfo +1 -1
- package/docs/directives.md +90 -0
- package/docs/global-events.md +50 -0
- package/docs/import-attributes.md +43 -0
- package/docs/macros.md +285 -0
- package/package.json +4 -3
- package/refresh/.turbo/turbo-build.log +4 -4
- package/refresh/dist/index.js +27 -8
- package/refresh/package.json +2 -2
- package/runtime/__test__/core/main-thread-object.test.js +149 -0
- package/runtime/__test__/element-template/debug/profile-installation.test.tsx +97 -1
- package/runtime/__test__/element-template/fixtures/background/hydrate-compiled/children.non-string-raw-text-key-on-main/output.txt +1 -1
- package/runtime/__test__/element-template/fixtures/background/main-thread-function/run-on-main-thread/index.tsx +26 -3
- package/runtime/__test__/element-template/fixtures/render/child-siblings/index.js.txt +15 -11
- package/runtime/__test__/element-template/fixtures/render/component/index.js.txt +8 -7
- package/runtime/__test__/element-template/fixtures/render/component-slot-content/index.js.txt +14 -10
- package/runtime/__test__/element-template/fixtures/render/css-scope-dynamic-bundle-url/index.js.txt +4 -3
- package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/_shared.ts +2 -9
- package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/appends-root-text-via-append-element/case.ts +2 -4
- package/runtime/__test__/element-template/fixtures/render/direct-native/creates-template-from-attrs-and-slot-text/case.ts +20 -0
- package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/handles-multiple-template-children-in-the-same-slot/case.ts +3 -16
- package/runtime/__test__/element-template/fixtures/render/direct-native/handles-multiple-text-nodes-in-the-same-slot/case.ts +18 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/inserts-nested-templates-into-parent-slots/case.ts +20 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/keeps-slot-children-separated-and-ordered/case.ts +18 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/passes-bundle-url-to-native-create/case.ts +15 -0
- package/runtime/__test__/element-template/fixtures/render/mapped-view-children/index.js.txt +12 -11
- package/runtime/__test__/element-template/fixtures/render/mixed-children/index.js.txt +8 -7
- package/runtime/__test__/element-template/fixtures/render/multiple-text/index.js.txt +15 -13
- package/runtime/__test__/element-template/fixtures/render/nested-templates/index.js.txt +9 -7
- package/runtime/__test__/element-template/fixtures/render/react-example/index.js.txt +17 -20
- package/runtime/__test__/element-template/fixtures/render/sparse-element-slot/index.js.txt +13 -10
- package/runtime/__test__/element-template/fixtures/render/template-dedupe/index.js.txt +14 -11
- package/runtime/__test__/element-template/imports/main-thread-object-api.test.ts +10 -0
- package/runtime/__test__/element-template/imports/suspense-lazy.test.ts +52 -7
- package/runtime/__test__/element-template/internal/legacy-internal-guardrail.test.ts +3 -0
- package/runtime/__test__/element-template/native/reload.test.ts +10 -26
- package/runtime/__test__/element-template/runtime/background/component-stack.test.tsx +76 -0
- package/runtime/__test__/element-template/runtime/background/hydrate.test.ts +87 -43
- package/runtime/__test__/element-template/runtime/background/instance.test.ts +14 -0
- package/runtime/__test__/element-template/runtime/background/main-thread-function/compiled-fixtures.test.tsx +4 -0
- package/runtime/__test__/element-template/runtime/render/compact-host-debug.test.ts +57 -0
- package/runtime/__test__/element-template/runtime/render/compact-host.test.ts +199 -0
- package/runtime/__test__/element-template/runtime/render/render-components.test.jsx +292 -0
- package/runtime/__test__/element-template/runtime/render/{render-opcodes-into-element-template.et.test.tsx → render-direct-native.test.tsx} +50 -314
- package/runtime/__test__/element-template/runtime/render/render-direct-suspense.test.ts +378 -0
- package/runtime/__test__/element-template/runtime/render/render-direct.test.ts +491 -0
- package/runtime/__test__/element-template/runtime/render/render-main-thread.contract.test.ts +2 -28
- package/runtime/__test__/element-template/runtime/render/render-main-thread.test.ts +21 -35
- package/runtime/__test__/element-template/runtime/render/render-transform.contract.test.ts +6 -5
- package/runtime/__test__/element-template/test-utils/debug/renderFixtureRunner.ts +4 -4
- package/runtime/__test__/element-template/vitest.config.ts +2 -1
- package/runtime/__test__/snapshot/ctxNotFound.test.ts +271 -0
- package/runtime/__test__/snapshot/debug/main-thread-children-with-same-key.test.ts +28 -0
- package/runtime/__test__/snapshot/debug/profile.test.jsx +108 -3
- package/runtime/__test__/snapshot/event.test.jsx +7 -7
- package/runtime/__test__/snapshot/lazy.test.js +114 -7
- package/runtime/__test__/snapshot/lifecycle/reloadGc.test.jsx +66 -0
- package/runtime/__test__/snapshot/lynx/portals.test.jsx +75 -37
- package/runtime/__test__/snapshot/lynx/runtime-version.test.ts +140 -0
- package/runtime/__test__/snapshot/snapshotPatch.test.jsx +59 -47
- package/runtime/__test__/snapshot/spread.test.jsx +32 -25
- package/runtime/__test__/snapshot/ssr.legacy-slot.test.jsx +168 -0
- package/runtime/__test__/snapshot/ssr.list.test.jsx +211 -0
- package/runtime/__test__/snapshot/worklet/main-thread-object.test.jsx +306 -0
- package/runtime/__test__/snapshot/worklet/workletRef.test.jsx +1 -0
- package/runtime/__test__/worklet-runtime/hydrate.test.js +92 -0
- package/runtime/__test__/worklet-runtime/mainThreadObject.test.js +182 -0
- package/runtime/__test__/worklet-runtime/object-methods.test.js +60 -0
- package/runtime/__test__/worklet-runtime/runOnBackground.test.js +8 -6
- package/runtime/__test__/worklet-runtime/workletRef.test.js +362 -2
- package/runtime/__test__/worklet-runtime/workletRuntime.test.js +249 -3
- package/runtime/lazy/compat.js +2 -0
- package/runtime/lazy/element-template-import.js +0 -4
- package/runtime/lazy/element-template-internal.js +19 -8
- package/runtime/lazy/element-template-jsx-dev-runtime.js +1 -8
- package/runtime/lazy/element-template-jsx-runtime.js +1 -3
- package/runtime/lazy/element-template.js +3 -3
- package/runtime/lazy/import.js +0 -4
- package/runtime/lazy/internal.js +17 -1
- package/runtime/lazy/react.js +2 -0
- package/runtime/lazy/target.js +0 -21
- package/runtime/lib/core/background-function/run-on-background.d.ts +16 -0
- package/runtime/lib/core/background-function/run-on-background.js +16 -0
- package/runtime/lib/core/background-function/run-on-background.js.map +1 -1
- package/runtime/lib/core/capture-main-thread-object.js +16 -0
- package/runtime/lib/core/capture-main-thread-object.js.map +1 -0
- package/runtime/lib/core/globalProps.d.ts +2 -0
- package/runtime/lib/core/globalProps.js.map +1 -1
- package/runtime/lib/core/hooks/react.d.ts +6 -0
- package/runtime/lib/core/hooks/react.js +6 -0
- package/runtime/lib/core/hooks/react.js.map +1 -1
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.d.ts +2 -0
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js +2 -0
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js.map +1 -1
- package/runtime/lib/core/initData.d.ts +2 -0
- package/runtime/lib/core/initData.js +2 -0
- package/runtime/lib/core/initData.js.map +1 -1
- package/runtime/lib/core/lynx/runtime-version.d.ts +16 -0
- package/runtime/lib/core/lynx/runtime-version.js +51 -0
- package/runtime/lib/core/lynx/runtime-version.js.map +1 -0
- package/runtime/lib/core/main-thread-object-handle-registry.d.ts +3 -0
- package/runtime/lib/core/main-thread-object-handle-registry.js +17 -0
- package/runtime/lib/core/main-thread-object-handle-registry.js.map +1 -0
- package/runtime/lib/core/main-thread-object.d.ts +77 -0
- package/runtime/lib/core/main-thread-object.js +261 -0
- package/runtime/lib/core/main-thread-object.js.map +1 -0
- package/runtime/lib/core/main-thread-ref-id.js +14 -0
- package/runtime/lib/core/main-thread-ref-id.js.map +1 -0
- package/runtime/lib/core/main-thread-ref-init-value.d.ts +1 -1
- package/runtime/lib/core/main-thread-ref-init-value.js +4 -2
- package/runtime/lib/core/main-thread-ref-init-value.js.map +1 -1
- package/runtime/lib/core/main-thread-ref.d.ts +4 -0
- package/runtime/lib/core/main-thread-ref.js +5 -8
- package/runtime/lib/core/main-thread-ref.js.map +1 -1
- package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
- package/runtime/lib/element-template/background/document.d.ts +1 -1
- package/runtime/lib/element-template/background/document.js +1 -1
- package/runtime/lib/element-template/background/document.js.map +1 -1
- package/runtime/lib/element-template/background/hydrate.js +51 -19
- package/runtime/lib/element-template/background/hydrate.js.map +1 -1
- package/runtime/lib/element-template/background/instance.js +5 -6
- package/runtime/lib/element-template/background/instance.js.map +1 -1
- package/runtime/lib/element-template/debug/profile.js +38 -22
- package/runtime/lib/element-template/debug/profile.js.map +1 -1
- package/runtime/lib/element-template/index.d.ts +3 -1
- package/runtime/lib/element-template/index.js +2 -1
- package/runtime/lib/element-template/index.js.map +1 -1
- package/runtime/lib/element-template/internal.d.ts +5 -1
- package/runtime/lib/element-template/internal.js +7 -1
- package/runtime/lib/element-template/internal.js.map +1 -1
- package/runtime/lib/element-template/native/index.js +4 -0
- package/runtime/lib/element-template/native/index.js.map +1 -1
- package/runtime/lib/element-template/protocol/types.d.ts +1 -1
- package/runtime/lib/element-template/runtime/list/list.d.ts +1 -0
- package/runtime/lib/element-template/runtime/list/list.js +3 -0
- package/runtime/lib/element-template/runtime/list/list.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/create-rendered-host.d.ts +7 -0
- package/runtime/lib/element-template/runtime/render/create-rendered-host.js +65 -0
- package/runtime/lib/element-template/runtime/render/create-rendered-host.js.map +1 -0
- package/runtime/lib/element-template/runtime/render/host.d.ts +18 -0
- package/runtime/lib/element-template/runtime/render/host.js +25 -0
- package/runtime/lib/element-template/runtime/render/host.js.map +1 -0
- package/runtime/lib/element-template/runtime/render/render-components.d.ts +6 -0
- package/runtime/lib/element-template/runtime/render/render-components.js +190 -0
- package/runtime/lib/element-template/runtime/render/render-components.js.map +1 -0
- package/runtime/lib/element-template/runtime/render/{render-opcodes.d.ts → render-direct.d.ts} +3 -1
- package/runtime/lib/element-template/runtime/render/render-direct.js +194 -0
- package/runtime/lib/element-template/runtime/render/render-direct.js.map +1 -0
- package/runtime/lib/element-template/runtime/render/render-main-thread.js +10 -9
- package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/handle.d.ts +2 -1
- package/runtime/lib/element-template/runtime/template/handle.js +12 -4
- package/runtime/lib/element-template/runtime/template/handle.js.map +1 -1
- package/runtime/lib/element-template/runtime-marker.d.ts +1 -0
- package/runtime/lib/element-template/runtime-marker.js +13 -0
- package/runtime/lib/element-template/runtime-marker.js.map +1 -0
- package/runtime/lib/index.d.ts +1 -1
- package/runtime/lib/index.js +1 -1
- package/runtime/lib/index.js.map +1 -1
- package/runtime/lib/internal.d.ts +4 -1
- package/runtime/lib/internal.js +6 -1
- package/runtime/lib/internal.js.map +1 -1
- package/runtime/lib/lynx-api.d.ts +49 -6
- package/runtime/lib/lynx-api.js +34 -4
- package/runtime/lib/lynx-api.js.map +1 -1
- package/runtime/lib/lynx.js +4 -1
- package/runtime/lib/lynx.js.map +1 -1
- package/runtime/lib/runtime-marker.d.ts +1 -0
- package/runtime/lib/runtime-marker.js +13 -0
- package/runtime/lib/runtime-marker.js.map +1 -0
- package/runtime/lib/shared/component-stack.js +5 -1
- package/runtime/lib/shared/component-stack.js.map +1 -1
- package/runtime/lib/snapshot/debug/profileHooks.js +38 -22
- package/runtime/lib/snapshot/debug/profileHooks.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/error.d.ts +11 -1
- package/runtime/lib/snapshot/lifecycle/patch/error.js +24 -16
- package/runtime/lib/snapshot/lifecycle/patch/error.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.d.ts +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js +29 -7
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js +2 -2
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/reload.js +3 -0
- package/runtime/lib/snapshot/lifecycle/reload.js.map +1 -1
- package/runtime/lib/snapshot/lynx/calledByNative.js +3 -0
- package/runtime/lib/snapshot/lynx/calledByNative.js.map +1 -1
- package/runtime/lib/snapshot/lynx/children.d.ts +2 -0
- package/runtime/lib/snapshot/lynx/children.js.map +1 -1
- package/runtime/lib/snapshot/lynx/element.d.ts +10 -0
- package/runtime/lib/snapshot/lynx/element.js +6 -0
- package/runtime/lib/snapshot/lynx/element.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/opcodes.js +2 -1
- package/runtime/lib/snapshot/renderToOpcodes/opcodes.js.map +1 -1
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.d.ts +2 -0
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.js +2 -0
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.js.map +1 -1
- package/runtime/lib/snapshot/worklet/ref/updateInitValue.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.d.ts +3 -3
- package/runtime/lib/worklet-runtime/bindings/bindings.js +9 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/types.d.ts +3 -6
- package/runtime/lib/worklet-runtime/bindings/types.js.map +1 -1
- package/runtime/lib/worklet-runtime/hydrate.js +27 -8
- package/runtime/lib/worklet-runtime/hydrate.js.map +1 -1
- package/runtime/lib/worklet-runtime/mainThreadObject.d.ts +8 -0
- package/runtime/lib/worklet-runtime/mainThreadObject.js +67 -0
- package/runtime/lib/worklet-runtime/mainThreadObject.js.map +1 -0
- package/runtime/lib/worklet-runtime/workletRef.d.ts +11 -7
- package/runtime/lib/worklet-runtime/workletRef.js +72 -9
- package/runtime/lib/worklet-runtime/workletRef.js.map +1 -1
- package/runtime/lib/worklet-runtime/workletRuntime.js +69 -19
- package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
- package/runtime/package.json +2 -3
- package/runtime/src/core/background-function/run-on-background.ts +16 -0
- package/runtime/src/core/capture-main-thread-object.ts +17 -0
- package/runtime/src/core/globalProps.ts +2 -0
- package/runtime/src/core/hooks/react.ts +6 -0
- package/runtime/src/core/hooks/useLynxGlobalEventListener.ts +2 -0
- package/runtime/src/core/initData.ts +2 -0
- package/runtime/src/core/lynx/runtime-version.ts +62 -0
- package/runtime/src/core/main-thread-object-handle-registry.ts +25 -0
- package/runtime/src/core/main-thread-object.ts +387 -0
- package/runtime/src/core/main-thread-ref-id.ts +16 -0
- package/runtime/src/core/main-thread-ref-init-value.ts +12 -4
- package/runtime/src/core/main-thread-ref.ts +7 -8
- package/runtime/src/element-template/background/commit-hook.ts +1 -1
- package/runtime/src/element-template/background/document.ts +3 -3
- package/runtime/src/element-template/background/hydrate.ts +61 -29
- package/runtime/src/element-template/background/instance.ts +5 -6
- package/runtime/src/element-template/debug/profile.ts +48 -36
- package/runtime/src/element-template/index.ts +7 -1
- package/runtime/src/element-template/internal.ts +14 -1
- package/runtime/src/element-template/native/index.ts +4 -0
- package/runtime/src/element-template/protocol/types.ts +1 -1
- package/runtime/src/element-template/runtime/list/list.ts +4 -0
- package/runtime/src/element-template/runtime/render/create-rendered-host.ts +126 -0
- package/runtime/src/element-template/runtime/render/host.ts +51 -0
- package/runtime/src/element-template/runtime/render/render-components.ts +255 -0
- package/runtime/src/element-template/runtime/render/render-direct.ts +275 -0
- package/runtime/src/element-template/runtime/render/render-main-thread.ts +10 -9
- package/runtime/src/element-template/runtime/template/handle.ts +17 -7
- package/runtime/src/element-template/runtime-marker.ts +17 -0
- package/runtime/src/index.ts +1 -1
- package/runtime/src/internal.ts +11 -1
- package/runtime/src/lynx-api.ts +53 -6
- package/runtime/src/lynx.ts +5 -1
- package/runtime/src/runtime-marker.ts +17 -0
- package/runtime/src/shared/component-stack.ts +5 -1
- package/runtime/src/snapshot/debug/profileHooks.ts +52 -40
- package/runtime/src/snapshot/lifecycle/patch/error.ts +36 -19
- package/runtime/src/snapshot/lifecycle/patch/snapshotPatchApply.ts +29 -7
- package/runtime/src/snapshot/lifecycle/patch/updateMainThread.ts +2 -2
- package/runtime/src/snapshot/lifecycle/reload.ts +4 -0
- package/runtime/src/snapshot/lynx/calledByNative.ts +4 -0
- package/runtime/src/snapshot/lynx/children.ts +2 -0
- package/runtime/src/snapshot/lynx/element.ts +10 -0
- package/runtime/src/snapshot/renderToOpcodes/opcodes.ts +2 -1
- package/runtime/src/snapshot/worklet/call/runOnMainThread.ts +2 -0
- package/runtime/src/snapshot/worklet/ref/updateInitValue.ts +1 -1
- package/runtime/src/worklet-runtime/bindings/bindings.ts +17 -2
- package/runtime/src/worklet-runtime/bindings/types.ts +7 -11
- package/runtime/src/worklet-runtime/hydrate.ts +44 -11
- package/runtime/src/worklet-runtime/mainThreadObject.ts +117 -0
- package/runtime/src/worklet-runtime/workletRef.ts +120 -19
- package/runtime/src/worklet-runtime/workletRuntime.ts +84 -21
- package/runtime/types/types.d.ts +2 -0
- package/runtime/worklet-runtime/dev.js +155 -30
- package/runtime/worklet-runtime/main.js +1 -1
- package/testing-library/.turbo/turbo-build.log +12 -12
- package/testing-library/dist/env/index.js +2 -2
- package/testing-library/dist/index.d.ts +167 -4
- package/testing-library/dist/plugins/index.js +1 -1
- package/testing-library/dist/pure.js +45 -44
- package/testing-library/etc/react-lynx-testing-library.api.md +1 -1
- package/testing-library/package.json +4 -3
- package/testing-library/src/__tests__/lynx.test.jsx +1 -1
- package/testing-library/src/__tests__/reload/reloadGc.test.jsx +64 -0
- package/testing-library/src/__tests__/reload/reloadTemplate.js +39 -0
- package/testing-library/src/__tests__/worklet.test.jsx +46 -1
- package/testing-library/tsconfig.docs.json +9 -0
- package/testing-library/typedoc.json +22 -0
- package/testing-library/types/entry.d.ts +2 -2
- package/transform/.turbo/turbo-build$colon$wasm.log +151 -67
- package/transform/__test__/fixture.spec.js +89 -50
- package/transform/__test__/object-methods.spec.js +84 -0
- package/transform/__test__/text.spec.js +75 -0
- package/transform/crates/swc_plugin_compat/lib.rs +4 -3
- package/transform/crates/swc_plugin_compat/napi.rs +4 -3
- package/transform/crates/swc_plugin_define_dce/napi.rs +1 -1
- package/transform/crates/swc_plugin_dynamic_import/lib.rs +105 -3
- package/transform/crates/swc_plugin_dynamic_import/tests/__swc_snapshots__/lib.rs/should_suffix_webpack_chunk_name.js +5 -0
- package/transform/crates/swc_plugin_element_template/host_lowering.rs +111 -0
- package/transform/crates/swc_plugin_element_template/lib.rs +41 -5
- package/transform/crates/swc_plugin_element_template/lowering.rs +39 -7
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_generate_attribute_slots_for_dynamic_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_background_conditional_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_boolean_and_number_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_complex_text_structure.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_dataset_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_deeply_nested_user_components.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_dynamic_class_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_events_lepus.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_id_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_inline_styles.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_interpolated_text_with_siblings_lepus.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_mixed_content.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_nested_structure_and_dynamic_content.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_refs_lepus.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_sibling_user_components.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_spread_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_handle_user_component.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_isolate_arrays_with_child_slot_placeholder.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_keep_code_and_template_attribute_slots_in_sync_for_spread.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_output_element_template_simple_lepus.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_output_template_with_static_attributes.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_verify_template_structure_complex.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/__combined_snapshots__/should_verify_text_attribute_and_child_text_slots.snap +1 -1
- package/transform/crates/swc_plugin_element_template/tests/element_template.rs +70 -66
- package/transform/crates/swc_plugin_element_template/tests/element_template_contract.rs +94 -8
- package/transform/crates/swc_plugin_shake/lib.rs +1 -1
- package/transform/crates/swc_plugin_shake/napi.rs +1 -1
- package/transform/crates/swc_plugin_text/lib.rs +57 -16
- package/transform/crates/swc_plugin_text/tests/__swc_snapshots__/lib.rs/should_keep_children_for_dynamic_or_multiple_text.js +13 -0
- package/transform/crates/swc_plugin_text/tests/__swc_snapshots__/lib.rs/should_transform_string_expressions_to_text_attr.js +13 -0
- package/transform/crates/swc_plugin_worklet/decl_collect.rs +10 -0
- package/transform/crates/swc_plugin_worklet/extract_ident.rs +14 -0
- package/transform/crates/swc_plugin_worklet/gen_stmt.rs +202 -3
- package/transform/crates/swc_plugin_worklet/lib.rs +468 -3
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_js.js +8 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_lepus.js +10 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_js.js +27 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_lepus.js +45 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_js.js +16 -14
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +16 -16
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_js.js +7 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +7 -7
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_computed_object_method_key_lepus.js +24 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_object_method_local_decls_lepus.js +16 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_js.js +42 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +58 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_js.js +3 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus.js +3 -3
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_js.js +9 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_lepus.js +16 -0
- package/transform/crates/swc_plugins_shared/jsx_helpers.rs +8 -4
- package/transform/dist/wasm.cjs +1 -1
- package/transform/index.d.ts +7 -6
- package/transform/rspack-napi/tsconfig.tsbuildinfo +1 -1
- package/transform/src/swc_plugin_extract_str/mod.rs +1 -1
- package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +63 -270
- package/transform/swc-plugin-reactlynx/index.d.ts +2 -2
- package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
- package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +306 -170
- package/transform/swc-plugin-reactlynx-compat/index.d.ts +3 -3
- package/transform/swc-plugin-reactlynx-compat/swc_plugin_reactlynx_compat.wasm +0 -0
- package/transform/vitest.config.ts +5 -1
- package/types/react.docs.d.ts +130 -11
- package/runtime/__test__/element-template/fixtures/render/opcodes-into-element-template/creates-template-from-attrs-and-slot-text/case.ts +0 -39
- package/runtime/__test__/element-template/fixtures/render/opcodes-into-element-template/handles-multiple-text-nodes-in-the-same-slot/case.ts +0 -29
- package/runtime/__test__/element-template/fixtures/render/opcodes-into-element-template/inserts-nested-templates-into-parent-slots/case.ts +0 -42
- package/runtime/__test__/element-template/fixtures/render/opcodes-into-element-template/keeps-slot-children-separated-and-ordered/case.ts +0 -31
- package/runtime/__test__/element-template/fixtures/render/opcodes-into-element-template/passes-bundle-url-to-native-create/case.ts +0 -20
- package/runtime/__test__/element-template/runtime/render/render-to-opcodes.et.test.jsx +0 -522
- package/runtime/lib/element-template/runtime/render/render-opcodes.js +0 -216
- package/runtime/lib/element-template/runtime/render/render-opcodes.js.map +0 -1
- package/runtime/lib/element-template/runtime/render/render-to-opcodes.d.ts +0 -16
- package/runtime/lib/element-template/runtime/render/render-to-opcodes.js +0 -324
- package/runtime/lib/element-template/runtime/render/render-to-opcodes.js.map +0 -1
- package/runtime/lib/element-template/runtime-backend-marker.js +0 -6
- package/runtime/lib/element-template/runtime-backend-marker.js.map +0 -1
- package/runtime/lib/runtime-backend-marker.js +0 -6
- package/runtime/lib/runtime-backend-marker.js.map +0 -1
- package/runtime/src/element-template/runtime/render/render-opcodes.ts +0 -313
- package/runtime/src/element-template/runtime/render/render-to-opcodes.ts +0 -411
- package/runtime/src/element-template/runtime-backend-marker.ts +0 -7
- package/runtime/src/runtime-backend-marker.ts +0 -7
- package/testing-library/node_modules/.bin/rsbuild +0 -55
- package/testing-library/node_modules/.bin/rspeedy +0 -55
- package/testing-library/node_modules/.bin/rstest +0 -55
- package/transform/node_modules/.bin/esbuild +0 -46
- package/transform/node_modules/.bin/napi +0 -55
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/appends-root-text-via-append-element/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/appends-root-text-via-append-element/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/creates-template-from-attrs-and-slot-text/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/creates-template-from-attrs-and-slot-text/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/handles-multiple-template-children-in-the-same-slot/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/handles-multiple-template-children-in-the-same-slot/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/handles-multiple-text-nodes-in-the-same-slot/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/handles-multiple-text-nodes-in-the-same-slot/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/inserts-nested-templates-into-parent-slots/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/inserts-nested-templates-into-parent-slots/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/keeps-slot-children-separated-and-ordered/native-log.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/keeps-slot-children-separated-and-ordered/output.txt +0 -0
- /package/runtime/__test__/element-template/fixtures/render/{opcodes-into-element-template → direct-native}/passes-bundle-url-to-native-create/native-log.txt +0 -0
- /package/runtime/lib/{element-template/runtime-backend-marker.d.ts → core/capture-main-thread-object.d.ts} +0 -0
- /package/runtime/lib/{runtime-backend-marker.d.ts → core/main-thread-ref-id.d.ts} +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// Copyright 2026 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
|
|
5
|
+
import { afterEach, describe, expect, it, vi } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { useInitData } from '@lynx-js/react';
|
|
8
|
+
|
|
9
|
+
import { render } from '../..';
|
|
10
|
+
import { reloadTemplate } from './reloadTemplate.js';
|
|
11
|
+
import { resetFirstScreenSyncState } from '../../../../runtime/lib/snapshot/lifecycle/event/firstScreenSync.js';
|
|
12
|
+
|
|
13
|
+
function App() {
|
|
14
|
+
const { text = 'Hello' } = useInitData() ?? {};
|
|
15
|
+
return (
|
|
16
|
+
<view>
|
|
17
|
+
<text>{text}</text>
|
|
18
|
+
</view>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const mainThreadGlobals = () => lynxTestingEnv.mainThread.globalThis;
|
|
23
|
+
|
|
24
|
+
afterEach(() => {
|
|
25
|
+
delete mainThreadGlobals().lepusng_gc;
|
|
26
|
+
mainThreadGlobals().__FIRST_SCREEN_SYNC_TIMING__ = 'immediately';
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
describe('gc after the rendered tree is replaced', () => {
|
|
30
|
+
it('runs after reloadTemplate', () => {
|
|
31
|
+
const gc = vi.fn();
|
|
32
|
+
mainThreadGlobals().lepusng_gc = gc;
|
|
33
|
+
const ui = <App />;
|
|
34
|
+
const { container } = render(ui, { enableMainThread: true });
|
|
35
|
+
expect(gc).not.toHaveBeenCalled();
|
|
36
|
+
|
|
37
|
+
reloadTemplate(ui, { text: 'Enjoy' });
|
|
38
|
+
expect(gc).toHaveBeenCalledTimes(1);
|
|
39
|
+
expect(container.innerHTML).toBe('<view><text>Enjoy</text></view>');
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('runs after an update before first-screen sync, not after one that follows it', () => {
|
|
43
|
+
const gc = vi.fn();
|
|
44
|
+
mainThreadGlobals().lepusng_gc = gc;
|
|
45
|
+
mainThreadGlobals().__FIRST_SCREEN_SYNC_TIMING__ = 'jsReady';
|
|
46
|
+
resetFirstScreenSyncState();
|
|
47
|
+
const { container } = render(<App />, { enableMainThread: true, enableBackgroundThread: false });
|
|
48
|
+
|
|
49
|
+
lynxTestingEnv.switchToMainThread();
|
|
50
|
+
globalThis.updatePage({ text: 'Enjoy' });
|
|
51
|
+
expect(gc).toHaveBeenCalledTimes(1);
|
|
52
|
+
expect(container.innerHTML).toBe('<view><text>Enjoy</text></view>');
|
|
53
|
+
|
|
54
|
+
globalThis.rLynxFirstScreenSyncReady();
|
|
55
|
+
globalThis.updatePage({ text: 'Again' });
|
|
56
|
+
expect(gc).toHaveBeenCalledTimes(1);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('is skipped when the engine does not expose it', () => {
|
|
60
|
+
const ui = <App />;
|
|
61
|
+
render(ui, { enableMainThread: true });
|
|
62
|
+
expect(() => reloadTemplate(ui, { text: 'Enjoy' })).not.toThrow();
|
|
63
|
+
});
|
|
64
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Copyright 2026 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
|
|
5
|
+
import { act } from 'preact/test-utils';
|
|
6
|
+
|
|
7
|
+
import { __root } from '../../../../runtime/lib/root.js';
|
|
8
|
+
import { flushDelayedLifecycleEvents } from '../../../../runtime/lib/snapshot/lynx/tt.js';
|
|
9
|
+
|
|
10
|
+
// What native does for `reloadTemplate`: the main thread re-renders and
|
|
11
|
+
// hydrates, then the background reloads and hydrates against the main
|
|
12
|
+
// thread's first-screen tree.
|
|
13
|
+
export function reloadTemplate(ui, data) {
|
|
14
|
+
lynxTestingEnv.switchToMainThread();
|
|
15
|
+
const lifecycleEvents = [];
|
|
16
|
+
const original = globalThis.__OnLifecycleEvent;
|
|
17
|
+
globalThis.__OnLifecycleEvent = (...args) => lifecycleEvents.push(args);
|
|
18
|
+
try {
|
|
19
|
+
globalThis.updatePage(data, { reloadTemplate: true });
|
|
20
|
+
} finally {
|
|
21
|
+
globalThis.__OnLifecycleEvent = original;
|
|
22
|
+
}
|
|
23
|
+
// The reload swaps in a fresh root; the environment reinstalls
|
|
24
|
+
// `globalThis.__root` on every thread switch.
|
|
25
|
+
globalThis.__root = __root;
|
|
26
|
+
lynxTestingEnv.mainThread.globalThis.__root = __root;
|
|
27
|
+
|
|
28
|
+
lynxTestingEnv.switchToBackgroundThread();
|
|
29
|
+
__root.__jsx = ui;
|
|
30
|
+
act(() => {
|
|
31
|
+
lynx.getApp().onAppReload(data);
|
|
32
|
+
});
|
|
33
|
+
act(() => {
|
|
34
|
+
for (const args of lifecycleEvents) {
|
|
35
|
+
lynx.getApp().OnLifecycleEvent(...args);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
flushDelayedLifecycleEvents();
|
|
39
|
+
}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import { describe, expect, vi } from 'vitest';
|
|
2
2
|
import { fireEvent, render, waitSchedule } from '..';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Component,
|
|
5
|
+
defineMainThreadObjectType,
|
|
6
|
+
runOnBackground,
|
|
7
|
+
runOnMainThread,
|
|
8
|
+
useMainThreadObject,
|
|
9
|
+
useMainThreadRef,
|
|
10
|
+
} from '@lynx-js/react';
|
|
11
|
+
|
|
12
|
+
const guardedClassCaptureType = defineMainThreadObjectType({
|
|
13
|
+
type: '@test/guarded-class-capture',
|
|
14
|
+
create: initialValue => ({
|
|
15
|
+
get: () => initialValue,
|
|
16
|
+
}),
|
|
17
|
+
});
|
|
18
|
+
|
|
4
19
|
describe('worklet', () => {
|
|
5
20
|
it('main-thread script should work', async () => {
|
|
6
21
|
const cb = vi.fn();
|
|
@@ -615,4 +630,34 @@ describe('worklet', () => {
|
|
|
615
630
|
expect(globalThis.secondCb).toBeCalledWith('second-key');
|
|
616
631
|
vi.resetAllMocks();
|
|
617
632
|
});
|
|
633
|
+
|
|
634
|
+
it('preserves a guarded main-thread object captured from a class field', () => {
|
|
635
|
+
globalThis.classCaptureCb = vi.fn();
|
|
636
|
+
|
|
637
|
+
class ClassCapture extends Component {
|
|
638
|
+
value = this.props.value;
|
|
639
|
+
|
|
640
|
+
onTap() {
|
|
641
|
+
'main thread';
|
|
642
|
+
globalThis.classCaptureCb(this.value.get());
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
render() {
|
|
646
|
+
return <view main-thread:bindtap={this.onTap} />;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
const Comp = () => {
|
|
651
|
+
const value = useMainThreadObject(guardedClassCaptureType, 42);
|
|
652
|
+
return <ClassCapture value={value} />;
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
const { container } = render(<Comp />, {
|
|
656
|
+
enableMainThread: true,
|
|
657
|
+
enableBackgroundThread: true,
|
|
658
|
+
});
|
|
659
|
+
fireEvent.tap(container.firstChild);
|
|
660
|
+
|
|
661
|
+
expect(globalThis.classCaptureCb).toHaveBeenCalledWith(42);
|
|
662
|
+
});
|
|
618
663
|
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://typedoc.org/schema.json",
|
|
3
|
+
"name": "@lynx-js/react/testing-library",
|
|
4
|
+
"entryPoints": [
|
|
5
|
+
"types/index.d.ts"
|
|
6
|
+
],
|
|
7
|
+
"tsconfig": "tsconfig.docs.json",
|
|
8
|
+
"intentionallyNotExported": [
|
|
9
|
+
"ElementTreeGlobals",
|
|
10
|
+
"EventType_2",
|
|
11
|
+
"FireObject_2",
|
|
12
|
+
"Indent",
|
|
13
|
+
"LynxElement",
|
|
14
|
+
"LynxEnv",
|
|
15
|
+
"LynxGlobalThis",
|
|
16
|
+
"PluginOptions",
|
|
17
|
+
"Print",
|
|
18
|
+
"Test",
|
|
19
|
+
"ThemeReceived",
|
|
20
|
+
"initElementTree"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -142,7 +142,7 @@ export interface RenderOptions<Q extends Queries = typeof queries> {
|
|
|
142
142
|
export type RenderResult<Q extends Queries = typeof queries> = {
|
|
143
143
|
container: LynxElement;
|
|
144
144
|
rerender: (ui: React.ReactNode) => void;
|
|
145
|
-
unmount: () =>
|
|
145
|
+
unmount: () => void;
|
|
146
146
|
asFragment: () => DocumentFragment;
|
|
147
147
|
} & { [P in keyof Q]: BoundFunction<Q[P]> };
|
|
148
148
|
|
|
@@ -257,7 +257,7 @@ export interface RenderHookOptions<Props> {
|
|
|
257
257
|
* export * from '@lynx-js/react/testing-library'
|
|
258
258
|
*
|
|
259
259
|
* // override renderHook method
|
|
260
|
-
* export {
|
|
260
|
+
* export { customRenderHook as renderHook }
|
|
261
261
|
* ```
|
|
262
262
|
*/
|
|
263
263
|
wrapper?: React.JSXElementConstructor<{ children: React.ReactNode }> | undefined;
|
|
@@ -1,30 +1,114 @@
|
|
|
1
1
|
$ node ./scripts/build_wasm.js
|
|
2
2
|
Blocking waiting for file lock on package cache
|
|
3
|
+
Blocking waiting for file lock on package cache
|
|
4
|
+
Blocking waiting for file lock on package cache
|
|
3
5
|
Downloading crates ...
|
|
6
|
+
Downloaded hybrid-array v0.4.13
|
|
7
|
+
Downloaded arrayvec v0.7.8
|
|
4
8
|
Downloaded bitflags v1.3.2
|
|
9
|
+
Downloaded iana-time-zone v0.1.65
|
|
10
|
+
Downloaded block-buffer v0.12.1
|
|
11
|
+
Downloaded cpufeatures v0.3.0
|
|
12
|
+
Downloaded futures-task v0.3.33
|
|
13
|
+
Downloaded globset v0.4.19
|
|
5
14
|
Downloaded napi-build v2.3.2
|
|
6
|
-
Downloaded convert_case v0.6.0
|
|
7
|
-
Downloaded ctor v0.1.26
|
|
8
15
|
Downloaded napi-derive v2.9.3
|
|
9
|
-
Downloaded napi v2.10.4
|
|
10
16
|
Downloaded napi-sys v2.4.0
|
|
17
|
+
Downloaded path-clean v1.0.1
|
|
18
|
+
Downloaded pathdiff v0.2.3
|
|
19
|
+
Downloaded sha1 v0.10.7
|
|
20
|
+
Downloaded static-map-macro v0.3.4
|
|
21
|
+
Downloaded swc_config v6.0.0
|
|
22
|
+
Downloaded swc_config_macro v1.0.1
|
|
23
|
+
Downloaded swc_ecma_compat_es2017 v50.0.0
|
|
24
|
+
Downloaded swc_ecma_compat_es2018 v51.0.0
|
|
25
|
+
Downloaded swc_ecma_compat_es2020 v53.0.0
|
|
26
|
+
Downloaded swc_ecma_regexp_ast v3.0.0
|
|
27
|
+
Downloaded wasm-bindgen-shared v0.2.126
|
|
28
|
+
Downloaded browserslist-rs v0.20.0
|
|
29
|
+
Downloaded convert_case v0.6.0
|
|
30
|
+
Downloaded crypto-common v0.2.2
|
|
31
|
+
Downloaded ctor v0.1.26
|
|
32
|
+
Downloaded fixedbitset v0.5.7
|
|
33
|
+
Downloaded foldhash v0.2.0
|
|
34
|
+
Downloaded futures-core v0.3.33
|
|
35
|
+
Downloaded lru v0.18.4
|
|
11
36
|
Downloaded napi-derive-backend v1.0.40
|
|
37
|
+
Downloaded precomputed-map v0.2.0
|
|
38
|
+
Downloaded preset_env_base v9.0.0
|
|
39
|
+
Downloaded radix_fmt v1.0.0
|
|
40
|
+
Downloaded slab v0.4.12
|
|
41
|
+
Downloaded st-map v0.2.4
|
|
42
|
+
Downloaded swc_ecma_compat_bugfixes v56.0.0
|
|
43
|
+
Downloaded swc_ecma_compat_common v45.0.0
|
|
44
|
+
Downloaded swc_ecma_compat_es2016 v50.0.0
|
|
45
|
+
Downloaded swc_ecma_compat_es2019 v50.0.0
|
|
46
|
+
Downloaded swc_ecma_compat_es2021 v50.0.0
|
|
47
|
+
Downloaded swc_ecma_compat_es2022 v53.0.0
|
|
48
|
+
Downloaded swc_ecma_compat_regexp v9.0.0
|
|
49
|
+
Downloaded swc_ecma_ext_transforms v35.0.0
|
|
50
|
+
Downloaded swc_ecma_loader v27.0.0
|
|
51
|
+
Downloaded swc_ecma_regexp_common v0.0.1
|
|
52
|
+
Downloaded swc_ecma_transforms_classes v49.0.0
|
|
53
|
+
Downloaded swc_ecma_transforms_macros v1.0.1
|
|
54
|
+
Downloaded swc_node_comments v27.0.0
|
|
12
55
|
Downloaded version-compare v0.2.1
|
|
56
|
+
Downloaded wasm-bindgen-macro v0.2.126
|
|
57
|
+
Downloaded crossbeam-utils v0.8.22
|
|
58
|
+
Downloaded dashmap v6.2.1
|
|
59
|
+
Downloaded digest v0.11.3
|
|
60
|
+
Downloaded foldhash v0.1.5
|
|
61
|
+
Downloaded getrandom v0.3.4
|
|
62
|
+
Downloaded sha2 v0.11.0
|
|
63
|
+
Downloaded swc_compiler_base v64.0.0
|
|
64
|
+
Downloaded swc_ecma_regexp v0.15.0
|
|
65
|
+
Downloaded swc_ecma_regexp_visit v0.15.0
|
|
66
|
+
Downloaded swc_ecma_transforms v62.0.0
|
|
67
|
+
Downloaded swc_ecma_transforms_compat v57.0.1
|
|
68
|
+
Downloaded swc_ecma_transforms_typescript v55.0.1
|
|
69
|
+
Downloaded const-oid v0.10.2
|
|
70
|
+
Downloaded jsonc-parser v0.26.3
|
|
71
|
+
Downloaded napi v2.10.4
|
|
72
|
+
Downloaded swc_ecma_transformer v21.0.1
|
|
73
|
+
Downloaded js-sys v0.3.103
|
|
74
|
+
Downloaded ryu-js v1.0.3
|
|
75
|
+
Downloaded swc v75.0.1
|
|
76
|
+
Downloaded swc_ecma_compat_es2015 v55.0.0
|
|
77
|
+
Downloaded swc_ecma_hooks v1.0.0
|
|
78
|
+
Downloaded swc_ecma_transforms_proposal v49.0.0
|
|
79
|
+
Downloaded swc_ecma_transforms_react v55.0.1
|
|
80
|
+
Downloaded wasm-bindgen v0.2.126
|
|
81
|
+
Downloaded swc_ecma_transforms_optimization v52.0.0
|
|
82
|
+
Downloaded wasm-bindgen-macro-support v0.2.126
|
|
83
|
+
Downloaded swc_ecma_preset_env v63.0.0
|
|
84
|
+
Downloaded hashbrown v0.16.1
|
|
85
|
+
Downloaded futures-util v0.3.33
|
|
86
|
+
Downloaded itertools v0.15.0
|
|
87
|
+
Downloaded nom v8.0.0
|
|
88
|
+
Downloaded par-iter v2.0.0
|
|
89
|
+
Downloaded browserslist-data v0.2.0
|
|
90
|
+
Downloaded chrono v0.4.45
|
|
91
|
+
Downloaded syn v1.0.109
|
|
92
|
+
Downloaded swc_ecma_minifier v61.0.4
|
|
93
|
+
Downloaded regress v0.11.1
|
|
94
|
+
Downloaded bstr v1.13.0
|
|
95
|
+
Downloaded petgraph v0.7.1
|
|
96
|
+
Blocking waiting for file lock on package cache
|
|
13
97
|
Blocking waiting for file lock on build directory
|
|
14
98
|
Compiling cfg-if v1.0.4
|
|
15
99
|
Compiling serde_core v1.0.229
|
|
16
100
|
Compiling allocator-api2 v0.2.21
|
|
17
101
|
Compiling serde v1.0.229
|
|
18
102
|
Compiling once_cell v1.21.4
|
|
19
|
-
Compiling stable_deref_trait v1.2.1
|
|
20
103
|
Compiling memchr v2.8.3
|
|
104
|
+
Compiling stable_deref_trait v1.2.1
|
|
21
105
|
Compiling zerofrom v0.1.8
|
|
22
106
|
Compiling equivalent v1.0.2
|
|
23
107
|
Compiling foldhash v0.2.0
|
|
24
108
|
Compiling yoke v0.8.3
|
|
25
109
|
Compiling hashbrown v0.17.1
|
|
26
|
-
Compiling zerovec v0.11.6
|
|
27
110
|
Compiling smallvec v1.15.2
|
|
111
|
+
Compiling zerovec v0.11.6
|
|
28
112
|
Compiling getrandom v0.3.4
|
|
29
113
|
Compiling zerocopy v0.8.55
|
|
30
114
|
Compiling ahash v0.8.12
|
|
@@ -46,130 +130,130 @@ $ node ./scripts/build_wasm.js
|
|
|
46
130
|
Compiling icu_properties_data v2.2.0
|
|
47
131
|
Compiling rustc-hash v2.1.3
|
|
48
132
|
Compiling parking_lot_core v0.9.12
|
|
49
|
-
Compiling icu_normalizer v2.2.0
|
|
50
133
|
Compiling icu_properties v2.2.0
|
|
134
|
+
Compiling icu_normalizer v2.2.0
|
|
135
|
+
Compiling hashbrown v0.14.5
|
|
51
136
|
Compiling either v1.17.0
|
|
52
137
|
Compiling scopeguard v1.2.0
|
|
53
|
-
Compiling radium v0.7.0
|
|
54
138
|
Compiling lock_api v0.4.14
|
|
55
|
-
Compiling
|
|
139
|
+
Compiling radium v0.7.0
|
|
140
|
+
Compiling idna_adapter v1.2.2
|
|
56
141
|
Compiling tracing-core v0.1.36
|
|
57
142
|
Compiling percent-encoding v2.3.2
|
|
58
|
-
Compiling idna_adapter v1.2.2
|
|
59
143
|
Compiling tap v1.0.1
|
|
60
|
-
Compiling wyz v0.5.1
|
|
61
144
|
Compiling idna v1.1.0
|
|
62
145
|
Compiling form_urlencoded v1.2.2
|
|
146
|
+
Compiling wyz v0.5.1
|
|
63
147
|
Compiling anyhow v1.0.104
|
|
64
148
|
Compiling vsimd v0.8.0
|
|
65
|
-
Compiling outref v0.5.2
|
|
66
|
-
Compiling funty v2.0.0
|
|
67
149
|
Compiling uuid v1.24.0
|
|
68
|
-
Compiling
|
|
150
|
+
Compiling outref v0.5.2
|
|
69
151
|
Compiling pin-project-lite v0.2.17
|
|
152
|
+
Compiling bytes v1.12.1
|
|
153
|
+
Compiling funty v2.0.0
|
|
154
|
+
Compiling base64-simd v0.8.0
|
|
70
155
|
Compiling tracing v0.1.44
|
|
71
|
-
Compiling bitvec v1.1.1
|
|
72
156
|
Compiling bytes-str v0.2.8
|
|
73
|
-
Compiling
|
|
157
|
+
Compiling bitvec v1.1.1
|
|
74
158
|
Compiling debugid v0.8.0
|
|
75
159
|
Compiling url v2.5.8
|
|
76
160
|
Compiling triomphe v0.1.16
|
|
77
|
-
Compiling unicode-id-start v1.4.0
|
|
78
|
-
Compiling new_debug_unreachable v1.0.6
|
|
79
|
-
Compiling unicode-width v0.2.2
|
|
80
161
|
Compiling data-encoding v2.11.0
|
|
81
162
|
Compiling if_chain v1.0.3
|
|
163
|
+
Compiling new_debug_unreachable v1.0.6
|
|
164
|
+
Compiling unicode-id-start v1.4.0
|
|
165
|
+
Compiling unicode-width v0.2.2
|
|
82
166
|
Compiling hstr v4.0.0
|
|
83
167
|
Compiling num-integer v0.1.46
|
|
84
168
|
Compiling scoped-tls v1.0.1
|
|
85
169
|
Compiling better_scoped_tls v1.0.1
|
|
170
|
+
Compiling num-bigint v0.4.8
|
|
86
171
|
Compiling swc_atoms v10.0.0
|
|
87
172
|
Compiling parking_lot v0.12.5
|
|
88
|
-
Compiling num-bigint v0.4.8
|
|
89
|
-
Compiling swc_sourcemap v10.0.2
|
|
90
173
|
Compiling swc_visit v2.0.2
|
|
91
174
|
Compiling termcolor v1.4.1
|
|
175
|
+
Compiling swc_sourcemap v10.0.2
|
|
92
176
|
Compiling siphasher v0.3.11
|
|
93
177
|
Compiling bitflags v2.13.1
|
|
94
178
|
Compiling siphasher v1.0.3
|
|
95
179
|
Compiling phf_shared v0.11.3
|
|
96
180
|
Compiling libc v0.2.189
|
|
97
181
|
Compiling dragonbox_ecma v0.1.12
|
|
98
|
-
Compiling phf v0.11.3
|
|
99
182
|
Compiling par-core v2.0.0
|
|
183
|
+
Compiling phf v0.11.3
|
|
100
184
|
Compiling num_cpus v1.17.0
|
|
101
185
|
Compiling castaway v0.2.4
|
|
102
|
-
Compiling ryu v1.0.23
|
|
103
186
|
Compiling static_assertions v1.1.0
|
|
104
|
-
Compiling
|
|
105
|
-
Compiling compact_str v0.7.1
|
|
187
|
+
Compiling ryu v1.0.23
|
|
106
188
|
Compiling aho-corasick v1.1.4
|
|
189
|
+
Compiling compact_str v0.7.1
|
|
190
|
+
Compiling swc_common v26.0.0
|
|
107
191
|
Compiling regex-syntax v0.8.11
|
|
192
|
+
Compiling typenum v1.20.1
|
|
108
193
|
Compiling swc_ecma_ast v29.0.0
|
|
109
194
|
Compiling regex-automata v0.4.16
|
|
110
195
|
Compiling swc_ecma_regexp_common v0.0.1
|
|
111
|
-
Compiling typenum v1.20.1
|
|
112
196
|
Compiling swc_ecma_regexp_ast v3.0.0
|
|
113
197
|
Compiling crossbeam-utils v0.8.22
|
|
114
198
|
Compiling swc_ecma_regexp_visit v0.15.0
|
|
115
|
-
Compiling dashmap v6.2.1
|
|
116
199
|
Compiling swc_ecma_regexp v0.15.0
|
|
117
200
|
Compiling swc_ecma_compat_regexp v9.0.0
|
|
118
|
-
Compiling
|
|
119
|
-
Compiling swc_ecma_parser v45.1.1
|
|
201
|
+
Compiling dashmap v6.2.1
|
|
120
202
|
Compiling regex v1.13.1
|
|
121
203
|
Compiling generic-array v0.14.7
|
|
122
|
-
Compiling
|
|
204
|
+
Compiling swc_ecma_visit v29.0.0
|
|
205
|
+
Compiling swc_ecma_parser v45.1.1
|
|
123
206
|
Compiling hashbrown v0.16.1
|
|
124
|
-
Compiling
|
|
207
|
+
Compiling bstr v1.13.0
|
|
125
208
|
Compiling globset v0.4.19
|
|
209
|
+
Compiling regress v0.11.1
|
|
126
210
|
Compiling crypto-common v0.1.7
|
|
127
211
|
Compiling block-buffer v0.10.4
|
|
128
|
-
Compiling swc_config v6.0.0
|
|
129
212
|
Compiling digest v0.10.7
|
|
130
213
|
Compiling arrayvec v0.7.8
|
|
131
214
|
Compiling thiserror v1.0.69
|
|
132
215
|
Compiling owo-colors v4.3.0
|
|
133
216
|
Compiling semver v1.0.28
|
|
134
|
-
Compiling unicode-linebreak v0.1.5
|
|
135
217
|
Compiling base64 v0.22.1
|
|
218
|
+
Compiling swc_config v6.0.0
|
|
136
219
|
Compiling fixedbitset v0.5.7
|
|
220
|
+
Compiling unicode-linebreak v0.1.5
|
|
137
221
|
Compiling petgraph v0.7.1
|
|
138
222
|
Compiling textwrap v0.16.2
|
|
223
|
+
Compiling bumpalo v3.20.3
|
|
224
|
+
Compiling thread_local v1.1.10
|
|
225
|
+
Compiling unicode-width v0.1.14
|
|
226
|
+
Compiling camino v1.2.4
|
|
227
|
+
Compiling swc_allocator v5.0.0
|
|
228
|
+
Compiling sha1 v0.10.7
|
|
139
229
|
Compiling swc_ecma_utils v35.0.0
|
|
140
230
|
Compiling swc_ecma_hooks v1.0.0
|
|
231
|
+
Compiling miette v7.6.0
|
|
141
232
|
Compiling swc_ecma_transforms_base v49.0.1
|
|
233
|
+
Compiling chrono v0.4.45
|
|
234
|
+
Compiling syn v1.0.109
|
|
235
|
+
Compiling ascii v1.1.0
|
|
142
236
|
Compiling swc_ecma_transformer v21.0.1
|
|
143
237
|
Compiling swc_ecma_transforms_classes v49.0.0
|
|
144
238
|
Compiling swc_ecma_compat_common v45.0.0
|
|
145
|
-
Compiling bumpalo v3.20.3
|
|
146
|
-
Compiling thread_local v1.1.10
|
|
147
|
-
Compiling unicode-width v0.1.14
|
|
148
|
-
Compiling miette v7.6.0
|
|
149
|
-
Compiling camino v1.2.4
|
|
150
|
-
Compiling swc_allocator v5.0.0
|
|
151
239
|
Compiling swc_ecma_compat_es2015 v55.0.0
|
|
152
240
|
Compiling swc_ecma_compat_es2022 v53.0.0
|
|
153
241
|
Compiling swc_ecma_transforms_optimization v52.0.0
|
|
154
|
-
Compiling sha1 v0.10.7
|
|
155
|
-
Compiling chrono v0.4.45
|
|
156
242
|
Compiling lazy_static v1.5.0
|
|
157
243
|
Compiling log v0.4.33
|
|
158
|
-
Compiling ascii v1.1.0
|
|
159
|
-
Compiling syn v1.0.109
|
|
160
|
-
Compiling swc_ecma_codegen v32.0.0
|
|
161
244
|
Compiling tracing-log v0.2.0
|
|
162
245
|
Compiling sharded-slab v0.1.7
|
|
163
246
|
Compiling swc_ecma_compat_bugfixes v56.0.0
|
|
164
|
-
Compiling browserslist-data v0.2.0
|
|
165
|
-
Compiling swc_ecma_transforms_react v55.0.1
|
|
166
247
|
Compiling swc_ecma_compat_es2020 v53.0.0
|
|
167
|
-
Compiling swc_error_reporters v28.0.0
|
|
168
|
-
Compiling swc_ecma_compat_es2017 v50.0.0
|
|
169
248
|
Compiling swc_ecma_compat_es2019 v50.0.0
|
|
170
249
|
Compiling swc_ecma_compat_es2018 v51.0.0
|
|
171
|
-
Compiling swc_ecma_compat_es2021 v50.0.0
|
|
172
250
|
Compiling swc_ecma_compat_es2016 v50.0.0
|
|
251
|
+
Compiling swc_ecma_compat_es2017 v50.0.0
|
|
252
|
+
Compiling swc_ecma_compat_es2021 v50.0.0
|
|
253
|
+
Compiling browserslist-data v0.2.0
|
|
254
|
+
Compiling swc_ecma_codegen v32.0.0
|
|
255
|
+
Compiling swc_ecma_transforms_react v55.0.1
|
|
256
|
+
Compiling swc_error_reporters v28.0.0
|
|
173
257
|
Compiling matchers v0.2.0
|
|
174
258
|
Compiling itertools v0.15.0
|
|
175
259
|
Compiling cargo-platform v0.1.9
|
|
@@ -182,71 +266,71 @@ $ node ./scripts/build_wasm.js
|
|
|
182
266
|
Compiling st-map v0.2.4
|
|
183
267
|
Compiling cargo_metadata v0.18.1
|
|
184
268
|
Compiling browserslist-rs v0.20.0
|
|
185
|
-
Compiling swc_ecma_transforms_compat v57.0.1
|
|
186
269
|
Compiling swc_ecma_transforms_typescript v55.0.1
|
|
270
|
+
Compiling swc_ecma_transforms_compat v57.0.1
|
|
187
271
|
Compiling swc_ecma_transforms_proposal v49.0.0
|
|
188
272
|
Compiling par-iter v2.0.0
|
|
273
|
+
Compiling ryu-js v1.0.3
|
|
189
274
|
Compiling difference v2.0.0
|
|
190
275
|
Compiling radix_fmt v1.0.0
|
|
191
|
-
Compiling ryu-js v1.0.3
|
|
192
276
|
Compiling pathdiff v0.2.3
|
|
193
277
|
Compiling testing v27.0.0
|
|
194
278
|
Compiling swc_ecma_transforms v62.0.0
|
|
195
279
|
Compiling preset_env_base v9.0.0
|
|
196
|
-
Compiling swc_ecma_minifier v61.0.4
|
|
197
280
|
Compiling swc_ecma_preset_env v63.0.0
|
|
281
|
+
Compiling swc_ecma_minifier v61.0.4
|
|
198
282
|
Compiling sha2 v0.10.9
|
|
199
283
|
Compiling lru v0.18.4
|
|
200
|
-
Compiling unicode-segmentation v1.13.3
|
|
201
|
-
Compiling precomputed-map v0.2.0
|
|
202
|
-
Compiling fastrand v2.5.0
|
|
203
284
|
Compiling foldhash v0.1.5
|
|
204
285
|
Compiling path-clean v1.0.1
|
|
286
|
+
Compiling fastrand v2.5.0
|
|
205
287
|
Compiling hex v0.4.3
|
|
288
|
+
Compiling precomputed-map v0.2.0
|
|
289
|
+
Compiling unicode-segmentation v1.13.3
|
|
290
|
+
Compiling convert_case v0.6.0
|
|
206
291
|
Compiling swc_ecma_testing v27.0.0
|
|
207
|
-
Compiling swc_ecma_loader v27.0.0
|
|
208
292
|
Compiling tempfile v3.27.0
|
|
209
|
-
Compiling
|
|
293
|
+
Compiling swc_ecma_loader v27.0.0
|
|
210
294
|
Compiling swc_ecma_ext_transforms v35.0.0
|
|
211
295
|
Compiling swc_node_comments v27.0.0
|
|
212
296
|
Compiling swc_transform_common v20.0.0
|
|
213
297
|
Compiling jsonc-parser v0.26.3
|
|
214
|
-
Compiling ansi_term v0.12.1
|
|
215
298
|
Compiling swc_core v77.1.2
|
|
299
|
+
Compiling ansi_term v0.12.1
|
|
216
300
|
Compiling swc_ecma_transforms_testing v53.0.0
|
|
217
|
-
Compiling napi-derive-backend v1.0.40
|
|
218
301
|
Compiling swc_compiler_base v64.0.0
|
|
302
|
+
Compiling napi-derive-backend v1.0.40
|
|
219
303
|
Compiling swc v75.0.1
|
|
220
304
|
Compiling ctor v0.1.26
|
|
221
305
|
Compiling bitflags v1.3.2
|
|
222
306
|
Compiling napi-sys v2.4.0
|
|
223
307
|
Compiling napi v2.10.4
|
|
224
308
|
Compiling napi-derive v2.9.3
|
|
225
|
-
Compiling sha-1 v0.10.1
|
|
226
309
|
Compiling convert_case v0.11.0
|
|
310
|
+
Compiling sha-1 v0.10.1
|
|
227
311
|
Compiling sugar_path v1.2.1
|
|
228
|
-
Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
|
|
229
312
|
Compiling hybrid-array v0.4.13
|
|
230
|
-
Compiling
|
|
313
|
+
Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
|
|
231
314
|
Compiling crypto-common v0.2.2
|
|
315
|
+
Compiling block-buffer v0.12.1
|
|
232
316
|
Compiling const-oid v0.10.2
|
|
317
|
+
Compiling digest v0.11.3
|
|
233
318
|
Compiling napi-build v2.3.2
|
|
234
319
|
Compiling react-transform v0.0.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform)
|
|
235
320
|
Compiling getrandom v0.4.3
|
|
236
|
-
Compiling swc_plugin_snapshot v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_snapshot)
|
|
237
|
-
Compiling digest v0.11.3
|
|
238
321
|
Compiling sha2 v0.11.0
|
|
322
|
+
Compiling swc_plugin_snapshot v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_snapshot)
|
|
239
323
|
Compiling swc_plugin_define_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_define_dce)
|
|
240
324
|
Compiling swc_plugin_directive_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_directive_dce)
|
|
241
|
-
Compiling swc_plugin_list v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_list)
|
|
242
325
|
Compiling swc_plugin_element_template v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_element_template)
|
|
243
|
-
Compiling
|
|
326
|
+
Compiling swc_plugin_list v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_list)
|
|
244
327
|
Compiling swc_plugin_css_scope v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_css_scope)
|
|
245
|
-
Compiling swc_plugin_shake v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_shake)
|
|
246
328
|
Compiling swc_plugin_worklet v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_worklet)
|
|
247
329
|
Compiling swc_plugin_dynamic_import v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_dynamic_import)
|
|
330
|
+
Compiling swc_plugin_inject v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_inject)
|
|
248
331
|
Compiling swc_plugin_text v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_text)
|
|
332
|
+
Compiling swc_plugin_shake v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_shake)
|
|
249
333
|
Compiling swc_plugin_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_compat)
|
|
250
334
|
Compiling swc_plugin_background_only v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_background_only)
|
|
251
335
|
Compiling version-compare v0.2.1
|
|
252
|
-
Finished `release` profile [optimized] target(s) in 5m
|
|
336
|
+
Finished `release` profile [optimized] target(s) in 5m 54s
|