@lynx-js/react 0.129.4 → 0.129.5

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 (147) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/components/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +9 -1
  4. package/refresh/.turbo/turbo-build.log +1 -1
  5. package/runtime/__test__/core/lynx/env.test.ts +146 -0
  6. package/runtime/__test__/element-template/imports/suspense-lazy.test.ts +47 -4
  7. package/runtime/__test__/element-template/native/index.test.ts +9 -9
  8. package/runtime/__test__/element-template/native/mts-destroy.test.ts +55 -2
  9. package/runtime/__test__/element-template/native/reload.test.ts +15 -5
  10. package/runtime/__test__/element-template/runtime/background/main-thread-function/compiled-fixtures.test.tsx +1 -1
  11. package/runtime/__test__/element-template/runtime/hydration/hydration-listener.test.ts +1 -1
  12. package/runtime/__test__/element-template/runtime/render/render-transform.contract.test.ts +33 -0
  13. package/runtime/__test__/element-template/vitest.config.ts +1 -1
  14. package/runtime/__test__/snapshot/debug/profile.test.jsx +147 -26
  15. package/runtime/__test__/snapshot/lifecycle/reload-delayed-background.test.jsx +54 -0
  16. package/runtime/__test__/snapshot/lifecycle/transfer.mts.test.jsx +98 -6
  17. package/runtime/__test__/snapshot/lifecycle/transfer.test.jsx +214 -9
  18. package/runtime/__test__/snapshot/lynx/suspense.test.jsx +48 -0
  19. package/runtime/__test__/snapshot/utils/envManager.ts +2 -0
  20. package/runtime/__test__/worklet-runtime/delayWorkletEvent.test.js +21 -0
  21. package/runtime/__test__/worklet-runtime/lifecycle.test.js +297 -0
  22. package/runtime/__test__/worklet-runtime/profile.test.js +12 -6
  23. package/runtime/lazy/element-template-internal.js +1 -0
  24. package/runtime/lib/core/compat/componentIs.d.ts +1 -0
  25. package/runtime/lib/core/compat/componentIs.js +20 -0
  26. package/runtime/lib/core/compat/componentIs.js.map +1 -0
  27. package/runtime/lib/core/lynx/env.d.ts +1 -0
  28. package/runtime/lib/{element-template → core}/lynx/env.js +3 -2
  29. package/runtime/lib/core/lynx/env.js.map +1 -0
  30. package/runtime/lib/core/thread-function-call/main-thread.d.ts +1 -0
  31. package/runtime/lib/core/thread-function-call/main-thread.js +4 -1
  32. package/runtime/lib/core/thread-function-call/main-thread.js.map +1 -1
  33. package/runtime/lib/element-template/background/commit-event.d.ts +6 -0
  34. package/runtime/lib/element-template/background/commit-event.js +36 -0
  35. package/runtime/lib/element-template/background/commit-event.js.map +1 -0
  36. package/runtime/lib/element-template/background/commit-hook.js +3 -23
  37. package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
  38. package/runtime/lib/element-template/background/destroy.js +1 -1
  39. package/runtime/lib/element-template/background/destroy.js.map +1 -1
  40. package/runtime/lib/element-template/background/hydrate.js +1 -2
  41. package/runtime/lib/element-template/background/hydrate.js.map +1 -1
  42. package/runtime/lib/element-template/background/hydration-listener.js +5 -25
  43. package/runtime/lib/element-template/background/hydration-listener.js.map +1 -1
  44. package/runtime/lib/element-template/{runtime/template → background}/main-thread-function.js +4 -4
  45. package/runtime/lib/element-template/background/main-thread-function.js.map +1 -0
  46. package/runtime/lib/element-template/index.d.ts +1 -1
  47. package/runtime/lib/element-template/index.js +1 -1
  48. package/runtime/lib/element-template/index.js.map +1 -1
  49. package/runtime/lib/element-template/internal.js +3 -0
  50. package/runtime/lib/element-template/internal.js.map +1 -1
  51. package/runtime/lib/element-template/native/index.js +2 -2
  52. package/runtime/lib/element-template/native/index.js.map +1 -1
  53. package/runtime/lib/element-template/native/mts-destroy.d.ts +2 -1
  54. package/runtime/lib/element-template/native/mts-destroy.js +15 -4
  55. package/runtime/lib/element-template/native/mts-destroy.js.map +1 -1
  56. package/runtime/lib/element-template/native/reload-main-thread.js +2 -2
  57. package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
  58. package/runtime/lib/element-template/runtime/patch.js +4 -11
  59. package/runtime/lib/element-template/runtime/patch.js.map +1 -1
  60. package/runtime/lib/element-template/runtime/template/handle.d.ts +1 -1
  61. package/runtime/lib/element-template/runtime/template/handle.js +2 -2
  62. package/runtime/lib/element-template/runtime/template/handle.js.map +1 -1
  63. package/runtime/lib/element-template/runtime/template/main-thread-background-function.d.ts +1 -0
  64. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js +7 -2
  65. package/runtime/lib/element-template/runtime/template/main-thread-background-function.js.map +1 -1
  66. package/runtime/lib/internal.js +4 -10
  67. package/runtime/lib/internal.js.map +1 -1
  68. package/runtime/lib/snapshot/debug/profileHooks.js +27 -62
  69. package/runtime/lib/snapshot/debug/profileHooks.js.map +1 -1
  70. package/runtime/lib/snapshot/lifecycle/reload.js +2 -2
  71. package/runtime/lib/snapshot/lifecycle/reload.js.map +1 -1
  72. package/runtime/lib/snapshot/lynx/env.js +2 -32
  73. package/runtime/lib/snapshot/lynx/env.js.map +1 -1
  74. package/runtime/lib/snapshot/transfer.d.ts +6 -0
  75. package/runtime/lib/snapshot/transfer.js +154 -11
  76. package/runtime/lib/snapshot/transfer.js.map +1 -1
  77. package/runtime/lib/tsconfig.tsbuildinfo +1 -1
  78. package/runtime/lib/worklet-runtime/bindings/lifecycle.d.ts +19 -0
  79. package/runtime/lib/worklet-runtime/bindings/lifecycle.js +49 -0
  80. package/runtime/lib/worklet-runtime/bindings/lifecycle.js.map +1 -0
  81. package/runtime/lib/worklet-runtime/delayWorkletEvent.d.ts +1 -1
  82. package/runtime/lib/worklet-runtime/delayWorkletEvent.js +9 -1
  83. package/runtime/lib/worklet-runtime/delayWorkletEvent.js.map +1 -1
  84. package/runtime/lib/worklet-runtime/utils/profile.js +1 -3
  85. package/runtime/lib/worklet-runtime/utils/profile.js.map +1 -1
  86. package/runtime/src/core/compat/componentIs.ts +32 -0
  87. package/runtime/src/{element-template → core}/lynx/env.ts +6 -4
  88. package/runtime/src/core/thread-function-call/main-thread.ts +5 -1
  89. package/runtime/src/element-template/background/commit-event.ts +52 -0
  90. package/runtime/src/element-template/background/commit-hook.ts +4 -31
  91. package/runtime/src/element-template/background/destroy.ts +1 -1
  92. package/runtime/src/element-template/background/hydrate.ts +5 -3
  93. package/runtime/src/element-template/background/hydration-listener.ts +7 -32
  94. package/runtime/src/element-template/{runtime/template → background}/main-thread-function.ts +4 -7
  95. package/runtime/src/element-template/index.ts +1 -1
  96. package/runtime/src/element-template/internal.ts +4 -0
  97. package/runtime/src/element-template/native/index.ts +2 -2
  98. package/runtime/src/element-template/native/mts-destroy.ts +21 -4
  99. package/runtime/src/element-template/native/reload-main-thread.ts +2 -2
  100. package/runtime/src/element-template/runtime/patch.ts +20 -35
  101. package/runtime/src/element-template/runtime/template/handle.ts +2 -0
  102. package/runtime/src/element-template/runtime/template/main-thread-background-function.ts +8 -2
  103. package/runtime/src/internal.ts +4 -13
  104. package/runtime/src/snapshot/debug/profileHooks.ts +30 -91
  105. package/runtime/src/snapshot/lifecycle/reload.ts +2 -3
  106. package/runtime/src/snapshot/lynx/env.ts +3 -43
  107. package/runtime/src/snapshot/transfer.ts +169 -13
  108. package/runtime/src/worklet-runtime/bindings/lifecycle.ts +51 -0
  109. package/runtime/src/worklet-runtime/delayWorkletEvent.ts +10 -2
  110. package/runtime/src/worklet-runtime/utils/profile.ts +1 -3
  111. package/runtime/types/internal-preact.d.ts +2 -0
  112. package/runtime/vitest.config.ts +0 -1
  113. package/testing-library/.turbo/turbo-build.log +7 -7
  114. package/testing-library/src/__tests__/events.test.jsx +1 -1
  115. package/testing-library/src/fire-event.ts +1 -1
  116. package/transform/.turbo/turbo-build$colon$wasm.log +67 -66
  117. package/transform/__test__/fixture.spec.js +1 -1
  118. package/transform/cjs/browser.cjs +11 -0
  119. package/transform/crates/swc_plugin_compat/lib.rs +20 -2
  120. package/transform/crates/swc_plugin_compat/napi.rs +7 -0
  121. package/transform/crates/swc_plugin_dynamic_import/lib.rs +15 -4
  122. package/transform/crates/swc_plugin_element_template/attr_name.rs +0 -3
  123. package/transform/crates/swc_plugin_element_template/extractor.rs +0 -8
  124. package/transform/crates/swc_plugin_element_template/lib.rs +12 -1
  125. package/transform/crates/swc_plugin_element_template/tests/element_template_contract.rs +35 -0
  126. package/transform/crates/swc_plugin_worklet/lib.rs +11 -7
  127. package/transform/dist/wasm.cjs +1 -1
  128. package/transform/rspack-napi/lib/index.js +1 -4
  129. package/transform/rspack-napi/lib/index.js.map +1 -1
  130. package/transform/rspack-napi/src/index.ts +1 -4
  131. package/transform/rspack-napi/tsconfig.tsbuildinfo +1 -1
  132. package/transform/src/lib.rs +394 -27
  133. package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +413 -105
  134. package/transform/swc-plugin-reactlynx/src/lib.rs +99 -22
  135. package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
  136. package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +28 -359
  137. package/transform/swc-plugin-reactlynx-compat/swc_plugin_reactlynx_compat.wasm +0 -0
  138. package/runtime/__test__/element-template/lynx/env.test.ts +0 -242
  139. package/runtime/lib/element-template/lynx/env.d.ts +0 -1
  140. package/runtime/lib/element-template/lynx/env.js.map +0 -1
  141. package/runtime/lib/element-template/runtime/template/main-thread-function.js.map +0 -1
  142. package/runtime/lib/snapshot/compat/componentIs.d.ts +0 -4
  143. package/runtime/lib/snapshot/compat/componentIs.js +0 -20
  144. package/runtime/lib/snapshot/compat/componentIs.js.map +0 -1
  145. package/runtime/src/snapshot/compat/componentIs.ts +0 -30
  146. /package/runtime/__test__/element-template/runtime/{template → background}/main-thread-function.test.ts +0 -0
  147. /package/runtime/lib/element-template/{runtime/template → background}/main-thread-function.d.ts +0 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.