mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
update dev dependencies
This commit is contained in:
parent
d0f2b49440
commit
5f0ee2e441
@ -28,8 +28,8 @@
|
||||
}
|
||||
},
|
||||
"middleware.js": {
|
||||
"bundled": 6662,
|
||||
"minified": 3355,
|
||||
"bundled": 6679,
|
||||
"minified": 3353,
|
||||
"gzipped": 1460,
|
||||
"treeshaked": {
|
||||
"rollup": {
|
||||
@ -56,9 +56,9 @@
|
||||
}
|
||||
},
|
||||
"context.js": {
|
||||
"bundled": 1227,
|
||||
"minified": 681,
|
||||
"gzipped": 331,
|
||||
"bundled": 1165,
|
||||
"minified": 657,
|
||||
"gzipped": 324,
|
||||
"treeshaked": {
|
||||
"rollup": {
|
||||
"code": 14,
|
||||
|
||||
30
package.json
30
package.json
@ -116,24 +116,24 @@
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.3",
|
||||
"@babel/plugin-external-helpers": "^7.12.13",
|
||||
"@babel/plugin-transform-react-jsx": "^7.14.3",
|
||||
"@babel/plugin-transform-runtime": "^7.14.3",
|
||||
"@babel/plugin-transform-typescript": "^7.14.4",
|
||||
"@babel/preset-env": "^7.14.4",
|
||||
"@babel/core": "^7.14.6",
|
||||
"@babel/plugin-external-helpers": "^7.14.5",
|
||||
"@babel/plugin-transform-react-jsx": "^7.14.5",
|
||||
"@babel/plugin-transform-runtime": "^7.14.5",
|
||||
"@babel/plugin-transform-typescript": "^7.14.6",
|
||||
"@babel/preset-env": "^7.14.5",
|
||||
"@rollup/plugin-babel": "^5.3.0",
|
||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||
"@rollup/plugin-typescript": "^8.2.1",
|
||||
"@testing-library/react": "^11.2.7",
|
||||
"@types/jest": "^26.0.23",
|
||||
"@types/react": "^17.0.9",
|
||||
"@types/react-dom": "^17.0.6",
|
||||
"@typescript-eslint/eslint-plugin": "^4.26.0",
|
||||
"@typescript-eslint/parser": "^4.26.0",
|
||||
"@types/react": "^17.0.11",
|
||||
"@types/react-dom": "^17.0.8",
|
||||
"@typescript-eslint/eslint-plugin": "^4.27.0",
|
||||
"@typescript-eslint/parser": "^4.27.0",
|
||||
"concurrently": "^6.2.0",
|
||||
"esbuild": "^0.12.6",
|
||||
"eslint": "^7.28.0",
|
||||
"esbuild": "^0.12.9",
|
||||
"eslint": "^7.29.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-import-resolver-alias": "^1.1.2",
|
||||
"eslint-plugin-import": "^2.23.4",
|
||||
@ -146,14 +146,14 @@
|
||||
"jest": "^27.0.4",
|
||||
"json": "^11.0.0",
|
||||
"lint-staged": "^11.0.0",
|
||||
"prettier": "^2.3.0",
|
||||
"prettier": "^2.3.1",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"rollup": "^2.50.6",
|
||||
"rollup": "^2.52.2",
|
||||
"rollup-plugin-esbuild": "^4.5.0",
|
||||
"rollup-plugin-size-snapshot": "^0.12.0",
|
||||
"shx": "^0.3.3",
|
||||
"typescript": "^4.3.2"
|
||||
"typescript": "^4.3.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=16.8"
|
||||
|
||||
@ -9,8 +9,9 @@ import { UseStore } from 'zustand'
|
||||
import { EqualityChecker, State, StateSelector } from './vanilla'
|
||||
|
||||
function createContext<TState extends State>() {
|
||||
const ZustandContext =
|
||||
reactCreateContext<UseStore<TState> | undefined>(undefined)
|
||||
const ZustandContext = reactCreateContext<UseStore<TState> | undefined>(
|
||||
undefined
|
||||
)
|
||||
|
||||
const Provider = ({
|
||||
initialStore,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user