@lynx-js/react 0.129.2 → 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 +24 -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/compat/export.test.jsx +8 -2
- 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/initEntry.test.js +12 -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/compat/index.d.ts +17 -1
- package/runtime/compat/index.js +3 -2
- package/runtime/lazy/compat.js +1 -0
- 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/shared/version.js +15 -0
- 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/shared/version.ts +16 -0
- 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 +88 -201
- 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 +129 -156
- package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +282 -149
- 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 +0 -10
- 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/src/worklet-runtime/utils/version.ts +0 -11
- /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
|
@@ -3,254 +3,387 @@ $ node ./build.js
|
|
|
3
3
|
Blocking waiting for file lock on package cache
|
|
4
4
|
Blocking waiting for file lock on package cache
|
|
5
5
|
Downloading crates ...
|
|
6
|
+
Downloaded fastrand v2.5.0
|
|
7
|
+
Downloaded form_urlencoded v1.2.2
|
|
6
8
|
Downloaded from_variant v3.0.0
|
|
7
|
-
Downloaded itoa v1.0.18
|
|
8
9
|
Downloaded errno v0.3.14
|
|
9
10
|
Downloaded find-msvc-tools v0.1.9
|
|
10
|
-
Downloaded form_urlencoded v1.2.2
|
|
11
|
-
Downloaded fastrand v2.5.0
|
|
12
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
|
|
13
15
|
Downloaded funty v2.0.0
|
|
14
|
-
Downloaded
|
|
15
|
-
Downloaded is-macro v0.3.7
|
|
16
|
+
Downloaded hex v0.4.3
|
|
16
17
|
Downloaded idna_adapter v1.2.2
|
|
17
|
-
Downloaded
|
|
18
|
-
Downloaded
|
|
19
|
-
Downloaded miette-derive v7.6.0
|
|
18
|
+
Downloaded is-macro v0.3.7
|
|
19
|
+
Downloaded itoa v1.0.18
|
|
20
20
|
Downloaded new_debug_unreachable v1.0.6
|
|
21
21
|
Downloaded num_cpus v1.17.0
|
|
22
22
|
Downloaded outref v0.5.2
|
|
23
|
+
Downloaded potential_utf v0.1.5
|
|
24
|
+
Downloaded seq-macro v0.3.6
|
|
25
|
+
Downloaded stable_deref_trait v1.2.1
|
|
23
26
|
Downloaded par-core v2.0.0
|
|
24
|
-
Downloaded percent-encoding v2.3.2
|
|
25
27
|
Downloaded phf_generator v0.11.3
|
|
26
|
-
Downloaded
|
|
27
|
-
Downloaded
|
|
28
|
-
Downloaded
|
|
29
|
-
Downloaded
|
|
30
|
-
Downloaded thiserror v1.0.69
|
|
31
|
-
Downloaded thread_local v1.1.10
|
|
32
|
-
Downloaded yoke-derive v0.8.2
|
|
33
|
-
Downloaded generic-array v0.14.7
|
|
34
|
-
Downloaded heck v0.5.0
|
|
35
|
-
Downloaded hex v0.4.3
|
|
36
|
-
Downloaded phf_macros v0.11.3
|
|
37
|
-
Downloaded psm v0.1.31
|
|
38
|
-
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
|
|
39
32
|
Downloaded scopeguard v1.2.0
|
|
33
|
+
Downloaded percent-encoding v2.3.2
|
|
40
34
|
Downloaded siphasher v0.3.11
|
|
41
|
-
Downloaded
|
|
35
|
+
Downloaded rustc-hash v2.1.3
|
|
42
36
|
Downloaded swc_atoms v10.0.0
|
|
43
37
|
Downloaded swc_ecma_codegen_macros v2.0.2
|
|
44
|
-
Downloaded
|
|
45
|
-
Downloaded tinystr v0.8.3
|
|
46
|
-
Downloaded nu-ansi-term v0.50.3
|
|
47
|
-
Downloaded num-integer v0.1.46
|
|
48
|
-
Downloaded phf v0.11.3
|
|
49
|
-
Downloaded relative-path v1.9.3
|
|
38
|
+
Downloaded swc_ecma_quote_macros v45.0.1
|
|
50
39
|
Downloaded scoped-tls v1.0.1
|
|
51
|
-
Downloaded
|
|
52
|
-
Downloaded sha-1 v0.10.1
|
|
40
|
+
Downloaded if_chain v1.0.3
|
|
53
41
|
Downloaded swc_allocator v5.0.0
|
|
54
|
-
Downloaded
|
|
55
|
-
Downloaded
|
|
56
|
-
Downloaded unicode-ident v1.0.24
|
|
57
|
-
Downloaded glob v0.3.4
|
|
58
|
-
Downloaded litemap v0.8.2
|
|
42
|
+
Downloaded miette-derive v7.6.0
|
|
43
|
+
Downloaded num-integer v0.1.46
|
|
59
44
|
Downloaded owo-colors v4.3.0
|
|
45
|
+
Downloaded phf v0.11.3
|
|
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
|
|
52
|
+
Downloaded relative-path v1.9.3
|
|
60
53
|
Downloaded rustversion v1.0.23
|
|
54
|
+
Downloaded sha2 v0.10.9
|
|
61
55
|
Downloaded shlex v2.0.1
|
|
62
|
-
Downloaded
|
|
56
|
+
Downloaded stacker v0.1.24
|
|
63
57
|
Downloaded static_assertions v1.1.0
|
|
64
|
-
Downloaded string_enum v1.0.2
|
|
65
58
|
Downloaded sugar_path v1.2.1
|
|
66
|
-
Downloaded
|
|
67
|
-
Downloaded
|
|
68
|
-
Downloaded
|
|
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
|
|
69
71
|
Downloaded zerofrom v0.1.8
|
|
70
|
-
Downloaded
|
|
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
|
|
76
|
+
Downloaded semver v1.0.28
|
|
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
|
|
87
|
+
Downloaded glob v0.3.4
|
|
71
88
|
Downloaded hstr v4.0.0
|
|
89
|
+
Downloaded icu_provider v2.2.0
|
|
72
90
|
Downloaded lock_api v0.4.14
|
|
91
|
+
Downloaded log v0.4.33
|
|
73
92
|
Downloaded num-traits v0.2.19
|
|
74
93
|
Downloaded once_cell v1.21.4
|
|
75
|
-
Downloaded parking_lot v0.12.5
|
|
76
94
|
Downloaded parking_lot_core v0.9.12
|
|
77
|
-
Downloaded
|
|
78
|
-
Downloaded
|
|
95
|
+
Downloaded proc-macro2 v1.0.107
|
|
96
|
+
Downloaded ryu v1.0.23
|
|
79
97
|
Downloaded serde_core v1.0.229
|
|
80
98
|
Downloaded serde_derive v1.0.229
|
|
81
|
-
Downloaded
|
|
82
|
-
Downloaded
|
|
83
|
-
Downloaded stacker v0.1.24
|
|
84
|
-
Downloaded base64-simd v0.8.0
|
|
85
|
-
Downloaded icu_collections v2.2.0
|
|
99
|
+
Downloaded swc_core v77.1.2
|
|
100
|
+
Downloaded getrandom v0.4.3
|
|
86
101
|
Downloaded icu_normalizer v2.2.0
|
|
87
102
|
Downloaded icu_properties v2.2.0
|
|
88
|
-
Downloaded icu_provider v2.2.0
|
|
89
|
-
Downloaded log v0.4.33
|
|
90
103
|
Downloaded pretty_assertions v1.4.1
|
|
91
|
-
Downloaded proc-macro2 v1.0.107
|
|
92
|
-
Downloaded ryu v1.0.23
|
|
93
|
-
Downloaded semver v1.0.28
|
|
94
|
-
Downloaded sharded-slab v0.1.7
|
|
95
|
-
Downloaded swc_core v77.1.2
|
|
96
|
-
Downloaded swc_ecma_ast v29.0.0
|
|
97
|
-
Downloaded swc_ecma_transforms_testing v53.0.0
|
|
98
|
-
Downloaded unicode-linebreak v0.1.5
|
|
99
|
-
Downloaded icu_locale_core v2.2.0
|
|
100
|
-
Downloaded icu_normalizer_data v2.2.0
|
|
101
104
|
Downloaded serde v1.0.229
|
|
102
|
-
Downloaded swc_ecma_codegen v32.0.0
|
|
103
|
-
Downloaded utf8_iter v1.0.4
|
|
104
|
-
Downloaded cargo-platform v0.1.9
|
|
105
|
-
Downloaded indexmap v2.14.0
|
|
106
|
-
Downloaded memchr v2.8.3
|
|
107
|
-
Downloaded rand v0.8.7
|
|
108
105
|
Downloaded swc_common v26.0.0
|
|
109
|
-
Downloaded
|
|
106
|
+
Downloaded icu_collections v2.2.0
|
|
107
|
+
Downloaded icu_locale_core v2.2.0
|
|
108
|
+
Downloaded icu_normalizer_data v2.2.0
|
|
110
109
|
Downloaded miette v7.6.0
|
|
111
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
|
|
112
114
|
Downloaded swc_ecma_transforms_base v49.0.1
|
|
113
|
-
Downloaded
|
|
114
|
-
Downloaded
|
|
115
|
-
Downloaded swc_plugin_proxy v30.0.0
|
|
115
|
+
Downloaded idna v1.1.0
|
|
116
|
+
Downloaded indexmap v2.14.0
|
|
116
117
|
Downloaded swc_visit v2.0.2
|
|
117
|
-
Downloaded
|
|
118
|
-
Downloaded zerofrom-derive v0.1.7
|
|
119
|
-
Downloaded ast_node v7.0.0
|
|
120
|
-
Downloaded better_scoped_tls v1.0.1
|
|
121
|
-
Downloaded block-buffer v0.10.4
|
|
122
|
-
Downloaded castaway v0.2.4
|
|
123
|
-
Downloaded crypto-common v0.1.7
|
|
124
|
-
Downloaded debugid v0.8.0
|
|
118
|
+
Downloaded cargo-platform v0.1.9
|
|
125
119
|
Downloaded equivalent v1.0.2
|
|
126
|
-
Downloaded idna v1.1.0
|
|
127
|
-
Downloaded swc_plugin_macro v2.0.0
|
|
128
|
-
Downloaded icu_properties_data v2.2.0
|
|
129
|
-
Downloaded autocfg v1.5.1
|
|
130
|
-
Downloaded bytes-str v0.2.8
|
|
131
|
-
Downloaded cpufeatures v0.2.17
|
|
132
|
-
Downloaded hashbrown v0.17.1
|
|
133
120
|
Downloaded serde_json v1.0.151
|
|
134
|
-
Downloaded swc_ecma_parser v45.1.1
|
|
135
121
|
Downloaded swc_eq_ignore_macros v1.0.1
|
|
136
|
-
Downloaded
|
|
137
|
-
Downloaded
|
|
138
|
-
Downloaded
|
|
122
|
+
Downloaded hashbrown v0.14.5
|
|
123
|
+
Downloaded hashbrown v0.17.1
|
|
124
|
+
Downloaded icu_properties_data v2.2.0
|
|
125
|
+
Downloaded regex v1.13.1
|
|
126
|
+
Downloaded swc_ecma_parser v45.1.1
|
|
127
|
+
Downloaded tap v1.0.1
|
|
139
128
|
Downloaded tracing-log v0.2.0
|
|
140
|
-
Downloaded
|
|
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
|
|
134
|
+
Downloaded swc_plugin v1.0.1
|
|
135
|
+
Downloaded swc_transform_common v20.0.0
|
|
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
|
|
141
140
|
Downloaded cargo_metadata v0.18.1
|
|
141
|
+
Downloaded cfg-if v1.0.4
|
|
142
142
|
Downloaded convert_case v0.11.0
|
|
143
143
|
Downloaded data-encoding v2.11.0
|
|
144
144
|
Downloaded digest v0.10.7
|
|
145
145
|
Downloaded displaydoc v0.2.6
|
|
146
146
|
Downloaded either v1.17.0
|
|
147
|
-
Downloaded
|
|
147
|
+
Downloaded object v0.37.3
|
|
148
148
|
Downloaded synstructure v0.13.2
|
|
149
149
|
Downloaded termcolor v1.4.1
|
|
150
|
-
Downloaded
|
|
151
|
-
Downloaded testing_macros v1.0.2
|
|
150
|
+
Downloaded thiserror-impl v1.0.69
|
|
152
151
|
Downloaded tracing-attributes v0.1.31
|
|
153
|
-
Downloaded
|
|
154
|
-
Downloaded writeable v0.6.3
|
|
152
|
+
Downloaded wyz v0.5.1
|
|
155
153
|
Downloaded yoke v0.8.3
|
|
156
154
|
Downloaded zmij v1.0.23
|
|
157
|
-
Downloaded
|
|
158
|
-
Downloaded
|
|
159
|
-
Downloaded
|
|
160
|
-
Downloaded
|
|
161
|
-
Downloaded
|
|
155
|
+
Downloaded base64-simd v0.8.0
|
|
156
|
+
Downloaded regex-syntax v0.8.11
|
|
157
|
+
Downloaded rustix v1.1.4
|
|
158
|
+
Downloaded zerovec-derive v0.11.3
|
|
159
|
+
Downloaded camino v1.2.4
|
|
162
160
|
Downloaded diff v0.1.13
|
|
163
|
-
Downloaded
|
|
161
|
+
Downloaded dragonbox_ecma v0.1.12
|
|
162
|
+
Downloaded swc_ecma_utils v35.0.0
|
|
163
|
+
Downloaded tempfile v3.27.0
|
|
164
|
+
Downloaded triomphe v0.1.16
|
|
164
165
|
Downloaded unicode-id-start v1.4.0
|
|
166
|
+
Downloaded unicode-ident v1.0.24
|
|
165
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
|
|
172
|
+
Downloaded yansi v1.0.1
|
|
166
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
|
|
167
177
|
Downloaded bitflags v2.13.1
|
|
168
|
-
Downloaded bytes v1.12.1
|
|
169
|
-
Downloaded compact_str v0.7.1
|
|
170
|
-
Downloaded dragonbox_ecma v0.1.12
|
|
171
|
-
Downloaded swc_ecma_utils v35.0.0
|
|
172
|
-
Downloaded textwrap v0.16.2
|
|
173
178
|
Downloaded url v2.5.8
|
|
174
|
-
Downloaded
|
|
175
|
-
Downloaded tempfile v3.27.0
|
|
179
|
+
Downloaded zerotrie v0.2.4
|
|
176
180
|
Downloaded ar_archive_writer v0.5.2
|
|
181
|
+
Downloaded bytes v1.12.1
|
|
177
182
|
Downloaded cc v1.4.0
|
|
178
|
-
Downloaded typenum v1.20.1
|
|
179
|
-
Downloaded unicode-segmentation v1.13.3
|
|
180
|
-
Downloaded zerotrie v0.2.4
|
|
181
|
-
Downloaded base64 v0.22.1
|
|
182
183
|
Downloaded bumpalo v3.20.3
|
|
183
|
-
Downloaded object v0.37.3
|
|
184
184
|
Downloaded swc_sourcemap v10.0.2
|
|
185
|
-
Downloaded
|
|
185
|
+
Downloaded regex-automata v0.4.16
|
|
186
|
+
Downloaded typenum v1.20.1
|
|
187
|
+
Downloaded unicode-segmentation v1.13.3
|
|
188
|
+
Downloaded libc v0.2.189
|
|
186
189
|
Downloaded zerovec v0.11.6
|
|
187
190
|
Downloaded difference v2.0.0
|
|
188
191
|
Downloaded aho-corasick v1.1.4
|
|
189
192
|
Downloaded tracing-subscriber v0.3.23
|
|
190
193
|
Downloaded bitvec v1.1.1
|
|
191
194
|
Downloaded unicode-width v0.1.14
|
|
192
|
-
Downloaded libc v0.2.189
|
|
193
|
-
Downloaded unicode-width v0.2.2
|
|
194
195
|
Downloaded zerocopy v0.8.55
|
|
196
|
+
Downloaded unicode-width v0.2.2
|
|
197
|
+
Downloaded syn v2.0.119
|
|
195
198
|
Downloaded syn v3.0.3
|
|
196
|
-
Downloaded regex-syntax v0.8.11
|
|
197
199
|
Downloaded swc_ecma_visit v29.0.0
|
|
198
|
-
Downloaded syn v2.0.119
|
|
199
200
|
Downloaded tracing v0.1.44
|
|
200
|
-
Downloaded regex-automata v0.4.16
|
|
201
201
|
Downloaded linux-raw-sys v0.12.1
|
|
202
202
|
Blocking waiting for file lock on package cache
|
|
203
203
|
Blocking waiting for file lock on build directory
|
|
204
|
-
Compiling
|
|
204
|
+
Compiling icu_properties_data v2.2.0
|
|
205
|
+
Compiling stable_deref_trait v1.2.1
|
|
206
|
+
Compiling icu_normalizer_data v2.2.0
|
|
207
|
+
Compiling syn v2.0.119
|
|
208
|
+
Compiling syn v3.0.3
|
|
209
|
+
Compiling zerocopy v0.8.55
|
|
205
210
|
Compiling ahash v0.8.12
|
|
211
|
+
Compiling serde_core v1.0.229
|
|
212
|
+
Compiling cfg-if v1.0.4
|
|
213
|
+
Compiling autocfg v1.5.1
|
|
214
|
+
Compiling num-traits v0.2.19
|
|
215
|
+
Compiling once_cell v1.21.4
|
|
216
|
+
Compiling serde v1.0.229
|
|
217
|
+
Compiling anyhow v1.0.104
|
|
218
|
+
Compiling smallvec v1.15.2
|
|
219
|
+
Compiling litemap v0.8.2
|
|
220
|
+
Compiling writeable v0.6.3
|
|
221
|
+
Compiling memchr v2.8.3
|
|
222
|
+
Compiling serde_derive v1.0.229
|
|
223
|
+
Compiling utf8_iter v1.0.4
|
|
224
|
+
Compiling allocator-api2 v0.2.21
|
|
225
|
+
Compiling zmij v1.0.23
|
|
226
|
+
Compiling serde_json v1.0.151
|
|
206
227
|
Compiling hashbrown v0.17.1
|
|
207
|
-
Compiling
|
|
208
|
-
Compiling
|
|
209
|
-
Compiling
|
|
210
|
-
Compiling
|
|
228
|
+
Compiling synstructure v0.13.2
|
|
229
|
+
Compiling swc_macros_common v1.0.1
|
|
230
|
+
Compiling equivalent v1.0.2
|
|
231
|
+
Compiling rustc-hash v2.1.3
|
|
232
|
+
Compiling radium v0.7.0
|
|
233
|
+
Compiling zerofrom-derive v0.1.7
|
|
234
|
+
Compiling yoke-derive v0.8.2
|
|
235
|
+
Compiling zerovec-derive v0.11.3
|
|
236
|
+
Compiling displaydoc v0.2.6
|
|
237
|
+
Compiling tracing-attributes v0.1.31
|
|
238
|
+
Compiling zerofrom v0.1.8
|
|
239
|
+
Compiling yoke v0.8.3
|
|
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
|
|
244
|
+
Compiling ast_node v7.0.0
|
|
245
|
+
Compiling itoa v1.0.18
|
|
211
246
|
Compiling tinystr v0.8.3
|
|
212
247
|
Compiling potential_utf v0.1.5
|
|
248
|
+
Compiling hashbrown v0.14.5
|
|
213
249
|
Compiling icu_locale_core v2.2.0
|
|
214
250
|
Compiling icu_collections v2.2.0
|
|
215
251
|
Compiling indexmap v2.14.0
|
|
216
|
-
Compiling
|
|
217
|
-
Compiling serde_json v1.0.151
|
|
252
|
+
Compiling tracing-core v0.1.36
|
|
218
253
|
Compiling icu_provider v2.2.0
|
|
219
|
-
Compiling icu_normalizer v2.2.0
|
|
220
254
|
Compiling icu_properties v2.2.0
|
|
255
|
+
Compiling icu_normalizer v2.2.0
|
|
256
|
+
Compiling tap v1.0.1
|
|
257
|
+
Compiling parking_lot_core v0.9.12
|
|
258
|
+
Compiling percent-encoding v2.3.2
|
|
259
|
+
Compiling rand_core v0.6.4
|
|
260
|
+
Compiling siphasher v1.0.3
|
|
261
|
+
Compiling rand v0.8.7
|
|
262
|
+
Compiling phf_shared v0.11.3
|
|
263
|
+
Compiling form_urlencoded v1.2.2
|
|
264
|
+
Compiling wyz v0.5.1
|
|
265
|
+
Compiling idna_adapter v1.2.2
|
|
266
|
+
Compiling triomphe v0.1.16
|
|
267
|
+
Compiling idna v1.1.0
|
|
268
|
+
Compiling unicode-width v0.2.2
|
|
269
|
+
Compiling outref v0.5.2
|
|
270
|
+
Compiling pin-project-lite v0.2.17
|
|
271
|
+
Compiling vsimd v0.8.0
|
|
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
|
|
279
|
+
Compiling bitvec v1.1.1
|
|
280
|
+
Compiling base64-simd v0.8.0
|
|
281
|
+
Compiling hstr v4.0.0
|
|
282
|
+
Compiling bytes-str v0.2.8
|
|
283
|
+
Compiling tracing v0.1.44
|
|
284
|
+
Compiling url v2.5.8
|
|
285
|
+
Compiling num-integer v0.1.46
|
|
286
|
+
Compiling phf_generator v0.11.3
|
|
287
|
+
Compiling if_chain v1.0.3
|
|
288
|
+
Compiling data-encoding v2.11.0
|
|
289
|
+
Compiling unicode-id-start v1.4.0
|
|
290
|
+
Compiling scoped-tls v1.0.1
|
|
291
|
+
Compiling either v1.17.0
|
|
292
|
+
Compiling cbor4ii v1.2.2
|
|
293
|
+
Compiling swc_visit v2.0.2
|
|
221
294
|
Compiling swc_atoms v10.0.0
|
|
295
|
+
Compiling better_scoped_tls v1.0.1
|
|
296
|
+
Compiling swc_sourcemap v10.0.2
|
|
297
|
+
Compiling parking_lot v0.12.5
|
|
298
|
+
Compiling num-bigint v0.4.8
|
|
299
|
+
Compiling phf_macros v0.11.3
|
|
300
|
+
Compiling siphasher v0.3.11
|
|
301
|
+
Compiling termcolor v1.4.1
|
|
302
|
+
Compiling heck v0.5.0
|
|
303
|
+
Compiling is-macro v0.3.7
|
|
304
|
+
Compiling string_enum v1.0.2
|
|
305
|
+
Compiling swc_common v26.0.0
|
|
306
|
+
Compiling libc v0.2.189
|
|
307
|
+
Compiling bitflags v2.13.1
|
|
308
|
+
Compiling generic-array v0.14.7
|
|
309
|
+
Compiling phf v0.11.3
|
|
310
|
+
Compiling aho-corasick v1.1.4
|
|
311
|
+
Compiling regex-syntax v0.8.11
|
|
222
312
|
Compiling typenum v1.20.1
|
|
313
|
+
Compiling swc_ecma_ast v29.0.0
|
|
223
314
|
Compiling regex-automata v0.4.16
|
|
224
|
-
Compiling
|
|
225
|
-
Compiling
|
|
226
|
-
Compiling
|
|
227
|
-
Compiling
|
|
228
|
-
Compiling
|
|
315
|
+
Compiling owo-colors v4.3.0
|
|
316
|
+
Compiling thiserror v1.0.69
|
|
317
|
+
Compiling dragonbox_ecma v0.1.12
|
|
318
|
+
Compiling camino v1.2.4
|
|
319
|
+
Compiling unicode-linebreak v0.1.5
|
|
320
|
+
Compiling textwrap v0.16.2
|
|
229
321
|
Compiling crypto-common v0.1.7
|
|
322
|
+
Compiling block-buffer v0.10.4
|
|
323
|
+
Compiling castaway v0.2.4
|
|
324
|
+
Compiling miette-derive v7.6.0
|
|
325
|
+
Compiling thiserror-impl v1.0.69
|
|
326
|
+
Compiling log v0.4.33
|
|
327
|
+
Compiling lazy_static v1.5.0
|
|
328
|
+
Compiling unicode-width v0.1.14
|
|
329
|
+
Compiling seq-macro v0.3.6
|
|
330
|
+
Compiling static_assertions v1.1.0
|
|
331
|
+
Compiling ryu v1.0.23
|
|
332
|
+
Compiling compact_str v0.7.1
|
|
333
|
+
Compiling miette v7.6.0
|
|
334
|
+
Compiling sharded-slab v0.1.7
|
|
335
|
+
Compiling tracing-log v0.2.0
|
|
230
336
|
Compiling digest v0.10.7
|
|
231
|
-
Compiling url v2.5.8
|
|
232
|
-
Compiling swc_sourcemap v10.0.2
|
|
233
|
-
Compiling swc_allocator v5.0.0
|
|
234
|
-
Compiling sha2 v0.10.9
|
|
235
|
-
Compiling swc_core v77.1.2
|
|
236
|
-
Compiling sha-1 v0.10.1
|
|
237
|
-
Compiling matchers v0.2.0
|
|
238
337
|
Compiling regex v1.13.1
|
|
338
|
+
Compiling swc_ecma_visit v29.0.0
|
|
339
|
+
Compiling matchers v0.2.0
|
|
340
|
+
Compiling num_cpus v1.17.0
|
|
341
|
+
Compiling cargo-platform v0.1.9
|
|
342
|
+
Compiling semver v1.0.28
|
|
343
|
+
Compiling par-core v2.0.0
|
|
344
|
+
Compiling thread_local v1.1.10
|
|
345
|
+
Compiling relative-path v1.9.3
|
|
346
|
+
Compiling rustix v1.1.4
|
|
347
|
+
Compiling glob v0.3.4
|
|
348
|
+
Compiling getrandom v0.4.3
|
|
349
|
+
Compiling diff v0.1.13
|
|
350
|
+
Compiling nu-ansi-term v0.50.3
|
|
351
|
+
Compiling yansi v1.0.1
|
|
352
|
+
Compiling pretty_assertions v1.4.1
|
|
239
353
|
Compiling tracing-subscriber v0.3.23
|
|
240
|
-
Compiling
|
|
241
|
-
Compiling
|
|
354
|
+
Compiling testing_macros v1.0.2
|
|
355
|
+
Compiling cargo_metadata v0.18.1
|
|
242
356
|
Compiling swc_error_reporters v28.0.0
|
|
357
|
+
Compiling swc_ecma_utils v35.0.0
|
|
358
|
+
Compiling errno v0.3.14
|
|
359
|
+
Compiling bumpalo v3.20.3
|
|
360
|
+
Compiling difference v2.0.0
|
|
361
|
+
Compiling swc_allocator v5.0.0
|
|
243
362
|
Compiling testing v27.0.0
|
|
244
|
-
Compiling
|
|
245
|
-
Compiling swc_transform_common v20.0.0
|
|
246
|
-
Compiling swc_ecma_visit v29.0.0
|
|
363
|
+
Compiling sha2 v0.10.9
|
|
247
364
|
Compiling swc_ecma_parser v45.1.1
|
|
248
|
-
Compiling
|
|
249
|
-
Compiling
|
|
365
|
+
Compiling swc_ecma_codegen_macros v2.0.2
|
|
366
|
+
Compiling ascii v1.1.0
|
|
367
|
+
Compiling hex v0.4.3
|
|
368
|
+
Compiling fastrand v2.5.0
|
|
369
|
+
Compiling swc_ecma_testing v27.0.0
|
|
370
|
+
Compiling tempfile v3.27.0
|
|
250
371
|
Compiling swc_ecma_codegen v32.0.0
|
|
251
372
|
Compiling swc_ecma_transforms_base v49.0.1
|
|
373
|
+
Compiling swc_core v77.1.2
|
|
374
|
+
Compiling ansi_term v0.12.1
|
|
375
|
+
Compiling base64 v0.22.1
|
|
252
376
|
Compiling swc_ecma_transforms_testing v53.0.0
|
|
377
|
+
Compiling swc_plugin_proxy v30.0.0
|
|
378
|
+
Compiling swc_ecma_quote_macros v45.0.1
|
|
379
|
+
Compiling swc_transform_common v20.0.0
|
|
380
|
+
Compiling swc_plugin_macro v2.0.0
|
|
381
|
+
Compiling swc_plugin v1.0.1
|
|
382
|
+
Compiling unicode-segmentation v1.13.3
|
|
383
|
+
Compiling sha-1 v0.10.1
|
|
384
|
+
Compiling sugar_path v1.2.1
|
|
385
|
+
Compiling convert_case v0.11.0
|
|
253
386
|
Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
|
|
254
387
|
Compiling swc_plugin_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_compat)
|
|
255
388
|
Compiling swc_plugin_reactlynx_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/swc-plugin-reactlynx-compat)
|
|
256
|
-
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
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
|
|
3
|
-
import { root } from '../../../../src/element-template/index.js';
|
|
4
|
-
import { registerTemplates } from '../../test-utils/debug/registry.js';
|
|
5
|
-
import { runElementTemplateUpdate } from '../../test-utils/debug/updateRunner.js';
|
|
6
|
-
|
|
7
|
-
describe('patch update fixture helper', () => {
|
|
8
|
-
it('collects update ops for a props update', () => {
|
|
9
|
-
const EtUpdateView = '_et_update_fixture_helper' as unknown as JSX.ElementType;
|
|
10
|
-
registerTemplates([
|
|
11
|
-
{
|
|
12
|
-
templateId: '_et_update_fixture_helper',
|
|
13
|
-
compiledTemplate: {
|
|
14
|
-
kind: 'element',
|
|
15
|
-
type: 'view',
|
|
16
|
-
attributesArray: [
|
|
17
|
-
{ kind: 'slot', key: 'id', attrSlotIndex: 0 },
|
|
18
|
-
],
|
|
19
|
-
children: [],
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
]);
|
|
23
|
-
|
|
24
|
-
let label = 'before';
|
|
25
|
-
function App() {
|
|
26
|
-
return <EtUpdateView attributeSlots={[label]} />;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const result = runElementTemplateUpdate({
|
|
30
|
-
render: () => <App />,
|
|
31
|
-
update: () => {
|
|
32
|
-
label = 'after';
|
|
33
|
-
root.render(<App />);
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
expect(Array.isArray(result.formattedOps)).toBe(true);
|
|
38
|
-
expect(result.backgroundJsx).toContain('_et_update_fixture_helper');
|
|
39
|
-
});
|
|
40
|
-
});
|