@lynx-js/react 0.129.1 → 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 (121) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/components/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +1 -1
  4. package/refresh/.turbo/turbo-build.log +1 -1
  5. package/runtime/__test__/core/globalProps.test.ts +27 -6
  6. package/runtime/__test__/element-template/fixtures/gesture/direct/index.tsx +33 -0
  7. package/runtime/__test__/element-template/fixtures/spread/mts/index.tsx +197 -0
  8. package/runtime/__test__/element-template/native/callDestroyLifetimeFun.test.ts +89 -3
  9. package/runtime/__test__/element-template/native/mts-destroy.test.ts +8 -3
  10. package/runtime/__test__/element-template/native/reload.test.ts +87 -0
  11. package/runtime/__test__/element-template/runtime/background/global-props/compiled-fixtures.test.tsx +5 -5
  12. package/runtime/__test__/element-template/runtime/background/global-props.test.tsx +1 -1
  13. package/runtime/__test__/element-template/runtime/background/hydrate.test.ts +70 -0
  14. package/runtime/__test__/element-template/runtime/background/ref/compiled-fixtures.test.tsx +3 -4
  15. package/runtime/__test__/element-template/runtime/background/reload.test.ts +74 -0
  16. package/runtime/__test__/element-template/runtime/patch/element-template-patch.test.tsx +15 -0
  17. package/runtime/__test__/element-template/runtime/prop-adapters/gesture-compiled.test.ts +200 -0
  18. package/runtime/__test__/element-template/runtime/prop-adapters/gesture.test.ts +420 -0
  19. package/runtime/__test__/element-template/runtime/prop-adapters/spread-mts-compiled.test.ts +527 -0
  20. package/runtime/__test__/element-template/runtime/prop-adapters/spread.test.ts +185 -6
  21. package/runtime/__test__/element-template/runtime/render/render-direct-native.test.tsx +21 -1
  22. package/runtime/__test__/element-template/runtime/template/main-thread-dynamic-attr-state.test.ts +188 -0
  23. package/runtime/__test__/snapshot/lifecycle/updateGlobalProps.event.test.jsx +2 -2
  24. package/runtime/__test__/snapshot/lifecycle/updateGlobalProps.test.jsx +3 -3
  25. package/runtime/__test__/snapshot/ref.test.jsx +30 -0
  26. package/runtime/lazy/element-template-internal.js +1 -0
  27. package/runtime/lib/core/globalProps.js +1 -1
  28. package/runtime/lib/core/globalProps.js.map +1 -1
  29. package/runtime/lib/element-template/background/attr-slots.js +5 -2
  30. package/runtime/lib/element-template/background/attr-slots.js.map +1 -1
  31. package/runtime/lib/element-template/background/destroy.js +16 -11
  32. package/runtime/lib/element-template/background/destroy.js.map +1 -1
  33. package/runtime/lib/element-template/background/hydrate.js +23 -0
  34. package/runtime/lib/element-template/background/hydrate.js.map +1 -1
  35. package/runtime/lib/element-template/debug/alog.d.ts +1 -1
  36. package/runtime/lib/element-template/debug/alog.js +4 -1
  37. package/runtime/lib/element-template/debug/alog.js.map +1 -1
  38. package/runtime/lib/element-template/internal.d.ts +1 -1
  39. package/runtime/lib/element-template/internal.js +1 -1
  40. package/runtime/lib/element-template/internal.js.map +1 -1
  41. package/runtime/lib/element-template/native/callDestroyLifetimeFun.js +6 -1
  42. package/runtime/lib/element-template/native/callDestroyLifetimeFun.js.map +1 -1
  43. package/runtime/lib/element-template/native/patch-listener.js +1 -1
  44. package/runtime/lib/element-template/native/patch-listener.js.map +1 -1
  45. package/runtime/lib/element-template/native/reload-background.js +1 -1
  46. package/runtime/lib/element-template/native/reload-background.js.map +1 -1
  47. package/runtime/lib/element-template/native/reload-main-thread.js +33 -9
  48. package/runtime/lib/element-template/native/reload-main-thread.js.map +1 -1
  49. package/runtime/lib/element-template/prop-adapters/gesture.d.ts +23 -0
  50. package/runtime/lib/element-template/prop-adapters/gesture.js +97 -0
  51. package/runtime/lib/element-template/prop-adapters/gesture.js.map +1 -0
  52. package/runtime/lib/element-template/prop-adapters/spread.d.ts +6 -1
  53. package/runtime/lib/element-template/prop-adapters/spread.js +72 -2
  54. package/runtime/lib/element-template/prop-adapters/spread.js.map +1 -1
  55. package/runtime/lib/element-template/protocol/opcodes.d.ts +1 -0
  56. package/runtime/lib/element-template/protocol/opcodes.js +1 -0
  57. package/runtime/lib/element-template/protocol/opcodes.js.map +1 -1
  58. package/runtime/lib/element-template/protocol/types.d.ts +7 -1
  59. package/runtime/lib/element-template/protocol/types.js.map +1 -1
  60. package/runtime/lib/element-template/runtime/patch.js +27 -2
  61. package/runtime/lib/element-template/runtime/patch.js.map +1 -1
  62. package/runtime/lib/element-template/runtime/template/attr-slot-plan.d.ts +4 -2
  63. package/runtime/lib/element-template/runtime/template/attr-slot-plan.js +17 -4
  64. package/runtime/lib/element-template/runtime/template/attr-slot-plan.js.map +1 -1
  65. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.d.ts +7 -2
  66. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js +368 -58
  67. package/runtime/lib/element-template/runtime/template/main-thread-dynamic-attr-state.js.map +1 -1
  68. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.d.ts +2 -1
  69. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js +10 -1
  70. package/runtime/lib/element-template/runtime/template/main-thread-ref-ctx.js.map +1 -1
  71. package/runtime/lib/element-template/runtime/template/typed-attributes.js +3 -3
  72. package/runtime/lib/element-template/runtime/template/typed-attributes.js.map +1 -1
  73. package/runtime/lib/snapshot/lifecycle/destroy.js +23 -17
  74. package/runtime/lib/snapshot/lifecycle/destroy.js.map +1 -1
  75. package/runtime/lib/snapshot/lifecycle/ref/delay.d.ts +5 -0
  76. package/runtime/lib/snapshot/lifecycle/ref/delay.js +1 -1
  77. package/runtime/lib/snapshot/lifecycle/ref/delay.js.map +1 -1
  78. package/runtime/lib/tsconfig.tsbuildinfo +1 -1
  79. package/runtime/src/core/globalProps.ts +1 -1
  80. package/runtime/src/element-template/background/attr-slots.ts +5 -1
  81. package/runtime/src/element-template/background/destroy.ts +16 -13
  82. package/runtime/src/element-template/background/hydrate.ts +23 -0
  83. package/runtime/src/element-template/debug/alog.ts +5 -2
  84. package/runtime/src/element-template/internal.ts +1 -0
  85. package/runtime/src/element-template/native/callDestroyLifetimeFun.ts +5 -1
  86. package/runtime/src/element-template/native/patch-listener.ts +1 -1
  87. package/runtime/src/element-template/native/reload-background.ts +1 -1
  88. package/runtime/src/element-template/native/reload-main-thread.ts +30 -10
  89. package/runtime/src/element-template/prop-adapters/gesture.ts +144 -0
  90. package/runtime/src/element-template/prop-adapters/spread.ts +110 -2
  91. package/runtime/src/element-template/protocol/opcodes.ts +1 -0
  92. package/runtime/src/element-template/protocol/types.ts +8 -0
  93. package/runtime/src/element-template/runtime/patch.ts +33 -0
  94. package/runtime/src/element-template/runtime/template/attr-slot-plan.ts +31 -4
  95. package/runtime/src/element-template/runtime/template/main-thread-dynamic-attr-state.ts +441 -65
  96. package/runtime/src/element-template/runtime/template/main-thread-ref-ctx.ts +12 -2
  97. package/runtime/src/element-template/runtime/template/typed-attributes.ts +3 -3
  98. package/runtime/src/snapshot/lifecycle/destroy.ts +23 -18
  99. package/runtime/src/snapshot/lifecycle/ref/delay.ts +1 -1
  100. package/runtime/types/types.d.ts +2 -1
  101. package/testing-library/.turbo/turbo-build.log +7 -7
  102. package/transform/.turbo/turbo-build$colon$wasm.log +205 -91
  103. package/transform/__test__/fixture.spec.js +11 -11
  104. package/transform/__test__/main-thread-object-compat.spec.js +111 -0
  105. package/transform/crates/swc_plugin_element_template/lib.rs +11 -0
  106. package/transform/crates/swc_plugin_element_template/tests/element_template_contract.rs +113 -0
  107. package/transform/crates/swc_plugin_worklet/gen_stmt.rs +7 -9
  108. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_js.js +3 -3
  109. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_lepus.js +3 -3
  110. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_js.js +7 -7
  111. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +7 -7
  112. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_js.js +8 -8
  113. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +8 -8
  114. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_js.js +5 -5
  115. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +5 -5
  116. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_js.js +1 -1
  117. package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus.js +1 -1
  118. package/transform/dist/wasm.cjs +1 -1
  119. package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +160 -133
  120. package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
  121. package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +180 -293
@@ -8,6 +8,7 @@ import { delayedEvents } from './event/delayEvents.js';
8
8
  import { delayedLifecycleEvents } from './event/delayLifecycleEvents.js';
9
9
  import { globalCommitTaskMap } from './patch/commit.js';
10
10
  import { deinitGlobalSnapshotPatch } from './patch/snapshotPatch.js';
11
+ import { delayedUiOps } from './ref/delay.js';
11
12
  import { profileEnd, profileStart } from '../../shared/profile.js';
12
13
  import { withSyncEffectFlush } from '../../utils.js';
13
14
  import { resetSnapshotMainThreadFunctionRuntime } from '../worklet/call/runOnMainThread.js';
@@ -20,25 +21,29 @@ function destroyBackground(): void {
20
21
 
21
22
  deinitGlobalSnapshotPatch();
22
23
 
23
- withSyncEffectFlush(() => {
24
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
25
- render(null, __root as any);
26
- });
24
+ try {
25
+ withSyncEffectFlush(() => {
26
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
27
+ render(null, __root as any);
28
+ });
27
29
 
28
- globalCommitTaskMap.forEach(task => {
29
- task();
30
- });
31
- globalCommitTaskMap.clear();
32
- // Clear delayed events which should not be executed after destroyed.
33
- // This is important when the page is performing a reload.
34
- delayedLifecycleEvents.length = 0;
35
- if (delayedEvents) {
36
- delayedEvents.length = 0;
37
- }
38
- resetSnapshotBackgroundFunctionRuntime();
39
- resetSnapshotMainThreadFunctionRuntime();
40
- if (typeof __PROFILE__ !== 'undefined' && __PROFILE__) {
41
- profileEnd();
30
+ globalCommitTaskMap.forEach(task => {
31
+ task();
32
+ });
33
+ } finally {
34
+ globalCommitTaskMap.clear();
35
+ // Clear delayed events which should not be executed after destroyed.
36
+ // This is important when the page is performing a reload.
37
+ delayedLifecycleEvents.length = 0;
38
+ if (delayedEvents) {
39
+ delayedEvents.length = 0;
40
+ }
41
+ delayedUiOps.length = 0;
42
+ resetSnapshotBackgroundFunctionRuntime();
43
+ resetSnapshotMainThreadFunctionRuntime();
44
+ if (typeof __PROFILE__ !== 'undefined' && __PROFILE__) {
45
+ profileEnd();
46
+ }
42
47
  }
43
48
  }
44
49
 
@@ -79,4 +79,4 @@ interface RefProxy extends RefProxyForwardedMethods<RefProxy> {}
79
79
  /**
80
80
  * @internal
81
81
  */
82
- export { RefProxy, runDelayedUiOps, shouldDelayUiOps };
82
+ export { delayedUiOps, RefProxy, runDelayedUiOps, shouldDelayUiOps };
@@ -11,6 +11,7 @@ import type { InitData, InitDataRaw } from '../src/lynx-api.js';
11
11
 
12
12
  interface ReactLynxRuntimeConfig {
13
13
  [key: string]: unknown;
14
+ globalPropsMode?: 'reactive' | 'event';
14
15
  transformBuiltinAttributeNames?:
15
16
  | boolean
16
17
  | TransformBuiltinAttributeNamesOptions;
@@ -21,6 +22,7 @@ declare global {
21
22
  declare const __REF_FIRE_IMMEDIATELY__: boolean;
22
23
  declare const __TESTING_FORCE_RENDER_TO_OPCODE__: boolean;
23
24
  declare const __FIRST_SCREEN_SYNC_TIMING__: 'immediately' | 'jsReady' | 'manual';
25
+ declare const __GLOBAL_PROPS_MODE__: 'reactive' | 'event' | undefined;
24
26
  declare const __DEV__: boolean;
25
27
  declare const __JS__: boolean;
26
28
  declare const __LEPUS__: boolean;
@@ -32,7 +34,6 @@ declare global {
32
34
  declare const __ALOG__: boolean | undefined;
33
35
  declare const __ALOG_ELEMENT_API__: boolean | undefined;
34
36
  declare const __ENABLE_SSR__: boolean;
35
- declare const __GLOBAL_PROPS_MODE__: 'reactive' | 'event' | undefined;
36
37
  declare const __LAZY_BUNDLE_FETCHER__: 'FetchBundle' | 'QueryComponent';
37
38
  declare const __RUNTIME_VERSION__: string | undefined;
38
39
  declare const __EXPERIMENTAL_RE_EVAL_JS_ON_RELOAD__: boolean | undefined;
@@ -2,14 +2,14 @@ $ rslib
2
2
  Rslib v1.0.2
3
3
 
4
4
  info build started...
5
- start generating declaration files... (esm2)
6
5
  start generating declaration files... (esm0)
7
- ready built in 0.71s (esm2)
8
- ready built in 0.82s (esm1)
9
- ready built in 1.15s (esm0)
10
- info declaration files prepared with tsgo in 1.45 s (esm2)
11
- ready declaration files generated in 6.22 s (esm0)
12
- ready declaration files bundled successfully: dist/index.d.ts in 3.79 s (esm2)
6
+ start generating declaration files... (esm2)
7
+ ready built in 0.68s (esm2)
8
+ ready built in 0.73s (esm1)
9
+ ready built in 1.22s (esm0)
10
+ info declaration files prepared with tsgo in 1.47 s (esm2)
11
+ ready declaration files bundled successfully: dist/index.d.ts in 2.78 s (esm2)
12
+ ready declaration files generated in 6.21 s (esm0)
13
13
 
14
14
  File (esm0) Size
15
15
  dist/rslib-runtime-0.js 1.6 kB
@@ -2,234 +2,348 @@ $ node ./scripts/build_wasm.js
2
2
  Blocking waiting for file lock on package cache
3
3
  Blocking waiting for file lock on package cache
4
4
  Downloading crates ...
5
- Downloaded napi-build v2.3.2
5
+ Downloaded arrayvec v0.7.8
6
+ Downloaded bitflags v1.3.2
7
+ Downloaded block-buffer v0.12.1
8
+ Downloaded cpufeatures v0.3.0
6
9
  Downloaded convert_case v0.6.0
7
- Downloaded napi-sys v2.4.0
10
+ Downloaded crypto-common v0.2.2
8
11
  Downloaded ctor v0.1.26
9
- Downloaded bitflags v1.3.2
12
+ Downloaded fixedbitset v0.5.7
13
+ Downloaded browserslist-rs v0.20.0
14
+ Downloaded dashmap v6.2.1
15
+ Downloaded foldhash v0.1.5
16
+ Downloaded foldhash v0.2.0
17
+ Downloaded crossbeam-utils v0.8.22
18
+ Downloaded digest v0.11.3
19
+ Downloaded const-oid v0.10.2
20
+ Downloaded futures-task v0.3.33
21
+ Downloaded globset v0.4.19
22
+ Downloaded futures-core v0.3.33
23
+ Downloaded getrandom v0.3.4
24
+ Downloaded hybrid-array v0.4.13
25
+ Downloaded iana-time-zone v0.1.65
26
+ Downloaded browserslist-data v0.2.0
27
+ Downloaded hashbrown v0.16.1
28
+ Downloaded futures-util v0.3.33
29
+ Downloaded jsonc-parser v0.26.3
30
+ Downloaded napi-build v2.3.2
31
+ Downloaded napi-derive v2.9.3
32
+ Downloaded napi-sys v2.4.0
33
+ Downloaded lru v0.18.4
34
+ Downloaded chrono v0.4.45
10
35
  Downloaded napi-derive-backend v1.0.40
36
+ Downloaded js-sys v0.3.103
37
+ Downloaded pathdiff v0.2.3
11
38
  Downloaded napi v2.10.4
12
- Downloaded napi-derive v2.9.3
39
+ Downloaded path-clean v1.0.1
40
+ Downloaded precomputed-map v0.2.0
41
+ Downloaded preset_env_base v9.0.0
42
+ Downloaded radix_fmt v1.0.0
43
+ Downloaded sha1 v0.10.7
44
+ Downloaded bstr v1.13.0
45
+ Downloaded itertools v0.15.0
46
+ Downloaded slab v0.4.12
47
+ Downloaded nom v8.0.0
48
+ Downloaded par-iter v2.0.0
49
+ Downloaded ryu-js v1.0.3
50
+ Downloaded sha2 v0.11.0
51
+ Downloaded swc_config_macro v1.0.1
52
+ Downloaded st-map v0.2.4
53
+ Downloaded static-map-macro v0.3.4
54
+ Downloaded swc v75.0.1
55
+ Downloaded swc_config v6.0.0
56
+ Downloaded swc_compiler_base v64.0.0
57
+ Downloaded swc_ecma_compat_es2019 v50.0.0
58
+ Downloaded regress v0.11.1
59
+ Downloaded swc_ecma_compat_common v45.0.0
60
+ Downloaded swc_ecma_compat_es2017 v50.0.0
61
+ Downloaded swc_ecma_compat_es2020 v53.0.0
62
+ Downloaded swc_ecma_compat_es2021 v50.0.0
63
+ Downloaded swc_ecma_compat_es2018 v51.0.0
64
+ Downloaded swc_ecma_loader v27.0.0
65
+ Downloaded swc_ecma_compat_bugfixes v56.0.0
66
+ Downloaded swc_ecma_compat_es2016 v50.0.0
67
+ Downloaded swc_ecma_compat_es2022 v53.0.0
68
+ Downloaded swc_ecma_compat_regexp v9.0.0
69
+ Downloaded swc_ecma_ext_transforms v35.0.0
70
+ Downloaded swc_ecma_transforms_classes v49.0.0
71
+ Downloaded swc_ecma_compat_es2015 v55.0.0
72
+ Downloaded swc_ecma_regexp_ast v3.0.0
73
+ Downloaded swc_ecma_regexp_common v0.0.1
74
+ Downloaded swc_ecma_transforms_macros v1.0.1
75
+ Downloaded swc_node_comments v27.0.0
76
+ Downloaded swc_ecma_hooks v1.0.0
77
+ Downloaded swc_ecma_transforms v62.0.0
78
+ Downloaded swc_ecma_transforms_compat v57.0.1
79
+ Downloaded swc_ecma_transforms_typescript v55.0.1
80
+ Downloaded petgraph v0.7.1
81
+ Downloaded swc_ecma_regexp v0.15.0
82
+ Downloaded swc_ecma_regexp_visit v0.15.0
83
+ Downloaded swc_ecma_transforms_react v55.0.1
84
+ Downloaded swc_ecma_transforms_proposal v49.0.0
13
85
  Downloaded version-compare v0.2.1
86
+ Downloaded swc_ecma_transformer v21.0.1
87
+ Downloaded swc_ecma_transforms_optimization v52.0.0
88
+ Downloaded swc_ecma_preset_env v63.0.0
89
+ Downloaded swc_ecma_minifier v61.0.4
90
+ Downloaded syn v1.0.109
91
+ Downloaded wasm-bindgen-macro v0.2.126
92
+ Downloaded wasm-bindgen-shared v0.2.126
93
+ Downloaded wasm-bindgen v0.2.126
94
+ Downloaded wasm-bindgen-macro-support v0.2.126
95
+ Blocking waiting for file lock on package cache
14
96
  Blocking waiting for file lock on build directory
15
- Compiling cfg-if v1.0.4
16
97
  Compiling serde_core v1.0.229
17
- Compiling allocator-api2 v0.2.21
98
+ Compiling cfg-if v1.0.4
99
+ Compiling zerocopy v0.8.55
100
+ Compiling syn v2.0.119
101
+ Compiling syn v3.0.3
18
102
  Compiling serde v1.0.229
103
+ Compiling allocator-api2 v0.2.21
19
104
  Compiling once_cell v1.21.4
20
- Compiling stable_deref_trait v1.2.1
105
+ Compiling icu_normalizer_data v2.2.0
21
106
  Compiling memchr v2.8.3
22
- Compiling zerofrom v0.1.8
107
+ Compiling icu_properties_data v2.2.0
108
+ Compiling stable_deref_trait v1.2.1
109
+ Compiling autocfg v1.5.1
110
+ Compiling num-traits v0.2.19
111
+ Compiling zmij v1.0.23
112
+ Compiling serde_derive v1.0.229
23
113
  Compiling equivalent v1.0.2
24
114
  Compiling foldhash v0.2.0
25
- Compiling yoke v0.8.3
115
+ Compiling anyhow v1.0.104
26
116
  Compiling hashbrown v0.17.1
27
- Compiling zerovec v0.11.6
28
- Compiling smallvec v1.15.2
29
117
  Compiling getrandom v0.3.4
30
- Compiling zerocopy v0.8.55
118
+ Compiling smallvec v1.15.2
31
119
  Compiling ahash v0.8.12
32
- Compiling zmij v1.0.23
33
- Compiling itoa v1.0.18
120
+ Compiling synstructure v0.13.2
121
+ Compiling swc_macros_common v1.0.1
122
+ Compiling indexmap v2.14.0
34
123
  Compiling serde_json v1.0.151
35
- Compiling tinystr v0.8.3
36
- Compiling litemap v0.8.2
124
+ Compiling zerofrom-derive v0.1.7
125
+ Compiling yoke-derive v0.8.2
126
+ Compiling zerovec-derive v0.11.3
127
+ Compiling displaydoc v0.2.6
128
+ Compiling zerofrom v0.1.8
129
+ Compiling itoa v1.0.18
130
+ Compiling yoke v0.8.3
131
+ Compiling zerovec v0.11.6
37
132
  Compiling writeable v0.6.3
38
- Compiling potential_utf v0.1.5
133
+ Compiling litemap v0.8.2
39
134
  Compiling zerotrie v0.2.4
40
- Compiling icu_locale_core v2.2.0
135
+ Compiling tracing-attributes v0.1.31
41
136
  Compiling utf8_iter v1.0.4
137
+ Compiling tinystr v0.8.3
138
+ Compiling potential_utf v0.1.5
139
+ Compiling icu_locale_core v2.2.0
42
140
  Compiling icu_collections v2.2.0
43
- Compiling indexmap v2.14.0
141
+ Compiling hashbrown v0.14.5
142
+ Compiling parking_lot_core v0.9.12
44
143
  Compiling icu_provider v2.2.0
45
- Compiling num-traits v0.2.19
46
- Compiling icu_normalizer_data v2.2.0
47
- Compiling icu_properties_data v2.2.0
48
144
  Compiling rustc-hash v2.1.3
49
- Compiling parking_lot_core v0.9.12
50
- Compiling icu_normalizer v2.2.0
145
+ Compiling from_variant v3.0.0
51
146
  Compiling icu_properties v2.2.0
147
+ Compiling icu_normalizer v2.2.0
148
+ Compiling radium v0.7.0
52
149
  Compiling either v1.17.0
53
150
  Compiling scopeguard v1.2.0
54
151
  Compiling lock_api v0.4.14
55
- Compiling radium v0.7.0
56
- Compiling hashbrown v0.14.5
152
+ Compiling swc_eq_ignore_macros v1.0.1
153
+ Compiling ast_node v7.0.0
57
154
  Compiling tracing-core v0.1.36
58
- Compiling idna_adapter v1.2.2
59
155
  Compiling tap v1.0.1
156
+ Compiling idna_adapter v1.2.2
60
157
  Compiling percent-encoding v2.3.2
158
+ Compiling form_urlencoded v1.2.2
61
159
  Compiling idna v1.1.0
62
160
  Compiling wyz v0.5.1
63
- Compiling form_urlencoded v1.2.2
64
- Compiling anyhow v1.0.104
161
+ Compiling outref v0.5.2
65
162
  Compiling bytes v1.12.1
66
163
  Compiling pin-project-lite v0.2.17
67
- Compiling uuid v1.24.0
68
- Compiling outref v0.5.2
69
164
  Compiling vsimd v0.8.0
165
+ Compiling uuid v1.24.0
70
166
  Compiling funty v2.0.0
71
- Compiling base64-simd v0.8.0
72
167
  Compiling bytes-str v0.2.8
168
+ Compiling base64-simd v0.8.0
73
169
  Compiling debugid v0.8.0
74
- Compiling url v2.5.8
75
170
  Compiling tracing v0.1.44
76
171
  Compiling bitvec v1.1.1
172
+ Compiling url v2.5.8
77
173
  Compiling triomphe v0.1.16
174
+ Compiling data-encoding v2.11.0
175
+ Compiling if_chain v1.0.3
78
176
  Compiling unicode-width v0.2.2
79
177
  Compiling new_debug_unreachable v1.0.6
80
- Compiling data-encoding v2.11.0
81
178
  Compiling unicode-id-start v1.4.0
82
- Compiling if_chain v1.0.3
83
179
  Compiling hstr v4.0.0
84
180
  Compiling num-integer v0.1.46
85
181
  Compiling scoped-tls v1.0.1
86
182
  Compiling better_scoped_tls v1.0.1
87
- Compiling swc_atoms v10.0.0
88
183
  Compiling num-bigint v0.4.8
184
+ Compiling swc_atoms v10.0.0
89
185
  Compiling parking_lot v0.12.5
90
186
  Compiling swc_visit v2.0.2
91
187
  Compiling termcolor v1.4.1
92
- Compiling swc_sourcemap v10.0.2
93
188
  Compiling siphasher v0.3.11
94
- Compiling bitflags v2.13.1
189
+ Compiling swc_sourcemap v10.0.2
190
+ Compiling rand_core v0.6.4
95
191
  Compiling siphasher v1.0.3
192
+ Compiling rand v0.8.7
96
193
  Compiling phf_shared v0.11.3
194
+ Compiling heck v0.5.0
195
+ Compiling is-macro v0.3.7
196
+ Compiling phf_generator v0.11.3
197
+ Compiling phf_macros v0.11.3
198
+ Compiling bitflags v2.13.1
199
+ Compiling string_enum v1.0.2
200
+ Compiling swc_common v26.0.0
97
201
  Compiling libc v0.2.189
202
+ Compiling phf v0.11.3
98
203
  Compiling dragonbox_ecma v0.1.12
99
204
  Compiling par-core v2.0.0
100
- Compiling phf v0.11.3
101
205
  Compiling num_cpus v1.17.0
102
206
  Compiling castaway v0.2.4
207
+ Compiling seq-macro v0.3.6
103
208
  Compiling ryu v1.0.23
104
209
  Compiling static_assertions v1.1.0
105
210
  Compiling aho-corasick v1.1.4
106
211
  Compiling compact_str v0.7.1
107
- Compiling swc_common v26.0.0
108
- Compiling regex-syntax v0.8.11
109
212
  Compiling swc_ecma_ast v29.0.0
110
- Compiling regex-automata v0.4.16
213
+ Compiling regex-syntax v0.8.11
111
214
  Compiling typenum v1.20.1
112
215
  Compiling swc_ecma_regexp_common v0.0.1
113
216
  Compiling swc_ecma_regexp_ast v3.0.0
114
217
  Compiling crossbeam-utils v0.8.22
115
218
  Compiling swc_ecma_regexp_visit v0.15.0
116
- Compiling swc_ecma_regexp v0.15.0
117
- Compiling swc_ecma_compat_regexp v9.0.0
219
+ Compiling regex-automata v0.4.16
118
220
  Compiling swc_ecma_visit v29.0.0
119
221
  Compiling swc_ecma_parser v45.1.1
120
- Compiling regex v1.13.1
121
222
  Compiling dashmap v6.2.1
223
+ Compiling regex v1.13.1
224
+ Compiling swc_ecma_regexp v0.15.0
225
+ Compiling swc_ecma_compat_regexp v9.0.0
122
226
  Compiling generic-array v0.14.7
123
- Compiling bstr v1.13.0
227
+ Compiling swc_ecma_utils v35.0.0
228
+ Compiling swc_ecma_hooks v1.0.0
229
+ Compiling swc_ecma_transforms_base v49.0.1
124
230
  Compiling hashbrown v0.16.1
125
- Compiling regress v0.11.1
231
+ Compiling bstr v1.13.0
232
+ Compiling swc_ecma_transformer v21.0.1
126
233
  Compiling globset v0.4.19
234
+ Compiling regress v0.11.1
127
235
  Compiling crypto-common v0.1.7
128
236
  Compiling block-buffer v0.10.4
237
+ Compiling swc_config_macro v1.0.1
129
238
  Compiling swc_config v6.0.0
130
239
  Compiling digest v0.10.7
131
- Compiling arrayvec v0.7.8
132
240
  Compiling thiserror v1.0.69
241
+ Compiling arrayvec v0.7.8
242
+ Compiling swc_ecma_transforms_classes v49.0.0
243
+ Compiling thiserror-impl v1.0.69
244
+ Compiling swc_ecma_transforms_macros v1.0.1
133
245
  Compiling owo-colors v4.3.0
134
246
  Compiling semver v1.0.28
135
247
  Compiling unicode-linebreak v0.1.5
136
248
  Compiling fixedbitset v0.5.7
137
249
  Compiling base64 v0.22.1
138
- Compiling petgraph v0.7.1
139
250
  Compiling textwrap v0.16.2
140
- Compiling swc_ecma_utils v35.0.0
141
- Compiling swc_ecma_hooks v1.0.0
251
+ Compiling petgraph v0.7.1
252
+ Compiling swc_ecma_compat_common v45.0.0
253
+ Compiling miette-derive v7.6.0
142
254
  Compiling bumpalo v3.20.3
143
255
  Compiling thread_local v1.1.10
144
- Compiling unicode-width v0.1.14
145
- Compiling miette v7.6.0
146
- Compiling swc_ecma_transforms_base v49.0.1
147
256
  Compiling camino v1.2.4
257
+ Compiling unicode-width v0.1.14
258
+ Compiling swc_ecma_transforms_optimization v52.0.0
148
259
  Compiling swc_allocator v5.0.0
260
+ Compiling miette v7.6.0
261
+ Compiling swc_ecma_compat_es2015 v55.0.0
262
+ Compiling swc_ecma_compat_es2022 v53.0.0
149
263
  Compiling sha1 v0.10.7
150
264
  Compiling chrono v0.4.45
151
- Compiling syn v1.0.109
265
+ Compiling swc_ecma_codegen_macros v2.0.2
152
266
  Compiling lazy_static v1.5.0
153
267
  Compiling ascii v1.1.0
268
+ Compiling syn v1.0.109
154
269
  Compiling log v0.4.33
155
270
  Compiling tracing-log v0.2.0
271
+ Compiling swc_ecma_codegen v32.0.0
272
+ Compiling sharded-slab v0.1.7
156
273
  Compiling browserslist-data v0.2.0
157
- Compiling swc_ecma_transformer v21.0.1
158
- Compiling swc_ecma_transforms_classes v49.0.0
159
- Compiling swc_ecma_compat_common v45.0.0
160
- Compiling swc_ecma_compat_es2015 v55.0.0
161
- Compiling swc_ecma_compat_es2022 v53.0.0
162
- Compiling swc_ecma_transforms_optimization v52.0.0
163
274
  Compiling swc_ecma_compat_bugfixes v56.0.0
164
275
  Compiling swc_ecma_compat_es2020 v53.0.0
165
- Compiling swc_ecma_compat_es2017 v50.0.0
166
- Compiling swc_ecma_compat_es2021 v50.0.0
167
- Compiling swc_ecma_compat_es2016 v50.0.0
168
- Compiling swc_ecma_compat_es2018 v51.0.0
169
- Compiling swc_ecma_compat_es2019 v50.0.0
170
276
  Compiling swc_ecma_transforms_react v55.0.1
171
- Compiling swc_ecma_codegen v32.0.0
172
- Compiling sharded-slab v0.1.7
173
277
  Compiling swc_error_reporters v28.0.0
278
+ Compiling swc_ecma_compat_es2018 v51.0.0
279
+ Compiling swc_ecma_compat_es2016 v50.0.0
280
+ Compiling swc_ecma_compat_es2021 v50.0.0
281
+ Compiling swc_ecma_compat_es2017 v50.0.0
282
+ Compiling swc_ecma_compat_es2019 v50.0.0
174
283
  Compiling matchers v0.2.0
175
284
  Compiling itertools v0.15.0
176
285
  Compiling cargo-platform v0.1.9
286
+ Compiling static-map-macro v0.3.4
177
287
  Compiling nom v8.0.0
178
- Compiling nu-ansi-term v0.50.3
179
- Compiling yansi v1.0.1
180
288
  Compiling diff v0.1.13
181
- Compiling pretty_assertions v1.4.1
289
+ Compiling yansi v1.0.1
290
+ Compiling precomputed-map v0.2.0
291
+ Compiling nu-ansi-term v0.50.3
292
+ Compiling relative-path v1.9.3
293
+ Compiling glob v0.3.4
294
+ Compiling foldhash v0.1.5
295
+ Compiling testing_macros v1.0.2
296
+ Compiling swc_ecma_preset_env v63.0.0
297
+ Compiling browserslist-rs v0.20.0
182
298
  Compiling tracing-subscriber v0.3.23
299
+ Compiling pretty_assertions v1.4.1
183
300
  Compiling st-map v0.2.4
184
301
  Compiling cargo_metadata v0.18.1
185
- Compiling browserslist-rs v0.20.0
186
- Compiling swc_ecma_transforms_typescript v55.0.1
187
302
  Compiling swc_ecma_transforms_compat v57.0.1
303
+ Compiling swc_ecma_transforms_typescript v55.0.1
188
304
  Compiling swc_ecma_transforms_proposal v49.0.0
189
305
  Compiling par-iter v2.0.0
306
+ Compiling radix_fmt v1.0.0
190
307
  Compiling difference v2.0.0
191
308
  Compiling ryu-js v1.0.3
192
309
  Compiling pathdiff v0.2.3
193
- Compiling radix_fmt v1.0.0
194
- Compiling swc_ecma_transforms v62.0.0
310
+ Compiling swc_ecma_minifier v61.0.4
195
311
  Compiling testing v27.0.0
312
+ Compiling swc_ecma_transforms v62.0.0
196
313
  Compiling preset_env_base v9.0.0
197
- Compiling swc_ecma_preset_env v63.0.0
198
- Compiling swc_ecma_minifier v61.0.4
199
314
  Compiling sha2 v0.10.9
200
315
  Compiling lru v0.18.4
201
- Compiling precomputed-map v0.2.0
202
316
  Compiling hex v0.4.3
203
- Compiling foldhash v0.1.5
204
- Compiling unicode-segmentation v1.13.3
205
317
  Compiling path-clean v1.0.1
206
318
  Compiling fastrand v2.5.0
319
+ Compiling unicode-segmentation v1.13.3
207
320
  Compiling tempfile v3.27.0
208
- Compiling swc_ecma_loader v27.0.0
209
321
  Compiling convert_case v0.6.0
210
322
  Compiling swc_ecma_testing v27.0.0
323
+ Compiling swc_ecma_loader v27.0.0
211
324
  Compiling swc_ecma_ext_transforms v35.0.0
325
+ Compiling swc_compiler_base v64.0.0
212
326
  Compiling swc_node_comments v27.0.0
213
327
  Compiling swc_transform_common v20.0.0
214
328
  Compiling jsonc-parser v0.26.3
215
329
  Compiling ansi_term v0.12.1
216
330
  Compiling swc_core v77.1.2
217
331
  Compiling swc_ecma_transforms_testing v53.0.0
218
- Compiling napi-derive-backend v1.0.40
219
- Compiling swc_compiler_base v64.0.0
332
+ Compiling swc_ecma_quote_macros v45.0.1
220
333
  Compiling swc v75.0.1
334
+ Compiling napi-derive-backend v1.0.40
221
335
  Compiling ctor v0.1.26
222
- Compiling bitflags v1.3.2
223
336
  Compiling napi-sys v2.4.0
337
+ Compiling bitflags v1.3.2
224
338
  Compiling napi v2.10.4
225
339
  Compiling napi-derive v2.9.3
226
340
  Compiling convert_case v0.11.0
227
341
  Compiling sha-1 v0.10.1
228
342
  Compiling sugar_path v1.2.1
229
- Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
230
343
  Compiling hybrid-array v0.4.13
231
- Compiling crypto-common v0.2.2
344
+ Compiling swc_plugins_shared v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugins_shared)
232
345
  Compiling block-buffer v0.12.1
346
+ Compiling crypto-common v0.2.2
233
347
  Compiling const-oid v0.10.2
234
348
  Compiling digest v0.11.3
235
349
  Compiling napi-build v2.3.2
@@ -242,12 +356,12 @@ $ node ./scripts/build_wasm.js
242
356
  Compiling swc_plugin_element_template v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_element_template)
243
357
  Compiling swc_plugin_list v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_list)
244
358
  Compiling swc_plugin_inject v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_inject)
245
- Compiling swc_plugin_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_compat)
246
- Compiling swc_plugin_dynamic_import v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_dynamic_import)
247
- Compiling swc_plugin_shake v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_shake)
248
- Compiling swc_plugin_worklet v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_worklet)
249
359
  Compiling swc_plugin_text v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_text)
250
360
  Compiling swc_plugin_css_scope v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_css_scope)
361
+ Compiling swc_plugin_worklet v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_worklet)
362
+ Compiling swc_plugin_shake v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_shake)
363
+ Compiling swc_plugin_dynamic_import v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_dynamic_import)
364
+ Compiling swc_plugin_compat v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_compat)
251
365
  Compiling swc_plugin_background_only v0.1.0 (/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/crates/swc_plugin_background_only)
252
366
  Compiling version-compare v0.2.1
253
- Finished `release` profile [optimized] target(s) in 6m 28s
367
+ Finished `release` profile [optimized] target(s) in 3m 41s
@@ -2186,8 +2186,8 @@ export function getCurrentDelta(event) {
2186
2186
  var captureMainThreadObject = __captureMainThreadObject;
2187
2187
  export let getCurrentDelta = {
2188
2188
  _c: {
2189
- foo: captureMainThreadObject(foo) ?? {
2190
- bar: ((__mainThreadObjectSource)=>captureMainThreadObject(__mainThreadObjectSource) ?? {
2189
+ foo: captureMainThreadObject?.(foo) ?? {
2190
+ bar: ((__mainThreadObjectSource)=>captureMainThreadObject?.(__mainThreadObjectSource) ?? {
2191
2191
  baz: __mainThreadObjectSource.baz
2192
2192
  })(foo.bar)
2193
2193
  }
@@ -2208,8 +2208,8 @@ export function getCurrentDelta(event) {
2208
2208
  var captureMainThreadObject = __captureMainThreadObject;
2209
2209
  export let getCurrentDelta = {
2210
2210
  _c: {
2211
- foo: captureMainThreadObject(foo) ?? {
2212
- bar: ((__mainThreadObjectSource)=>captureMainThreadObject(__mainThreadObjectSource) ?? {
2211
+ foo: captureMainThreadObject?.(foo) ?? {
2212
+ bar: ((__mainThreadObjectSource)=>captureMainThreadObject?.(__mainThreadObjectSource) ?? {
2213
2213
  baz: __mainThreadObjectSource.baz
2214
2214
  })(foo.bar)
2215
2215
  }
@@ -2225,8 +2225,8 @@ export function getCurrentDelta(event) {
2225
2225
  var captureMainThreadObject = __captureMainThreadObject;
2226
2226
  export let getCurrentDelta = {
2227
2227
  _c: {
2228
- foo: captureMainThreadObject(foo) ?? {
2229
- bar: ((__mainThreadObjectSource)=>captureMainThreadObject(__mainThreadObjectSource) ?? {
2228
+ foo: captureMainThreadObject?.(foo) ?? {
2229
+ bar: ((__mainThreadObjectSource)=>captureMainThreadObject?.(__mainThreadObjectSource) ?? {
2230
2230
  baz: __mainThreadObjectSource.baz
2231
2231
  })(foo.bar)
2232
2232
  }
@@ -2286,16 +2286,16 @@ export function foo(event) {
2286
2286
  var captureMainThreadObject = __captureMainThreadObject;
2287
2287
  export let foo = {
2288
2288
  _c: {
2289
- bar: captureMainThreadObject(bar) ?? {
2290
- baz: ((__mainThreadObjectSource)=>captureMainThreadObject(__mainThreadObjectSource) ?? {
2289
+ bar: captureMainThreadObject?.(bar) ?? {
2290
+ baz: ((__mainThreadObjectSource)=>captureMainThreadObject?.(__mainThreadObjectSource) ?? {
2291
2291
  'qux': __mainThreadObjectSource['qux']
2292
2292
  })(bar.baz),
2293
- qux: ((__mainThreadObjectSource)=>captureMainThreadObject(__mainThreadObjectSource) ?? {
2293
+ qux: ((__mainThreadObjectSource)=>captureMainThreadObject?.(__mainThreadObjectSource) ?? {
2294
2294
  'baz': __mainThreadObjectSource['baz']
2295
2295
  })(bar.qux)
2296
2296
  },
2297
- qux: captureMainThreadObject(qux) ?? {
2298
- bar: ((__mainThreadObjectSource)=>captureMainThreadObject(__mainThreadObjectSource) ?? {
2297
+ qux: captureMainThreadObject?.(qux) ?? {
2298
+ bar: ((__mainThreadObjectSource)=>captureMainThreadObject?.(__mainThreadObjectSource) ?? {
2299
2299
  baz: __mainThreadObjectSource.baz
2300
2300
  })(qux.bar)
2301
2301
  }