hadars 0.1.19 → 0.1.20
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.
|
@@ -61,7 +61,8 @@ __export(slim_react_exports, {
|
|
|
61
61
|
useRef: () => useRef,
|
|
62
62
|
useState: () => useState,
|
|
63
63
|
useSyncExternalStore: () => useSyncExternalStore,
|
|
64
|
-
useTransition: () => useTransition
|
|
64
|
+
useTransition: () => useTransition,
|
|
65
|
+
version: () => version
|
|
65
66
|
});
|
|
66
67
|
module.exports = __toCommonJS(slim_react_exports);
|
|
67
68
|
|
|
@@ -910,6 +911,7 @@ var Component = class {
|
|
|
910
911
|
};
|
|
911
912
|
var PureComponent = class extends Component {
|
|
912
913
|
};
|
|
914
|
+
var version = "19.1.1";
|
|
913
915
|
var React = {
|
|
914
916
|
// Hooks
|
|
915
917
|
useState,
|
|
@@ -951,8 +953,8 @@ var React = {
|
|
|
951
953
|
renderToStream,
|
|
952
954
|
renderToString,
|
|
953
955
|
renderToReadableStream: renderToStream,
|
|
954
|
-
// Version
|
|
955
|
-
version
|
|
956
|
+
// Version
|
|
957
|
+
version
|
|
956
958
|
};
|
|
957
959
|
var slim_react_default = React;
|
|
958
960
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -997,5 +999,6 @@ var slim_react_default = React;
|
|
|
997
999
|
useRef,
|
|
998
1000
|
useState,
|
|
999
1001
|
useSyncExternalStore,
|
|
1000
|
-
useTransition
|
|
1002
|
+
useTransition,
|
|
1003
|
+
version
|
|
1001
1004
|
});
|
|
@@ -132,6 +132,7 @@ declare class Component<P = {}, S = {}> {
|
|
|
132
132
|
}
|
|
133
133
|
declare class PureComponent<P = {}, S = {}> extends Component<P, S> {
|
|
134
134
|
}
|
|
135
|
+
declare const version = "19.1.1";
|
|
135
136
|
declare const React: {
|
|
136
137
|
useState: typeof useState;
|
|
137
138
|
useReducer: typeof useReducer;
|
|
@@ -177,4 +178,4 @@ declare const React: {
|
|
|
177
178
|
version: string;
|
|
178
179
|
};
|
|
179
180
|
|
|
180
|
-
export { Children, Component, Context, PureComponent, SlimElement, SlimNode, Suspense, cloneElement, createContext, createElement, React as default, forwardRef, isValidElement, lazy, memo, renderToStream as renderToReadableStream, renderToStream, renderToString, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useFormStatus, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition };
|
|
181
|
+
export { Children, Component, Context, PureComponent, SlimElement, SlimNode, Suspense, cloneElement, createContext, createElement, React as default, forwardRef, isValidElement, lazy, memo, renderToStream as renderToReadableStream, renderToStream, renderToString, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useFormStatus, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, version };
|
package/dist/slim-react/index.js
CHANGED
|
@@ -820,6 +820,7 @@ var Component = class {
|
|
|
820
820
|
};
|
|
821
821
|
var PureComponent = class extends Component {
|
|
822
822
|
};
|
|
823
|
+
var version = "19.1.1";
|
|
823
824
|
var React = {
|
|
824
825
|
// Hooks
|
|
825
826
|
useState,
|
|
@@ -861,8 +862,8 @@ var React = {
|
|
|
861
862
|
renderToStream,
|
|
862
863
|
renderToString,
|
|
863
864
|
renderToReadableStream: renderToStream,
|
|
864
|
-
// Version
|
|
865
|
-
version
|
|
865
|
+
// Version
|
|
866
|
+
version
|
|
866
867
|
};
|
|
867
868
|
var slim_react_default = React;
|
|
868
869
|
export {
|
|
@@ -907,5 +908,6 @@ export {
|
|
|
907
908
|
useRef,
|
|
908
909
|
useState,
|
|
909
910
|
useSyncExternalStore,
|
|
910
|
-
useTransition
|
|
911
|
+
useTransition,
|
|
912
|
+
version
|
|
911
913
|
};
|
package/package.json
CHANGED
package/src/slim-react/index.ts
CHANGED
|
@@ -199,6 +199,12 @@ export class Component<P = {}, S = {}> {
|
|
|
199
199
|
|
|
200
200
|
export class PureComponent<P = {}, S = {}> extends Component<P, S> {}
|
|
201
201
|
|
|
202
|
+
// ---- Version ----
|
|
203
|
+
// Exported as a named export so that namespace imports (`import * as React`)
|
|
204
|
+
// — as used by react-redux and other libraries that check React.version —
|
|
205
|
+
// find it on the module namespace rather than only on the default export.
|
|
206
|
+
export const version = "19.1.1";
|
|
207
|
+
|
|
202
208
|
// ---- Default export ----
|
|
203
209
|
// Mirrors `import React from 'react'` so code that uses React.useState,
|
|
204
210
|
// React.createContext, React.Suspense, etc. works without changes.
|
|
@@ -218,8 +224,8 @@ const React = {
|
|
|
218
224
|
Children, Component, PureComponent,
|
|
219
225
|
// Rendering
|
|
220
226
|
renderToStream, renderToString, renderToReadableStream,
|
|
221
|
-
// Version
|
|
222
|
-
version
|
|
227
|
+
// Version
|
|
228
|
+
version,
|
|
223
229
|
};
|
|
224
230
|
|
|
225
231
|
export default React;
|