@lynx-js/react 0.126.2 → 0.128.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (425) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/components/tsconfig.tsbuildinfo +1 -1
  3. package/docs/directives.md +90 -0
  4. package/docs/global-events.md +50 -0
  5. package/docs/import-attributes.md +43 -0
  6. package/docs/macros.md +285 -0
  7. package/package.json +7 -14
  8. package/refresh/.turbo/turbo-build.log +2 -2
  9. package/refresh/dist/index.js +26 -6
  10. package/refresh/package.json +1 -1
  11. package/runtime/__test__/core/main-thread-object.test.js +149 -0
  12. package/runtime/__test__/element-template/fixtures/background/main-thread-function/run-on-main-thread/index.tsx +26 -3
  13. package/runtime/__test__/element-template/imports/main-thread-object-api.test.ts +10 -0
  14. package/runtime/__test__/element-template/internal/legacy-internal-guardrail.test.ts +4 -1
  15. package/runtime/__test__/element-template/runtime/background/event/compiled-fixtures.test.tsx +39 -48
  16. package/runtime/__test__/element-template/runtime/background/main-thread-function/compiled-fixtures.test.tsx +11 -9
  17. package/runtime/__test__/element-template/runtime/render/render-transform.contract.test.ts +6 -3
  18. package/runtime/__test__/element-template/test-utils/mock/globals.js +6 -0
  19. package/runtime/__test__/element-template/vitest.config.ts +4 -0
  20. package/runtime/__test__/snapshot/ctxNotFound.test.ts +271 -0
  21. package/runtime/__test__/snapshot/event.test.jsx +7 -7
  22. package/runtime/__test__/snapshot/lazy.test.js +73 -1
  23. package/runtime/__test__/snapshot/lynx/portals.test.jsx +75 -37
  24. package/runtime/__test__/snapshot/snapshotPatch.test.jsx +59 -47
  25. package/runtime/__test__/snapshot/spread.test.jsx +10 -10
  26. package/runtime/__test__/snapshot/worklet/main-thread-object.test.jsx +306 -0
  27. package/runtime/__test__/snapshot/worklet/workletRef.test.jsx +1 -0
  28. package/runtime/__test__/worklet-runtime/initEntry.test.js +109 -0
  29. package/runtime/__test__/worklet-runtime/mainThreadObject.test.js +182 -0
  30. package/runtime/__test__/worklet-runtime/object-methods.test.js +59 -0
  31. package/runtime/__test__/worklet-runtime/workletRef.test.js +362 -2
  32. package/runtime/__test__/worklet-runtime/workletRuntime.test.js +246 -1
  33. package/runtime/lazy/compat.js +2 -0
  34. package/runtime/lazy/element-template-internal.js +1 -1
  35. package/runtime/lazy/element-template.js +2 -0
  36. package/runtime/lazy/internal.js +2 -1
  37. package/runtime/lazy/react.js +2 -0
  38. package/runtime/lib/core/background-function/exec-map.js.map +1 -1
  39. package/runtime/lib/core/background-function/handle.js.map +1 -1
  40. package/runtime/lib/core/background-function/run-on-background.d.ts +16 -0
  41. package/runtime/lib/core/background-function/run-on-background.js +16 -0
  42. package/runtime/lib/core/background-function/run-on-background.js.map +1 -1
  43. package/runtime/lib/core/capture-main-thread-object.d.ts +1 -0
  44. package/runtime/lib/core/capture-main-thread-object.js +16 -0
  45. package/runtime/lib/core/capture-main-thread-object.js.map +1 -0
  46. package/runtime/lib/core/commit-context.js.map +1 -1
  47. package/runtime/lib/core/compat/legacy-react-runtime.js.map +1 -1
  48. package/runtime/lib/core/compat/lynxComponent.js.map +1 -1
  49. package/runtime/lib/core/component.js.map +1 -1
  50. package/runtime/lib/core/forceRootRender.js.map +1 -1
  51. package/runtime/lib/core/globalProps.d.ts +2 -0
  52. package/runtime/lib/core/globalProps.js.map +1 -1
  53. package/runtime/lib/core/hooks/mainThread.js.map +1 -1
  54. package/runtime/lib/core/hooks/mainThreadImpl.js.map +1 -1
  55. package/runtime/lib/core/hooks/react.d.ts +4 -0
  56. package/runtime/lib/core/hooks/react.js +4 -0
  57. package/runtime/lib/core/hooks/react.js.map +1 -1
  58. package/runtime/lib/core/hooks/useLynxGlobalEventListener.d.ts +2 -0
  59. package/runtime/lib/core/hooks/useLynxGlobalEventListener.js +2 -0
  60. package/runtime/lib/core/hooks/useLynxGlobalEventListener.js.map +1 -1
  61. package/runtime/lib/core/initData.d.ts +2 -0
  62. package/runtime/lib/core/initData.js +2 -0
  63. package/runtime/lib/core/initData.js.map +1 -1
  64. package/runtime/lib/core/lynx/dynamic-import.js.map +1 -1
  65. package/runtime/lib/core/lynx/lazy-bundle.js.map +1 -1
  66. package/runtime/lib/core/lynx/runtime-backend.js.map +1 -1
  67. package/runtime/lib/core/lynx/runtime-version.js.map +1 -1
  68. package/runtime/lib/core/lynx-data-processors.js.map +1 -1
  69. package/runtime/lib/core/lynx-page-data.js.map +1 -1
  70. package/runtime/lib/core/lynx-update-data.js.map +1 -1
  71. package/runtime/lib/core/main-thread-function.js.map +1 -1
  72. package/runtime/lib/core/main-thread-object-handle-registry.d.ts +3 -0
  73. package/runtime/lib/core/main-thread-object-handle-registry.js +17 -0
  74. package/runtime/lib/core/main-thread-object-handle-registry.js.map +1 -0
  75. package/runtime/lib/core/main-thread-object.d.ts +77 -0
  76. package/runtime/lib/core/main-thread-object.js +258 -0
  77. package/runtime/lib/core/main-thread-object.js.map +1 -0
  78. package/runtime/lib/core/main-thread-ref-id.d.ts +1 -0
  79. package/runtime/lib/core/main-thread-ref-id.js +14 -0
  80. package/runtime/lib/core/main-thread-ref-id.js.map +1 -0
  81. package/runtime/lib/core/main-thread-ref-init-value.d.ts +1 -1
  82. package/runtime/lib/core/main-thread-ref-init-value.js +4 -2
  83. package/runtime/lib/core/main-thread-ref-init-value.js.map +1 -1
  84. package/runtime/lib/core/main-thread-ref.d.ts +4 -0
  85. package/runtime/lib/core/main-thread-ref.js +5 -8
  86. package/runtime/lib/core/main-thread-ref.js.map +1 -1
  87. package/runtime/lib/core/mts-capability.js.map +1 -1
  88. package/runtime/lib/core/performance.js.map +1 -1
  89. package/runtime/lib/core/ref.js.map +1 -1
  90. package/runtime/lib/core/reload-version.js.map +1 -1
  91. package/runtime/lib/core/runtime-destroy.js.map +1 -1
  92. package/runtime/lib/core/thread-function-call/main-thread.js.map +1 -1
  93. package/runtime/lib/core/thread-function-call/return-value.js.map +1 -1
  94. package/runtime/lib/document.js.map +1 -1
  95. package/runtime/lib/element-template/background/attr-slots.js.map +1 -1
  96. package/runtime/lib/element-template/background/commit-context.js.map +1 -1
  97. package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
  98. package/runtime/lib/element-template/background/destroy.js.map +1 -1
  99. package/runtime/lib/element-template/background/document.js.map +1 -1
  100. package/runtime/lib/element-template/background/hydrate.js.map +1 -1
  101. package/runtime/lib/element-template/background/hydration-listener.js.map +1 -1
  102. package/runtime/lib/element-template/background/instance.js.map +1 -1
  103. package/runtime/lib/element-template/background/manager.js.map +1 -1
  104. package/runtime/lib/element-template/background/page-root-hydrate.js.map +1 -1
  105. package/runtime/lib/element-template/background/render-scope.js.map +1 -1
  106. package/runtime/lib/element-template/client/root.js.map +1 -1
  107. package/runtime/lib/element-template/debug/alog.js.map +1 -1
  108. package/runtime/lib/element-template/debug/elementPAPICall.js.map +1 -1
  109. package/runtime/lib/element-template/debug/profile.js.map +1 -1
  110. package/runtime/lib/element-template/hydration-map.js.map +1 -1
  111. package/runtime/lib/element-template/index.d.ts +2 -0
  112. package/runtime/lib/element-template/index.js +1 -0
  113. package/runtime/lib/element-template/index.js.map +1 -1
  114. package/runtime/lib/element-template/internal.d.ts +1 -1
  115. package/runtime/lib/element-template/internal.js +1 -1
  116. package/runtime/lib/element-template/internal.js.map +1 -1
  117. package/runtime/lib/element-template/jsx-dev-runtime/index.js.map +1 -1
  118. package/runtime/lib/element-template/jsx-runtime/index.js.map +1 -1
  119. package/runtime/lib/element-template/lynx/env.js.map +1 -1
  120. package/runtime/lib/element-template/lynx/performance.js.map +1 -1
  121. package/runtime/lib/element-template/native/callDestroyLifetimeFun.js.map +1 -1
  122. package/runtime/lib/element-template/native/index.js.map +1 -1
  123. package/runtime/lib/element-template/native/main-thread-api.js.map +1 -1
  124. package/runtime/lib/element-template/native/mts-destroy.js.map +1 -1
  125. package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
  126. package/runtime/lib/element-template/native/reload-background.js.map +1 -1
  127. package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
  128. package/runtime/lib/element-template/prop-adapters/event-value.js.map +1 -1
  129. package/runtime/lib/element-template/prop-adapters/event.js.map +1 -1
  130. package/runtime/lib/element-template/prop-adapters/ref.js.map +1 -1
  131. package/runtime/lib/element-template/prop-adapters/spread.js.map +1 -1
  132. package/runtime/lib/element-template/protocol/lifecycle-constant.js.map +1 -1
  133. package/runtime/lib/element-template/protocol/opcodes.js.map +1 -1
  134. package/runtime/lib/element-template/protocol/page.js.map +1 -1
  135. package/runtime/lib/element-template/protocol/template-type.js.map +1 -1
  136. package/runtime/lib/element-template/protocol/types.d.ts +1 -1
  137. package/runtime/lib/element-template/protocol/types.js.map +1 -1
  138. package/runtime/lib/element-template/protocol/update-event.js.map +1 -1
  139. package/runtime/lib/element-template/runtime/list/list.js.map +1 -1
  140. package/runtime/lib/element-template/runtime/page/authored-page.js.map +1 -1
  141. package/runtime/lib/element-template/runtime/page/page.js.map +1 -1
  142. package/runtime/lib/element-template/runtime/page/root-instance.js.map +1 -1
  143. package/runtime/lib/element-template/runtime/patch.js.map +1 -1
  144. package/runtime/lib/element-template/runtime/render/create-rendered-host.js.map +1 -1
  145. package/runtime/lib/element-template/runtime/render/host.js.map +1 -1
  146. package/runtime/lib/element-template/runtime/render/render-components.js.map +1 -1
  147. package/runtime/lib/element-template/runtime/render/render-direct.js.map +1 -1
  148. package/runtime/lib/element-template/runtime/render/render-main-thread.js.map +1 -1
  149. package/runtime/lib/element-template/runtime/template/attr-slot-plan.js.map +1 -1
  150. package/runtime/lib/element-template/runtime/template/handle.js.map +1 -1
  151. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js.map +1 -1
  152. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js.map +1 -1
  153. package/runtime/lib/element-template/runtime/template/main-thread-event-ctx.js.map +1 -1
  154. package/runtime/lib/element-template/runtime/template/main-thread-function.js.map +1 -1
  155. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js.map +1 -1
  156. package/runtime/lib/element-template/runtime/template/registry.js.map +1 -1
  157. package/runtime/lib/element-template/runtime/template/typed-attributes.js.map +1 -1
  158. package/runtime/lib/element-template/runtime-marker.js.map +1 -1
  159. package/runtime/lib/index.js.map +1 -1
  160. package/runtime/lib/internal.d.ts +1 -1
  161. package/runtime/lib/internal.js +1 -1
  162. package/runtime/lib/internal.js.map +1 -1
  163. package/runtime/lib/lynx-api.d.ts +34 -0
  164. package/runtime/lib/lynx-api.js +21 -0
  165. package/runtime/lib/lynx-api.js.map +1 -1
  166. package/runtime/lib/lynx.js +4 -1
  167. package/runtime/lib/lynx.js.map +1 -1
  168. package/runtime/lib/root.js.map +1 -1
  169. package/runtime/lib/runtime-marker.js.map +1 -1
  170. package/runtime/lib/shared/attribute-name.js.map +1 -1
  171. package/runtime/lib/shared/component-stack.js.map +1 -1
  172. package/runtime/lib/shared/index-map.js.map +1 -1
  173. package/runtime/lib/shared/profile.js.map +1 -1
  174. package/runtime/lib/shared/render-constants.js.map +1 -1
  175. package/runtime/lib/snapshot/alog/elementPAPICall.js.map +1 -1
  176. package/runtime/lib/snapshot/alog/index.js.map +1 -1
  177. package/runtime/lib/snapshot/alog/render.js.map +1 -1
  178. package/runtime/lib/snapshot/compat/componentIs.js.map +1 -1
  179. package/runtime/lib/snapshot/debug/debug.js.map +1 -1
  180. package/runtime/lib/snapshot/debug/describeInvalidValue.js.map +1 -1
  181. package/runtime/lib/snapshot/debug/formatPatch.js.map +1 -1
  182. package/runtime/lib/snapshot/debug/printSnapshot.js.map +1 -1
  183. package/runtime/lib/snapshot/debug/profileHooks.js.map +1 -1
  184. package/runtime/lib/snapshot/debug/vnodeSource.js.map +1 -1
  185. package/runtime/lib/snapshot/gesture/processGesture.js.map +1 -1
  186. package/runtime/lib/snapshot/gesture/processGestureBagkround.js.map +1 -1
  187. package/runtime/lib/snapshot/gesture/types.js.map +1 -1
  188. package/runtime/lib/snapshot/index.js.map +1 -1
  189. package/runtime/lib/snapshot/lifecycle/constant.js.map +1 -1
  190. package/runtime/lib/snapshot/lifecycle/destroy.js.map +1 -1
  191. package/runtime/lib/snapshot/lifecycle/event/delayEvents.js.map +1 -1
  192. package/runtime/lib/snapshot/lifecycle/event/delayLifecycleEvents.js.map +1 -1
  193. package/runtime/lib/snapshot/lifecycle/event/firstScreenSync.js.map +1 -1
  194. package/runtime/lib/snapshot/lifecycle/isRendering.js.map +1 -1
  195. package/runtime/lib/snapshot/lifecycle/patch/commit.js.map +1 -1
  196. package/runtime/lib/snapshot/lifecycle/patch/error.d.ts +11 -1
  197. package/runtime/lib/snapshot/lifecycle/patch/error.js +24 -16
  198. package/runtime/lib/snapshot/lifecycle/patch/error.js.map +1 -1
  199. package/runtime/lib/snapshot/lifecycle/patch/globalState.js.map +1 -1
  200. package/runtime/lib/snapshot/lifecycle/patch/isMainThreadHydrating.js.map +1 -1
  201. package/runtime/lib/snapshot/lifecycle/patch/nodesRefApply.js.map +1 -1
  202. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatch.js.map +1 -1
  203. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.d.ts +1 -1
  204. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js +29 -7
  205. package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js.map +1 -1
  206. package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js +2 -2
  207. package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
  208. package/runtime/lib/snapshot/lifecycle/ref/delay.js.map +1 -1
  209. package/runtime/lib/snapshot/lifecycle/reload.js.map +1 -1
  210. package/runtime/lib/snapshot/lifecycle/render.js.map +1 -1
  211. package/runtime/lib/snapshot/list/list.js.map +1 -1
  212. package/runtime/lib/snapshot/list/listUpdateInfo.js.map +1 -1
  213. package/runtime/lib/snapshot/list/pendingListUpdates.js.map +1 -1
  214. package/runtime/lib/snapshot/lynx/calledByNative.js.map +1 -1
  215. package/runtime/lib/snapshot/lynx/children.d.ts +2 -0
  216. package/runtime/lib/snapshot/lynx/children.js.map +1 -1
  217. package/runtime/lib/snapshot/lynx/element.d.ts +8 -0
  218. package/runtime/lib/snapshot/lynx/element.js +4 -0
  219. package/runtime/lib/snapshot/lynx/element.js.map +1 -1
  220. package/runtime/lib/snapshot/lynx/env.js.map +1 -1
  221. package/runtime/lib/snapshot/lynx/injectLepusMethods.js.map +1 -1
  222. package/runtime/lib/snapshot/lynx/lazyBundleConstants.js.map +1 -1
  223. package/runtime/lib/snapshot/lynx/nodesRef.js.map +1 -1
  224. package/runtime/lib/snapshot/lynx/performance.js.map +1 -1
  225. package/runtime/lib/snapshot/lynx/portals.js.map +1 -1
  226. package/runtime/lib/snapshot/lynx/portalsPending.js.map +1 -1
  227. package/runtime/lib/snapshot/lynx/prepareLazyBundleMTS.js.map +1 -1
  228. package/runtime/lib/snapshot/lynx/runWithForce.js.map +1 -1
  229. package/runtime/lib/snapshot/lynx/suspense.js.map +1 -1
  230. package/runtime/lib/snapshot/lynx/tt.js.map +1 -1
  231. package/runtime/lib/snapshot/renderToOpcodes/hydrate.js.map +1 -1
  232. package/runtime/lib/snapshot/renderToOpcodes/index.js.map +1 -1
  233. package/runtime/lib/snapshot/renderToOpcodes/opcodes.js.map +1 -1
  234. package/runtime/lib/snapshot/snapshot/backgroundSnapshot.js.map +1 -1
  235. package/runtime/lib/snapshot/snapshot/constants.js.map +1 -1
  236. package/runtime/lib/snapshot/snapshot/definition.js.map +1 -1
  237. package/runtime/lib/snapshot/snapshot/dynamicPartType.js.map +1 -1
  238. package/runtime/lib/snapshot/snapshot/event.js.map +1 -1
  239. package/runtime/lib/snapshot/snapshot/gesture.js.map +1 -1
  240. package/runtime/lib/snapshot/snapshot/index.js.map +1 -1
  241. package/runtime/lib/snapshot/snapshot/list.js.map +1 -1
  242. package/runtime/lib/snapshot/snapshot/platformInfo.js.map +1 -1
  243. package/runtime/lib/snapshot/snapshot/reconstructInstanceTree.js.map +1 -1
  244. package/runtime/lib/snapshot/snapshot/ref.js.map +1 -1
  245. package/runtime/lib/snapshot/snapshot/snapshot.js.map +1 -1
  246. package/runtime/lib/snapshot/snapshot/snapshotCreatorMap.js.map +1 -1
  247. package/runtime/lib/snapshot/snapshot/snapshotInstanceHydrationMap.js.map +1 -1
  248. package/runtime/lib/snapshot/snapshot/snapshotInstanceManager.js.map +1 -1
  249. package/runtime/lib/snapshot/snapshot/spread.js.map +1 -1
  250. package/runtime/lib/snapshot/snapshot/types.js.map +1 -1
  251. package/runtime/lib/snapshot/snapshot/utils.js.map +1 -1
  252. package/runtime/lib/snapshot/snapshot/workletEvent.js.map +1 -1
  253. package/runtime/lib/snapshot/snapshot/workletRef.js.map +1 -1
  254. package/runtime/lib/snapshot/worklet/call/runOnMainThread.d.ts +2 -0
  255. package/runtime/lib/snapshot/worklet/call/runOnMainThread.js +2 -0
  256. package/runtime/lib/snapshot/worklet/call/runOnMainThread.js.map +1 -1
  257. package/runtime/lib/snapshot/worklet/ctx.js.map +1 -1
  258. package/runtime/lib/snapshot/worklet/destroy.js.map +1 -1
  259. package/runtime/lib/snapshot/worklet/functionality.js.map +1 -1
  260. package/runtime/lib/snapshot/worklet/hmr.js.map +1 -1
  261. package/runtime/lib/snapshot/worklet/ref/updateInitValue.js.map +1 -1
  262. package/runtime/lib/tsconfig.tsbuildinfo +1 -1
  263. package/runtime/lib/utils.js.map +1 -1
  264. package/runtime/lib/worklet-runtime/api/animation/animation.js.map +1 -1
  265. package/runtime/lib/worklet-runtime/api/animation/effect.js.map +1 -1
  266. package/runtime/lib/worklet-runtime/api/element.js.map +1 -1
  267. package/runtime/lib/worklet-runtime/api/lepusQuerySelector.js.map +1 -1
  268. package/runtime/lib/worklet-runtime/api/lynxApi.js.map +1 -1
  269. package/runtime/lib/worklet-runtime/bindings/bindings.d.ts +3 -3
  270. package/runtime/lib/worklet-runtime/bindings/bindings.js +9 -1
  271. package/runtime/lib/worklet-runtime/bindings/bindings.js.map +1 -1
  272. package/runtime/lib/worklet-runtime/bindings/events.js.map +1 -1
  273. package/runtime/lib/worklet-runtime/bindings/index.d.ts +0 -1
  274. package/runtime/lib/worklet-runtime/bindings/index.js +0 -1
  275. package/runtime/lib/worklet-runtime/bindings/index.js.map +1 -1
  276. package/runtime/lib/worklet-runtime/bindings/observers.js.map +1 -1
  277. package/runtime/lib/worklet-runtime/bindings/types.d.ts +3 -6
  278. package/runtime/lib/worklet-runtime/bindings/types.js.map +1 -1
  279. package/runtime/lib/worklet-runtime/delayRunOnBackground.js.map +1 -1
  280. package/runtime/lib/worklet-runtime/delayWorkletEvent.js.map +1 -1
  281. package/runtime/lib/worklet-runtime/eomImpl.js.map +1 -1
  282. package/runtime/lib/worklet-runtime/eventPropagation.js.map +1 -1
  283. package/runtime/lib/worklet-runtime/global.js.map +1 -1
  284. package/runtime/lib/worklet-runtime/hydrate.js +26 -7
  285. package/runtime/lib/worklet-runtime/hydrate.js.map +1 -1
  286. package/runtime/lib/worklet-runtime/index.js +6 -0
  287. package/runtime/lib/worklet-runtime/index.js.map +1 -1
  288. package/runtime/lib/worklet-runtime/jsFunctionLifecycle.js.map +1 -1
  289. package/runtime/lib/worklet-runtime/listeners.js.map +1 -1
  290. package/runtime/lib/worklet-runtime/mainThreadObject.d.ts +8 -0
  291. package/runtime/lib/worklet-runtime/mainThreadObject.js +67 -0
  292. package/runtime/lib/worklet-runtime/mainThreadObject.js.map +1 -0
  293. package/runtime/lib/worklet-runtime/runOnMainThread.js.map +1 -1
  294. package/runtime/lib/worklet-runtime/utils/mainThreadFlushLoopGuard.js.map +1 -1
  295. package/runtime/lib/worklet-runtime/utils/profile.js.map +1 -1
  296. package/runtime/lib/worklet-runtime/utils/version.js.map +1 -1
  297. package/runtime/lib/worklet-runtime/workletRef.d.ts +11 -7
  298. package/runtime/lib/worklet-runtime/workletRef.js +72 -9
  299. package/runtime/lib/worklet-runtime/workletRef.js.map +1 -1
  300. package/runtime/lib/worklet-runtime/workletRuntime.js +68 -9
  301. package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
  302. package/runtime/package.json +2 -3
  303. package/runtime/src/core/background-function/run-on-background.ts +16 -0
  304. package/runtime/src/core/capture-main-thread-object.ts +17 -0
  305. package/runtime/src/core/globalProps.ts +2 -0
  306. package/runtime/src/core/hooks/react.ts +4 -0
  307. package/runtime/src/core/hooks/useLynxGlobalEventListener.ts +2 -0
  308. package/runtime/src/core/initData.ts +2 -0
  309. package/runtime/src/core/main-thread-object-handle-registry.ts +25 -0
  310. package/runtime/src/core/main-thread-object.ts +380 -0
  311. package/runtime/src/core/main-thread-ref-id.ts +16 -0
  312. package/runtime/src/core/main-thread-ref-init-value.ts +12 -4
  313. package/runtime/src/core/main-thread-ref.ts +7 -8
  314. package/runtime/src/element-template/background/commit-hook.ts +1 -1
  315. package/runtime/src/element-template/index.ts +6 -0
  316. package/runtime/src/element-template/internal.ts +2 -1
  317. package/runtime/src/element-template/protocol/types.ts +1 -1
  318. package/runtime/src/internal.ts +1 -1
  319. package/runtime/src/lynx-api.ts +38 -0
  320. package/runtime/src/lynx.ts +5 -1
  321. package/runtime/src/snapshot/lifecycle/patch/error.ts +36 -19
  322. package/runtime/src/snapshot/lifecycle/patch/snapshotPatchApply.ts +29 -7
  323. package/runtime/src/snapshot/lifecycle/patch/updateMainThread.ts +2 -2
  324. package/runtime/src/snapshot/lynx/children.ts +2 -0
  325. package/runtime/src/snapshot/lynx/element.ts +8 -0
  326. package/runtime/src/snapshot/worklet/call/runOnMainThread.ts +2 -0
  327. package/runtime/src/snapshot/worklet/ref/updateInitValue.ts +1 -1
  328. package/runtime/src/worklet-runtime/bindings/bindings.ts +17 -2
  329. package/runtime/src/worklet-runtime/bindings/index.ts +0 -1
  330. package/runtime/src/worklet-runtime/bindings/types.ts +7 -11
  331. package/runtime/src/worklet-runtime/hydrate.ts +43 -10
  332. package/runtime/src/worklet-runtime/index.ts +7 -0
  333. package/runtime/src/worklet-runtime/mainThreadObject.ts +117 -0
  334. package/runtime/src/worklet-runtime/workletRef.ts +120 -19
  335. package/runtime/src/worklet-runtime/workletRuntime.ts +83 -11
  336. package/runtime/tsconfig.json +2 -0
  337. package/runtime/vitest.config.ts +4 -0
  338. package/testing-library/.turbo/turbo-build.log +11 -11
  339. package/testing-library/dist/env/index.js +3 -15
  340. package/testing-library/dist/index.d.ts +165 -2
  341. package/testing-library/dist/plugins/index.js +10 -0
  342. package/testing-library/dist/rstest-config.js +15 -0
  343. package/testing-library/dist/setupFiles/common/worklet-runtime-init.js +11 -0
  344. package/testing-library/package.json +2 -1
  345. package/testing-library/rstest.config.ts +3 -0
  346. package/testing-library/src/__tests__/lynx.test.jsx +1 -1
  347. package/testing-library/src/__tests__/rstest-config.test.js +34 -1
  348. package/testing-library/src/__tests__/worklet.test.jsx +87 -33
  349. package/testing-library/src/plugins/vitest.ts +5 -1
  350. package/testing-library/src/rstest-config.ts +17 -1
  351. package/testing-library/src/setupFiles/common/worklet-runtime-init.js +22 -0
  352. package/testing-library/tsconfig.docs.json +9 -0
  353. package/testing-library/typedoc.json +22 -0
  354. package/transform/.turbo/turbo-build$colon$wasm.log +135 -73
  355. package/transform/__test__/defines.spec.js +80 -12
  356. package/transform/__test__/fixture.spec.js +231 -71
  357. package/transform/__test__/object-methods.spec.js +82 -0
  358. package/transform/crates/swc_plugin_worklet/decl_collect.rs +10 -0
  359. package/transform/crates/swc_plugin_worklet/extract_ident.rs +14 -0
  360. package/transform/crates/swc_plugin_worklet/gen_stmt.rs +228 -13
  361. package/transform/crates/swc_plugin_worklet/lib.rs +599 -150
  362. package/transform/crates/swc_plugin_worklet/napi.rs +10 -1
  363. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_js.js +8 -1
  364. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_lepus.js +12 -7
  365. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_js.js +27 -0
  366. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_lepus.js +43 -0
  367. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_ident_from_this_lepus.js +2 -4
  368. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_js.js +16 -14
  369. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +18 -18
  370. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_3_lepus.js +3 -5
  371. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_4_lepus.js +2 -4
  372. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_js.js +7 -5
  373. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +9 -9
  374. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_computed_object_method_key_lepus.js +22 -0
  375. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_globals.js +2 -4
  376. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_object_method_local_decls_lepus.js +14 -0
  377. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_type_annotations.js +2 -4
  378. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_destructure_from_closure.js +2 -4
  379. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_extract_catch_clause_params.js +2 -4
  380. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_extract_idents_inside_of_ctx.js +2 -4
  381. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_transform_recursively.js +2 -4
  382. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_js.js +42 -0
  383. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +58 -0
  384. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_skip_shared_identifiers_lepus.js +2 -4
  385. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_arrow_function.js +2 -4
  386. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_fn_decl_lepus.js +2 -4
  387. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_function_expr.js +2 -4
  388. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_lepus.js +2 -4
  389. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_property_lepus.js +2 -4
  390. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_static_lepus.js +2 -4
  391. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_in_class_static_property_lepus.js +2 -4
  392. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_js.js +3 -1
  393. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_js_fn_in_run_on_js_lepus.js +2 -4
  394. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus.js +5 -5
  395. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus_alias.js +2 -4
  396. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus_general.js +2 -4
  397. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus_general_mixed.js +2 -4
  398. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_multiple_worklets.js +3 -5
  399. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_multiple_worklets_in_func.js +3 -5
  400. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_js.js +9 -0
  401. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_lepus.js +14 -0
  402. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_ui_worklet_lepus.js +2 -4
  403. package/transform/dist/wasm.cjs +1 -1
  404. package/transform/index.d.ts +25 -1
  405. package/transform/rspack-napi/tsconfig.tsbuildinfo +1 -1
  406. package/transform/src/lib.rs +193 -23
  407. package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +63 -467
  408. package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
  409. package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +340 -28
  410. package/transform/swc-plugin-reactlynx-compat/swc_plugin_reactlynx_compat.wasm +0 -0
  411. package/transform/vitest.config.ts +5 -1
  412. package/types/react.docs.d.ts +130 -11
  413. package/runtime/lib/worklet-runtime/bindings/loadRuntime.d.ts +0 -8
  414. package/runtime/lib/worklet-runtime/bindings/loadRuntime.js +0 -23
  415. package/runtime/lib/worklet-runtime/bindings/loadRuntime.js.map +0 -1
  416. package/runtime/src/worklet-runtime/bindings/loadRuntime.ts +0 -25
  417. package/runtime/worklet-runtime/dev.js +0 -638
  418. package/runtime/worklet-runtime/main.js +0 -1
  419. package/testing-library/node_modules/.bin/rsbuild +0 -68
  420. package/testing-library/node_modules/.bin/rspeedy +0 -68
  421. package/testing-library/node_modules/.bin/rstest +0 -68
  422. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_add_worklet_runtime_ident_with_inner_ident.js +0 -13
  423. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_add_worklet_runtime_ident_with_outer_ident.js +0 -13
  424. package/transform/node_modules/.bin/esbuild +0 -59
  425. package/transform/node_modules/.bin/napi +0 -68
@@ -1,542 +1,138 @@
1
1
  $ node ./build.js
2
- Updating crates.io index
3
2
  Blocking waiting for file lock on package cache
4
- Downloading crates ...
5
- Downloaded itoa v1.0.18
6
- Downloaded lazy_static v1.5.0
7
- Downloaded matchers v0.2.0
8
- Downloaded ahash v0.8.12
9
- Downloaded new_debug_unreachable v1.0.6
10
- Downloaded path-clean v1.0.1
11
- Downloaded crypto-common v0.1.7
12
- Downloaded num_cpus v1.17.0
13
- Downloaded outref v0.5.2
14
- Downloaded precomputed-map v0.2.0
15
- Downloaded radium v0.7.0
16
- Downloaded swc_ecma_compat_es2018 v51.0.0
17
- Downloaded crossbeam-utils v0.8.22
18
- Downloaded crypto-common v0.2.2
19
- Downloaded scoped-tls v1.0.1
20
- Downloaded scopeguard v1.2.0
21
- Downloaded siphasher v1.0.3
22
- Downloaded swc_ecma_codegen_macros v2.0.2
23
- Downloaded dashmap v6.2.1
24
- Downloaded pathdiff v0.2.3
25
- Downloaded potential_utf v0.1.5
26
- Downloaded radix_fmt v1.0.0
27
- Downloaded rustc-hash v2.1.3
28
- Downloaded seq-macro v0.3.6
29
- Downloaded sha-1 v0.10.1
30
- Downloaded stable_deref_trait v1.2.1
31
- Downloaded swc_atoms v10.0.0
32
- Downloaded swc_config v6.0.0
33
- Downloaded swc_ecma_compat_common v45.0.0
34
- Downloaded num-integer v0.1.46
35
- Downloaded owo-colors v4.3.0
36
- Downloaded quote v1.0.47
37
- Downloaded siphasher v0.3.11
38
- Downloaded static-map-macro v0.3.4
39
- Downloaded swc_allocator v5.0.0
40
- Downloaded swc_config_macro v1.0.1
41
- Downloaded swc_ecma_compat_es2017 v50.0.0
42
- Downloaded cargo-platform v0.1.9
43
- Downloaded form_urlencoded v1.2.2
44
- Downloaded jsonc-parser v0.26.3
45
- Downloaded litemap v0.8.2
46
- Downloaded lock_api v0.4.14
47
- Downloaded lru v0.18.4
48
- Downloaded miette-derive v7.6.0
49
- Downloaded nu-ansi-term v0.50.3
50
- Downloaded par-core v2.0.0
51
- Downloaded percent-encoding v2.3.2
52
- Downloaded phf v0.11.3
53
- Downloaded phf_generator v0.11.3
54
- Downloaded phf_shared v0.11.3
55
- Downloaded preset_env_base v9.0.0
56
- Downloaded rand_core v0.6.4
57
- Downloaded relative-path v1.9.3
58
- Downloaded rustversion v1.0.23
59
- Downloaded sha1 v0.10.7
60
- Downloaded shlex v2.0.1
61
- Downloaded smallvec v1.15.2
62
- Downloaded st-map v0.2.4
63
- Downloaded stacker v0.1.24
64
- Downloaded static_assertions v1.1.0
65
- Downloaded string_enum v1.0.2
66
- Downloaded sugar_path v1.2.1
67
- Downloaded swc_compiler_base v64.0.0
68
- Downloaded swc_ecma_compat_bugfixes v56.0.0
69
- Downloaded swc_ecma_compat_es2016 v50.0.0
70
- Downloaded thread_local v1.1.10
71
- Downloaded tinystr v0.8.3
72
- Downloaded cbor4ii v1.2.2
73
- Downloaded debugid v0.8.0
74
- Downloaded equivalent v1.0.2
75
- Downloaded from_variant v3.0.0
76
- Downloaded funty v2.0.0
77
- Downloaded generic-array v0.14.7
78
- Downloaded log v0.4.33
79
- Downloaded num-traits v0.2.19
80
- Downloaded once_cell v1.21.4
81
- Downloaded parking_lot v0.12.5
82
- Downloaded parking_lot_core v0.9.12
83
- Downloaded phf_macros v0.11.3
84
- Downloaded pin-project-lite v0.2.17
85
- Downloaded pretty_assertions v1.4.1
86
- Downloaded proc-macro2 v1.0.107
87
- Downloaded psm v0.1.31
88
- Downloaded ryu v1.0.23
89
- Downloaded semver v1.0.28
90
- Downloaded serde_core v1.0.229
91
- Downloaded serde_derive v1.0.229
92
- Downloaded sha2 v0.10.9
93
- Downloaded sha2 v0.11.0
94
- Downloaded sharded-slab v0.1.7
95
- Downloaded swc v75.0.1
96
- Downloaded swc_core v77.1.2
97
- Downloaded swc_ecma_ast v29.0.0
98
- Downloaded swc_ecma_codegen v32.0.0
99
- Downloaded triomphe v0.1.16
100
- Downloaded unicode-id-start v1.4.0
101
- Downloaded autocfg v1.5.1
102
- Downloaded bumpalo v3.20.3
103
- Downloaded cc v1.4.0
104
- Downloaded itertools v0.15.0
105
- Downloaded memchr v2.8.3
106
- Downloaded miette v7.6.0
107
- Downloaded nom v8.0.0
108
- Downloaded num-bigint v0.4.8
109
- Downloaded par-iter v2.0.0
110
- Downloaded rand v0.8.7
111
- Downloaded regex v1.13.1
112
- Downloaded ryu-js v1.0.3
113
- Downloaded serde v1.0.229
114
- Downloaded swc_common v26.0.0
115
- Downloaded swc_ecma_compat_es2015 v55.0.0
116
- Downloaded swc_ecma_compat_es2020 v53.0.0
117
- Downloaded typenum v1.20.1
118
- Downloaded base64-simd v0.8.0
119
- Downloaded serde_json v1.0.151
120
- Downloaded tracing-log v0.2.0
121
- Downloaded tracing-subscriber v0.3.23
122
- Downloaded utf8_iter v1.0.4
123
- Downloaded base64 v0.22.1
124
- Downloaded better_scoped_tls v1.0.1
125
- Downloaded heck v0.5.0
126
- Downloaded swc_ecma_ext_transforms v35.0.0
127
- Downloaded swc_eq_ignore_macros v1.0.1
128
- Downloaded swc_macros_common v1.0.1
129
- Downloaded tap v1.0.1
130
- Downloaded tracing-attributes v0.1.31
131
- Downloaded tracing-core v0.1.36
132
- Downloaded url v2.5.8
133
- Downloaded uuid v1.24.0
134
- Downloaded if_chain v1.0.3
135
- Downloaded is-macro v0.3.7
136
- Downloaded object v0.37.3
137
- Downloaded regex-syntax v0.8.11
138
- Downloaded regress v0.11.1
139
- Downloaded swc_ecma_compat_es2019 v50.0.0
140
- Downloaded swc_error_reporters v28.0.0
141
- Downloaded unicode-segmentation v1.13.3
142
- Downloaded rustix v1.1.4
143
- Downloaded swc_ecma_transforms_classes v49.0.0
144
- Downloaded unicode-width v0.1.14
145
- Downloaded unicode-width v0.2.2
146
- Downloaded regex-automata v0.4.16
147
- Downloaded tracing v0.1.44
148
- Downloaded errno v0.3.14
149
- Downloaded idna_adapter v1.2.2
150
- Downloaded libc v0.2.189
151
- Downloaded petgraph v0.7.1
152
- Downloaded swc_ecma_compat_regexp v9.0.0
153
- Downloaded swc_ecma_quote_macros v45.0.1
154
- Downloaded swc_ecma_regexp_ast v3.0.0
155
- Downloaded swc_ecma_regexp_common v0.0.1
156
- Downloaded swc_ecma_transforms_macros v1.0.1
157
- Downloaded swc_plugin v1.0.1
158
- Downloaded swc_plugin_macro v2.0.0
159
- Downloaded swc_plugin_proxy v30.0.0
160
- Downloaded swc_transform_common v20.0.0
161
- Downloaded swc_visit v2.0.2
162
- Downloaded testing_macros v1.0.2
163
- Downloaded data-encoding v2.11.0
164
- Downloaded digest v0.10.7
165
- Downloaded either v1.17.0
166
- Downloaded foldhash v0.1.5
167
- Downloaded hex v0.4.3
168
- Downloaded glob v0.3.4
169
- Downloaded globset v0.4.19
170
- Downloaded swc_ecma_loader v27.0.0
171
- Downloaded swc_ecma_testing v27.0.0
172
- Downloaded swc_ecma_transforms v62.0.0
173
- Downloaded swc_ecma_transforms_testing v53.0.0
174
- Downloaded swc_node_comments v27.0.0
175
- Downloaded testing v27.0.0
176
- Downloaded thiserror-impl v1.0.69
177
- Downloaded unicode-linebreak v0.1.5
178
- Downloaded version_check v0.9.5
179
- Downloaded zerofrom-derive v0.1.7
180
- Downloaded ascii v1.1.0
181
- Downloaded fastrand v2.5.0
182
- Downloaded find-msvc-tools v0.1.9
183
- Downloaded fixedbitset v0.5.7
184
- Downloaded foldhash v0.2.0
185
- Downloaded linux-raw-sys v0.12.1
186
- Downloaded swc_ecma_compat_es2021 v50.0.0
187
- Downloaded swc_ecma_compat_es2022 v53.0.0
188
- Downloaded swc_ecma_transforms_compat v57.0.1
189
- Downloaded thiserror v1.0.69
190
- Downloaded arrayvec v0.7.8
191
- Downloaded ast_node v7.0.0
192
- Downloaded bitflags v2.13.1
193
- Downloaded bitvec v1.1.1
194
- Downloaded block-buffer v0.10.4
195
- Downloaded block-buffer v0.12.1
196
- Downloaded cargo_metadata v0.18.1
197
- Downloaded displaydoc v0.2.6
198
- Downloaded iana-time-zone v0.1.65
199
- Downloaded synstructure v0.13.2
200
- Downloaded vsimd v0.8.0
201
- Downloaded writeable v0.6.3
202
- Downloaded wyz v0.5.1
203
- Downloaded yansi v1.0.1
204
- Downloaded yoke v0.8.3
205
- Downloaded zerofrom v0.1.8
206
- Downloaded ansi_term v0.12.1
207
- Downloaded ar_archive_writer v0.5.2
208
- Downloaded browserslist-data v0.2.0
209
- Downloaded swc_ecma_regexp v0.15.0
210
- Downloaded tempfile v3.27.0
211
- Downloaded termcolor v1.4.1
212
- Downloaded yoke-derive v0.8.2
213
- Downloaded anyhow v1.0.104
214
- Downloaded bytes-str v0.2.8
215
- Downloaded dragonbox_ecma v0.1.12
216
- Downloaded hstr v4.0.0
217
- Downloaded icu_provider v2.2.0
218
- Downloaded swc_ecma_regexp_visit v0.15.0
219
- Downloaded swc_ecma_transforms_typescript v55.0.1
220
- Downloaded textwrap v0.16.2
221
- Downloaded zerocopy v0.8.55
222
- Downloaded zerovec v0.11.6
223
- Downloaded zerovec-derive v0.11.3
224
- Downloaded zmij v1.0.23
225
- Downloaded allocator-api2 v0.2.21
226
- Downloaded browserslist-rs v0.20.0
227
- Downloaded diff v0.1.13
228
- Downloaded digest v0.11.3
229
- Downloaded getrandom v0.3.4
230
- Downloaded getrandom v0.4.3
231
- Downloaded hybrid-array v0.4.13
232
- Downloaded icu_properties v2.2.0
233
- Downloaded swc_ecma_transformer v21.0.1
234
- Downloaded swc_ecma_transforms_proposal v49.0.0
235
- Downloaded swc_ecma_transforms_react v55.0.1
236
- Downloaded swc_ecma_utils v35.0.0
237
- Downloaded unicode-ident v1.0.24
238
- Downloaded bytes v1.12.1
239
- Downloaded icu_locale_core v2.2.0
240
- Downloaded icu_normalizer v2.2.0
241
- Downloaded icu_normalizer_data v2.2.0
242
- Downloaded swc_ecma_transforms_optimization v52.0.0
243
- Downloaded aho-corasick v1.1.4
244
- Downloaded cpufeatures v0.2.17
245
- Downloaded difference v2.0.0
246
- Downloaded icu_collections v2.2.0
247
- Downloaded indexmap v2.14.0
248
- Downloaded swc_ecma_hooks v1.0.0
249
- Downloaded swc_ecma_transforms_base v49.0.1
250
- Downloaded swc_sourcemap v10.0.2
251
- Downloaded zerotrie v0.2.4
252
- Downloaded bstr v1.13.0
253
- Downloaded cfg-if v1.0.4
254
- Downloaded compact_str v0.7.1
255
- Downloaded swc_ecma_preset_env v63.0.0
256
- Downloaded convert_case v0.11.0
257
- Downloaded hashbrown v0.14.5
258
- Downloaded camino v1.2.4
259
- Downloaded hashbrown v0.16.1
260
- Downloaded idna v1.1.0
261
- Downloaded hashbrown v0.17.1
262
- Downloaded chrono v0.4.45
263
- Downloaded cpufeatures v0.3.0
264
- Downloaded icu_properties_data v2.2.0
265
- Downloaded swc_ecma_parser v45.1.1
266
- Downloaded castaway v0.2.4
267
- Downloaded const-oid v0.10.2
268
- Downloaded swc_ecma_minifier v61.0.4
269
- Downloaded syn v2.0.119
270
- Downloaded syn v3.0.3
271
- Downloaded swc_ecma_visit v29.0.0
272
3
  Blocking waiting for file lock on package cache
273
- Compiling proc-macro2 v1.0.107
274
- Compiling quote v1.0.47
275
- Compiling unicode-ident v1.0.24
276
- Compiling version_check v0.9.5
277
- Compiling serde_core v1.0.229
278
- Compiling cfg-if v1.0.4
279
- Compiling zerocopy v0.8.55
280
- Compiling serde v1.0.229
281
- Compiling allocator-api2 v0.2.21
282
- Compiling icu_normalizer_data v2.2.0
283
- Compiling stable_deref_trait v1.2.1
284
- Compiling once_cell v1.21.4
285
- Compiling syn v2.0.119
286
- Compiling syn v3.0.3
287
- Compiling icu_properties_data v2.2.0
288
- Compiling autocfg v1.5.1
289
- Compiling num-traits v0.2.19
290
- Compiling memchr v2.8.3
291
- Compiling zmij v1.0.23
292
- Compiling anyhow v1.0.104
4
+ Blocking waiting for file lock on package cache
5
+ Blocking waiting for file lock on build directory
293
6
  Compiling foldhash v0.2.0
294
- Compiling equivalent v1.0.2
7
+ Compiling zerovec v0.11.6
295
8
  Compiling getrandom v0.3.4
296
- Compiling smallvec v1.15.2
297
9
  Compiling ahash v0.8.12
298
10
  Compiling hashbrown v0.17.1
299
- Compiling serde_derive v1.0.229
300
- Compiling litemap v0.8.2
301
- Compiling synstructure v0.13.2
302
- Compiling swc_macros_common v1.0.1
303
- Compiling writeable v0.6.3
304
- Compiling indexmap v2.14.0
305
- Compiling zerofrom-derive v0.1.7
306
- Compiling yoke-derive v0.8.2
307
- Compiling zerovec-derive v0.11.3
308
- Compiling displaydoc v0.2.6
309
- Compiling zerofrom v0.1.8
310
- Compiling tracing-attributes v0.1.31
311
- Compiling yoke v0.8.3
312
- Compiling zerotrie v0.2.4
313
- Compiling zerovec v0.11.6
314
- Compiling serde_json v1.0.151
315
- Compiling utf8_iter v1.0.4
316
- Compiling itoa v1.0.18
11
+ Compiling either v1.17.0
12
+ Compiling swc_visit v2.0.2
13
+ Compiling aho-corasick v1.1.4
317
14
  Compiling hashbrown v0.14.5
15
+ Compiling indexmap v2.14.0
318
16
  Compiling tinystr v0.8.3
319
- Compiling icu_locale_core v2.2.0
320
17
  Compiling potential_utf v0.1.5
321
- Compiling rustc-hash v2.1.3
322
- Compiling parking_lot_core v0.9.12
323
18
  Compiling icu_collections v2.2.0
324
- Compiling from_variant v3.0.0
325
- Compiling radium v0.7.0
326
- Compiling scopeguard v1.2.0
19
+ Compiling icu_locale_core v2.2.0
20
+ Compiling serde_json v1.0.151
21
+ Compiling hstr v4.0.0
327
22
  Compiling icu_provider v2.2.0
328
- Compiling either v1.17.0
23
+ Compiling swc_atoms v10.0.0
329
24
  Compiling icu_properties v2.2.0
330
25
  Compiling icu_normalizer v2.2.0
331
- Compiling lock_api v0.4.14
332
- Compiling swc_eq_ignore_macros v1.0.1
333
- Compiling ast_node v7.0.0
334
- Compiling tracing-core v0.1.36
335
- Compiling tap v1.0.1
336
- Compiling percent-encoding v2.3.2
26
+ Compiling regex-automata v0.4.16
27
+ Compiling swc_ecma_regexp_common v0.0.1
28
+ Compiling typenum v1.20.1
29
+ Compiling crossbeam-utils v0.8.22
337
30
  Compiling idna_adapter v1.2.2
338
31
  Compiling idna v1.1.0
339
- Compiling form_urlencoded v1.2.2
340
- Compiling wyz v0.5.1
341
- Compiling outref v0.5.2
342
- Compiling vsimd v0.8.0
343
- Compiling pin-project-lite v0.2.17
344
- Compiling bytes v1.12.1
345
- Compiling uuid v1.24.0
346
- Compiling funty v2.0.0
347
- Compiling bytes-str v0.2.8
348
- Compiling bitvec v1.1.1
349
- Compiling debugid v0.8.0
350
- Compiling base64-simd v0.8.0
351
- Compiling tracing v0.1.44
32
+ Compiling dashmap v6.2.1
33
+ Compiling generic-array v0.14.7
352
34
  Compiling url v2.5.8
353
- Compiling triomphe v0.1.16
354
- Compiling unicode-width v0.2.2
355
- Compiling if_chain v1.0.3
356
- Compiling unicode-id-start v1.4.0
357
- Compiling data-encoding v2.11.0
358
- Compiling new_debug_unreachable v1.0.6
359
- Compiling hstr v4.0.0
360
- Compiling num-integer v0.1.46
361
- Compiling scoped-tls v1.0.1
362
- Compiling cbor4ii v1.2.2
363
- Compiling better_scoped_tls v1.0.1
364
- Compiling num-bigint v0.4.8
35
+ Compiling hashbrown v0.16.1
365
36
  Compiling swc_sourcemap v10.0.2
366
- Compiling swc_atoms v10.0.0
367
- Compiling parking_lot v0.12.5
368
- Compiling swc_visit v2.0.2
369
- Compiling termcolor v1.4.1
370
- Compiling siphasher v0.3.11
371
- Compiling siphasher v1.0.3
372
- Compiling rand_core v0.6.4
37
+ Compiling bstr v1.13.0
38
+ Compiling regress v0.11.1
39
+ Compiling regex v1.13.1
373
40
  Compiling swc_common v26.0.0
374
- Compiling phf_shared v0.11.3
375
- Compiling rand v0.8.7
376
- Compiling heck v0.5.0
377
- Compiling is-macro v0.3.7
378
- Compiling phf_generator v0.11.3
379
- Compiling phf_macros v0.11.3
380
- Compiling bitflags v2.13.1
381
- Compiling string_enum v1.0.2
382
- Compiling rustversion v1.0.23
383
- Compiling phf v0.11.3
384
- Compiling libc v0.2.189
385
41
  Compiling swc_ecma_ast v29.0.0
386
- Compiling dragonbox_ecma v0.1.12
387
- Compiling par-core v2.0.0
388
- Compiling castaway v0.2.4
389
- Compiling num_cpus v1.17.0
390
- Compiling seq-macro v0.3.6
391
- Compiling static_assertions v1.1.0
392
- Compiling ryu v1.0.23
393
- Compiling aho-corasick v1.1.4
394
- Compiling compact_str v0.7.1
395
- Compiling regex-syntax v0.8.11
396
- Compiling typenum v1.20.1
397
- Compiling swc_ecma_regexp_common v0.0.1
398
42
  Compiling swc_ecma_regexp_ast v3.0.0
399
- Compiling regex-automata v0.4.16
400
- Compiling crossbeam-utils v0.8.22
401
43
  Compiling swc_ecma_regexp_visit v0.15.0
402
- Compiling dashmap v6.2.1
403
- Compiling swc_ecma_compat_regexp v9.0.0
404
44
  Compiling swc_ecma_regexp v0.15.0
405
- Compiling swc_ecma_visit v29.0.0
406
- Compiling swc_ecma_parser v45.1.1
407
- Compiling regex v1.13.1
408
- Compiling generic-array v0.14.7
409
- Compiling hashbrown v0.16.1
410
- Compiling bstr v1.13.0
45
+ Compiling swc_ecma_compat_regexp v9.0.0
411
46
  Compiling globset v0.4.19
412
- Compiling regress v0.11.1
413
- Compiling block-buffer v0.10.4
414
47
  Compiling crypto-common v0.1.7
48
+ Compiling block-buffer v0.10.4
415
49
  Compiling swc_config_macro v1.0.1
416
- Compiling swc_config v6.0.0
417
50
  Compiling digest v0.10.7
418
- Compiling swc_ecma_utils v35.0.0
419
- Compiling swc_ecma_hooks v1.0.0
420
- Compiling thiserror v1.0.69
421
- Compiling swc_ecma_transforms_base v49.0.1
422
- Compiling swc_ecma_transformer v21.0.1
423
51
  Compiling arrayvec v0.7.8
424
- Compiling swc_ecma_transforms_classes v49.0.0
425
- Compiling thiserror-impl v1.0.69
52
+ Compiling swc_config v6.0.0
426
53
  Compiling swc_ecma_transforms_macros v1.0.1
427
- Compiling owo-colors v4.3.0
428
- Compiling semver v1.0.28
429
- Compiling base64 v0.22.1
430
- Compiling unicode-linebreak v0.1.5
431
54
  Compiling fixedbitset v0.5.7
55
+ Compiling zmij v1.0.23
432
56
  Compiling petgraph v0.7.1
433
- Compiling textwrap v0.16.2
434
- Compiling swc_ecma_compat_common v45.0.0
435
- Compiling miette-derive v7.6.0
436
- Compiling bumpalo v3.20.3
437
- Compiling camino v1.2.4
438
- Compiling unicode-width v0.1.14
439
- Compiling miette v7.6.0
440
57
  Compiling swc_allocator v5.0.0
441
- Compiling swc_ecma_transforms_optimization v52.0.0
442
- Compiling swc_ecma_compat_es2015 v55.0.0
443
- Compiling swc_ecma_compat_es2022 v53.0.0
444
58
  Compiling sha1 v0.10.7
445
59
  Compiling chrono v0.4.45
446
- Compiling swc_ecma_codegen_macros v2.0.2
447
- Compiling ascii v1.1.0
448
- Compiling lazy_static v1.5.0
449
- Compiling log v0.4.33
450
- Compiling tracing-log v0.2.0
451
- Compiling sharded-slab v0.1.7
452
- Compiling swc_ecma_codegen v32.0.0
453
60
  Compiling browserslist-data v0.2.0
454
- Compiling swc_ecma_transforms_react v55.0.1
455
- Compiling swc_ecma_compat_es2020 v53.0.0
456
- Compiling swc_ecma_compat_bugfixes v56.0.0
457
61
  Compiling swc_error_reporters v28.0.0
458
- Compiling swc_ecma_compat_es2016 v50.0.0
459
- Compiling swc_ecma_compat_es2018 v51.0.0
460
- Compiling swc_ecma_compat_es2019 v50.0.0
461
- Compiling swc_ecma_compat_es2021 v50.0.0
462
- Compiling swc_ecma_compat_es2017 v50.0.0
463
62
  Compiling matchers v0.2.0
464
63
  Compiling itertools v0.15.0
465
- Compiling cargo-platform v0.1.9
466
- Compiling static-map-macro v0.3.4
467
64
  Compiling nom v8.0.0
468
- Compiling thread_local v1.1.10
469
- Compiling diff v0.1.13
470
- Compiling glob v0.3.4
471
- Compiling foldhash v0.1.5
65
+ Compiling static-map-macro v0.3.4
472
66
  Compiling precomputed-map v0.2.0
473
- Compiling relative-path v1.9.3
474
- Compiling rustix v1.1.4
475
- Compiling getrandom v0.4.3
476
- Compiling nu-ansi-term v0.50.3
477
- Compiling yansi v1.0.1
478
- Compiling pretty_assertions v1.4.1
67
+ Compiling foldhash v0.1.5
68
+ Compiling swc_ecma_visit v29.0.0
69
+ Compiling swc_ecma_parser v45.1.1
479
70
  Compiling tracing-subscriber v0.3.23
480
- Compiling testing_macros v1.0.2
481
71
  Compiling browserslist-rs v0.20.0
482
72
  Compiling swc_ecma_preset_env v63.0.0
483
73
  Compiling st-map v0.2.4
484
74
  Compiling cargo_metadata v0.18.1
75
+ Compiling par-iter v2.0.0
76
+ Compiling ryu-js v1.0.3
77
+ Compiling radix_fmt v1.0.0
78
+ Compiling pathdiff v0.2.3
79
+ Compiling testing v27.0.0
80
+ Compiling preset_env_base v9.0.0
81
+ Compiling swc_ecma_utils v35.0.0
82
+ Compiling swc_ecma_hooks v1.0.0
83
+ Compiling swc_ecma_transforms_base v49.0.1
84
+ Compiling swc_ecma_codegen v32.0.0
85
+ Compiling swc_ecma_transformer v21.0.1
86
+ Compiling swc_ecma_transforms_classes v49.0.0
87
+ Compiling swc_ecma_transforms_optimization v52.0.0
88
+ Compiling swc_ecma_compat_common v45.0.0
89
+ Compiling swc_ecma_compat_es2015 v55.0.0
90
+ Compiling swc_ecma_compat_es2022 v53.0.0
91
+ Compiling swc_ecma_compat_bugfixes v56.0.0
92
+ Compiling swc_ecma_compat_es2020 v53.0.0
93
+ Compiling swc_ecma_compat_es2018 v51.0.0
94
+ Compiling swc_ecma_compat_es2019 v50.0.0
95
+ Compiling swc_ecma_compat_es2016 v50.0.0
96
+ Compiling swc_ecma_compat_es2021 v50.0.0
97
+ Compiling swc_ecma_compat_es2017 v50.0.0
98
+ Compiling swc_ecma_transforms_react v55.0.1
485
99
  Compiling swc_ecma_transforms_compat v57.0.1
486
100
  Compiling swc_ecma_transforms_typescript v55.0.1
487
101
  Compiling swc_ecma_transforms_proposal v49.0.0
488
- Compiling par-iter v2.0.0
489
- Compiling errno v0.3.14
490
- Compiling pathdiff v0.2.3
491
- Compiling radix_fmt v1.0.0
492
- Compiling difference v2.0.0
493
- Compiling ryu-js v1.0.3
494
102
  Compiling swc_ecma_minifier v61.0.4
495
- Compiling testing v27.0.0
496
103
  Compiling swc_ecma_transforms v62.0.0
497
- Compiling preset_env_base v9.0.0
498
104
  Compiling sha2 v0.10.9
499
105
  Compiling lru v0.18.4
500
106
  Compiling path-clean v1.0.1
501
- Compiling fastrand v2.5.0
502
- Compiling hex v0.4.3
503
- Compiling swc_ecma_testing v27.0.0
504
107
  Compiling swc_compiler_base v64.0.0
505
- Compiling tempfile v3.27.0
108
+ Compiling swc_ecma_testing v27.0.0
506
109
  Compiling swc_ecma_loader v27.0.0
507
110
  Compiling swc_ecma_ext_transforms v35.0.0
508
111
  Compiling swc_node_comments v27.0.0
509
112
  Compiling swc_transform_common v20.0.0
510
113
  Compiling jsonc-parser v0.26.3
511
- Compiling ansi_term v0.12.1
512
114
  Compiling swc_core v77.1.2
513
- Compiling swc_ecma_transforms_testing v53.0.0
514
115
  Compiling swc v75.0.1
515
- Compiling swc_ecma_quote_macros v45.0.1
116
+ Compiling swc_ecma_transforms_testing v53.0.0
516
117
  Compiling swc_plugin_proxy v30.0.0
517
- Compiling swc_plugin_macro v2.0.0
518
- Compiling swc_plugin v1.0.1
519
- Compiling unicode-segmentation v1.13.3
520
- Compiling convert_case v0.11.0
521
118
  Compiling sha-1 v0.10.1
522
- Compiling sugar_path v1.2.1
523
- Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
524
119
  Compiling hybrid-array v0.4.13
525
- Compiling block-buffer v0.12.1
526
120
  Compiling crypto-common v0.2.2
121
+ Compiling block-buffer v0.12.1
527
122
  Compiling const-oid v0.10.2
123
+ Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
528
124
  Compiling digest v0.11.3
529
125
  Compiling sha2 v0.11.0
530
126
  Compiling swc_plugin_define_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_define_dce)
531
- Compiling swc_plugin_element_template v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_element_template)
532
127
  Compiling swc_plugin_directive_dce v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_directive_dce)
533
- Compiling swc_plugin_inject v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_inject)
534
- Compiling swc_plugin_worklet v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_worklet)
535
- Compiling swc_plugin_shake v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_shake)
536
- Compiling swc_plugin_snapshot v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_snapshot)
128
+ Compiling swc_plugin_element_template v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_element_template)
537
129
  Compiling swc_plugin_list v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_list)
130
+ Compiling swc_plugin_shake v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_shake)
131
+ Compiling swc_plugin_worklet v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_worklet)
132
+ Compiling swc_plugin_inject v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_inject)
538
133
  Compiling swc_plugin_dynamic_import v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_dynamic_import)
134
+ Compiling swc_plugin_snapshot v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_snapshot)
539
135
  Compiling swc_plugin_text v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_text)
540
136
  Compiling swc_plugin_css_scope v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_css_scope)
541
137
  Compiling swc_plugin_reactlynx v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/swc-plugin-reactlynx)
542
- Finished `release` profile [optimized] target(s) in 2m 20s
138
+ Finished `release` profile [optimized] target(s) in 4m 17s