@streamlayer/react-polyfills 0.1.47 → 0.1.49

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/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as modernReact from 'react';
1
+ import React from 'react';
2
2
  import * as legacy from './legacy';
3
3
  export declare const useStore: typeof legacy.useStore;
4
- export declare const useTransition: typeof modernReact.useTransition;
4
+ export declare const useTransition: typeof React.useTransition;
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import * as modernReact from 'react';
1
+ import React from 'react';
2
2
  import * as legacy from './legacy';
3
3
  export const useStore = legacy.useStore;
4
4
  const legacyUseTransition = () => {
@@ -9,4 +9,4 @@ const legacyUseTransition = () => {
9
9
  },
10
10
  ];
11
11
  };
12
- export const useTransition = modernReact.useTransition || legacyUseTransition;
12
+ export const useTransition = React.useTransition || legacyUseTransition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-polyfills",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "type": "module",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",