Skip to content

Commit

Permalink
chore(deps): update dev dependencies (pmndrs#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi authored Jan 10, 2022
1 parent c2f9fa3 commit df37941
Show file tree
Hide file tree
Showing 5 changed files with 1,284 additions and 1,475 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-multiple-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- 16.9.0
- 17.0.0
- 18.0.0-rc.0
- 0.0.0-experimental-3dc41d8a2-20211223
- 0.0.0-experimental-fe905f152-20220107
mode: [NORMAL, PROVIDER_LESS, VERSIONED_WRITE]
testing: [default, alpha]
exclude:
Expand All @@ -49,7 +49,7 @@ jobs:
- { react: 16.9.0, testing: alpha }
- { react: 17.0.0, testing: alpha }
- { react: 18.0.0-rc.0, testing: default } # suspense doesn't work?
- { react: 0.0.0-experimental-3dc41d8a2-20211223, testing: default } # suspense doesn't work?
- { react: 0.0.0-experimental-fe905f152-20220107, testing: default } # suspense doesn't work?
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
58 changes: 28 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@
"test:ci": "jest",
"test:dev": "jest --watch --no-coverage",
"test:coverage:watch": "jest --watch",
"copy": "shx cp -r dist/src/* dist/esm && shx cp -r dist/src/* dist && shx rm -rf dist/src && shx rm -rf dist/{src,tests} && downlevel-dts dist dist/ts3.4 && shx cp package.json readme.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.prettier=undefined; this.jest=undefined; this['lint-staged']=undefined;\"",
"postinstall": "patch-package"
"copy": "shx cp -r dist/src/* dist/esm && shx cp -r dist/src/* dist && shx rm -rf dist/src && shx rm -rf dist/{src,tests} && downlevel-dts dist dist/ts3.4 && shx cp package.json readme.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.prettier=undefined; this.jest=undefined; this['lint-staged']=undefined;\""
},
"engines": {
"node": ">=12.7.0"
Expand Down Expand Up @@ -200,62 +199,61 @@
]
},
"devDependencies": {
"@babel/core": "^7.15.5",
"@babel/plugin-transform-react-jsx": "^7.16.5",
"@babel/plugin-transform-typescript": "^7.16.1",
"@babel/preset-env": "^7.16.5",
"@babel/template": "^7.15.4",
"@babel/types": "^7.16.0",
"@babel/core": "^7.16.7",
"@babel/plugin-transform-react-jsx": "^7.16.7",
"@babel/plugin-transform-typescript": "^7.16.8",
"@babel/preset-env": "^7.16.8",
"@babel/template": "^7.16.7",
"@babel/types": "^7.16.8",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.1.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-typescript": "^8.3.0",
"@swc/core": "^1.2.124",
"@swc/core": "^1.2.127",
"@swc/jest": "^0.2.15",
"@testing-library/react": "^12.1.2",
"@types/jest": "^27.0.3",
"@types/jest": "^27.4.0",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.8.1",
"@urql/core": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"@urql/core": "^2.3.6",
"benny": "^3.7.1",
"concurrently": "^6.5.1",
"concurrently": "^7.0.0",
"downlevel-dts": "^0.7.0",
"esbuild": "^0.14.9",
"eslint": "^8.5.0",
"esbuild": "^0.14.11",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^25.3.2",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^25.3.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"graphql": "^16.2.0",
"husky": "^7.0.4",
"immer": "^8.0.1",
"jest": "^27.4.5",
"immer": "^9.0.7",
"jest": "^27.4.7",
"json": "^11.0.0",
"lint-staged": "^12.1.4",
"optics-ts": "^2.1.0",
"patch-package": "^6.4.7",
"lint-staged": "^12.1.7",
"optics-ts": "^2.3.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.5.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-query": "^3.21.0",
"react-query": "^3.34.7",
"redux": "^4.1.2",
"rollup": "^2.62.0",
"rollup": "^2.63.0",
"rollup-plugin-esbuild": "^4.8.2",
"rxjs": "^7.5.1",
"shx": "^0.3.3",
"shx": "^0.3.4",
"ts-expect": "^1.3.0",
"ts-node": "^10.4.0",
"tslib": "^2.3.1",
"typescript": "^4.5.4",
"valtio": "^1.2.4",
"valtio": "^1.2.7",
"wonka": "^4.0.15",
"xstate": "^4.26.0",
"zustand": "^3.6.8"
"xstate": "^4.27.0",
"zustand": "^3.6.9"
},
"peerDependencies": {
"@babel/core": "*",
Expand Down
31 changes: 0 additions & 31 deletions patches/xstate+4.26.1.patch

This file was deleted.

5 changes: 4 additions & 1 deletion src/immer/useImmerAtom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export function useImmerAtom<Value, Result extends void | Promise<void>>(
) {
const [state, setState] = useAtom(anAtom, scope)
const setStateWithImmer = useCallback(
(fn) => setState(produce((draft) => fn(draft)) as (value: Value) => Value),
(fn) =>
setState(
produce((draft) => fn(draft)) as unknown as (value: Value) => Value
),
[setState]
)
return [state, setStateWithImmer]
Expand Down
Loading

0 comments on commit df37941

Please sign in to comment.