@lynx-js/react 0.129.0 → 0.129.1

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.
Files changed (206) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/components/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +3 -4
  4. package/refresh/.turbo/turbo-build.log +1 -1
  5. package/runtime/__test__/core/hooks/useLynxGlobalEventListener.test.jsx +1 -1
  6. package/runtime/__test__/element-template/imports/no-legacy-imports.test.ts +7 -6
  7. package/runtime/__test__/element-template/internal/legacy-internal-guardrail.test.ts +1 -2
  8. package/runtime/__test__/element-template/native/main-thread-api.test.ts +5 -2
  9. package/runtime/__test__/element-template/native/mts-destroy.test.ts +83 -0
  10. package/runtime/__test__/element-template/native/reload-dual-thread-communication.test.ts +3 -0
  11. package/runtime/__test__/element-template/native/reload.test.ts +31 -2
  12. package/runtime/__test__/element-template/runtime/background/update-timing.test.ts +15 -0
  13. package/runtime/__test__/element-template/runtime/patch/element-template-patch.test.tsx +197 -7
  14. package/runtime/__test__/element-template/runtime/patch/update-timing.test.ts +4 -1
  15. package/runtime/__test__/element-template/runtime/render/render-direct-suspense.test.ts +4 -1
  16. package/runtime/__test__/element-template/runtime/render/render-direct.test.ts +4 -1
  17. package/runtime/__test__/element-template/runtime/render/render-main-thread.test.ts +101 -1
  18. package/runtime/__test__/element-template/runtime/template/element-template-handle.test.ts +32 -0
  19. package/runtime/__test__/element-template/runtime/template/main-thread-dynamic-attr-state.test.ts +121 -26
  20. package/runtime/__test__/element-template/test-utils/debug/envManager.ts +8 -5
  21. package/runtime/__test__/element-template/test-utils/mock/mockNativePapi.ts +35 -2
  22. package/runtime/__test__/guardrails/snapshot-containment.test.ts +45 -11
  23. package/runtime/__test__/shared/component-stack.test.ts +211 -0
  24. package/runtime/__test__/snapshot/debug/formatPatch.test.ts +0 -8
  25. package/runtime/__test__/snapshot/gesture/prepareGestureForCommit.test.js +1 -1
  26. package/runtime/__test__/snapshot/lynx/timing.test.jsx +3 -0
  27. package/runtime/__test__/snapshot/preact.test.jsx +0 -3
  28. package/runtime/__test__/snapshot/snapshotPatch.test.jsx +0 -33
  29. package/runtime/__test__/worklet-runtime/jsFunctionLifecycle.test.js +12 -0
  30. package/runtime/__test__/worklet-runtime/loadRuntime.test.js +68 -0
  31. package/runtime/__test__/worklet-runtime/workletRuntime.test.js +30 -0
  32. package/runtime/lazy/element-template-internal.js +0 -1
  33. package/runtime/lazy/internal.js +1 -1
  34. package/runtime/lazy/jsx-dev-runtime.js +1 -1
  35. package/runtime/lazy/jsx-runtime.js +1 -1
  36. package/runtime/lazy/legacy-react-runtime.js +1 -1
  37. package/runtime/lazy/react-lepus.js +1 -1
  38. package/runtime/lazy/react.js +1 -1
  39. package/runtime/lib/core/capture-main-thread-object.js +2 -1
  40. package/runtime/lib/core/capture-main-thread-object.js.map +1 -1
  41. package/runtime/lib/core/compat/legacy-react-runtime.js +1 -1
  42. package/runtime/lib/core/compat/legacy-react-runtime.js.map +1 -1
  43. package/runtime/lib/core/lynx/lazy-bundle.js +1 -1
  44. package/runtime/lib/core/lynx/lazy-bundle.js.map +1 -1
  45. package/runtime/lib/core/lynx-data-processors.d.ts +125 -1
  46. package/runtime/lib/core/lynx-data-processors.js +3 -0
  47. package/runtime/lib/core/lynx-data-processors.js.map +1 -1
  48. package/runtime/lib/core/runtime-destroy.js +1 -1
  49. package/runtime/lib/core/runtime-destroy.js.map +1 -1
  50. package/runtime/lib/document.js +0 -5
  51. package/runtime/lib/document.js.map +1 -1
  52. package/runtime/lib/element-template/background/commit-hook.js +11 -12
  53. package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
  54. package/runtime/lib/element-template/client/root.d.ts +1 -1
  55. package/runtime/lib/element-template/client/root.js.map +1 -1
  56. package/runtime/lib/element-template/index.d.ts +2 -2
  57. package/runtime/lib/element-template/index.js.map +1 -1
  58. package/runtime/lib/element-template/internal.d.ts +1 -1
  59. package/runtime/lib/element-template/internal.js +0 -13
  60. package/runtime/lib/element-template/internal.js.map +1 -1
  61. package/runtime/lib/element-template/lynx/env.js.map +1 -1
  62. package/runtime/lib/element-template/native/flush.d.ts +1 -0
  63. package/runtime/lib/element-template/native/flush.js +9 -0
  64. package/runtime/lib/element-template/native/flush.js.map +1 -0
  65. package/runtime/lib/element-template/native/main-thread-api.js +3 -7
  66. package/runtime/lib/element-template/native/main-thread-api.js.map +1 -1
  67. package/runtime/lib/element-template/native/mts-destroy.js +8 -2
  68. package/runtime/lib/element-template/native/mts-destroy.js.map +1 -1
  69. package/runtime/lib/element-template/native/patch-listener.js +57 -50
  70. package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
  71. package/runtime/lib/element-template/native/reload-main-thread.js +2 -1
  72. package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
  73. package/runtime/lib/element-template/protocol/types.js.map +1 -1
  74. package/runtime/lib/element-template/runtime/page/root-instance.d.ts +0 -1
  75. package/runtime/lib/element-template/runtime/page/root-instance.js.map +1 -1
  76. package/runtime/lib/element-template/runtime/patch.js +4 -0
  77. package/runtime/lib/element-template/runtime/patch.js.map +1 -1
  78. package/runtime/lib/element-template/runtime/render/render-components.js +4 -4
  79. package/runtime/lib/element-template/runtime/render/render-components.js.map +1 -1
  80. package/runtime/lib/element-template/runtime/render/render-main-thread.js +2 -0
  81. package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
  82. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js +8 -1
  83. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js.map +1 -1
  84. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.d.ts +1 -0
  85. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js +41 -21
  86. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js.map +1 -1
  87. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.d.ts +1 -1
  88. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js.map +1 -1
  89. package/runtime/lib/internal.d.ts +1 -1
  90. package/runtime/lib/internal.js +1 -1
  91. package/runtime/lib/internal.js.map +1 -1
  92. package/runtime/lib/lynx-api.d.ts +2 -125
  93. package/runtime/lib/lynx-api.js.map +1 -1
  94. package/runtime/lib/shared/component-stack.d.ts +0 -4
  95. package/runtime/lib/shared/component-stack.js +21 -5
  96. package/runtime/lib/shared/component-stack.js.map +1 -1
  97. package/runtime/lib/snapshot/gesture/{processGestureBagkround.js → processGestureBackground.js} +1 -1
  98. package/runtime/lib/snapshot/gesture/processGestureBackground.js.map +1 -0
  99. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.d.ts +0 -1
  100. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js +0 -5
  101. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js.map +1 -1
  102. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js +0 -10
  103. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js.map +1 -1
  104. package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js +56 -51
  105. package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
  106. package/runtime/lib/snapshot/list/listUpdateInfo.js +0 -30
  107. package/runtime/lib/snapshot/list/listUpdateInfo.js.map +1 -1
  108. package/runtime/lib/snapshot/lynx/calledByNative.js +11 -8
  109. package/runtime/lib/snapshot/lynx/calledByNative.js.map +1 -1
  110. package/runtime/lib/snapshot/renderToOpcodes/hydrate.js +0 -52
  111. package/runtime/lib/snapshot/renderToOpcodes/hydrate.js.map +1 -1
  112. package/runtime/lib/snapshot/renderToOpcodes/index.js +10 -10
  113. package/runtime/lib/snapshot/renderToOpcodes/index.js.map +1 -1
  114. package/runtime/lib/snapshot/renderToOpcodes/opcodes.js +0 -51
  115. package/runtime/lib/snapshot/renderToOpcodes/opcodes.js.map +1 -1
  116. package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js +1 -1
  117. package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js.map +1 -1
  118. package/runtime/lib/tsconfig.tsbuildinfo +1 -1
  119. package/runtime/lib/worklet-runtime/bindings/index.d.ts +1 -0
  120. package/runtime/lib/worklet-runtime/bindings/index.js +1 -0
  121. package/runtime/lib/worklet-runtime/bindings/index.js.map +1 -1
  122. package/runtime/lib/worklet-runtime/bindings/loadRuntime.d.ts +8 -0
  123. package/runtime/lib/worklet-runtime/bindings/loadRuntime.js +23 -0
  124. package/runtime/lib/worklet-runtime/bindings/loadRuntime.js.map +1 -0
  125. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.d.ts +2 -0
  126. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js +6 -0
  127. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js.map +1 -1
  128. package/runtime/lib/worklet-runtime/workletRuntime.js +2 -0
  129. package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
  130. package/runtime/package.json +2 -3
  131. package/runtime/src/core/capture-main-thread-object.ts +2 -1
  132. package/runtime/src/core/compat/legacy-react-runtime.ts +1 -1
  133. package/runtime/src/core/lynx/lazy-bundle.ts +1 -1
  134. package/runtime/src/core/lynx-data-processors.ts +124 -1
  135. package/runtime/src/core/runtime-destroy.ts +1 -1
  136. package/runtime/src/document.ts +0 -6
  137. package/runtime/src/element-template/background/commit-hook.ts +18 -12
  138. package/runtime/src/element-template/client/root.ts +1 -3
  139. package/runtime/src/element-template/index.ts +2 -2
  140. package/runtime/src/element-template/internal.ts +0 -20
  141. package/runtime/src/element-template/lynx/env.ts +1 -1
  142. package/runtime/src/element-template/native/flush.ts +10 -0
  143. package/runtime/src/element-template/native/main-thread-api.ts +3 -6
  144. package/runtime/src/element-template/native/mts-destroy.ts +7 -2
  145. package/runtime/src/element-template/native/patch-listener.ts +62 -57
  146. package/runtime/src/element-template/native/reload-main-thread.ts +2 -1
  147. package/runtime/src/element-template/protocol/types.ts +0 -13
  148. package/runtime/src/element-template/runtime/page/root-instance.ts +0 -1
  149. package/runtime/src/element-template/runtime/patch.ts +5 -0
  150. package/runtime/src/element-template/runtime/render/render-components.ts +3 -3
  151. package/runtime/src/element-template/runtime/render/render-main-thread.ts +2 -0
  152. package/runtime/src/element-template/runtime/template/main-thread-background-function.ts +8 -1
  153. package/runtime/src/element-template/runtime/template/main-thread-dynamic-attr-state.ts +51 -21
  154. package/runtime/src/element-template/runtime/template/main-thread-ref-ctx.ts +2 -2
  155. package/runtime/src/element-template/types.d.ts +6 -0
  156. package/runtime/src/internal.ts +1 -1
  157. package/runtime/src/lynx-api.ts +2 -124
  158. package/runtime/src/shared/component-stack.ts +22 -5
  159. package/runtime/src/snapshot/lifecycle/patch/snapshotPatch.ts +0 -5
  160. package/runtime/src/snapshot/lifecycle/patch/snapshotPatchApply.ts +0 -10
  161. package/runtime/src/snapshot/lifecycle/patch/updateMainThread.ts +62 -58
  162. package/runtime/src/snapshot/list/listUpdateInfo.ts +0 -52
  163. package/runtime/src/snapshot/lynx/calledByNative.ts +11 -9
  164. package/runtime/src/snapshot/renderToOpcodes/hydrate.ts +0 -58
  165. package/runtime/src/snapshot/renderToOpcodes/index.ts +8 -8
  166. package/runtime/src/snapshot/renderToOpcodes/opcodes.ts +0 -57
  167. package/runtime/src/snapshot/snapshot/backgroundSnapshot.ts +1 -1
  168. package/runtime/src/worklet-runtime/README.md +30 -10
  169. package/runtime/src/worklet-runtime/bindings/index.ts +2 -0
  170. package/runtime/src/worklet-runtime/bindings/loadRuntime.ts +25 -0
  171. package/runtime/src/worklet-runtime/jsFunctionLifecycle.ts +6 -0
  172. package/runtime/src/worklet-runtime/workletRuntime.ts +2 -0
  173. package/runtime/vitest.config.ts +0 -2
  174. package/testing-library/.turbo/turbo-build.log +6 -6
  175. package/testing-library/src/__tests__/act.test.jsx +0 -7
  176. package/testing-library/src/__tests__/alog.test.jsx +12 -54
  177. package/testing-library/src/__tests__/end-to-end.test.jsx +0 -7
  178. package/testing-library/src/__tests__/renderComponent.test.jsx +0 -14
  179. package/testing-library/src/__tests__/worklet.test.jsx +49 -0
  180. package/transform/.turbo/turbo-build$colon$wasm.log +98 -376
  181. package/transform/__test__/defines.spec.js +30 -0
  182. package/transform/__test__/object-methods.spec.js +79 -0
  183. package/transform/crates/swc_plugin_worklet/extract_ident.rs +99 -49
  184. package/transform/crates/swc_plugin_worklet/gen_stmt.rs +56 -48
  185. package/transform/crates/swc_plugin_worklet/lib.rs +393 -589
  186. package/transform/crates/swc_plugin_worklet/napi.rs +4 -6
  187. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_js.js +6 -1
  188. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +7 -1
  189. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_js.js +9 -0
  190. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +12 -1
  191. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_js.js +1 -1
  192. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +1 -1
  193. package/transform/dist/wasm.cjs +1 -1
  194. package/transform/package.json +0 -1
  195. package/transform/src/lib.rs +1 -1
  196. package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +113 -42
  197. package/transform/swc-plugin-reactlynx/src/lib.rs +1 -4
  198. package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
  199. package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +273 -66
  200. package/runtime/lib/snapshot/gesture/processGestureBagkround.js.map +0 -1
  201. package/runtime/lib/snapshot/worklet/hmr.d.ts +0 -1
  202. package/runtime/lib/snapshot/worklet/hmr.js +0 -28
  203. package/runtime/lib/snapshot/worklet/hmr.js.map +0 -1
  204. package/runtime/src/snapshot/worklet/hmr.ts +0 -34
  205. /package/runtime/lib/snapshot/gesture/{processGestureBagkround.d.ts → processGestureBackground.d.ts} +0 -0
  206. /package/runtime/src/snapshot/gesture/{processGestureBagkround.ts → processGestureBackground.ts} +0 -0
@@ -1,162 +1,369 @@
1
1
  $ node ./build.js
2
2
  Blocking waiting for file lock on package cache
3
3
  Blocking waiting for file lock on package cache
4
+ Downloading crates ...
5
+ Downloaded ahash v0.8.12
6
+ Downloaded anyhow v1.0.104
7
+ Downloaded base64-simd v0.8.0
8
+ Downloaded block-buffer v0.10.4
9
+ Downloaded ast_node v7.0.0
10
+ Downloaded better_scoped_tls v1.0.1
11
+ Downloaded cargo-platform v0.1.9
12
+ Downloaded castaway v0.2.4
13
+ Downloaded equivalent v1.0.2
14
+ Downloaded find-msvc-tools v0.1.9
15
+ Downloaded heck v0.5.0
16
+ Downloaded hex v0.4.3
17
+ Downloaded idna_adapter v1.2.2
18
+ Downloaded if_chain v1.0.3
19
+ Downloaded percent-encoding v2.3.2
20
+ Downloaded potential_utf v0.1.5
21
+ Downloaded rustc-hash v2.1.3
22
+ Downloaded scoped-tls v1.0.1
23
+ Downloaded scopeguard v1.2.0
24
+ Downloaded allocator-api2 v0.2.21
25
+ Downloaded ansi_term v0.12.1
26
+ Downloaded ascii v1.1.0
27
+ Downloaded autocfg v1.5.1
28
+ Downloaded bitflags v2.13.1
29
+ Downloaded bytes-str v0.2.8
30
+ Downloaded camino v1.2.4
31
+ Downloaded cargo_metadata v0.18.1
32
+ Downloaded cbor4ii v1.2.2
33
+ Downloaded cc v1.4.0
34
+ Downloaded cpufeatures v0.2.17
35
+ Downloaded crypto-common v0.1.7
36
+ Downloaded data-encoding v2.11.0
37
+ Downloaded debugid v0.8.0
38
+ Downloaded digest v0.10.7
39
+ Downloaded displaydoc v0.2.6
40
+ Downloaded dragonbox_ecma v0.1.12
41
+ Downloaded either v1.17.0
42
+ Downloaded errno v0.3.14
43
+ Downloaded fastrand v2.5.0
44
+ Downloaded form_urlencoded v1.2.2
45
+ Downloaded from_variant v3.0.0
46
+ Downloaded generic-array v0.14.7
47
+ Downloaded glob v0.3.4
48
+ Downloaded icu_provider v2.2.0
49
+ Downloaded is-macro v0.3.7
50
+ Downloaded itoa v1.0.18
51
+ Downloaded lock_api v0.4.14
52
+ Downloaded miette-derive v7.6.0
53
+ Downloaded nu-ansi-term v0.50.3
54
+ Downloaded num-integer v0.1.46
55
+ Downloaded num_cpus v1.17.0
56
+ Downloaded outref v0.5.2
57
+ Downloaded owo-colors v4.3.0
58
+ Downloaded par-core v2.0.0
59
+ Downloaded phf_generator v0.11.3
60
+ Downloaded phf_shared v0.11.3
61
+ Downloaded psm v0.1.31
62
+ Downloaded rand_core v0.6.4
63
+ Downloaded relative-path v1.9.3
64
+ Downloaded semver v1.0.28
65
+ Downloaded ar_archive_writer v0.5.2
66
+ Downloaded base64 v0.22.1
67
+ Downloaded compact_str v0.7.1
68
+ Downloaded convert_case v0.11.0
69
+ Downloaded diff v0.1.13
70
+ Downloaded getrandom v0.4.3
71
+ Downloaded hstr v4.0.0
72
+ Downloaded icu_normalizer v2.2.0
73
+ Downloaded icu_normalizer_data v2.2.0
74
+ Downloaded icu_properties v2.2.0
75
+ Downloaded litemap v0.8.2
76
+ Downloaded log v0.4.33
77
+ Downloaded matchers v0.2.0
78
+ Downloaded num-traits v0.2.19
79
+ Downloaded parking_lot v0.12.5
80
+ Downloaded parking_lot_core v0.9.12
81
+ Downloaded rand v0.8.7
82
+ Downloaded ryu v1.0.23
83
+ Downloaded seq-macro v0.3.6
84
+ Downloaded swc_ecma_transforms_testing v53.0.0
85
+ Downloaded icu_collections v2.2.0
86
+ Downloaded icu_locale_core v2.2.0
87
+ Downloaded indexmap v2.14.0
88
+ Downloaded miette v7.6.0
89
+ Downloaded new_debug_unreachable v1.0.6
90
+ Downloaded num-bigint v0.4.8
91
+ Downloaded phf v0.11.3
92
+ Downloaded phf_macros v0.11.3
93
+ Downloaded swc_macros_common v1.0.1
94
+ Downloaded aho-corasick v1.1.4
95
+ Downloaded difference v2.0.0
96
+ Downloaded hashbrown v0.14.5
97
+ Downloaded hashbrown v0.17.1
98
+ Downloaded icu_properties_data v2.2.0
99
+ Downloaded idna v1.1.0
100
+ Downloaded memchr v2.8.3
101
+ Downloaded pretty_assertions v1.4.1
102
+ Downloaded regex v1.13.1
103
+ Downloaded serde_core v1.0.229
104
+ Downloaded serde_json v1.0.151
105
+ Downloaded object v0.37.3
106
+ Downloaded regex-syntax v0.8.11
107
+ Downloaded rustix v1.1.4
108
+ Downloaded serde v1.0.229
109
+ Downloaded regex-automata v0.4.16
110
+ Downloaded swc_eq_ignore_macros v1.0.1
111
+ Downloaded swc_error_reporters v28.0.0
112
+ Downloaded zerofrom v0.1.8
113
+ Downloaded serde_derive v1.0.229
114
+ Downloaded thread_local v1.1.10
115
+ Downloaded zerofrom-derive v0.1.7
116
+ Downloaded swc_ecma_utils v35.0.0
117
+ Downloaded unicode-linebreak v0.1.5
118
+ Downloaded utf8_iter v1.0.4
119
+ Downloaded swc_ecma_quote_macros v45.0.1
120
+ Downloaded swc_ecma_testing v27.0.0
121
+ Downloaded swc_plugin v1.0.1
122
+ Downloaded swc_plugin_macro v2.0.0
123
+ Downloaded swc_plugin_proxy v30.0.0
124
+ Downloaded swc_transform_common v20.0.0
125
+ Downloaded testing_macros v1.0.2
126
+ Downloaded tracing-log v0.2.0
127
+ Downloaded yoke-derive v0.8.2
128
+ Downloaded zmij v1.0.23
129
+ Downloaded swc_atoms v10.0.0
130
+ Downloaded swc_common v26.0.0
131
+ Downloaded swc_ecma_parser v45.1.1
132
+ Downloaded swc_visit v2.0.2
133
+ Downloaded synstructure v0.13.2
134
+ Downloaded termcolor v1.4.1
135
+ Downloaded testing v27.0.0
136
+ Downloaded thiserror v1.0.69
137
+ Downloaded thiserror-impl v1.0.69
138
+ Downloaded triomphe v0.1.16
139
+ Downloaded vsimd v0.8.0
140
+ Downloaded writeable v0.6.3
141
+ Downloaded static_assertions v1.1.0
142
+ Downloaded swc_ecma_transforms_base v49.0.1
143
+ Downloaded tinystr v0.8.3
144
+ Downloaded unicode-id-start v1.4.0
145
+ Downloaded zerovec-derive v0.11.3
146
+ Downloaded stacker v0.1.24
147
+ Downloaded tempfile v3.27.0
148
+ Downloaded tracing-attributes v0.1.31
149
+ Downloaded linux-raw-sys v0.12.1
150
+ Downloaded sha-1 v0.10.1
151
+ Downloaded siphasher v0.3.11
152
+ Downloaded string_enum v1.0.2
153
+ Downloaded sugar_path v1.2.1
154
+ Downloaded swc_allocator v5.0.0
155
+ Downloaded swc_core v77.1.2
156
+ Downloaded swc_ecma_codegen v32.0.0
157
+ Downloaded swc_ecma_codegen_macros v2.0.2
158
+ Downloaded yoke v0.8.3
159
+ Downloaded siphasher v1.0.3
160
+ Downloaded smallvec v1.15.2
161
+ Downloaded swc_ecma_ast v29.0.0
162
+ Downloaded swc_sourcemap v10.0.2
163
+ Downloaded sha2 v0.10.9
164
+ Downloaded shlex v2.0.1
165
+ Downloaded sharded-slab v0.1.7
166
+ Downloaded stable_deref_trait v1.2.1
167
+ Downloaded yansi v1.0.1
168
+ Downloaded swc_ecma_visit v29.0.0
169
+ Downloaded textwrap v0.16.2
170
+ Downloaded tracing-core v0.1.36
171
+ Downloaded url v2.5.8
172
+ Downloaded zerotrie v0.2.4
173
+ Downloaded typenum v1.20.1
174
+ Downloaded unicode-segmentation v1.13.3
175
+ Downloaded zerovec v0.11.6
176
+ Downloaded tracing-subscriber v0.3.23
177
+ Downloaded unicode-width v0.1.14
178
+ Downloaded unicode-width v0.2.2
179
+ Downloaded zerocopy v0.8.55
180
+ Downloaded syn v3.0.3
181
+ Downloaded tracing v0.1.44
4
182
  Blocking waiting for file lock on package cache
5
183
  Blocking waiting for file lock on build directory
184
+ Compiling icu_normalizer_data v2.2.0
185
+ Compiling zerocopy v0.8.55
186
+ Compiling icu_properties_data v2.2.0
187
+ Compiling syn v2.0.119
188
+ Compiling syn v3.0.3
6
189
  Compiling stable_deref_trait v1.2.1
190
+ Compiling ahash v0.8.12
7
191
  Compiling cfg-if v1.0.4
8
- Compiling zerofrom v0.1.8
9
192
  Compiling serde_core v1.0.229
193
+ Compiling autocfg v1.5.1
194
+ Compiling num-traits v0.2.19
10
195
  Compiling once_cell v1.21.4
11
196
  Compiling serde v1.0.229
197
+ Compiling anyhow v1.0.104
12
198
  Compiling smallvec v1.15.2
13
- Compiling yoke v0.8.3
14
- Compiling memchr v2.8.3
15
199
  Compiling writeable v0.6.3
16
- Compiling zerovec v0.11.6
17
200
  Compiling litemap v0.8.2
18
- Compiling zerotrie v0.2.4
201
+ Compiling memchr v2.8.3
19
202
  Compiling utf8_iter v1.0.4
20
- Compiling zerocopy v0.8.55
21
- Compiling icu_normalizer_data v2.2.0
22
- Compiling icu_properties_data v2.2.0
23
- Compiling ahash v0.8.12
203
+ Compiling serde_derive v1.0.229
204
+ Compiling zmij v1.0.23
24
205
  Compiling allocator-api2 v0.2.21
206
+ Compiling radium v0.7.0
207
+ Compiling serde_json v1.0.151
208
+ Compiling rustc-hash v2.1.3
209
+ Compiling itoa v1.0.18
210
+ Compiling synstructure v0.13.2
211
+ Compiling swc_macros_common v1.0.1
212
+ Compiling equivalent v1.0.2
213
+ Compiling hashbrown v0.17.1
214
+ Compiling indexmap v2.14.0
215
+ Compiling zerofrom-derive v0.1.7
216
+ Compiling yoke-derive v0.8.2
217
+ Compiling zerovec-derive v0.11.3
218
+ Compiling displaydoc v0.2.6
219
+ Compiling zerofrom v0.1.8
220
+ Compiling tracing-attributes v0.1.31
221
+ Compiling yoke v0.8.3
222
+ Compiling zerotrie v0.2.4
223
+ Compiling ast_node v7.0.0
224
+ Compiling zerovec v0.11.6
225
+ Compiling swc_eq_ignore_macros v1.0.1
25
226
  Compiling tinystr v0.8.3
26
- Compiling icu_locale_core v2.2.0
27
227
  Compiling potential_utf v0.1.5
228
+ Compiling from_variant v3.0.0
229
+ Compiling icu_locale_core v2.2.0
28
230
  Compiling icu_collections v2.2.0
29
- Compiling zmij v1.0.23
30
- Compiling rustc-hash v2.1.3
31
- Compiling itoa v1.0.18
231
+ Compiling hashbrown v0.14.5
232
+ Compiling tracing-core v0.1.36
233
+ Compiling siphasher v1.0.3
32
234
  Compiling icu_provider v2.2.0
235
+ Compiling rand_core v0.6.4
33
236
  Compiling icu_normalizer v2.2.0
34
237
  Compiling icu_properties v2.2.0
35
- Compiling hashbrown v0.17.1
36
- Compiling equivalent v1.0.2
37
- Compiling serde_json v1.0.151
38
- Compiling radium v0.7.0
39
- Compiling tracing-core v0.1.36
40
- Compiling indexmap v2.14.0
41
- Compiling idna_adapter v1.2.2
42
- Compiling num-traits v0.2.19
43
- Compiling percent-encoding v2.3.2
44
238
  Compiling tap v1.0.1
45
239
  Compiling parking_lot_core v0.9.12
46
- Compiling form_urlencoded v1.2.2
240
+ Compiling percent-encoding v2.3.2
47
241
  Compiling wyz v0.5.1
242
+ Compiling form_urlencoded v1.2.2
243
+ Compiling rand v0.8.7
244
+ Compiling phf_shared v0.11.3
245
+ Compiling idna_adapter v1.2.2
48
246
  Compiling idna v1.1.0
49
- Compiling hashbrown v0.14.5
50
247
  Compiling triomphe v0.1.16
51
248
  Compiling new_debug_unreachable v1.0.6
52
- Compiling unicode-width v0.2.2
53
- Compiling outref v0.5.2
54
- Compiling bytes v1.12.1
55
- Compiling pin-project-lite v0.2.17
56
249
  Compiling vsimd v0.8.0
57
250
  Compiling uuid v1.24.0
58
251
  Compiling funty v2.0.0
252
+ Compiling unicode-width v0.2.2
253
+ Compiling outref v0.5.2
59
254
  Compiling scopeguard v1.2.0
255
+ Compiling pin-project-lite v0.2.17
256
+ Compiling bytes v1.12.1
257
+ Compiling tracing v0.1.44
60
258
  Compiling lock_api v0.4.14
61
- Compiling bytes-str v0.2.8
62
259
  Compiling base64-simd v0.8.0
260
+ Compiling bitvec v1.1.1
63
261
  Compiling debugid v0.8.0
64
- Compiling tracing v0.1.44
65
262
  Compiling hstr v4.0.0
66
- Compiling bitvec v1.1.1
67
- Compiling num-integer v0.1.46
263
+ Compiling bytes-str v0.2.8
68
264
  Compiling url v2.5.8
69
- Compiling anyhow v1.0.104
265
+ Compiling num-integer v0.1.46
266
+ Compiling phf_generator v0.11.3
70
267
  Compiling cbor4ii v1.2.2
71
- Compiling either v1.17.0
72
- Compiling if_chain v1.0.3
73
268
  Compiling scoped-tls v1.0.1
269
+ Compiling if_chain v1.0.3
74
270
  Compiling data-encoding v2.11.0
75
271
  Compiling unicode-id-start v1.4.0
272
+ Compiling either v1.17.0
76
273
  Compiling swc_atoms v10.0.0
77
274
  Compiling better_scoped_tls v1.0.1
78
275
  Compiling swc_visit v2.0.2
79
276
  Compiling parking_lot v0.12.5
277
+ Compiling phf_macros v0.11.3
278
+ Compiling swc_sourcemap v10.0.2
80
279
  Compiling num-bigint v0.4.8
81
280
  Compiling siphasher v0.3.11
82
- Compiling swc_sourcemap v10.0.2
83
281
  Compiling termcolor v1.4.1
84
- Compiling siphasher v1.0.3
282
+ Compiling heck v0.5.0
283
+ Compiling is-macro v0.3.7
284
+ Compiling string_enum v1.0.2
285
+ Compiling swc_common v26.0.0
85
286
  Compiling bitflags v2.13.1
86
287
  Compiling libc v0.2.189
87
- Compiling phf_shared v0.11.3
88
288
  Compiling generic-array v0.14.7
89
289
  Compiling phf v0.11.3
90
290
  Compiling aho-corasick v1.1.4
91
291
  Compiling typenum v1.20.1
92
- Compiling swc_common v26.0.0
93
292
  Compiling regex-syntax v0.8.11
94
- Compiling owo-colors v4.3.0
95
- Compiling unicode-linebreak v0.1.5
96
- Compiling regex-automata v0.4.16
97
293
  Compiling swc_ecma_ast v29.0.0
294
+ Compiling regex-automata v0.4.16
295
+ Compiling owo-colors v4.3.0
98
296
  Compiling camino v1.2.4
297
+ Compiling unicode-linebreak v0.1.5
298
+ Compiling dragonbox_ecma v0.1.12
99
299
  Compiling thiserror v1.0.69
100
300
  Compiling textwrap v0.16.2
101
- Compiling dragonbox_ecma v0.1.12
102
- Compiling block-buffer v0.10.4
103
301
  Compiling crypto-common v0.1.7
302
+ Compiling block-buffer v0.10.4
104
303
  Compiling castaway v0.2.4
105
- Compiling ryu v1.0.23
106
- Compiling lazy_static v1.5.0
107
- Compiling unicode-width v0.1.14
304
+ Compiling thiserror-impl v1.0.69
305
+ Compiling miette-derive v7.6.0
108
306
  Compiling log v0.4.33
307
+ Compiling unicode-width v0.1.14
308
+ Compiling seq-macro v0.3.6
109
309
  Compiling static_assertions v1.1.0
310
+ Compiling lazy_static v1.5.0
311
+ Compiling ryu v1.0.23
312
+ Compiling sharded-slab v0.1.7
110
313
  Compiling compact_str v0.7.1
111
- Compiling tracing-log v0.2.0
112
314
  Compiling miette v7.6.0
315
+ Compiling tracing-log v0.2.0
113
316
  Compiling regex v1.13.1
114
- Compiling matchers v0.2.0
115
- Compiling sharded-slab v0.1.7
116
317
  Compiling digest v0.10.7
318
+ Compiling swc_ecma_visit v29.0.0
319
+ Compiling matchers v0.2.0
117
320
  Compiling num_cpus v1.17.0
118
321
  Compiling cargo-platform v0.1.9
119
322
  Compiling semver v1.0.28
120
323
  Compiling par-core v2.0.0
121
324
  Compiling thread_local v1.1.10
325
+ Compiling yansi v1.0.1
122
326
  Compiling rustix v1.1.4
327
+ Compiling relative-path v1.9.3
123
328
  Compiling nu-ansi-term v0.50.3
124
- Compiling diff v0.1.13
125
- Compiling yansi v1.0.1
329
+ Compiling glob v0.3.4
126
330
  Compiling getrandom v0.4.3
127
- Compiling tracing-subscriber v0.3.23
331
+ Compiling diff v0.1.13
128
332
  Compiling pretty_assertions v1.4.1
333
+ Compiling testing_macros v1.0.2
334
+ Compiling tracing-subscriber v0.3.23
129
335
  Compiling cargo_metadata v0.18.1
130
- Compiling swc_ecma_visit v29.0.0
336
+ Compiling swc_ecma_utils v35.0.0
131
337
  Compiling swc_error_reporters v28.0.0
132
338
  Compiling errno v0.3.14
133
339
  Compiling bumpalo v3.20.3
134
340
  Compiling difference v2.0.0
135
- Compiling swc_allocator v5.0.0
136
341
  Compiling testing v27.0.0
137
- Compiling swc_ecma_parser v45.1.1
342
+ Compiling swc_allocator v5.0.0
138
343
  Compiling sha2 v0.10.9
139
- Compiling fastrand v2.5.0
344
+ Compiling swc_ecma_parser v45.1.1
345
+ Compiling swc_ecma_codegen_macros v2.0.2
140
346
  Compiling ascii v1.1.0
347
+ Compiling fastrand v2.5.0
141
348
  Compiling hex v0.4.3
142
- Compiling swc_ecma_testing v27.0.0
143
349
  Compiling tempfile v3.27.0
144
- Compiling ansi_term v0.12.1
350
+ Compiling swc_ecma_testing v27.0.0
351
+ Compiling swc_ecma_codegen v32.0.0
145
352
  Compiling base64 v0.22.1
353
+ Compiling ansi_term v0.12.1
146
354
  Compiling swc_core v77.1.2
147
355
  Compiling swc_plugin_proxy v30.0.0
356
+ Compiling swc_ecma_transforms_base v49.0.1
148
357
  Compiling swc_transform_common v20.0.0
149
- Compiling swc_plugin v1.0.1
150
358
  Compiling swc_plugin_macro v2.0.0
359
+ Compiling swc_plugin v1.0.1
151
360
  Compiling unicode-segmentation v1.13.3
361
+ Compiling swc_ecma_transforms_testing v53.0.0
362
+ Compiling swc_ecma_quote_macros v45.0.1
363
+ Compiling convert_case v0.11.0
152
364
  Compiling sha-1 v0.10.1
153
365
  Compiling sugar_path v1.2.1
154
- Compiling convert_case v0.11.0
155
- Compiling swc_ecma_utils v35.0.0
156
- Compiling swc_ecma_transforms_base v49.0.1
157
- Compiling swc_ecma_codegen v32.0.0
158
- Compiling swc_ecma_transforms_testing v53.0.0
159
366
  Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
160
367
  Compiling swc_plugin_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_compat)
161
368
  Compiling swc_plugin_reactlynx_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/swc-plugin-reactlynx-compat)
162
- Finished `release` profile [optimized] target(s) in 4m 40s
369
+ Finished `release` profile [optimized] target(s) in 2m 13s
@@ -1 +0,0 @@
1
- {"version":3,"file":"processGestureBagkround.js","sourceRoot":"","sources":["../../../src/snapshot/gesture/processGestureBagkround.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2025 The Lynx Authors. All rights reserved.\n// Licensed under the Apache License Version 2.0 that can be found in the\n// LICENSE file in the root directory of this source tree.\nimport type { Worklet } from '@lynx-js/react/worklet-runtime/bindings';\n\nimport { GestureTypeInner } from './types.js';\nimport type { BaseGesture, ComposedGesture, GestureKind } from './types.js';\nimport { onPostWorkletCtx } from '../worklet/ctx.js';\n\nfunction prepareWorkletForCommit(value: Worklet): Worklet | null {\n // Copy-on-commit: keep the background-side gesture/worklet objects clean.\n // `_execId` is injected into the payload object that will be sent to the main thread.\n const copy = { ...(value as unknown as Record<string, unknown>) } as unknown as Worklet;\n return onPostWorkletCtx(copy);\n}\n\nfunction removeUndefinedFields(record: Record<string, unknown>): Record<string, unknown> {\n const filteredEntries = Object.entries(record).filter(([, value]) => value !== undefined);\n return Object.fromEntries(filteredEntries);\n}\n\nfunction serializeCommittedGesture(gesture: GestureKind): Record<string, unknown> {\n if (gesture.type === GestureTypeInner.COMPOSED) {\n const composed = gesture as ComposedGesture;\n return {\n type: composed.type,\n gestures: composed.gestures.map((subGesture) => serializeCommittedGesture(subGesture)),\n __isSerialized: true,\n };\n }\n\n const baseGesture = gesture as BaseGesture;\n return removeUndefinedFields({\n config: baseGesture.config,\n id: baseGesture.id,\n type: baseGesture.type,\n simultaneousWith: baseGesture.simultaneousWith?.map(subGesture => ({\n id: subGesture.id,\n })) ?? [],\n waitFor: baseGesture.waitFor?.map(subGesture => ({ id: subGesture.id })) ?? [],\n continueWith: baseGesture.continueWith?.map(subGesture => ({\n id: subGesture.id,\n })) ?? [],\n callbacks: baseGesture.callbacks,\n __isSerialized: true,\n });\n}\n\nfunction attachCommittedSerializer<TGesture extends GestureKind>(gesture: TGesture): TGesture {\n const serialize = () => serializeCommittedGesture(gesture);\n\n return Object.assign(gesture as Record<string, unknown>, {\n serialize,\n toJSON: serialize,\n }) as TGesture;\n}\n\n/**\n * Prepare a gesture payload to be sent to the main thread.\n *\n * This function returns a copy of the input object and injects `_execId` into\n * its worklet callbacks. The background-side gesture object MUST NOT be mutated,\n * otherwise `_execId` churn would pollute the cached values and cause redundant patches.\n */\nexport function prepareGestureForCommit(gesture: GestureKind): GestureKind {\n if (gesture.type === GestureTypeInner.COMPOSED) {\n const composed = gesture as ComposedGesture;\n const committed: ComposedGesture = {\n ...composed,\n gestures: composed.gestures.map((g) => prepareGestureForCommit(g)),\n };\n return attachCommittedSerializer(committed);\n }\n\n const baseGesture = gesture as BaseGesture;\n const committedCallbacks: BaseGesture['callbacks'] = { ...baseGesture.callbacks };\n for (const name of Object.keys(committedCallbacks)) {\n const callback = committedCallbacks[name];\n if (callback == null) {\n // Some gesture implementations may intentionally leave callbacks unset.\n // Treat null/undefined as \"no handler\" and keep it untouched.\n continue;\n }\n // `onPostWorkletCtx` may report errors and return null depending on runtime configuration.\n // Keep behavior consistent with the previous implementation (which used `!`).\n committedCallbacks[name] = prepareWorkletForCommit(callback)!;\n }\n\n const committed: BaseGesture = {\n ...baseGesture,\n callbacks: committedCallbacks,\n };\n return attachCommittedSerializer(committed);\n}\n"]}
@@ -1 +0,0 @@
1
- export { registerWorkletOnBackground };
@@ -1,28 +0,0 @@
1
- // Copyright 2024 The Lynx Authors. All rights reserved.
2
- // Licensed under the Apache License Version 2.0 that can be found in the
3
- // LICENSE file in the root directory of this source tree.
4
- // import { __globalSnapshotPatch } from '../lifecycle/patch/snapshotPatch.js';
5
- // const workletHashSet: Set<string> = /* @__PURE__ */ new Set();
6
- /* v8 ignore start */
7
- /**
8
- * @internal
9
- */
10
- // disable hmr until bugs are fixed
11
- // TODO: re-enable hmr or change a way to impl it; also need to fix the test case DEV_ONLY_RegisterWorklet
12
- function registerWorkletOnBackground(_type, _hash, _fn) {
13
- // if (workletHashSet.has(hash)) {
14
- // return;
15
- // }
16
- // workletHashSet.add(hash);
17
- // if (__globalSnapshotPatch) {
18
- // __globalSnapshotPatch.push(
19
- // SnapshotOperation.DEV_ONLY_RegisterWorklet,
20
- // hash,
21
- // // We use `Function.prototype.toString` to serialize the function for Lepus.
22
- // fn.toString(),
23
- // );
24
- // }
25
- }
26
- /* v8 ignore stop */
27
- export { registerWorkletOnBackground };
28
- //# sourceMappingURL=hmr.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hmr.js","sourceRoot":"","sources":["../../../src/snapshot/worklet/hmr.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,yEAAyE;AACzE,0DAA0D;AAC1D,+EAA+E;AAE/E,iEAAiE;AAEjE,qBAAqB;AACrB;;GAEG;AACH,mCAAmC;AACnC,0GAA0G;AAC1G,SAAS,2BAA2B,CAClC,KAAa,EACb,KAAa,EACb,GAAoC;IAEpC,kCAAkC;IAClC,YAAY;IACZ,IAAI;IACJ,4BAA4B;IAC5B,+BAA+B;IAC/B,gCAAgC;IAChC,kDAAkD;IAClD,YAAY;IACZ,mFAAmF;IACnF,qBAAqB;IACrB,OAAO;IACP,IAAI;AACN,CAAC;AACD,oBAAoB;AAEpB,OAAO,EAAE,2BAA2B,EAAE,CAAC","sourcesContent":["// Copyright 2024 The Lynx Authors. All rights reserved.\n// Licensed under the Apache License Version 2.0 that can be found in the\n// LICENSE file in the root directory of this source tree.\n// import { __globalSnapshotPatch } from '../lifecycle/patch/snapshotPatch.js';\n\n// const workletHashSet: Set<string> = /* @__PURE__ */ new Set();\n\n/* v8 ignore start */\n/**\n * @internal\n */\n// disable hmr until bugs are fixed\n// TODO: re-enable hmr or change a way to impl it; also need to fix the test case DEV_ONLY_RegisterWorklet\nfunction registerWorkletOnBackground(\n _type: string,\n _hash: string,\n _fn: (...args: unknown[]) => unknown,\n) {\n // if (workletHashSet.has(hash)) {\n // return;\n // }\n // workletHashSet.add(hash);\n // if (__globalSnapshotPatch) {\n // __globalSnapshotPatch.push(\n // SnapshotOperation.DEV_ONLY_RegisterWorklet,\n // hash,\n // // We use `Function.prototype.toString` to serialize the function for Lepus.\n // fn.toString(),\n // );\n // }\n}\n/* v8 ignore stop */\n\nexport { registerWorkletOnBackground };\n"]}
@@ -1,34 +0,0 @@
1
- // Copyright 2024 The Lynx Authors. All rights reserved.
2
- // Licensed under the Apache License Version 2.0 that can be found in the
3
- // LICENSE file in the root directory of this source tree.
4
- // import { __globalSnapshotPatch } from '../lifecycle/patch/snapshotPatch.js';
5
-
6
- // const workletHashSet: Set<string> = /* @__PURE__ */ new Set();
7
-
8
- /* v8 ignore start */
9
- /**
10
- * @internal
11
- */
12
- // disable hmr until bugs are fixed
13
- // TODO: re-enable hmr or change a way to impl it; also need to fix the test case DEV_ONLY_RegisterWorklet
14
- function registerWorkletOnBackground(
15
- _type: string,
16
- _hash: string,
17
- _fn: (...args: unknown[]) => unknown,
18
- ) {
19
- // if (workletHashSet.has(hash)) {
20
- // return;
21
- // }
22
- // workletHashSet.add(hash);
23
- // if (__globalSnapshotPatch) {
24
- // __globalSnapshotPatch.push(
25
- // SnapshotOperation.DEV_ONLY_RegisterWorklet,
26
- // hash,
27
- // // We use `Function.prototype.toString` to serialize the function for Lepus.
28
- // fn.toString(),
29
- // );
30
- // }
31
- }
32
- /* v8 ignore stop */
33
-
34
- export { registerWorkletOnBackground };