@lynx-js/react 0.129.3 → 0.129.4
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 +16 -0
- package/components/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/refresh/.turbo/turbo-build.log +3 -3
- package/refresh/dist/index.js +113 -20
- package/refresh/rslib.config.ts +13 -3
- package/refresh/src/index.ts +100 -0
- package/refresh/src/self.ts +38 -0
- package/runtime/__test__/{snapshot → core}/attribute-name.test.ts +1 -1
- package/runtime/__test__/core/background-function.test.ts +37 -0
- package/runtime/__test__/{shared → core}/component-stack.test.ts +4 -4
- package/runtime/__test__/core/ref.test.ts +218 -1
- package/runtime/__test__/core/sync-effect-flush.test.ts +58 -0
- package/runtime/__test__/element-template/debug/alog.test.ts +20 -12
- package/runtime/__test__/element-template/fixtures/background/hydrate/_shared.tsx +15 -34
- package/runtime/__test__/element-template/fixtures/background/hydrate/children.creates-missing-nodes-recursively/output.txt +2 -0
- package/runtime/__test__/element-template/fixtures/background/hydrate/children.iterates-existing-slots/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/background/hydrate/children.missing-attrs-element/output.txt +6 -1
- package/runtime/__test__/element-template/fixtures/background/hydrate/children.missing-slot-record-on-main/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/background/hydrate/{coverage.move-before-child → children.reconciles-raw-text-slots}/case.tsx +1 -1
- package/runtime/__test__/element-template/fixtures/background/hydrate/coverage.emit-create-raw-text/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/background/hydrate/coverage.emit-create-raw-text-non-text/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/background/hydrate/root-key-mismatch-reconciles/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/background/hydrate-compiled/children.creates-and-inserts-new/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/background/hydrate-compiled/children.inserts-before-existing-sibling/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/background/hydrate-compiled/children.mixed-operations/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/background/hydrate-compiled/children.non-string-raw-text-key-on-main/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/background/hydrate-compiled/complex-trees.deeply-nested-dynamic-content/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/background/instance/ops/emits-bundle-url-in-create-template/output.txt +1 -0
- package/runtime/__test__/element-template/fixtures/list/mts/index.tsx +185 -0
- package/runtime/__test__/element-template/fixtures/page/render-page/native-log.txt +1 -0
- package/runtime/__test__/element-template/fixtures/patch/detaches-node-when-moving-between-slots/case.tsx +2 -0
- package/runtime/__test__/element-template/fixtures/patch-compiled/applies-insert-before-with-reference/ops.txt +1 -0
- package/runtime/__test__/element-template/fixtures/patch-compiled/apply-hydration-ops/ops.txt +1 -0
- package/runtime/__test__/element-template/fixtures/render/child-siblings/papi.txt +10 -5
- package/runtime/__test__/element-template/fixtures/render/component/papi.txt +6 -3
- package/runtime/__test__/element-template/fixtures/render/component-slot-content/papi.txt +6 -3
- package/runtime/__test__/element-template/fixtures/render/css-scope-dynamic-bundle-url/papi.txt +2 -1
- package/runtime/__test__/element-template/fixtures/render/direct-native/appends-root-text-via-append-element/native-log.txt +1 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/creates-template-from-attrs-and-slot-text/native-log.txt +2 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/handles-multiple-template-children-in-the-same-slot/native-log.txt +3 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/handles-multiple-text-nodes-in-the-same-slot/native-log.txt +3 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/inserts-nested-templates-into-parent-slots/native-log.txt +3 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/keeps-slot-children-separated-and-ordered/native-log.txt +3 -0
- package/runtime/__test__/element-template/fixtures/render/direct-native/passes-bundle-url-to-native-create/native-log.txt +1 -0
- package/runtime/__test__/element-template/fixtures/render/mapped-view-children/papi.txt +14 -7
- package/runtime/__test__/element-template/fixtures/render/mixed-children/papi.txt +8 -4
- package/runtime/__test__/element-template/fixtures/render/multiple-text/papi.txt +38 -19
- package/runtime/__test__/element-template/fixtures/render/nested-templates/papi.txt +6 -3
- package/runtime/__test__/element-template/fixtures/render/react-example/papi.txt +6 -3
- package/runtime/__test__/element-template/fixtures/render/sparse-element-slot/papi.txt +6 -3
- package/runtime/__test__/element-template/fixtures/render/template-dedupe/papi.txt +10 -5
- package/runtime/__test__/element-template/lynx/performance.test.ts +1 -0
- package/runtime/__test__/element-template/native/callDestroyLifetimeFun.test.ts +1 -0
- package/runtime/__test__/element-template/native/mts-destroy.test.ts +10 -15
- package/runtime/__test__/element-template/native/reload.test.ts +4 -7
- package/runtime/__test__/element-template/runtime/background/adapter/background-adapter.et.test.tsx +0 -32
- package/runtime/__test__/element-template/runtime/background/commit-context.test.ts +0 -14
- package/runtime/__test__/element-template/runtime/background/commit-hook.test.ts +10 -0
- package/runtime/__test__/element-template/runtime/background/event/compiled-fixtures.test.tsx +22 -0
- package/runtime/__test__/element-template/runtime/background/hydrate.test.ts +197 -252
- package/runtime/__test__/element-template/runtime/background/instance.test.ts +277 -126
- package/runtime/__test__/element-template/runtime/background/passive-update-depth.test.tsx +496 -0
- package/runtime/__test__/element-template/runtime/background/render/preact.test.tsx +16 -22
- package/runtime/__test__/element-template/runtime/background/root-render.test.tsx +5 -3
- package/runtime/__test__/element-template/runtime/background/suspense.test.tsx +2 -0
- package/runtime/__test__/element-template/runtime/background/update/compiled-fixtures.test.tsx +1 -0
- package/runtime/__test__/element-template/runtime/background/update-timing.test.ts +1 -0
- package/runtime/__test__/element-template/runtime/hydration/hydration-listener.test.ts +3 -4
- package/runtime/__test__/element-template/runtime/list/list-mts-compiled.test.ts +525 -0
- package/runtime/__test__/element-template/runtime/page/compiled-fixtures.test.tsx +2 -0
- package/runtime/__test__/element-template/runtime/page/root-instance.test.ts +2 -14
- package/runtime/__test__/element-template/runtime/patch/element-template-patch.test.tsx +425 -1032
- package/runtime/__test__/element-template/runtime/patch/patch-listener-alog.test.ts +1 -0
- package/runtime/__test__/element-template/runtime/patch/update-timing.test.ts +1 -0
- package/runtime/__test__/element-template/runtime/prop-adapters/event.test.ts +0 -20
- package/runtime/__test__/element-template/runtime/prop-adapters/gesture.test.ts +2 -1
- package/runtime/__test__/element-template/runtime/prop-adapters/hydrate.test.ts +1 -0
- package/runtime/__test__/element-template/runtime/prop-adapters/ref.test.ts +65 -0
- package/runtime/__test__/element-template/runtime/prop-adapters/spread-mts-compiled.test.ts +12 -4
- package/runtime/__test__/element-template/runtime/render/render-components.test.jsx +2 -5
- package/runtime/__test__/element-template/runtime/render/render-direct-native.test.tsx +56 -121
- package/runtime/__test__/element-template/runtime/render/render-direct-suspense.test.ts +18 -17
- package/runtime/__test__/element-template/runtime/render/render-direct.test.ts +5 -4
- package/runtime/__test__/element-template/runtime/render/render-main-thread.contract.test.ts +2 -0
- package/runtime/__test__/element-template/runtime/render/render-main-thread.test.ts +1 -60
- package/runtime/__test__/element-template/runtime/render/render-transform.contract.test.ts +32 -89
- package/runtime/__test__/element-template/runtime/template/element-template-handle.test.ts +8 -6
- package/runtime/__test__/element-template/runtime/template/main-thread-dynamic-attr-state.test.ts +34 -6
- package/runtime/__test__/element-template/test-utils/debug/updateRunner.test.tsx +20 -12
- package/runtime/__test__/element-template/test-utils/debug/updateRunner.ts +2 -28
- package/runtime/__test__/element-template/test-utils/mock/mockNativePapi/templateTree.test.ts +14 -5
- package/runtime/__test__/element-template/test-utils/mock/mockNativePapi/templateTree.ts +1 -57
- package/runtime/__test__/element-template/test-utils/mock/mockNativePapi.ts +29 -13
- package/runtime/__test__/element-template/vitest.config.ts +1 -0
- package/runtime/__test__/guardrails/snapshot-containment.test.ts +98 -77
- package/runtime/__test__/snapshot/debug/passive-update-depth.test.jsx +549 -0
- package/runtime/__test__/snapshot/debug/react-hooks-profile.test.jsx +3 -3
- package/runtime/__test__/snapshot/lifecycle/reload-background-function.test.jsx +138 -1
- package/runtime/__test__/snapshot/lifecycle/reload-delayed-background.test.jsx +1 -1
- package/runtime/__test__/snapshot/lifecycle/transfer.mts.test.jsx +194 -0
- package/runtime/__test__/snapshot/lifecycle/transfer.test.jsx +210 -0
- package/runtime/__test__/snapshot/list.test.jsx +109 -0
- package/runtime/__test__/snapshot/lynxQueueMicrotask.test.jsx +2 -2
- package/runtime/__test__/snapshot/ref.test.jsx +124 -1
- package/runtime/__test__/snapshot/utils/envManager.ts +5 -0
- package/runtime/__test__/snapshot/utils/globals.js +1 -0
- package/runtime/__test__/worklet-runtime/delayWorkletEvent.test.js +22 -11
- package/runtime/__test__/worklet-runtime/hydrate.test.js +1 -0
- package/runtime/__test__/worklet-runtime/jsFunctionLifecycle.test.js +24 -16
- package/runtime/__test__/worklet-runtime/runOnBackground.test.js +188 -0
- package/runtime/__test__/worklet-runtime/workletRef.test.js +16 -0
- package/runtime/__test__/worklet-runtime/workletRuntime.test.js +53 -1
- package/runtime/lazy/internal.js +1 -0
- package/runtime/lib/core/attribute-name.js.map +1 -0
- package/runtime/lib/core/background-function/run-on-background.js +7 -7
- package/runtime/lib/core/background-function/run-on-background.js.map +1 -1
- package/runtime/lib/{shared → core}/component-stack.js +1 -1
- package/runtime/lib/core/component-stack.js.map +1 -0
- package/runtime/lib/core/deep-equal.d.ts +1 -0
- package/runtime/lib/core/deep-equal.js +31 -0
- package/runtime/lib/core/deep-equal.js.map +1 -0
- package/runtime/lib/core/hooks/mainThreadImpl.js +1 -1
- package/runtime/lib/core/hooks/mainThreadImpl.js.map +1 -1
- package/runtime/lib/core/lynx-page-data.js +1 -1
- package/runtime/lib/core/lynx-page-data.js.map +1 -1
- package/runtime/lib/core/mts-capability.js +1 -1
- package/runtime/lib/core/mts-capability.js.map +1 -1
- package/runtime/lib/core/performance.js +2 -1
- package/runtime/lib/core/performance.js.map +1 -1
- package/runtime/lib/core/ref.d.ts +1 -2
- package/runtime/lib/core/ref.js +60 -9
- package/runtime/lib/core/ref.js.map +1 -1
- package/runtime/lib/core/sync-effect-flush.d.ts +9 -0
- package/runtime/lib/core/sync-effect-flush.js +31 -0
- package/runtime/lib/core/sync-effect-flush.js.map +1 -0
- package/runtime/lib/core/thread-function-call/main-thread.js +1 -1
- package/runtime/lib/core/thread-function-call/main-thread.js.map +1 -1
- package/runtime/lib/element-template/background/attr-slots.d.ts +1 -0
- package/runtime/lib/element-template/background/attr-slots.js.map +1 -1
- package/runtime/lib/element-template/background/commit-hook.js +1 -1
- package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
- package/runtime/lib/element-template/background/destroy.js +1 -1
- package/runtime/lib/element-template/background/destroy.js.map +1 -1
- package/runtime/lib/element-template/background/hydrate.js +173 -85
- package/runtime/lib/element-template/background/hydrate.js.map +1 -1
- package/runtime/lib/element-template/background/instance.d.ts +7 -10
- package/runtime/lib/element-template/background/instance.js +65 -58
- package/runtime/lib/element-template/background/instance.js.map +1 -1
- package/runtime/lib/element-template/background/render-scope.js +2 -1
- package/runtime/lib/element-template/background/render-scope.js.map +1 -1
- package/runtime/lib/element-template/debug/alog.d.ts +1 -10
- package/runtime/lib/element-template/debug/alog.js +1 -16
- package/runtime/lib/element-template/debug/alog.js.map +1 -1
- package/runtime/lib/element-template/debug/profile.js +1 -1
- package/runtime/lib/element-template/debug/profile.js.map +1 -1
- package/runtime/lib/element-template/native/index.js +2 -2
- package/runtime/lib/element-template/native/index.js.map +1 -1
- package/runtime/lib/element-template/native/patch-listener.js +4 -8
- package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
- package/runtime/lib/element-template/native/reload-main-thread.js +0 -4
- package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/ref.d.ts +2 -1
- package/runtime/lib/element-template/prop-adapters/ref.js +4 -4
- package/runtime/lib/element-template/prop-adapters/ref.js.map +1 -1
- package/runtime/lib/element-template/prop-adapters/spread.js +1 -1
- package/runtime/lib/element-template/prop-adapters/spread.js.map +1 -1
- package/runtime/lib/element-template/protocol/opcodes.d.ts +0 -2
- package/runtime/lib/element-template/protocol/opcodes.js +0 -2
- package/runtime/lib/element-template/protocol/opcodes.js.map +1 -1
- package/runtime/lib/element-template/protocol/types.d.ts +8 -30
- package/runtime/lib/element-template/protocol/types.js.map +1 -1
- package/runtime/lib/element-template/runtime/list/list.d.ts +14 -54
- package/runtime/lib/element-template/runtime/list/list.js +82 -546
- package/runtime/lib/element-template/runtime/list/list.js.map +1 -1
- package/runtime/lib/element-template/runtime/list/platform-info.d.ts +2 -0
- package/runtime/lib/element-template/runtime/list/platform-info.js +26 -0
- package/runtime/lib/element-template/runtime/list/platform-info.js.map +1 -0
- package/runtime/lib/element-template/runtime/patch.js +42 -119
- package/runtime/lib/element-template/runtime/patch.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/create-rendered-host.d.ts +1 -1
- package/runtime/lib/element-template/runtime/render/create-rendered-host.js +24 -21
- package/runtime/lib/element-template/runtime/render/create-rendered-host.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-components.d.ts +1 -1
- package/runtime/lib/element-template/runtime/render/render-components.js +3 -6
- package/runtime/lib/element-template/runtime/render/render-components.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-direct.js +21 -20
- package/runtime/lib/element-template/runtime/render/render-direct.js.map +1 -1
- package/runtime/lib/element-template/runtime/render/render-main-thread.js +0 -13
- package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/attr-slot-plan.js +8 -0
- package/runtime/lib/element-template/runtime/template/attr-slot-plan.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/handle.d.ts +3 -3
- package/runtime/lib/element-template/runtime/template/handle.js +2 -2
- package/runtime/lib/element-template/runtime/template/handle.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-background-function.js +1 -6
- package/runtime/lib/element-template/runtime/template/main-thread-background-function.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.d.ts +2 -1
- package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js +44 -28
- package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js.map +1 -1
- package/runtime/lib/element-template/runtime/template/typed-attributes.d.ts +2 -0
- package/runtime/lib/element-template/runtime/template/typed-attributes.js +8 -1
- package/runtime/lib/element-template/runtime/template/typed-attributes.js.map +1 -1
- package/runtime/lib/internal.d.ts +1 -0
- package/runtime/lib/internal.js +1 -0
- package/runtime/lib/internal.js.map +1 -1
- package/runtime/lib/lynx-api.js +6 -1
- package/runtime/lib/lynx-api.js.map +1 -1
- package/runtime/lib/lynx.js +4 -4
- package/runtime/lib/lynx.js.map +1 -1
- package/runtime/lib/root.d.ts +5 -1
- package/runtime/lib/root.js +12 -1
- package/runtime/lib/root.js.map +1 -1
- package/runtime/lib/shared/microtask.d.ts +1 -0
- package/runtime/lib/shared/microtask.js +28 -0
- package/runtime/lib/shared/microtask.js.map +1 -0
- package/runtime/lib/shared/utils.d.ts +8 -0
- package/runtime/lib/shared/utils.js +27 -0
- package/runtime/lib/shared/utils.js.map +1 -0
- package/runtime/lib/{worklet-runtime/utils → shared}/version.d.ts +1 -0
- package/runtime/lib/{worklet-runtime/utils → shared}/version.js +4 -2
- package/runtime/lib/shared/version.js.map +1 -0
- package/runtime/lib/snapshot/alog/render.js +1 -1
- package/runtime/lib/snapshot/alog/render.js.map +1 -1
- package/runtime/lib/snapshot/debug/profileHooks.js +1 -1
- package/runtime/lib/snapshot/debug/profileHooks.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/destroy.js +2 -2
- package/runtime/lib/snapshot/lifecycle/destroy.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/isRendering.js +2 -1
- package/runtime/lib/snapshot/lifecycle/isRendering.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/commit.d.ts +7 -2
- package/runtime/lib/snapshot/lifecycle/patch/commit.js +11 -6
- package/runtime/lib/snapshot/lifecycle/patch/commit.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.d.ts +5 -0
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/ref/delay.d.ts +1 -1
- package/runtime/lib/snapshot/lifecycle/ref/delay.js +2 -2
- package/runtime/lib/snapshot/lifecycle/ref/delay.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/reload.js +1 -1
- package/runtime/lib/snapshot/lifecycle/reload.js.map +1 -1
- package/runtime/lib/snapshot/list/list.js +12 -3
- package/runtime/lib/snapshot/list/list.js.map +1 -1
- package/runtime/lib/snapshot/lynx/tt.d.ts +3 -1
- package/runtime/lib/snapshot/lynx/tt.js +7 -3
- package/runtime/lib/snapshot/lynx/tt.js.map +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/hydrate.js +1 -1
- package/runtime/lib/snapshot/renderToOpcodes/hydrate.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js +1 -1
- package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/platformInfo.js +1 -1
- package/runtime/lib/snapshot/snapshot/platformInfo.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/ref.d.ts +1 -0
- package/runtime/lib/snapshot/snapshot/ref.js +2 -2
- package/runtime/lib/snapshot/snapshot/ref.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/snapshot.js +1 -1
- package/runtime/lib/snapshot/snapshot/snapshot.js.map +1 -1
- package/runtime/lib/snapshot/snapshot/spread.js +3 -2
- package/runtime/lib/snapshot/snapshot/spread.js.map +1 -1
- package/runtime/lib/snapshot/transfer.d.ts +15 -0
- package/runtime/lib/snapshot/transfer.js +343 -0
- package/runtime/lib/snapshot/transfer.js.map +1 -0
- package/runtime/lib/snapshot/worklet/functionality.js +1 -1
- package/runtime/lib/snapshot/worklet/functionality.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/runtime/lib/worklet-runtime/api/element.js +1 -1
- package/runtime/lib/worklet-runtime/api/element.js.map +1 -1
- package/runtime/lib/worklet-runtime/api/lynxApi.js +1 -1
- package/runtime/lib/worklet-runtime/api/lynxApi.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.d.ts +3 -2
- package/runtime/lib/worklet-runtime/bindings/bindings.js +11 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/observers.js +9 -1
- package/runtime/lib/worklet-runtime/bindings/observers.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/types.d.ts +1 -0
- package/runtime/lib/worklet-runtime/bindings/types.js.map +1 -1
- package/runtime/lib/worklet-runtime/delayWorkletEvent.d.ts +2 -4
- package/runtime/lib/worklet-runtime/delayWorkletEvent.js +42 -44
- package/runtime/lib/worklet-runtime/delayWorkletEvent.js.map +1 -1
- package/runtime/lib/worklet-runtime/global.d.ts +1 -2
- package/runtime/lib/worklet-runtime/global.js.map +1 -1
- package/runtime/lib/worklet-runtime/hydrate.js +2 -32
- package/runtime/lib/worklet-runtime/hydrate.js.map +1 -1
- package/runtime/lib/worklet-runtime/run-on-background/index.d.ts +28 -0
- package/runtime/lib/worklet-runtime/run-on-background/index.js +103 -0
- package/runtime/lib/worklet-runtime/run-on-background/index.js.map +1 -0
- package/runtime/lib/worklet-runtime/{jsFunctionLifecycle.d.ts → run-on-background/lifecycle.d.ts} +2 -2
- package/runtime/lib/worklet-runtime/{jsFunctionLifecycle.js → run-on-background/lifecycle.js} +12 -9
- package/runtime/lib/worklet-runtime/run-on-background/lifecycle.js.map +1 -0
- package/runtime/lib/worklet-runtime/workletRef.js +51 -54
- package/runtime/lib/worklet-runtime/workletRef.js.map +1 -1
- package/runtime/lib/worklet-runtime/workletRuntime.js +5 -6
- package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
- package/runtime/src/core/background-function/run-on-background.ts +7 -7
- package/runtime/src/{shared → core}/component-stack.ts +1 -1
- package/runtime/src/core/deep-equal.ts +33 -0
- package/runtime/src/core/hooks/mainThreadImpl.ts +1 -1
- package/runtime/src/core/lynx-page-data.ts +1 -1
- package/runtime/src/core/mts-capability.ts +1 -1
- package/runtime/src/core/performance.ts +2 -1
- package/runtime/src/core/ref.ts +92 -15
- package/runtime/src/core/sync-effect-flush.ts +30 -0
- package/runtime/src/core/thread-function-call/main-thread.ts +1 -1
- package/runtime/src/element-template/background/attr-slots.ts +2 -2
- package/runtime/src/element-template/background/commit-hook.ts +1 -1
- package/runtime/src/element-template/background/destroy.ts +1 -1
- package/runtime/src/element-template/background/hydrate.ts +229 -119
- package/runtime/src/element-template/background/instance.ts +82 -82
- package/runtime/src/element-template/background/render-scope.ts +2 -1
- package/runtime/src/element-template/debug/alog.ts +2 -30
- package/runtime/src/element-template/debug/profile.ts +1 -1
- package/runtime/src/element-template/native/index.ts +2 -2
- package/runtime/src/element-template/native/patch-listener.ts +6 -7
- package/runtime/src/element-template/native/reload-main-thread.ts +0 -4
- package/runtime/src/element-template/prop-adapters/ref.ts +12 -5
- package/runtime/src/element-template/prop-adapters/spread.ts +1 -1
- package/runtime/src/element-template/protocol/opcodes.ts +0 -2
- package/runtime/src/element-template/protocol/types.ts +10 -38
- package/runtime/src/element-template/runtime/list/list.ts +115 -744
- package/runtime/src/element-template/runtime/list/platform-info.ts +31 -0
- package/runtime/src/element-template/runtime/patch.ts +59 -163
- package/runtime/src/element-template/runtime/render/create-rendered-host.ts +27 -31
- package/runtime/src/element-template/runtime/render/render-components.ts +2 -5
- package/runtime/src/element-template/runtime/render/render-direct.ts +19 -18
- package/runtime/src/element-template/runtime/render/render-main-thread.ts +0 -14
- package/runtime/src/element-template/runtime/template/attr-slot-plan.ts +9 -0
- package/runtime/src/element-template/runtime/template/handle.ts +3 -2
- package/runtime/src/element-template/runtime/template/main-thread-background-function.ts +1 -6
- package/runtime/src/element-template/runtime/template/main-thread-dynamic-attr-state.ts +44 -30
- package/runtime/src/element-template/runtime/template/typed-attributes.ts +17 -1
- package/runtime/src/element-template/types.d.ts +6 -22
- package/runtime/src/internal.ts +2 -0
- package/runtime/src/lynx-api.ts +6 -1
- package/runtime/src/lynx.ts +4 -4
- package/runtime/src/root.ts +17 -1
- package/runtime/src/shared/microtask.ts +26 -0
- package/runtime/src/shared/utils.ts +37 -0
- package/runtime/src/{worklet-runtime/utils → shared}/version.ts +6 -4
- package/runtime/src/snapshot/alog/render.ts +1 -1
- package/runtime/src/snapshot/debug/profileHooks.ts +1 -1
- package/runtime/src/snapshot/lifecycle/destroy.ts +2 -2
- package/runtime/src/snapshot/lifecycle/isRendering.ts +2 -1
- package/runtime/src/snapshot/lifecycle/patch/commit.ts +28 -7
- package/runtime/src/snapshot/lifecycle/patch/updateMainThread.ts +1 -1
- package/runtime/src/snapshot/lifecycle/ref/delay.ts +5 -2
- package/runtime/src/snapshot/lifecycle/reload.ts +1 -1
- package/runtime/src/snapshot/list/list.ts +12 -3
- package/runtime/src/snapshot/lynx/tt.ts +8 -3
- package/runtime/src/snapshot/renderToOpcodes/hydrate.ts +1 -1
- package/runtime/src/snapshot/snapshot/backgroundSnapshot.ts +1 -1
- package/runtime/src/snapshot/snapshot/platformInfo.ts +1 -1
- package/runtime/src/snapshot/snapshot/ref.ts +7 -4
- package/runtime/src/snapshot/snapshot/snapshot.ts +1 -1
- package/runtime/src/snapshot/snapshot/spread.ts +3 -2
- package/runtime/src/snapshot/transfer.ts +379 -0
- package/runtime/src/snapshot/worklet/functionality.ts +1 -1
- package/runtime/src/worklet-runtime/api/element.ts +1 -1
- package/runtime/src/worklet-runtime/api/lynxApi.ts +1 -1
- package/runtime/src/worklet-runtime/bindings/bindings.ts +12 -0
- package/runtime/src/worklet-runtime/bindings/observers.ts +9 -1
- package/runtime/src/worklet-runtime/bindings/types.ts +1 -0
- package/runtime/src/worklet-runtime/delayWorkletEvent.ts +49 -54
- package/runtime/src/worklet-runtime/global.ts +1 -2
- package/runtime/src/worklet-runtime/hydrate.ts +2 -35
- package/runtime/src/worklet-runtime/run-on-background/index.ts +145 -0
- package/runtime/src/worklet-runtime/{jsFunctionLifecycle.ts → run-on-background/lifecycle.ts} +11 -9
- package/runtime/src/worklet-runtime/workletRef.ts +63 -62
- package/runtime/src/worklet-runtime/workletRuntime.ts +10 -10
- package/testing-library/.turbo/turbo-build.log +10 -10
- package/testing-library/dist/pure.js +7 -4
- package/testing-library/dist/setupFiles/common/runtime-setup.js +3 -1
- package/testing-library/dist/setupFiles/inner/rstest.js +1 -1
- package/testing-library/dist/setupFiles/inner/vitest.js +1 -1
- package/testing-library/src/__tests__/list.test.jsx +52 -0
- package/testing-library/src/__tests__/worklet.test.jsx +81 -0
- package/testing-library/src/pure.jsx +5 -2
- package/testing-library/src/setupFiles/common/runtime-setup.js +2 -0
- package/transform/.turbo/turbo-build$colon$wasm.log +64 -64
- package/transform/crates/swc_plugin_element_template/tests/element_template.rs +19 -45
- package/transform/crates/swc_plugin_element_template/tests/element_template_contract.rs +0 -19
- package/transform/rspack-napi/tsconfig.tsbuildinfo +1 -1
- package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +85 -85
- package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +213 -192
- package/runtime/__test__/element-template/fixtures/background/hydrate/coverage.move-before-child/output.txt +0 -10
- package/runtime/__test__/element-template/fixtures/background/hydrate/coverage.raw-text-key-branches/case.tsx +0 -5
- package/runtime/__test__/element-template/fixtures/background/instance/ops/supports-silent-insert-before/case.ts +0 -11
- package/runtime/__test__/element-template/fixtures/background/instance/ops/supports-silent-insert-before/output.txt +0 -1
- package/runtime/__test__/element-template/fixtures/background/instance/ops/treats-nullish-attrs-as-empty-object/case.ts +0 -23
- package/runtime/__test__/element-template/fixtures/background/instance/ops/treats-nullish-attrs-as-empty-object/output.txt +0 -6
- package/runtime/__test__/element-template/runtime/page/authored-page.test.ts +0 -35
- package/runtime/__test__/element-template/runtime/patch/update-fixture-helper.test.tsx +0 -40
- package/runtime/__test__/snapshot/lynx-data-processors.test.ts +0 -3
- package/runtime/lib/shared/attribute-name.js.map +0 -1
- package/runtime/lib/shared/component-stack.js.map +0 -1
- package/runtime/lib/snapshot/alog/index.d.ts +0 -1
- package/runtime/lib/snapshot/alog/index.js +0 -8
- package/runtime/lib/snapshot/alog/index.js.map +0 -1
- package/runtime/lib/utils.d.ts +0 -19
- package/runtime/lib/utils.js +0 -119
- package/runtime/lib/utils.js.map +0 -1
- package/runtime/lib/worklet-runtime/delayRunOnBackground.d.ts +0 -13
- package/runtime/lib/worklet-runtime/delayRunOnBackground.js +0 -29
- package/runtime/lib/worklet-runtime/delayRunOnBackground.js.map +0 -1
- package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js.map +0 -1
- package/runtime/lib/worklet-runtime/utils/version.js.map +0 -1
- package/runtime/src/snapshot/alog/index.ts +0 -8
- package/runtime/src/utils.ts +0 -134
- package/runtime/src/worklet-runtime/delayRunOnBackground.ts +0 -53
- /package/runtime/__test__/element-template/fixtures/background/hydrate/{coverage.raw-text-key-branches → children.reconciles-raw-text-slots}/output.txt +0 -0
- /package/runtime/lib/{shared → core}/attribute-name.d.ts +0 -0
- /package/runtime/lib/{shared → core}/attribute-name.js +0 -0
- /package/runtime/lib/{shared → core}/component-stack.d.ts +0 -0
- /package/runtime/src/{shared → core}/attribute-name.ts +0 -0
|
@@ -1,191 +1,212 @@
|
|
|
1
1
|
$ node ./build.js
|
|
2
|
+
Updating crates.io index
|
|
2
3
|
Blocking waiting for file lock on package cache
|
|
3
4
|
Blocking waiting for file lock on package cache
|
|
4
5
|
Downloading crates ...
|
|
5
|
-
Downloaded
|
|
6
|
-
Downloaded
|
|
7
|
-
Downloaded
|
|
8
|
-
Downloaded base64-simd v0.8.0
|
|
9
|
-
Downloaded block-buffer v0.10.4
|
|
10
|
-
Downloaded castaway v0.2.4
|
|
6
|
+
Downloaded fastrand v2.5.0
|
|
7
|
+
Downloaded form_urlencoded v1.2.2
|
|
8
|
+
Downloaded from_variant v3.0.0
|
|
11
9
|
Downloaded errno v0.3.14
|
|
12
|
-
Downloaded
|
|
13
|
-
Downloaded
|
|
14
|
-
Downloaded
|
|
10
|
+
Downloaded find-msvc-tools v0.1.9
|
|
11
|
+
Downloaded lazy_static v1.5.0
|
|
12
|
+
Downloaded matchers v0.2.0
|
|
13
|
+
Downloaded parking_lot v0.12.5
|
|
14
|
+
Downloaded string_enum v1.0.2
|
|
15
|
+
Downloaded funty v2.0.0
|
|
16
|
+
Downloaded hex v0.4.3
|
|
15
17
|
Downloaded idna_adapter v1.2.2
|
|
16
|
-
Downloaded
|
|
17
|
-
Downloaded
|
|
18
|
-
Downloaded
|
|
19
|
-
Downloaded heck v0.5.0
|
|
18
|
+
Downloaded is-macro v0.3.7
|
|
19
|
+
Downloaded itoa v1.0.18
|
|
20
|
+
Downloaded new_debug_unreachable v1.0.6
|
|
20
21
|
Downloaded num_cpus v1.17.0
|
|
21
|
-
Downloaded
|
|
22
|
+
Downloaded outref v0.5.2
|
|
22
23
|
Downloaded potential_utf v0.1.5
|
|
23
|
-
Downloaded rustc-hash v2.1.3
|
|
24
|
-
Downloaded new_debug_unreachable v1.0.6
|
|
25
|
-
Downloaded percent-encoding v2.3.2
|
|
26
24
|
Downloaded seq-macro v0.3.6
|
|
27
|
-
Downloaded
|
|
28
|
-
Downloaded better_scoped_tls v1.0.1
|
|
29
|
-
Downloaded matchers v0.2.0
|
|
25
|
+
Downloaded stable_deref_trait v1.2.1
|
|
30
26
|
Downloaded par-core v2.0.0
|
|
31
27
|
Downloaded phf_generator v0.11.3
|
|
32
|
-
Downloaded
|
|
33
|
-
Downloaded
|
|
34
|
-
Downloaded
|
|
35
|
-
Downloaded
|
|
36
|
-
Downloaded is-macro v0.3.7
|
|
37
|
-
Downloaded itoa v1.0.18
|
|
38
|
-
Downloaded miette-derive v7.6.0
|
|
39
|
-
Downloaded outref v0.5.2
|
|
40
|
-
Downloaded psm v0.1.31
|
|
41
|
-
Downloaded rand_core v0.6.4
|
|
28
|
+
Downloaded radium v0.7.0
|
|
29
|
+
Downloaded sha-1 v0.10.1
|
|
30
|
+
Downloaded siphasher v1.0.3
|
|
31
|
+
Downloaded textwrap v0.16.2
|
|
42
32
|
Downloaded scopeguard v1.2.0
|
|
43
|
-
Downloaded
|
|
44
|
-
Downloaded
|
|
45
|
-
Downloaded
|
|
46
|
-
Downloaded
|
|
47
|
-
Downloaded
|
|
48
|
-
Downloaded
|
|
49
|
-
Downloaded
|
|
50
|
-
Downloaded
|
|
51
|
-
Downloaded
|
|
52
|
-
Downloaded
|
|
53
|
-
Downloaded
|
|
54
|
-
Downloaded nu-ansi-term v0.50.3
|
|
33
|
+
Downloaded percent-encoding v2.3.2
|
|
34
|
+
Downloaded siphasher v0.3.11
|
|
35
|
+
Downloaded rustc-hash v2.1.3
|
|
36
|
+
Downloaded swc_atoms v10.0.0
|
|
37
|
+
Downloaded swc_ecma_codegen_macros v2.0.2
|
|
38
|
+
Downloaded swc_ecma_quote_macros v45.0.1
|
|
39
|
+
Downloaded scoped-tls v1.0.1
|
|
40
|
+
Downloaded if_chain v1.0.3
|
|
41
|
+
Downloaded swc_allocator v5.0.0
|
|
42
|
+
Downloaded miette-derive v7.6.0
|
|
43
|
+
Downloaded num-integer v0.1.46
|
|
55
44
|
Downloaded owo-colors v4.3.0
|
|
56
45
|
Downloaded phf v0.11.3
|
|
57
46
|
Downloaded phf_macros v0.11.3
|
|
47
|
+
Downloaded phf_shared v0.11.3
|
|
48
|
+
Downloaded pin-project-lite v0.2.17
|
|
49
|
+
Downloaded psm v0.1.31
|
|
50
|
+
Downloaded quote v1.0.47
|
|
51
|
+
Downloaded rand_core v0.6.4
|
|
58
52
|
Downloaded relative-path v1.9.3
|
|
53
|
+
Downloaded rustversion v1.0.23
|
|
54
|
+
Downloaded sha2 v0.10.9
|
|
55
|
+
Downloaded shlex v2.0.1
|
|
56
|
+
Downloaded stacker v0.1.24
|
|
57
|
+
Downloaded static_assertions v1.1.0
|
|
58
|
+
Downloaded sugar_path v1.2.1
|
|
59
|
+
Downloaded swc_ecma_testing v27.0.0
|
|
60
|
+
Downloaded swc_ecma_transforms_testing v53.0.0
|
|
61
|
+
Downloaded swc_plugin_macro v2.0.0
|
|
62
|
+
Downloaded swc_plugin_proxy v30.0.0
|
|
63
|
+
Downloaded testing v27.0.0
|
|
64
|
+
Downloaded testing_macros v1.0.2
|
|
65
|
+
Downloaded thiserror v1.0.69
|
|
66
|
+
Downloaded thread_local v1.1.10
|
|
67
|
+
Downloaded unicode-linebreak v0.1.5
|
|
68
|
+
Downloaded utf8_iter v1.0.4
|
|
69
|
+
Downloaded version_check v0.9.5
|
|
70
|
+
Downloaded vsimd v0.8.0
|
|
71
|
+
Downloaded zerofrom v0.1.8
|
|
72
|
+
Downloaded generic-array v0.14.7
|
|
73
|
+
Downloaded heck v0.5.0
|
|
74
|
+
Downloaded litemap v0.8.2
|
|
75
|
+
Downloaded nu-ansi-term v0.50.3
|
|
59
76
|
Downloaded semver v1.0.28
|
|
60
|
-
Downloaded
|
|
61
|
-
Downloaded
|
|
62
|
-
Downloaded
|
|
63
|
-
Downloaded
|
|
64
|
-
Downloaded
|
|
65
|
-
Downloaded
|
|
77
|
+
Downloaded sharded-slab v0.1.7
|
|
78
|
+
Downloaded smallvec v1.15.2
|
|
79
|
+
Downloaded swc_ecma_ast v29.0.0
|
|
80
|
+
Downloaded yoke-derive v0.8.2
|
|
81
|
+
Downloaded zerofrom-derive v0.1.7
|
|
82
|
+
Downloaded better_scoped_tls v1.0.1
|
|
83
|
+
Downloaded castaway v0.2.4
|
|
84
|
+
Downloaded cpufeatures v0.2.17
|
|
85
|
+
Downloaded crypto-common v0.1.7
|
|
86
|
+
Downloaded debugid v0.8.0
|
|
66
87
|
Downloaded glob v0.3.4
|
|
67
88
|
Downloaded hstr v4.0.0
|
|
68
89
|
Downloaded icu_provider v2.2.0
|
|
69
|
-
Downloaded litemap v0.8.2
|
|
70
90
|
Downloaded lock_api v0.4.14
|
|
71
91
|
Downloaded log v0.4.33
|
|
72
|
-
Downloaded num-integer v0.1.46
|
|
73
92
|
Downloaded num-traits v0.2.19
|
|
74
|
-
Downloaded
|
|
93
|
+
Downloaded once_cell v1.21.4
|
|
75
94
|
Downloaded parking_lot_core v0.9.12
|
|
95
|
+
Downloaded proc-macro2 v1.0.107
|
|
76
96
|
Downloaded ryu v1.0.23
|
|
77
|
-
Downloaded
|
|
78
|
-
Downloaded
|
|
79
|
-
Downloaded
|
|
80
|
-
Downloaded cbor4ii v1.2.2
|
|
81
|
-
Downloaded compact_str v0.7.1
|
|
82
|
-
Downloaded icu_normalizer_data v2.2.0
|
|
83
|
-
Downloaded icu_properties v2.2.0
|
|
84
|
-
Downloaded base64 v0.22.1
|
|
97
|
+
Downloaded serde_core v1.0.229
|
|
98
|
+
Downloaded serde_derive v1.0.229
|
|
99
|
+
Downloaded swc_core v77.1.2
|
|
85
100
|
Downloaded getrandom v0.4.3
|
|
86
|
-
Downloaded icu_locale_core v2.2.0
|
|
87
101
|
Downloaded icu_normalizer v2.2.0
|
|
102
|
+
Downloaded icu_properties v2.2.0
|
|
88
103
|
Downloaded pretty_assertions v1.4.1
|
|
89
|
-
Downloaded rand v0.8.7
|
|
90
104
|
Downloaded serde v1.0.229
|
|
91
|
-
Downloaded
|
|
92
|
-
Downloaded string_enum v1.0.2
|
|
93
|
-
Downloaded swc_ecma_codegen_macros v2.0.2
|
|
94
|
-
Downloaded swc_eq_ignore_macros v1.0.1
|
|
95
|
-
Downloaded swc_error_reporters v28.0.0
|
|
96
|
-
Downloaded swc_macros_common v1.0.1
|
|
97
|
-
Downloaded utf8_iter v1.0.4
|
|
98
|
-
Downloaded cc v1.4.0
|
|
105
|
+
Downloaded swc_common v26.0.0
|
|
99
106
|
Downloaded icu_collections v2.2.0
|
|
100
|
-
Downloaded
|
|
101
|
-
Downloaded
|
|
102
|
-
Downloaded num-bigint v0.4.8
|
|
103
|
-
Downloaded siphasher v1.0.3
|
|
104
|
-
Downloaded yoke-derive v0.8.2
|
|
105
|
-
Downloaded ar_archive_writer v0.5.2
|
|
107
|
+
Downloaded icu_locale_core v2.2.0
|
|
108
|
+
Downloaded icu_normalizer_data v2.2.0
|
|
106
109
|
Downloaded miette v7.6.0
|
|
110
|
+
Downloaded num-bigint v0.4.8
|
|
111
|
+
Downloaded rand v0.8.7
|
|
112
|
+
Downloaded memchr v2.8.3
|
|
113
|
+
Downloaded swc_ecma_codegen v32.0.0
|
|
114
|
+
Downloaded swc_ecma_transforms_base v49.0.1
|
|
107
115
|
Downloaded idna v1.1.0
|
|
108
|
-
Downloaded
|
|
109
|
-
Downloaded
|
|
116
|
+
Downloaded indexmap v2.14.0
|
|
117
|
+
Downloaded swc_visit v2.0.2
|
|
118
|
+
Downloaded cargo-platform v0.1.9
|
|
119
|
+
Downloaded equivalent v1.0.2
|
|
120
|
+
Downloaded serde_json v1.0.151
|
|
121
|
+
Downloaded swc_eq_ignore_macros v1.0.1
|
|
110
122
|
Downloaded hashbrown v0.14.5
|
|
111
123
|
Downloaded hashbrown v0.17.1
|
|
124
|
+
Downloaded icu_properties_data v2.2.0
|
|
112
125
|
Downloaded regex v1.13.1
|
|
113
|
-
Downloaded
|
|
114
|
-
Downloaded
|
|
126
|
+
Downloaded swc_ecma_parser v45.1.1
|
|
127
|
+
Downloaded tap v1.0.1
|
|
128
|
+
Downloaded tracing-log v0.2.0
|
|
129
|
+
Downloaded ast_node v7.0.0
|
|
130
|
+
Downloaded block-buffer v0.10.4
|
|
131
|
+
Downloaded bytes-str v0.2.8
|
|
132
|
+
Downloaded swc_error_reporters v28.0.0
|
|
133
|
+
Downloaded swc_macros_common v1.0.1
|
|
115
134
|
Downloaded swc_plugin v1.0.1
|
|
116
|
-
Downloaded swc_plugin_macro v2.0.0
|
|
117
|
-
Downloaded swc_plugin_proxy v30.0.0
|
|
118
|
-
Downloaded swc_visit v2.0.2
|
|
119
|
-
Downloaded testing_macros v1.0.2
|
|
120
|
-
Downloaded zerofrom v0.1.8
|
|
121
|
-
Downloaded zerofrom-derive v0.1.7
|
|
122
135
|
Downloaded swc_transform_common v20.0.0
|
|
123
|
-
Downloaded
|
|
124
|
-
Downloaded
|
|
125
|
-
Downloaded
|
|
136
|
+
Downloaded tinystr v0.8.3
|
|
137
|
+
Downloaded writeable v0.6.3
|
|
138
|
+
Downloaded ansi_term v0.12.1
|
|
139
|
+
Downloaded autocfg v1.5.1
|
|
140
|
+
Downloaded cargo_metadata v0.18.1
|
|
141
|
+
Downloaded cfg-if v1.0.4
|
|
142
|
+
Downloaded convert_case v0.11.0
|
|
143
|
+
Downloaded data-encoding v2.11.0
|
|
144
|
+
Downloaded digest v0.10.7
|
|
145
|
+
Downloaded displaydoc v0.2.6
|
|
146
|
+
Downloaded either v1.17.0
|
|
126
147
|
Downloaded object v0.37.3
|
|
127
|
-
Downloaded regex-syntax v0.8.11
|
|
128
|
-
Downloaded sha2 v0.10.9
|
|
129
|
-
Downloaded stacker v0.1.24
|
|
130
|
-
Downloaded static_assertions v1.1.0
|
|
131
|
-
Downloaded sugar_path v1.2.1
|
|
132
|
-
Downloaded swc_atoms v10.0.0
|
|
133
|
-
Downloaded swc_ecma_transforms_testing v53.0.0
|
|
134
148
|
Downloaded synstructure v0.13.2
|
|
135
|
-
Downloaded tempfile v3.27.0
|
|
136
149
|
Downloaded termcolor v1.4.1
|
|
137
|
-
Downloaded thiserror v1.0.69
|
|
138
150
|
Downloaded thiserror-impl v1.0.69
|
|
139
|
-
Downloaded
|
|
140
|
-
Downloaded
|
|
141
|
-
Downloaded
|
|
142
|
-
Downloaded vsimd v0.8.0
|
|
143
|
-
Downloaded zerovec-derive v0.11.3
|
|
151
|
+
Downloaded tracing-attributes v0.1.31
|
|
152
|
+
Downloaded wyz v0.5.1
|
|
153
|
+
Downloaded yoke v0.8.3
|
|
144
154
|
Downloaded zmij v1.0.23
|
|
145
|
-
Downloaded
|
|
155
|
+
Downloaded base64-simd v0.8.0
|
|
156
|
+
Downloaded regex-syntax v0.8.11
|
|
146
157
|
Downloaded rustix v1.1.4
|
|
147
|
-
Downloaded
|
|
148
|
-
Downloaded
|
|
149
|
-
Downloaded
|
|
150
|
-
Downloaded
|
|
151
|
-
Downloaded unicode-id-start v1.4.0
|
|
152
|
-
Downloaded writeable v0.6.3
|
|
153
|
-
Downloaded serde_derive v1.0.229
|
|
154
|
-
Downloaded sharded-slab v0.1.7
|
|
155
|
-
Downloaded swc_ecma_ast v29.0.0
|
|
158
|
+
Downloaded zerovec-derive v0.11.3
|
|
159
|
+
Downloaded camino v1.2.4
|
|
160
|
+
Downloaded diff v0.1.13
|
|
161
|
+
Downloaded dragonbox_ecma v0.1.12
|
|
156
162
|
Downloaded swc_ecma_utils v35.0.0
|
|
157
|
-
Downloaded
|
|
158
|
-
Downloaded tracing-core v0.1.36
|
|
163
|
+
Downloaded tempfile v3.27.0
|
|
159
164
|
Downloaded triomphe v0.1.16
|
|
160
|
-
Downloaded
|
|
161
|
-
Downloaded
|
|
162
|
-
Downloaded
|
|
163
|
-
Downloaded
|
|
165
|
+
Downloaded unicode-id-start v1.4.0
|
|
166
|
+
Downloaded unicode-ident v1.0.24
|
|
167
|
+
Downloaded uuid v1.24.0
|
|
168
|
+
Downloaded ahash v0.8.12
|
|
169
|
+
Downloaded cbor4ii v1.2.2
|
|
170
|
+
Downloaded compact_str v0.7.1
|
|
171
|
+
Downloaded tracing-core v0.1.36
|
|
164
172
|
Downloaded yansi v1.0.1
|
|
165
|
-
Downloaded
|
|
173
|
+
Downloaded allocator-api2 v0.2.21
|
|
174
|
+
Downloaded anyhow v1.0.104
|
|
175
|
+
Downloaded ascii v1.1.0
|
|
176
|
+
Downloaded base64 v0.22.1
|
|
177
|
+
Downloaded bitflags v2.13.1
|
|
166
178
|
Downloaded url v2.5.8
|
|
167
179
|
Downloaded zerotrie v0.2.4
|
|
168
|
-
Downloaded
|
|
169
|
-
Downloaded
|
|
180
|
+
Downloaded ar_archive_writer v0.5.2
|
|
181
|
+
Downloaded bytes v1.12.1
|
|
182
|
+
Downloaded cc v1.4.0
|
|
183
|
+
Downloaded bumpalo v3.20.3
|
|
170
184
|
Downloaded swc_sourcemap v10.0.2
|
|
185
|
+
Downloaded regex-automata v0.4.16
|
|
186
|
+
Downloaded typenum v1.20.1
|
|
171
187
|
Downloaded unicode-segmentation v1.13.3
|
|
188
|
+
Downloaded libc v0.2.189
|
|
172
189
|
Downloaded zerovec v0.11.6
|
|
173
|
-
Downloaded
|
|
190
|
+
Downloaded difference v2.0.0
|
|
191
|
+
Downloaded aho-corasick v1.1.4
|
|
174
192
|
Downloaded tracing-subscriber v0.3.23
|
|
175
|
-
Downloaded
|
|
176
|
-
Downloaded unicode-width v0.
|
|
193
|
+
Downloaded bitvec v1.1.1
|
|
194
|
+
Downloaded unicode-width v0.1.14
|
|
177
195
|
Downloaded zerocopy v0.8.55
|
|
178
|
-
Downloaded
|
|
196
|
+
Downloaded unicode-width v0.2.2
|
|
197
|
+
Downloaded syn v2.0.119
|
|
179
198
|
Downloaded syn v3.0.3
|
|
180
|
-
Downloaded
|
|
199
|
+
Downloaded swc_ecma_visit v29.0.0
|
|
181
200
|
Downloaded tracing v0.1.44
|
|
201
|
+
Downloaded linux-raw-sys v0.12.1
|
|
202
|
+
Blocking waiting for file lock on package cache
|
|
182
203
|
Blocking waiting for file lock on build directory
|
|
183
|
-
Compiling
|
|
204
|
+
Compiling icu_properties_data v2.2.0
|
|
184
205
|
Compiling stable_deref_trait v1.2.1
|
|
185
206
|
Compiling icu_normalizer_data v2.2.0
|
|
186
207
|
Compiling syn v2.0.119
|
|
187
208
|
Compiling syn v3.0.3
|
|
188
|
-
Compiling
|
|
209
|
+
Compiling zerocopy v0.8.55
|
|
189
210
|
Compiling ahash v0.8.12
|
|
190
211
|
Compiling serde_core v1.0.229
|
|
191
212
|
Compiling cfg-if v1.0.4
|
|
@@ -195,95 +216,95 @@ $ node ./build.js
|
|
|
195
216
|
Compiling serde v1.0.229
|
|
196
217
|
Compiling anyhow v1.0.104
|
|
197
218
|
Compiling smallvec v1.15.2
|
|
198
|
-
Compiling writeable v0.6.3
|
|
199
219
|
Compiling litemap v0.8.2
|
|
220
|
+
Compiling writeable v0.6.3
|
|
200
221
|
Compiling memchr v2.8.3
|
|
201
|
-
Compiling utf8_iter v1.0.4
|
|
202
222
|
Compiling serde_derive v1.0.229
|
|
203
|
-
Compiling
|
|
223
|
+
Compiling utf8_iter v1.0.4
|
|
204
224
|
Compiling allocator-api2 v0.2.21
|
|
225
|
+
Compiling zmij v1.0.23
|
|
226
|
+
Compiling serde_json v1.0.151
|
|
227
|
+
Compiling hashbrown v0.17.1
|
|
205
228
|
Compiling synstructure v0.13.2
|
|
206
229
|
Compiling swc_macros_common v1.0.1
|
|
207
230
|
Compiling equivalent v1.0.2
|
|
208
|
-
Compiling serde_json v1.0.151
|
|
209
231
|
Compiling rustc-hash v2.1.3
|
|
210
|
-
Compiling
|
|
232
|
+
Compiling radium v0.7.0
|
|
211
233
|
Compiling zerofrom-derive v0.1.7
|
|
212
234
|
Compiling yoke-derive v0.8.2
|
|
213
235
|
Compiling zerovec-derive v0.11.3
|
|
214
236
|
Compiling displaydoc v0.2.6
|
|
237
|
+
Compiling tracing-attributes v0.1.31
|
|
215
238
|
Compiling zerofrom v0.1.8
|
|
216
239
|
Compiling yoke v0.8.3
|
|
217
|
-
Compiling tracing-attributes v0.1.31
|
|
218
|
-
Compiling zerovec v0.11.6
|
|
219
240
|
Compiling zerotrie v0.2.4
|
|
241
|
+
Compiling zerovec v0.11.6
|
|
242
|
+
Compiling swc_eq_ignore_macros v1.0.1
|
|
243
|
+
Compiling from_variant v3.0.0
|
|
220
244
|
Compiling ast_node v7.0.0
|
|
245
|
+
Compiling itoa v1.0.18
|
|
221
246
|
Compiling tinystr v0.8.3
|
|
222
247
|
Compiling potential_utf v0.1.5
|
|
248
|
+
Compiling hashbrown v0.14.5
|
|
223
249
|
Compiling icu_locale_core v2.2.0
|
|
224
250
|
Compiling icu_collections v2.2.0
|
|
225
|
-
Compiling swc_eq_ignore_macros v1.0.1
|
|
226
|
-
Compiling from_variant v3.0.0
|
|
227
|
-
Compiling radium v0.7.0
|
|
228
|
-
Compiling icu_provider v2.2.0
|
|
229
|
-
Compiling itoa v1.0.18
|
|
230
|
-
Compiling hashbrown v0.14.5
|
|
231
|
-
Compiling icu_normalizer v2.2.0
|
|
232
|
-
Compiling icu_properties v2.2.0
|
|
233
251
|
Compiling indexmap v2.14.0
|
|
234
252
|
Compiling tracing-core v0.1.36
|
|
235
|
-
Compiling
|
|
236
|
-
Compiling
|
|
253
|
+
Compiling icu_provider v2.2.0
|
|
254
|
+
Compiling icu_properties v2.2.0
|
|
255
|
+
Compiling icu_normalizer v2.2.0
|
|
237
256
|
Compiling tap v1.0.1
|
|
238
|
-
Compiling
|
|
239
|
-
Compiling rand_core v0.6.4
|
|
257
|
+
Compiling parking_lot_core v0.9.12
|
|
240
258
|
Compiling percent-encoding v2.3.2
|
|
241
|
-
Compiling
|
|
259
|
+
Compiling rand_core v0.6.4
|
|
260
|
+
Compiling siphasher v1.0.3
|
|
242
261
|
Compiling rand v0.8.7
|
|
262
|
+
Compiling phf_shared v0.11.3
|
|
243
263
|
Compiling form_urlencoded v1.2.2
|
|
244
264
|
Compiling wyz v0.5.1
|
|
245
|
-
Compiling
|
|
265
|
+
Compiling idna_adapter v1.2.2
|
|
246
266
|
Compiling triomphe v0.1.16
|
|
247
|
-
Compiling
|
|
248
|
-
Compiling bytes v1.12.1
|
|
249
|
-
Compiling pin-project-lite v0.2.17
|
|
267
|
+
Compiling idna v1.1.0
|
|
250
268
|
Compiling unicode-width v0.2.2
|
|
251
269
|
Compiling outref v0.5.2
|
|
252
|
-
Compiling
|
|
253
|
-
Compiling funty v2.0.0
|
|
254
|
-
Compiling new_debug_unreachable v1.0.6
|
|
270
|
+
Compiling pin-project-lite v0.2.17
|
|
255
271
|
Compiling vsimd v0.8.0
|
|
256
|
-
Compiling
|
|
257
|
-
Compiling
|
|
272
|
+
Compiling new_debug_unreachable v1.0.6
|
|
273
|
+
Compiling funty v2.0.0
|
|
274
|
+
Compiling uuid v1.24.0
|
|
275
|
+
Compiling bytes v1.12.1
|
|
276
|
+
Compiling scopeguard v1.2.0
|
|
277
|
+
Compiling lock_api v0.4.14
|
|
278
|
+
Compiling debugid v0.8.0
|
|
258
279
|
Compiling bitvec v1.1.1
|
|
280
|
+
Compiling base64-simd v0.8.0
|
|
281
|
+
Compiling hstr v4.0.0
|
|
259
282
|
Compiling bytes-str v0.2.8
|
|
260
|
-
Compiling debugid v0.8.0
|
|
261
283
|
Compiling tracing v0.1.44
|
|
262
|
-
Compiling lock_api v0.4.14
|
|
263
|
-
Compiling num-integer v0.1.46
|
|
264
284
|
Compiling url v2.5.8
|
|
285
|
+
Compiling num-integer v0.1.46
|
|
265
286
|
Compiling phf_generator v0.11.3
|
|
266
287
|
Compiling if_chain v1.0.3
|
|
288
|
+
Compiling data-encoding v2.11.0
|
|
289
|
+
Compiling unicode-id-start v1.4.0
|
|
267
290
|
Compiling scoped-tls v1.0.1
|
|
268
291
|
Compiling either v1.17.0
|
|
269
|
-
Compiling unicode-id-start v1.4.0
|
|
270
|
-
Compiling data-encoding v2.11.0
|
|
271
292
|
Compiling cbor4ii v1.2.2
|
|
272
293
|
Compiling swc_visit v2.0.2
|
|
273
|
-
Compiling better_scoped_tls v1.0.1
|
|
274
294
|
Compiling swc_atoms v10.0.0
|
|
275
|
-
Compiling
|
|
276
|
-
Compiling phf_macros v0.11.3
|
|
295
|
+
Compiling better_scoped_tls v1.0.1
|
|
277
296
|
Compiling swc_sourcemap v10.0.2
|
|
297
|
+
Compiling parking_lot v0.12.5
|
|
278
298
|
Compiling num-bigint v0.4.8
|
|
299
|
+
Compiling phf_macros v0.11.3
|
|
279
300
|
Compiling siphasher v0.3.11
|
|
280
301
|
Compiling termcolor v1.4.1
|
|
281
302
|
Compiling heck v0.5.0
|
|
282
303
|
Compiling is-macro v0.3.7
|
|
283
|
-
Compiling swc_common v26.0.0
|
|
284
304
|
Compiling string_enum v1.0.2
|
|
285
|
-
Compiling
|
|
305
|
+
Compiling swc_common v26.0.0
|
|
286
306
|
Compiling libc v0.2.189
|
|
307
|
+
Compiling bitflags v2.13.1
|
|
287
308
|
Compiling generic-array v0.14.7
|
|
288
309
|
Compiling phf v0.11.3
|
|
289
310
|
Compiling aho-corasick v1.1.4
|
|
@@ -293,27 +314,27 @@ $ node ./build.js
|
|
|
293
314
|
Compiling regex-automata v0.4.16
|
|
294
315
|
Compiling owo-colors v4.3.0
|
|
295
316
|
Compiling thiserror v1.0.69
|
|
317
|
+
Compiling dragonbox_ecma v0.1.12
|
|
296
318
|
Compiling camino v1.2.4
|
|
297
319
|
Compiling unicode-linebreak v0.1.5
|
|
298
|
-
Compiling dragonbox_ecma v0.1.12
|
|
299
320
|
Compiling textwrap v0.16.2
|
|
300
|
-
Compiling block-buffer v0.10.4
|
|
301
321
|
Compiling crypto-common v0.1.7
|
|
322
|
+
Compiling block-buffer v0.10.4
|
|
302
323
|
Compiling castaway v0.2.4
|
|
303
|
-
Compiling thiserror-impl v1.0.69
|
|
304
324
|
Compiling miette-derive v7.6.0
|
|
305
|
-
Compiling
|
|
325
|
+
Compiling thiserror-impl v1.0.69
|
|
306
326
|
Compiling log v0.4.33
|
|
307
|
-
Compiling
|
|
308
|
-
Compiling static_assertions v1.1.0
|
|
309
|
-
Compiling seq-macro v0.3.6
|
|
327
|
+
Compiling lazy_static v1.5.0
|
|
310
328
|
Compiling unicode-width v0.1.14
|
|
311
|
-
Compiling
|
|
329
|
+
Compiling seq-macro v0.3.6
|
|
330
|
+
Compiling static_assertions v1.1.0
|
|
331
|
+
Compiling ryu v1.0.23
|
|
312
332
|
Compiling compact_str v0.7.1
|
|
313
|
-
Compiling
|
|
314
|
-
Compiling tracing-log v0.2.0
|
|
333
|
+
Compiling miette v7.6.0
|
|
315
334
|
Compiling sharded-slab v0.1.7
|
|
335
|
+
Compiling tracing-log v0.2.0
|
|
316
336
|
Compiling digest v0.10.7
|
|
337
|
+
Compiling regex v1.13.1
|
|
317
338
|
Compiling swc_ecma_visit v29.0.0
|
|
318
339
|
Compiling matchers v0.2.0
|
|
319
340
|
Compiling num_cpus v1.17.0
|
|
@@ -321,42 +342,42 @@ $ node ./build.js
|
|
|
321
342
|
Compiling semver v1.0.28
|
|
322
343
|
Compiling par-core v2.0.0
|
|
323
344
|
Compiling thread_local v1.1.10
|
|
324
|
-
Compiling
|
|
325
|
-
Compiling diff v0.1.13
|
|
345
|
+
Compiling relative-path v1.9.3
|
|
326
346
|
Compiling rustix v1.1.4
|
|
347
|
+
Compiling glob v0.3.4
|
|
327
348
|
Compiling getrandom v0.4.3
|
|
349
|
+
Compiling diff v0.1.13
|
|
328
350
|
Compiling nu-ansi-term v0.50.3
|
|
329
|
-
Compiling
|
|
330
|
-
Compiling
|
|
351
|
+
Compiling yansi v1.0.1
|
|
352
|
+
Compiling pretty_assertions v1.4.1
|
|
331
353
|
Compiling tracing-subscriber v0.3.23
|
|
332
354
|
Compiling testing_macros v1.0.2
|
|
333
|
-
Compiling pretty_assertions v1.4.1
|
|
334
355
|
Compiling cargo_metadata v0.18.1
|
|
335
|
-
Compiling swc_ecma_utils v35.0.0
|
|
336
356
|
Compiling swc_error_reporters v28.0.0
|
|
357
|
+
Compiling swc_ecma_utils v35.0.0
|
|
337
358
|
Compiling errno v0.3.14
|
|
338
359
|
Compiling bumpalo v3.20.3
|
|
339
360
|
Compiling difference v2.0.0
|
|
340
|
-
Compiling testing v27.0.0
|
|
341
361
|
Compiling swc_allocator v5.0.0
|
|
362
|
+
Compiling testing v27.0.0
|
|
342
363
|
Compiling sha2 v0.10.9
|
|
343
364
|
Compiling swc_ecma_parser v45.1.1
|
|
344
365
|
Compiling swc_ecma_codegen_macros v2.0.2
|
|
345
|
-
Compiling fastrand v2.5.0
|
|
346
|
-
Compiling hex v0.4.3
|
|
347
366
|
Compiling ascii v1.1.0
|
|
348
|
-
Compiling
|
|
367
|
+
Compiling hex v0.4.3
|
|
368
|
+
Compiling fastrand v2.5.0
|
|
349
369
|
Compiling swc_ecma_testing v27.0.0
|
|
350
370
|
Compiling tempfile v3.27.0
|
|
371
|
+
Compiling swc_ecma_codegen v32.0.0
|
|
372
|
+
Compiling swc_ecma_transforms_base v49.0.1
|
|
351
373
|
Compiling swc_core v77.1.2
|
|
352
|
-
Compiling base64 v0.22.1
|
|
353
374
|
Compiling ansi_term v0.12.1
|
|
354
|
-
Compiling
|
|
375
|
+
Compiling base64 v0.22.1
|
|
376
|
+
Compiling swc_ecma_transforms_testing v53.0.0
|
|
355
377
|
Compiling swc_plugin_proxy v30.0.0
|
|
378
|
+
Compiling swc_ecma_quote_macros v45.0.1
|
|
356
379
|
Compiling swc_transform_common v20.0.0
|
|
357
380
|
Compiling swc_plugin_macro v2.0.0
|
|
358
|
-
Compiling swc_ecma_transforms_testing v53.0.0
|
|
359
|
-
Compiling swc_ecma_quote_macros v45.0.1
|
|
360
381
|
Compiling swc_plugin v1.0.1
|
|
361
382
|
Compiling unicode-segmentation v1.13.3
|
|
362
383
|
Compiling sha-1 v0.10.1
|
|
@@ -365,4 +386,4 @@ $ node ./build.js
|
|
|
365
386
|
Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
|
|
366
387
|
Compiling swc_plugin_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_compat)
|
|
367
388
|
Compiling swc_plugin_reactlynx_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/swc-plugin-reactlynx-compat)
|
|
368
|
-
Finished `release` profile [optimized] target(s) in
|
|
389
|
+
Finished `release` profile [optimized] target(s) in 2m 08s
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BackgroundElementTemplateInstance, globalCommitContext, runCase } from '../../_shared.js';
|
|
2
|
-
|
|
3
|
-
export function run() {
|
|
4
|
-
return runCase(() => {
|
|
5
|
-
const root = new BackgroundElementTemplateInstance('root');
|
|
6
|
-
const child = new BackgroundElementTemplateInstance('view');
|
|
7
|
-
root.insertBefore(child, null, true);
|
|
8
|
-
|
|
9
|
-
return globalCommitContext.ops;
|
|
10
|
-
});
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Array []
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BackgroundElementTemplateInstance,
|
|
3
|
-
globalCommitContext,
|
|
4
|
-
markElementTemplateHydrated,
|
|
5
|
-
resetGlobalCommitContext,
|
|
6
|
-
runCase,
|
|
7
|
-
} from '../../_shared.js';
|
|
8
|
-
|
|
9
|
-
export function run() {
|
|
10
|
-
return runCase(() => {
|
|
11
|
-
const instance = new BackgroundElementTemplateInstance('view');
|
|
12
|
-
instance.setAttribute('attributeSlots', [{ a: 1 }]);
|
|
13
|
-
markElementTemplateHydrated();
|
|
14
|
-
instance.markMaterializedByHydration();
|
|
15
|
-
resetGlobalCommitContext();
|
|
16
|
-
|
|
17
|
-
instance.setAttribute('attributeSlots', []);
|
|
18
|
-
const stream = globalCommitContext.ops;
|
|
19
|
-
resetGlobalCommitContext();
|
|
20
|
-
|
|
21
|
-
return stream;
|
|
22
|
-
});
|
|
23
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
2
|
-
import { describe, expect, it, vi } from 'vitest';
|
|
3
|
-
|
|
4
|
-
import { __ElementTemplatePage } from '../../../../src/element-template/runtime/page/authored-page.js';
|
|
5
|
-
|
|
6
|
-
describe('authored ET page projection', () => {
|
|
7
|
-
it('keeps typed attributes and logical children on ordinary props', () => {
|
|
8
|
-
const ref = vi.fn();
|
|
9
|
-
const child = h('view', {});
|
|
10
|
-
const attributes = {
|
|
11
|
-
id: 'page',
|
|
12
|
-
ref,
|
|
13
|
-
};
|
|
14
|
-
const vnode = h(__ElementTemplatePage, {
|
|
15
|
-
$0: child,
|
|
16
|
-
attributes,
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
expect(vnode.ref).toBeUndefined();
|
|
20
|
-
expect(vnode.props).toEqual({
|
|
21
|
-
$0: child,
|
|
22
|
-
attributes,
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it('does not promote a ref inside typed attributes to the VNode ref channel', () => {
|
|
27
|
-
const ref = vi.fn();
|
|
28
|
-
const vnode = h(__ElementTemplatePage, {
|
|
29
|
-
attributes: { ref },
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
expect(vnode.ref).toBeUndefined();
|
|
33
|
-
expect(vnode.props.attributes).toEqual({ ref });
|
|
34
|
-
});
|
|
35
|
-
});
|