@lynx-js/react 0.129.0 → 0.129.2

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 (282) hide show
  1. package/CHANGELOG.md +24 -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/globalProps.test.ts +27 -6
  6. package/runtime/__test__/core/hooks/useLynxGlobalEventListener.test.jsx +1 -1
  7. package/runtime/__test__/element-template/fixtures/gesture/direct/index.tsx +33 -0
  8. package/runtime/__test__/element-template/fixtures/spread/mts/index.tsx +197 -0
  9. package/runtime/__test__/element-template/imports/no-legacy-imports.test.ts +7 -6
  10. package/runtime/__test__/element-template/internal/legacy-internal-guardrail.test.ts +1 -2
  11. package/runtime/__test__/element-template/native/callDestroyLifetimeFun.test.ts +89 -3
  12. package/runtime/__test__/element-template/native/main-thread-api.test.ts +5 -2
  13. package/runtime/__test__/element-template/native/mts-destroy.test.ts +88 -0
  14. package/runtime/__test__/element-template/native/reload-dual-thread-communication.test.ts +3 -0
  15. package/runtime/__test__/element-template/native/reload.test.ts +118 -2
  16. package/runtime/__test__/element-template/runtime/background/global-props/compiled-fixtures.test.tsx +5 -5
  17. package/runtime/__test__/element-template/runtime/background/global-props.test.tsx +1 -1
  18. package/runtime/__test__/element-template/runtime/background/hydrate.test.ts +70 -0
  19. package/runtime/__test__/element-template/runtime/background/ref/compiled-fixtures.test.tsx +3 -4
  20. package/runtime/__test__/element-template/runtime/background/reload.test.ts +74 -0
  21. package/runtime/__test__/element-template/runtime/background/update-timing.test.ts +15 -0
  22. package/runtime/__test__/element-template/runtime/patch/element-template-patch.test.tsx +212 -7
  23. package/runtime/__test__/element-template/runtime/patch/update-timing.test.ts +4 -1
  24. package/runtime/__test__/element-template/runtime/prop-adapters/gesture-compiled.test.ts +200 -0
  25. package/runtime/__test__/element-template/runtime/prop-adapters/gesture.test.ts +420 -0
  26. package/runtime/__test__/element-template/runtime/prop-adapters/spread-mts-compiled.test.ts +527 -0
  27. package/runtime/__test__/element-template/runtime/prop-adapters/spread.test.ts +185 -6
  28. package/runtime/__test__/element-template/runtime/render/render-direct-native.test.tsx +21 -1
  29. package/runtime/__test__/element-template/runtime/render/render-direct-suspense.test.ts +4 -1
  30. package/runtime/__test__/element-template/runtime/render/render-direct.test.ts +4 -1
  31. package/runtime/__test__/element-template/runtime/render/render-main-thread.test.ts +101 -1
  32. package/runtime/__test__/element-template/runtime/template/element-template-handle.test.ts +32 -0
  33. package/runtime/__test__/element-template/runtime/template/main-thread-dynamic-attr-state.test.ts +309 -26
  34. package/runtime/__test__/element-template/test-utils/debug/envManager.ts +8 -5
  35. package/runtime/__test__/element-template/test-utils/mock/mockNativePapi.ts +35 -2
  36. package/runtime/__test__/guardrails/snapshot-containment.test.ts +45 -11
  37. package/runtime/__test__/shared/component-stack.test.ts +211 -0
  38. package/runtime/__test__/snapshot/debug/formatPatch.test.ts +0 -8
  39. package/runtime/__test__/snapshot/gesture/prepareGestureForCommit.test.js +1 -1
  40. package/runtime/__test__/snapshot/lifecycle/updateGlobalProps.event.test.jsx +2 -2
  41. package/runtime/__test__/snapshot/lifecycle/updateGlobalProps.test.jsx +3 -3
  42. package/runtime/__test__/snapshot/lynx/timing.test.jsx +3 -0
  43. package/runtime/__test__/snapshot/preact.test.jsx +0 -3
  44. package/runtime/__test__/snapshot/ref.test.jsx +30 -0
  45. package/runtime/__test__/snapshot/snapshotPatch.test.jsx +0 -33
  46. package/runtime/__test__/worklet-runtime/jsFunctionLifecycle.test.js +12 -0
  47. package/runtime/__test__/worklet-runtime/loadRuntime.test.js +68 -0
  48. package/runtime/__test__/worklet-runtime/workletRuntime.test.js +30 -0
  49. package/runtime/lazy/element-template-internal.js +1 -1
  50. package/runtime/lazy/internal.js +1 -1
  51. package/runtime/lazy/jsx-dev-runtime.js +1 -1
  52. package/runtime/lazy/jsx-runtime.js +1 -1
  53. package/runtime/lazy/legacy-react-runtime.js +1 -1
  54. package/runtime/lazy/react-lepus.js +1 -1
  55. package/runtime/lazy/react.js +1 -1
  56. package/runtime/lib/core/capture-main-thread-object.js +2 -1
  57. package/runtime/lib/core/capture-main-thread-object.js.map +1 -1
  58. package/runtime/lib/core/compat/legacy-react-runtime.js +1 -1
  59. package/runtime/lib/core/compat/legacy-react-runtime.js.map +1 -1
  60. package/runtime/lib/core/globalProps.js +1 -1
  61. package/runtime/lib/core/globalProps.js.map +1 -1
  62. package/runtime/lib/core/lynx/lazy-bundle.js +1 -1
  63. package/runtime/lib/core/lynx/lazy-bundle.js.map +1 -1
  64. package/runtime/lib/core/lynx-data-processors.d.ts +125 -1
  65. package/runtime/lib/core/lynx-data-processors.js +3 -0
  66. package/runtime/lib/core/lynx-data-processors.js.map +1 -1
  67. package/runtime/lib/core/runtime-destroy.js +1 -1
  68. package/runtime/lib/core/runtime-destroy.js.map +1 -1
  69. package/runtime/lib/document.js +0 -5
  70. package/runtime/lib/document.js.map +1 -1
  71. package/runtime/lib/element-template/background/attr-slots.js +5 -2
  72. package/runtime/lib/element-template/background/attr-slots.js.map +1 -1
  73. package/runtime/lib/element-template/background/commit-hook.js +11 -12
  74. package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
  75. package/runtime/lib/element-template/background/destroy.js +16 -11
  76. package/runtime/lib/element-template/background/destroy.js.map +1 -1
  77. package/runtime/lib/element-template/background/hydrate.js +23 -0
  78. package/runtime/lib/element-template/background/hydrate.js.map +1 -1
  79. package/runtime/lib/element-template/client/root.d.ts +1 -1
  80. package/runtime/lib/element-template/client/root.js.map +1 -1
  81. package/runtime/lib/element-template/debug/alog.d.ts +1 -1
  82. package/runtime/lib/element-template/debug/alog.js +4 -1
  83. package/runtime/lib/element-template/debug/alog.js.map +1 -1
  84. package/runtime/lib/element-template/index.d.ts +2 -2
  85. package/runtime/lib/element-template/index.js.map +1 -1
  86. package/runtime/lib/element-template/internal.d.ts +2 -2
  87. package/runtime/lib/element-template/internal.js +1 -14
  88. package/runtime/lib/element-template/internal.js.map +1 -1
  89. package/runtime/lib/element-template/lynx/env.js.map +1 -1
  90. package/runtime/lib/element-template/native/callDestroyLifetimeFun.js +6 -1
  91. package/runtime/lib/element-template/native/callDestroyLifetimeFun.js.map +1 -1
  92. package/runtime/lib/element-template/native/flush.d.ts +1 -0
  93. package/runtime/lib/element-template/native/flush.js +9 -0
  94. package/runtime/lib/element-template/native/flush.js.map +1 -0
  95. package/runtime/lib/element-template/native/main-thread-api.js +3 -7
  96. package/runtime/lib/element-template/native/main-thread-api.js.map +1 -1
  97. package/runtime/lib/element-template/native/mts-destroy.js +8 -2
  98. package/runtime/lib/element-template/native/mts-destroy.js.map +1 -1
  99. package/runtime/lib/element-template/native/patch-listener.js +57 -50
  100. package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
  101. package/runtime/lib/element-template/native/reload-background.js +1 -1
  102. package/runtime/lib/element-template/native/reload-background.js.map +1 -1
  103. package/runtime/lib/element-template/native/reload-main-thread.js +35 -10
  104. package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
  105. package/runtime/lib/element-template/prop-adapters/gesture.d.ts +23 -0
  106. package/runtime/lib/element-template/prop-adapters/gesture.js +97 -0
  107. package/runtime/lib/element-template/prop-adapters/gesture.js.map +1 -0
  108. package/runtime/lib/element-template/prop-adapters/spread.d.ts +6 -1
  109. package/runtime/lib/element-template/prop-adapters/spread.js +72 -2
  110. package/runtime/lib/element-template/prop-adapters/spread.js.map +1 -1
  111. package/runtime/lib/element-template/protocol/opcodes.d.ts +1 -0
  112. package/runtime/lib/element-template/protocol/opcodes.js +1 -0
  113. package/runtime/lib/element-template/protocol/opcodes.js.map +1 -1
  114. package/runtime/lib/element-template/protocol/types.d.ts +7 -1
  115. package/runtime/lib/element-template/protocol/types.js.map +1 -1
  116. package/runtime/lib/element-template/runtime/page/root-instance.d.ts +0 -1
  117. package/runtime/lib/element-template/runtime/page/root-instance.js.map +1 -1
  118. package/runtime/lib/element-template/runtime/patch.js +31 -2
  119. package/runtime/lib/element-template/runtime/patch.js.map +1 -1
  120. package/runtime/lib/element-template/runtime/render/render-components.js +4 -4
  121. package/runtime/lib/element-template/runtime/render/render-components.js.map +1 -1
  122. package/runtime/lib/element-template/runtime/render/render-main-thread.js +2 -0
  123. package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
  124. package/runtime/lib/element-template/runtime/template/attr-slot-plan.d.ts +4 -2
  125. package/runtime/lib/element-template/runtime/template/attr-slot-plan.js +17 -4
  126. package/runtime/lib/element-template/runtime/template/attr-slot-plan.js.map +1 -1
  127. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js +8 -1
  128. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js.map +1 -1
  129. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.d.ts +7 -1
  130. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js +380 -50
  131. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js.map +1 -1
  132. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.d.ts +3 -2
  133. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js +10 -1
  134. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js.map +1 -1
  135. package/runtime/lib/element-template/runtime/template/typed-attributes.js +3 -3
  136. package/runtime/lib/element-template/runtime/template/typed-attributes.js.map +1 -1
  137. package/runtime/lib/internal.d.ts +1 -1
  138. package/runtime/lib/internal.js +1 -1
  139. package/runtime/lib/internal.js.map +1 -1
  140. package/runtime/lib/lynx-api.d.ts +2 -125
  141. package/runtime/lib/lynx-api.js.map +1 -1
  142. package/runtime/lib/shared/component-stack.d.ts +0 -4
  143. package/runtime/lib/shared/component-stack.js +21 -5
  144. package/runtime/lib/shared/component-stack.js.map +1 -1
  145. package/runtime/lib/snapshot/gesture/{processGestureBagkround.js → processGestureBackground.js} +1 -1
  146. package/runtime/lib/snapshot/gesture/processGestureBackground.js.map +1 -0
  147. package/runtime/lib/snapshot/lifecycle/destroy.js +23 -17
  148. package/runtime/lib/snapshot/lifecycle/destroy.js.map +1 -1
  149. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.d.ts +0 -1
  150. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js +0 -5
  151. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js.map +1 -1
  152. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js +0 -10
  153. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js.map +1 -1
  154. package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js +56 -51
  155. package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
  156. package/runtime/lib/snapshot/lifecycle/ref/delay.d.ts +5 -0
  157. package/runtime/lib/snapshot/lifecycle/ref/delay.js +1 -1
  158. package/runtime/lib/snapshot/lifecycle/ref/delay.js.map +1 -1
  159. package/runtime/lib/snapshot/list/listUpdateInfo.js +0 -30
  160. package/runtime/lib/snapshot/list/listUpdateInfo.js.map +1 -1
  161. package/runtime/lib/snapshot/lynx/calledByNative.js +11 -8
  162. package/runtime/lib/snapshot/lynx/calledByNative.js.map +1 -1
  163. package/runtime/lib/snapshot/renderToOpcodes/hydrate.js +0 -52
  164. package/runtime/lib/snapshot/renderToOpcodes/hydrate.js.map +1 -1
  165. package/runtime/lib/snapshot/renderToOpcodes/index.js +10 -10
  166. package/runtime/lib/snapshot/renderToOpcodes/index.js.map +1 -1
  167. package/runtime/lib/snapshot/renderToOpcodes/opcodes.js +0 -51
  168. package/runtime/lib/snapshot/renderToOpcodes/opcodes.js.map +1 -1
  169. package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js +1 -1
  170. package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js.map +1 -1
  171. package/runtime/lib/tsconfig.tsbuildinfo +1 -1
  172. package/runtime/lib/worklet-runtime/bindings/index.d.ts +1 -0
  173. package/runtime/lib/worklet-runtime/bindings/index.js +1 -0
  174. package/runtime/lib/worklet-runtime/bindings/index.js.map +1 -1
  175. package/runtime/lib/worklet-runtime/bindings/loadRuntime.d.ts +8 -0
  176. package/runtime/lib/worklet-runtime/bindings/loadRuntime.js +23 -0
  177. package/runtime/lib/worklet-runtime/bindings/loadRuntime.js.map +1 -0
  178. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.d.ts +2 -0
  179. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js +6 -0
  180. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js.map +1 -1
  181. package/runtime/lib/worklet-runtime/workletRuntime.js +2 -0
  182. package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
  183. package/runtime/package.json +2 -3
  184. package/runtime/src/core/capture-main-thread-object.ts +2 -1
  185. package/runtime/src/core/compat/legacy-react-runtime.ts +1 -1
  186. package/runtime/src/core/globalProps.ts +1 -1
  187. package/runtime/src/core/lynx/lazy-bundle.ts +1 -1
  188. package/runtime/src/core/lynx-data-processors.ts +124 -1
  189. package/runtime/src/core/runtime-destroy.ts +1 -1
  190. package/runtime/src/document.ts +0 -6
  191. package/runtime/src/element-template/background/attr-slots.ts +5 -1
  192. package/runtime/src/element-template/background/commit-hook.ts +18 -12
  193. package/runtime/src/element-template/background/destroy.ts +16 -13
  194. package/runtime/src/element-template/background/hydrate.ts +23 -0
  195. package/runtime/src/element-template/client/root.ts +1 -3
  196. package/runtime/src/element-template/debug/alog.ts +5 -2
  197. package/runtime/src/element-template/index.ts +2 -2
  198. package/runtime/src/element-template/internal.ts +1 -20
  199. package/runtime/src/element-template/lynx/env.ts +1 -1
  200. package/runtime/src/element-template/native/callDestroyLifetimeFun.ts +5 -1
  201. package/runtime/src/element-template/native/flush.ts +10 -0
  202. package/runtime/src/element-template/native/main-thread-api.ts +3 -6
  203. package/runtime/src/element-template/native/mts-destroy.ts +7 -2
  204. package/runtime/src/element-template/native/patch-listener.ts +62 -57
  205. package/runtime/src/element-template/native/reload-background.ts +1 -1
  206. package/runtime/src/element-template/native/reload-main-thread.ts +32 -11
  207. package/runtime/src/element-template/prop-adapters/gesture.ts +144 -0
  208. package/runtime/src/element-template/prop-adapters/spread.ts +110 -2
  209. package/runtime/src/element-template/protocol/opcodes.ts +1 -0
  210. package/runtime/src/element-template/protocol/types.ts +8 -13
  211. package/runtime/src/element-template/runtime/page/root-instance.ts +0 -1
  212. package/runtime/src/element-template/runtime/patch.ts +38 -0
  213. package/runtime/src/element-template/runtime/render/render-components.ts +3 -3
  214. package/runtime/src/element-template/runtime/render/render-main-thread.ts +2 -0
  215. package/runtime/src/element-template/runtime/template/attr-slot-plan.ts +31 -4
  216. package/runtime/src/element-template/runtime/template/main-thread-background-function.ts +8 -1
  217. package/runtime/src/element-template/runtime/template/main-thread-dynamic-attr-state.ts +456 -50
  218. package/runtime/src/element-template/runtime/template/main-thread-ref-ctx.ts +14 -4
  219. package/runtime/src/element-template/runtime/template/typed-attributes.ts +3 -3
  220. package/runtime/src/element-template/types.d.ts +6 -0
  221. package/runtime/src/internal.ts +1 -1
  222. package/runtime/src/lynx-api.ts +2 -124
  223. package/runtime/src/shared/component-stack.ts +22 -5
  224. package/runtime/src/snapshot/lifecycle/destroy.ts +23 -18
  225. package/runtime/src/snapshot/lifecycle/patch/snapshotPatch.ts +0 -5
  226. package/runtime/src/snapshot/lifecycle/patch/snapshotPatchApply.ts +0 -10
  227. package/runtime/src/snapshot/lifecycle/patch/updateMainThread.ts +62 -58
  228. package/runtime/src/snapshot/lifecycle/ref/delay.ts +1 -1
  229. package/runtime/src/snapshot/list/listUpdateInfo.ts +0 -52
  230. package/runtime/src/snapshot/lynx/calledByNative.ts +11 -9
  231. package/runtime/src/snapshot/renderToOpcodes/hydrate.ts +0 -58
  232. package/runtime/src/snapshot/renderToOpcodes/index.ts +8 -8
  233. package/runtime/src/snapshot/renderToOpcodes/opcodes.ts +0 -57
  234. package/runtime/src/snapshot/snapshot/backgroundSnapshot.ts +1 -1
  235. package/runtime/src/worklet-runtime/README.md +30 -10
  236. package/runtime/src/worklet-runtime/bindings/index.ts +2 -0
  237. package/runtime/src/worklet-runtime/bindings/loadRuntime.ts +25 -0
  238. package/runtime/src/worklet-runtime/jsFunctionLifecycle.ts +6 -0
  239. package/runtime/src/worklet-runtime/workletRuntime.ts +2 -0
  240. package/runtime/types/types.d.ts +2 -1
  241. package/runtime/vitest.config.ts +0 -2
  242. package/testing-library/.turbo/turbo-build.log +7 -7
  243. package/testing-library/src/__tests__/act.test.jsx +0 -7
  244. package/testing-library/src/__tests__/alog.test.jsx +12 -54
  245. package/testing-library/src/__tests__/end-to-end.test.jsx +0 -7
  246. package/testing-library/src/__tests__/renderComponent.test.jsx +0 -14
  247. package/testing-library/src/__tests__/worklet.test.jsx +49 -0
  248. package/transform/.turbo/turbo-build$colon$wasm.log +133 -297
  249. package/transform/__test__/defines.spec.js +30 -0
  250. package/transform/__test__/fixture.spec.js +11 -11
  251. package/transform/__test__/main-thread-object-compat.spec.js +111 -0
  252. package/transform/__test__/object-methods.spec.js +79 -0
  253. package/transform/crates/swc_plugin_element_template/lib.rs +11 -0
  254. package/transform/crates/swc_plugin_element_template/tests/element_template_contract.rs +113 -0
  255. package/transform/crates/swc_plugin_worklet/extract_ident.rs +99 -49
  256. package/transform/crates/swc_plugin_worklet/gen_stmt.rs +63 -57
  257. package/transform/crates/swc_plugin_worklet/lib.rs +393 -589
  258. package/transform/crates/swc_plugin_worklet/napi.rs +4 -6
  259. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_js.js +3 -3
  260. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_lepus.js +3 -3
  261. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_js.js +11 -6
  262. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +12 -6
  263. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_js.js +14 -5
  264. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +17 -6
  265. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_js.js +5 -5
  266. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +5 -5
  267. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_js.js +1 -1
  268. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus.js +1 -1
  269. package/transform/dist/wasm.cjs +1 -1
  270. package/transform/package.json +0 -1
  271. package/transform/src/lib.rs +1 -1
  272. package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +167 -69
  273. package/transform/swc-plugin-reactlynx/src/lib.rs +1 -4
  274. package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
  275. package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +226 -132
  276. package/runtime/lib/snapshot/gesture/processGestureBagkround.js.map +0 -1
  277. package/runtime/lib/snapshot/worklet/hmr.d.ts +0 -1
  278. package/runtime/lib/snapshot/worklet/hmr.js +0 -28
  279. package/runtime/lib/snapshot/worklet/hmr.js.map +0 -1
  280. package/runtime/src/snapshot/worklet/hmr.ts +0 -34
  281. /package/runtime/lib/snapshot/gesture/{processGestureBagkround.d.ts → processGestureBackground.d.ts} +0 -0
  282. /package/runtime/src/snapshot/gesture/{processGestureBagkround.ts → processGestureBackground.ts} +0 -0
@@ -1,162 +1,256 @@
1
1
  $ node ./build.js
2
+ Updating crates.io index
2
3
  Blocking waiting for file lock on package cache
3
4
  Blocking waiting for file lock on package cache
5
+ Downloading crates ...
6
+ Downloaded from_variant v3.0.0
7
+ Downloaded itoa v1.0.18
8
+ Downloaded errno v0.3.14
9
+ Downloaded find-msvc-tools v0.1.9
10
+ Downloaded form_urlencoded v1.2.2
11
+ Downloaded fastrand v2.5.0
12
+ Downloaded lazy_static v1.5.0
13
+ Downloaded funty v2.0.0
14
+ Downloaded radium v0.7.0
15
+ Downloaded is-macro v0.3.7
16
+ Downloaded idna_adapter v1.2.2
17
+ Downloaded if_chain v1.0.3
18
+ Downloaded matchers v0.2.0
19
+ Downloaded miette-derive v7.6.0
20
+ Downloaded new_debug_unreachable v1.0.6
21
+ Downloaded num_cpus v1.17.0
22
+ Downloaded outref v0.5.2
23
+ Downloaded par-core v2.0.0
24
+ Downloaded percent-encoding v2.3.2
25
+ Downloaded phf_generator v0.11.3
26
+ Downloaded phf_shared v0.11.3
27
+ Downloaded potential_utf v0.1.5
28
+ Downloaded rustc-hash v2.1.3
29
+ Downloaded swc_ecma_quote_macros v45.0.1
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
39
+ Downloaded scopeguard v1.2.0
40
+ Downloaded siphasher v0.3.11
41
+ Downloaded stable_deref_trait v1.2.1
42
+ Downloaded swc_atoms v10.0.0
43
+ Downloaded swc_ecma_codegen_macros v2.0.2
44
+ Downloaded thiserror-impl v1.0.69
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
50
+ Downloaded scoped-tls v1.0.1
51
+ Downloaded seq-macro v0.3.6
52
+ Downloaded sha-1 v0.10.1
53
+ Downloaded swc_allocator v5.0.0
54
+ Downloaded swc_ecma_testing v27.0.0
55
+ Downloaded swc_error_reporters v28.0.0
56
+ Downloaded unicode-ident v1.0.24
57
+ Downloaded glob v0.3.4
58
+ Downloaded litemap v0.8.2
59
+ Downloaded owo-colors v4.3.0
60
+ Downloaded rustversion v1.0.23
61
+ Downloaded shlex v2.0.1
62
+ Downloaded siphasher v1.0.3
63
+ Downloaded static_assertions v1.1.0
64
+ Downloaded string_enum v1.0.2
65
+ Downloaded sugar_path v1.2.1
66
+ Downloaded swc_macros_common v1.0.1
67
+ Downloaded swc_plugin v1.0.1
68
+ Downloaded tap v1.0.1
69
+ Downloaded zerofrom v0.1.8
70
+ Downloaded getrandom v0.4.3
71
+ Downloaded hstr v4.0.0
72
+ Downloaded lock_api v0.4.14
73
+ Downloaded num-traits v0.2.19
74
+ Downloaded once_cell v1.21.4
75
+ Downloaded parking_lot v0.12.5
76
+ Downloaded parking_lot_core v0.9.12
77
+ Downloaded pin-project-lite v0.2.17
78
+ Downloaded quote v1.0.47
79
+ Downloaded serde_core v1.0.229
80
+ Downloaded serde_derive v1.0.229
81
+ Downloaded sha2 v0.10.9
82
+ Downloaded smallvec v1.15.2
83
+ Downloaded stacker v0.1.24
84
+ Downloaded base64-simd v0.8.0
85
+ Downloaded icu_collections v2.2.0
86
+ Downloaded icu_normalizer v2.2.0
87
+ Downloaded icu_properties v2.2.0
88
+ Downloaded icu_provider v2.2.0
89
+ Downloaded log v0.4.33
90
+ 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
+ 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
+ Downloaded swc_common v26.0.0
109
+ Downloaded cfg-if v1.0.4
110
+ Downloaded miette v7.6.0
111
+ Downloaded num-bigint v0.4.8
112
+ Downloaded swc_ecma_transforms_base v49.0.1
113
+ Downloaded hashbrown v0.14.5
114
+ Downloaded regex v1.13.1
115
+ Downloaded swc_plugin_proxy v30.0.0
116
+ Downloaded swc_visit v2.0.2
117
+ Downloaded version_check v0.9.5
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
125
+ 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
+ Downloaded serde_json v1.0.151
134
+ Downloaded swc_ecma_parser v45.1.1
135
+ Downloaded swc_eq_ignore_macros v1.0.1
136
+ Downloaded vsimd v0.8.0
137
+ Downloaded wyz v0.5.1
138
+ Downloaded zerovec-derive v0.11.3
139
+ Downloaded tracing-log v0.2.0
140
+ Downloaded camino v1.2.4
141
+ Downloaded cargo_metadata v0.18.1
142
+ Downloaded convert_case v0.11.0
143
+ Downloaded data-encoding v2.11.0
144
+ Downloaded digest v0.10.7
145
+ Downloaded displaydoc v0.2.6
146
+ Downloaded either v1.17.0
147
+ Downloaded swc_transform_common v20.0.0
148
+ Downloaded synstructure v0.13.2
149
+ Downloaded termcolor v1.4.1
150
+ Downloaded testing v27.0.0
151
+ Downloaded testing_macros v1.0.2
152
+ Downloaded tracing-attributes v0.1.31
153
+ Downloaded triomphe v0.1.16
154
+ Downloaded writeable v0.6.3
155
+ Downloaded yoke v0.8.3
156
+ Downloaded zmij v1.0.23
157
+ Downloaded ahash v0.8.12
158
+ Downloaded ansi_term v0.12.1
159
+ Downloaded anyhow v1.0.104
160
+ Downloaded ascii v1.1.0
161
+ Downloaded cbor4ii v1.2.2
162
+ Downloaded diff v0.1.13
163
+ Downloaded tracing-core v0.1.36
164
+ Downloaded unicode-id-start v1.4.0
165
+ Downloaded uuid v1.24.0
166
+ Downloaded allocator-api2 v0.2.21
167
+ 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
+ Downloaded url v2.5.8
174
+ Downloaded yansi v1.0.1
175
+ Downloaded tempfile v3.27.0
176
+ Downloaded ar_archive_writer v0.5.2
177
+ 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
+ Downloaded bumpalo v3.20.3
183
+ Downloaded object v0.37.3
184
+ Downloaded swc_sourcemap v10.0.2
185
+ Downloaded rustix v1.1.4
186
+ Downloaded zerovec v0.11.6
187
+ Downloaded difference v2.0.0
188
+ Downloaded aho-corasick v1.1.4
189
+ Downloaded tracing-subscriber v0.3.23
190
+ Downloaded bitvec v1.1.1
191
+ Downloaded unicode-width v0.1.14
192
+ Downloaded libc v0.2.189
193
+ Downloaded unicode-width v0.2.2
194
+ Downloaded zerocopy v0.8.55
195
+ Downloaded syn v3.0.3
196
+ Downloaded regex-syntax v0.8.11
197
+ Downloaded swc_ecma_visit v29.0.0
198
+ Downloaded syn v2.0.119
199
+ Downloaded tracing v0.1.44
200
+ Downloaded regex-automata v0.4.16
201
+ Downloaded linux-raw-sys v0.12.1
4
202
  Blocking waiting for file lock on package cache
5
203
  Blocking waiting for file lock on build directory
6
- Compiling stable_deref_trait v1.2.1
7
- Compiling cfg-if v1.0.4
8
- Compiling zerofrom v0.1.8
9
- Compiling serde_core v1.0.229
10
- Compiling once_cell v1.21.4
11
- Compiling serde v1.0.229
12
- Compiling smallvec v1.15.2
13
- Compiling yoke v0.8.3
14
- Compiling memchr v2.8.3
15
- Compiling writeable v0.6.3
16
204
  Compiling zerovec v0.11.6
17
- Compiling litemap v0.8.2
18
- Compiling zerotrie v0.2.4
19
- 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
205
  Compiling ahash v0.8.12
24
- Compiling allocator-api2 v0.2.21
206
+ Compiling hashbrown v0.17.1
207
+ Compiling either v1.17.0
208
+ Compiling hashbrown v0.14.5
209
+ Compiling swc_visit v2.0.2
210
+ Compiling aho-corasick v1.1.4
25
211
  Compiling tinystr v0.8.3
26
- Compiling icu_locale_core v2.2.0
27
212
  Compiling potential_utf v0.1.5
213
+ Compiling icu_locale_core v2.2.0
28
214
  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
215
+ Compiling indexmap v2.14.0
216
+ Compiling hstr v4.0.0
217
+ Compiling serde_json v1.0.151
32
218
  Compiling icu_provider v2.2.0
33
219
  Compiling icu_normalizer v2.2.0
34
220
  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
- Compiling tap v1.0.1
45
- Compiling parking_lot_core v0.9.12
46
- Compiling form_urlencoded v1.2.2
47
- Compiling wyz v0.5.1
48
- Compiling idna v1.1.0
49
- Compiling hashbrown v0.14.5
50
- Compiling triomphe v0.1.16
51
- 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
- Compiling vsimd v0.8.0
57
- Compiling uuid v1.24.0
58
- Compiling funty v2.0.0
59
- Compiling scopeguard v1.2.0
60
- Compiling lock_api v0.4.14
61
- Compiling bytes-str v0.2.8
62
- Compiling base64-simd v0.8.0
63
- Compiling debugid v0.8.0
64
- Compiling tracing v0.1.44
65
- Compiling hstr v4.0.0
66
- Compiling bitvec v1.1.1
67
- Compiling num-integer v0.1.46
68
- Compiling url v2.5.8
69
- Compiling anyhow v1.0.104
70
- Compiling cbor4ii v1.2.2
71
- Compiling either v1.17.0
72
- Compiling if_chain v1.0.3
73
- Compiling scoped-tls v1.0.1
74
- Compiling data-encoding v2.11.0
75
- Compiling unicode-id-start v1.4.0
76
221
  Compiling swc_atoms v10.0.0
77
- Compiling better_scoped_tls v1.0.1
78
- Compiling swc_visit v2.0.2
79
- Compiling parking_lot v0.12.5
80
- Compiling num-bigint v0.4.8
81
- Compiling siphasher v0.3.11
82
- Compiling swc_sourcemap v10.0.2
83
- Compiling termcolor v1.4.1
84
- Compiling siphasher v1.0.3
85
- Compiling bitflags v2.13.1
86
- Compiling libc v0.2.189
87
- Compiling phf_shared v0.11.3
88
- Compiling generic-array v0.14.7
89
- Compiling phf v0.11.3
90
- Compiling aho-corasick v1.1.4
91
222
  Compiling typenum v1.20.1
92
- Compiling swc_common v26.0.0
93
- Compiling regex-syntax v0.8.11
94
- Compiling owo-colors v4.3.0
95
- Compiling unicode-linebreak v0.1.5
96
223
  Compiling regex-automata v0.4.16
97
- Compiling swc_ecma_ast v29.0.0
98
- Compiling camino v1.2.4
99
- Compiling thiserror v1.0.69
100
- Compiling textwrap v0.16.2
101
- Compiling dragonbox_ecma v0.1.12
224
+ Compiling generic-array v0.14.7
225
+ Compiling cargo_metadata v0.18.1
226
+ Compiling idna_adapter v1.2.2
227
+ Compiling idna v1.1.0
102
228
  Compiling block-buffer v0.10.4
103
229
  Compiling crypto-common v0.1.7
104
- 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
108
- Compiling log v0.4.33
109
- Compiling static_assertions v1.1.0
110
- Compiling compact_str v0.7.1
111
- Compiling tracing-log v0.2.0
112
- Compiling miette v7.6.0
113
- Compiling regex v1.13.1
114
- Compiling matchers v0.2.0
115
- Compiling sharded-slab v0.1.7
116
230
  Compiling digest v0.10.7
117
- Compiling num_cpus v1.17.0
118
- Compiling cargo-platform v0.1.9
119
- Compiling semver v1.0.28
120
- Compiling par-core v2.0.0
121
- Compiling thread_local v1.1.10
122
- Compiling rustix v1.1.4
123
- Compiling nu-ansi-term v0.50.3
124
- Compiling diff v0.1.13
125
- Compiling yansi v1.0.1
126
- Compiling getrandom v0.4.3
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
+ Compiling regex v1.13.1
127
239
  Compiling tracing-subscriber v0.3.23
128
- Compiling pretty_assertions v1.4.1
129
- Compiling cargo_metadata v0.18.1
130
- Compiling swc_ecma_visit v29.0.0
240
+ Compiling swc_common v26.0.0
241
+ Compiling swc_ecma_ast v29.0.0
131
242
  Compiling swc_error_reporters v28.0.0
132
- Compiling errno v0.3.14
133
- Compiling bumpalo v3.20.3
134
- Compiling difference v2.0.0
135
- Compiling swc_allocator v5.0.0
136
243
  Compiling testing v27.0.0
137
- Compiling swc_ecma_parser v45.1.1
138
- Compiling sha2 v0.10.9
139
- Compiling fastrand v2.5.0
140
- Compiling ascii v1.1.0
141
- Compiling hex v0.4.3
142
244
  Compiling swc_ecma_testing v27.0.0
143
- Compiling tempfile v3.27.0
144
- Compiling ansi_term v0.12.1
145
- Compiling base64 v0.22.1
146
- Compiling swc_core v77.1.2
147
- Compiling swc_plugin_proxy v30.0.0
148
245
  Compiling swc_transform_common v20.0.0
149
- Compiling swc_plugin v1.0.1
150
- Compiling swc_plugin_macro v2.0.0
151
- Compiling unicode-segmentation v1.13.3
152
- Compiling sha-1 v0.10.1
153
- Compiling sugar_path v1.2.1
154
- Compiling convert_case v0.11.0
246
+ Compiling swc_ecma_visit v29.0.0
247
+ Compiling swc_ecma_parser v45.1.1
248
+ Compiling swc_plugin_proxy v30.0.0
155
249
  Compiling swc_ecma_utils v35.0.0
156
- Compiling swc_ecma_transforms_base v49.0.1
157
250
  Compiling swc_ecma_codegen v32.0.0
251
+ Compiling swc_ecma_transforms_base v49.0.1
158
252
  Compiling swc_ecma_transforms_testing v53.0.0
159
253
  Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
160
254
  Compiling swc_plugin_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_compat)
161
255
  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
256
+ Finished `release` profile [optimized] target(s) in 6m 37s
@@ -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 };