@lynx-js/react-canary 0.114.3-canary-20251021-353312e0 → 0.114.3-canary-20251023-9fb4623f
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# @lynx-js/react
|
|
2
2
|
|
|
3
|
-
## 0.114.3-canary-
|
|
3
|
+
## 0.114.3-canary-20251023071457-9fb4623f0e4c98c97146840ffe529d95577fa628
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- Initialize `ctxNotFoundEventListener` before each test in testing library ([#1888](https://github.com/lynx-family/lynx-stack/pull/1888))
|
|
8
|
+
|
|
7
9
|
- fix: main thread functions created during the initial render cannot correctly modify `MainThreadRef`s after hydration ([#1884](https://github.com/lynx-family/lynx-stack/pull/1884))
|
|
8
10
|
|
|
9
11
|
## 0.114.2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-canary",
|
|
3
|
-
"version": "0.114.3-canary-
|
|
3
|
+
"version": "0.114.3-canary-20251023-9fb4623f",
|
|
4
4
|
"description": "ReactLynx is a framework for developing Lynx applications with familiar React.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -7,6 +7,7 @@ import { injectUpdateMainThread } from "../../runtime/lib/lifecycle/patch/update
|
|
|
7
7
|
import { injectUpdateMTRefInitValue } from "../../runtime/lib/worklet/ref/updateInitValue.js";
|
|
8
8
|
import { injectCalledByNative } from "../../runtime/lib/lynx/calledByNative.js";
|
|
9
9
|
import { flushDelayedLifecycleEvents, injectTt } from "../../runtime/lib/lynx/tt.js";
|
|
10
|
+
import { addCtxNotFoundEventListener } from "../../runtime/lib/lifecycle/patch/error.js";
|
|
10
11
|
import { setRoot } from "../../runtime/lib/root.js";
|
|
11
12
|
import { SnapshotInstance, backgroundSnapshotInstanceManager, snapshotInstanceManager } from "../../runtime/lib/snapshot.js";
|
|
12
13
|
import { destroyWorklet } from "../../runtime/lib/worklet/destroy.js";
|
|
@@ -98,10 +99,6 @@ globalThis.onInjectBackgroundThreadGlobals = (target)=>{
|
|
|
98
99
|
}
|
|
99
100
|
target._document = setupBackgroundDocument({});
|
|
100
101
|
target.globalPipelineOptions = void 0;
|
|
101
|
-
const oldLynxCoreInject = globalThis.lynxCoreInject;
|
|
102
|
-
globalThis.lynxCoreInject = target.lynxCoreInject;
|
|
103
|
-
injectTt();
|
|
104
|
-
globalThis.lynxCoreInject = oldLynxCoreInject;
|
|
105
102
|
target.lynx.requireModuleAsync = async (url, callback)=>{
|
|
106
103
|
try {
|
|
107
104
|
callback(null, await __vite_ssr_dynamic_import__(url));
|
|
@@ -119,6 +116,8 @@ globalThis.onResetLynxTestingEnv = ()=>{
|
|
|
119
116
|
lynxTestingEnv.switchToMainThread();
|
|
120
117
|
initEventListeners();
|
|
121
118
|
lynxTestingEnv.switchToBackgroundThread();
|
|
119
|
+
injectTt();
|
|
120
|
+
addCtxNotFoundEventListener();
|
|
122
121
|
};
|
|
123
122
|
globalThis.onSwitchedToMainThread = ()=>{
|
|
124
123
|
if (onSwitchedToMainThread) onSwitchedToMainThread();
|