Skip to content

Commit

Permalink
chore: update dependencies (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi authored Apr 29, 2024
1 parent a5eb32b commit 5b12381
Show file tree
Hide file tree
Showing 5 changed files with 1,269 additions and 1,597 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-multiple-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:
- 18.0.0
- 18.1.0
- 18.2.0
- 18.3.0-canary-2f8f77602-20240229
- 0.0.0-experimental-2f8f77602-20240229
- 18.3.1
- 19.0.0-beta-94eed63c49-20240425
- 0.0.0-experimental-94eed63c49-20240425
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@
"dependencies": {
"derive-valtio": "0.1.0",
"proxy-compare": "2.6.0",
"use-sync-external-store": "1.2.0"
"use-sync-external-store": "1.2.2"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/helper-module-imports": "^7.22.15",
"@babel/core": "^7.24.4",
"@babel/helper-module-imports": "^7.24.3",
"@babel/plugin-transform-react-jsx": "^7.23.4",
"@babel/plugin-transform-typescript": "^7.23.6",
"@babel/preset-env": "^7.24.0",
"@babel/plugin-transform-typescript": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/types": "^7.24.0",
"@redux-devtools/extension": "^3.3.0",
"@rollup/plugin-alias": "^5.1.0",
Expand All @@ -122,47 +122,47 @@
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@testing-library/react": "^14.2.1",
"@testing-library/react": "^15.0.5",
"@types/babel-plugin-macros": "^3.1.3",
"@types/jsdom": "^21.1.6",
"@types/react": "18.2.56",
"@types/react-dom": "^18.2.19",
"@types/react-dom": "^18.3.0",
"@types/use-sync-external-store": "^0.0.6",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/ui": "^1.4.0",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@vitest/coverage-v8": "^1.5.2",
"@vitest/ui": "^1.5.2",
"aslemammad-vite-plugin-macro": "^1.0.0",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-tester": "10.1.0",
"concurrently": "^8.2.2",
"downlevel-dts": "^0.11.0",
"esbuild": "^0.20.1",
"eslint": "^8.57.0",
"esbuild": "^0.20.2",
"eslint": "8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-vitest": "^0.3.22",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-vitest": "^0.5.4",
"jest-leak-detector": "^29.7.0",
"jsdom": "^24.0.0",
"json": "^11.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^3.2.5",
"proxy-memoize": "^2.0.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"redux": "^5.0.1",
"rollup": "^4.12.0",
"rollup": "^4.17.0",
"rollup-plugin-esbuild": "^6.1.1",
"shx": "^0.3.4",
"ts-expect": "^1.3.0",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.1.4",
"vitest": "^1.4.0"
"typescript": "^5.4.5",
"vite": "^5.2.10",
"vitest": "^1.5.2"
},
"resolutions": {
"@types/react": "18.2.56"
Expand Down
2 changes: 1 addition & 1 deletion src/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function useSnapshot<T extends object>(
})
if (import.meta.env?.MODE !== 'production') {
// eslint-disable-next-line react-hooks/rules-of-hooks
useAffectedDebugValue(currSnapshot, currAffected)
useAffectedDebugValue(currSnapshot as object, currAffected)
}
const proxyCache = useMemo(() => new WeakMap(), []) // per-hook proxyCache
return createProxyToCompare(
Expand Down
8 changes: 4 additions & 4 deletions src/vanilla.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,13 @@ const buildProxyFunction = (
if (value instanceof Promise) {
value
.then((v) => {
value.status = 'fulfilled'
value.value = v
;(value as any).status = 'fulfilled'
;(value as any).value = v
notifyUpdate(['resolve', [prop], v])
})
.catch((e) => {
value.status = 'rejected'
value.reason = e
;(value as any).status = 'rejected'
;(value as any).reason = e
notifyUpdate(['reject', [prop], e])
})
} else {
Expand Down
Loading

0 comments on commit 5b12381

Please sign in to comment.