@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 CHANGED
@@ -1,11 +1,13 @@
1
1
  # @lynx-js/react
2
2
 
3
- ## 0.114.6-canary-20251127035014-2765ceaa24c24bc2f4d4111472596125a074ed44
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-20251127-2765ceaa",
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",
@@ -5,7 +5,7 @@
5
5
  Rslib v0.15.0
6
6
 
7
7
  info build started...
8
- ready built in 0.09 s
8
+ ready built in 0.20 s
9
9
 
10
10
  File (esm) Size 
11
11
  dist/index.js 10.1 kB
@@ -9,11 +9,13 @@ export const {
9
9
  PureComponent,
10
10
  __runInJS,
11
11
  createContext,
12
+ createRef,
12
13
  lazy,
13
14
  useCallback,
14
15
  useEffect,
15
16
  useMemo,
16
17
  useReducer,
18
+ useRef,
17
19
  useState,
18
20
  } = target[sExportsLegacyReactRuntime];
19
21
 
@@ -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,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MA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