Skip to content

Commit 5b12381

Browse files
authored
chore: update dependencies (#888)
1 parent a5eb32b commit 5b12381

File tree

5 files changed

+1269
-1597
lines changed

5 files changed

+1269
-1597
lines changed

.github/workflows/test-multiple-versions.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ jobs:
3333
- 18.0.0
3434
- 18.1.0
3535
- 18.2.0
36-
- 18.3.0-canary-2f8f77602-20240229
37-
- 0.0.0-experimental-2f8f77602-20240229
36+
- 18.3.1
37+
- 19.0.0-beta-94eed63c49-20240425
38+
- 0.0.0-experimental-94eed63c49-20240425
3839
steps:
3940
- uses: actions/checkout@v2
4041
- uses: actions/setup-node@v2

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@
106106
"dependencies": {
107107
"derive-valtio": "0.1.0",
108108
"proxy-compare": "2.6.0",
109-
"use-sync-external-store": "1.2.0"
109+
"use-sync-external-store": "1.2.2"
110110
},
111111
"devDependencies": {
112-
"@babel/core": "^7.24.0",
113-
"@babel/helper-module-imports": "^7.22.15",
112+
"@babel/core": "^7.24.4",
113+
"@babel/helper-module-imports": "^7.24.3",
114114
"@babel/plugin-transform-react-jsx": "^7.23.4",
115-
"@babel/plugin-transform-typescript": "^7.23.6",
116-
"@babel/preset-env": "^7.24.0",
115+
"@babel/plugin-transform-typescript": "^7.24.4",
116+
"@babel/preset-env": "^7.24.4",
117117
"@babel/types": "^7.24.0",
118118
"@redux-devtools/extension": "^3.3.0",
119119
"@rollup/plugin-alias": "^5.1.0",
@@ -122,47 +122,47 @@
122122
"@rollup/plugin-replace": "^5.0.5",
123123
"@rollup/plugin-terser": "^0.4.4",
124124
"@rollup/plugin-typescript": "^11.1.6",
125-
"@testing-library/react": "^14.2.1",
125+
"@testing-library/react": "^15.0.5",
126126
"@types/babel-plugin-macros": "^3.1.3",
127127
"@types/jsdom": "^21.1.6",
128128
"@types/react": "18.2.56",
129-
"@types/react-dom": "^18.2.19",
129+
"@types/react-dom": "^18.3.0",
130130
"@types/use-sync-external-store": "^0.0.6",
131-
"@typescript-eslint/eslint-plugin": "^7.1.0",
132-
"@typescript-eslint/parser": "^7.1.0",
133-
"@vitest/coverage-v8": "^1.4.0",
134-
"@vitest/ui": "^1.4.0",
131+
"@typescript-eslint/eslint-plugin": "^7.7.1",
132+
"@typescript-eslint/parser": "^7.7.1",
133+
"@vitest/coverage-v8": "^1.5.2",
134+
"@vitest/ui": "^1.5.2",
135135
"aslemammad-vite-plugin-macro": "^1.0.0",
136136
"babel-plugin-macros": "^3.1.0",
137137
"babel-plugin-tester": "10.1.0",
138138
"concurrently": "^8.2.2",
139139
"downlevel-dts": "^0.11.0",
140-
"esbuild": "^0.20.1",
141-
"eslint": "^8.57.0",
140+
"esbuild": "^0.20.2",
141+
"eslint": "8.57.0",
142142
"eslint-config-prettier": "^9.1.0",
143143
"eslint-import-resolver-alias": "^1.1.2",
144144
"eslint-plugin-import": "^2.29.1",
145145
"eslint-plugin-prettier": "^5.1.3",
146-
"eslint-plugin-react": "^7.33.2",
147-
"eslint-plugin-react-hooks": "^4.6.0",
148-
"eslint-plugin-vitest": "^0.3.22",
146+
"eslint-plugin-react": "^7.34.1",
147+
"eslint-plugin-react-hooks": "^4.6.2",
148+
"eslint-plugin-vitest": "^0.5.4",
149149
"jest-leak-detector": "^29.7.0",
150150
"jsdom": "^24.0.0",
151151
"json": "^11.0.0",
152152
"postinstall-postinstall": "^2.1.0",
153153
"prettier": "^3.2.5",
154154
"proxy-memoize": "^2.0.5",
155-
"react": "^18.2.0",
156-
"react-dom": "^18.2.0",
155+
"react": "^18.3.1",
156+
"react-dom": "^18.3.1",
157157
"redux": "^5.0.1",
158-
"rollup": "^4.12.0",
158+
"rollup": "^4.17.0",
159159
"rollup-plugin-esbuild": "^6.1.1",
160160
"shx": "^0.3.4",
161161
"ts-expect": "^1.3.0",
162162
"tslib": "^2.6.2",
163-
"typescript": "^5.3.3",
164-
"vite": "^5.1.4",
165-
"vitest": "^1.4.0"
163+
"typescript": "^5.4.5",
164+
"vite": "^5.2.10",
165+
"vitest": "^1.5.2"
166166
},
167167
"resolutions": {
168168
"@types/react": "18.2.56"

src/react.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export function useSnapshot<T extends object>(
164164
})
165165
if (import.meta.env?.MODE !== 'production') {
166166
// eslint-disable-next-line react-hooks/rules-of-hooks
167-
useAffectedDebugValue(currSnapshot, currAffected)
167+
useAffectedDebugValue(currSnapshot as object, currAffected)
168168
}
169169
const proxyCache = useMemo(() => new WeakMap(), []) // per-hook proxyCache
170170
return createProxyToCompare(

src/vanilla.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,13 @@ const buildProxyFunction = (
276276
if (value instanceof Promise) {
277277
value
278278
.then((v) => {
279-
value.status = 'fulfilled'
280-
value.value = v
279+
;(value as any).status = 'fulfilled'
280+
;(value as any).value = v
281281
notifyUpdate(['resolve', [prop], v])
282282
})
283283
.catch((e) => {
284-
value.status = 'rejected'
285-
value.reason = e
284+
;(value as any).status = 'rejected'
285+
;(value as any).reason = e
286286
notifyUpdate(['reject', [prop], e])
287287
})
288288
} else {

0 commit comments

Comments
 (0)