@lynx-js/react-canary 0.114.6-canary-20251127-2765ceaa → 0.114.6-canary-20251128-62e816d6
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 +3 -1
- package/package.json +1 -1
- package/refresh/.turbo/turbo-build.log +1 -1
- package/runtime/lazy/legacy-react-runtime.js +2 -0
- package/runtime/lib/legacy-react-runtime/index.d.ts +3 -1
- package/runtime/lib/legacy-react-runtime/index.js +1 -1
- package/runtime/lib/legacy-react-runtime/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# @lynx-js/react
|
|
2
2
|
|
|
3
|
-
## 0.114.6-canary-
|
|
3
|
+
## 0.114.6-canary-20251128061800-62e816d68c0c932e9c75af650307292b8c050304
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Preserve assignments to webpack runtime variables like `__webpack_public_path__`, `__webpack_require__.p`, etc. ([#1958](https://github.com/lynx-family/lynx-stack/pull/1958))
|
|
8
8
|
|
|
9
|
+
- fix: export `createRef` and `useRef` from `@lynx-js/react/legacy-react-runtime` ([#1953](https://github.com/lynx-family/lynx-stack/pull/1953))
|
|
10
|
+
|
|
9
11
|
## 0.114.5
|
|
10
12
|
|
|
11
13
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-canary",
|
|
3
|
-
"version": "0.114.6-canary-
|
|
3
|
+
"version": "0.114.6-canary-20251128-62e816d6",
|
|
4
4
|
"description": "ReactLynx is a framework for developing Lynx applications with familiar React.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { createRef } from 'preact';
|
|
2
|
+
import { useRef } from '../hooks/react.js';
|
|
1
3
|
declare function __runInJS<T>(value: T): T | undefined | null;
|
|
2
4
|
export { ComponentFromReactRuntime as Component } from '../compat/lynxComponent.js';
|
|
3
5
|
export { ComponentFromReactRuntime as PureComponent } from '../compat/lynxComponent.js';
|
|
4
6
|
export { createContext } from 'preact';
|
|
5
7
|
export { lazy } from 'preact/compat';
|
|
6
8
|
export { useState, useReducer, useEffect, useMemo, useCallback } from '../hooks/react.js';
|
|
7
|
-
export { __runInJS };
|
|
9
|
+
export { __runInJS, createRef, useRef };
|
|
@@ -15,7 +15,7 @@ export { ComponentFromReactRuntime as PureComponent } from '../compat/lynxCompon
|
|
|
15
15
|
export { createContext } from 'preact';
|
|
16
16
|
export { lazy } from 'preact/compat';
|
|
17
17
|
export { useState, useReducer, useEffect, useMemo, useCallback /*, useInstance */ } from '../hooks/react.js';
|
|
18
|
-
export { __runInJS };
|
|
18
|
+
export { __runInJS, createRef, useRef };
|
|
19
19
|
/**
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/legacy-react-runtime/index.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,yEAAyE;AACzE,0DAA0D;AAC1D,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EACL,yBAAyB,IAAI,SAAS,EACtC,yBAAyB,IAAI,aAAa,GAC3C,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElG,sBAAsB;AACtB,SAAS,SAAS,CAAI,KAAQ;IAC5B,OAAO,KAAK,CAAC;AACf,CAAC;AAED,iDAAiD;AACjD,OAAO,EAAE,yBAAyB,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAE,yBAAyB,IAAI,aAAa,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