Skip to content

Commit

Permalink
chore(deps): update dev dependencies (#740)
Browse files Browse the repository at this point in the history
* chore(deps): update dev dependencies

* fix typing

* update snapshots
  • Loading branch information
dai-shi authored Jun 21, 2023
1 parent 9696c24 commit 161de07
Show file tree
Hide file tree
Showing 5 changed files with 1,347 additions and 1,169 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 @@ -33,8 +33,8 @@ jobs:
- 18.0.0
- 18.1.0
- 18.2.0
- 18.3.0-canary-aef7ce554-20230503
- 0.0.0-experimental-aef7ce554-20230503
- 18.3.0-canary-d1c8cdae3-20230619
- 0.0.0-experimental-d1c8cdae3-20230619
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,59 +102,59 @@
"use-sync-external-store": "1.2.0"
},
"devDependencies": {
"@babel/core": "^7.21.8",
"@babel/helper-module-imports": "^7.21.4",
"@babel/plugin-transform-react-jsx": "^7.21.5",
"@babel/plugin-transform-typescript": "^7.21.3",
"@babel/preset-env": "^7.21.5",
"@babel/types": "^7.21.5",
"@babel/core": "^7.22.5",
"@babel/helper-module-imports": "^7.22.5",
"@babel/plugin-transform-react-jsx": "^7.22.5",
"@babel/plugin-transform-typescript": "^7.22.5",
"@babel/preset-env": "^7.22.5",
"@babel/types": "^7.22.5",
"@redux-devtools/extension": "^3.2.5",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-terser": "^0.4.1",
"@rollup/plugin-typescript": "^11.1.0",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.1",
"@testing-library/react": "^14.0.0",
"@types/babel-plugin-macros": "^3.1.0",
"@types/jsdom": "^21.1.1",
"@types/react": "^18.2.5",
"@types/react-dom": "^18.2.3",
"@types/react": "^18.2.13",
"@types/react-dom": "^18.2.6",
"@types/use-sync-external-store": "^0.0.3",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"@vitest/coverage-c8": "^0.31.0",
"@vitest/ui": "^0.31.0",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@vitest/coverage-c8": "^0.32.2",
"@vitest/ui": "^0.32.2",
"aslemammad-vite-plugin-macro": "^1.0.0",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-tester": "10.1.0",
"concurrently": "^8.0.1",
"concurrently": "^8.2.0",
"downlevel-dts": "^0.11.0",
"esbuild": "^0.17.18",
"eslint": "^8.39.0",
"esbuild": "^0.18.6",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-vitest": "^0.1.5",
"jsdom": "^22.0.0",
"eslint-plugin-vitest": "^0.2.6",
"jsdom": "^22.1.0",
"json": "^11.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.8.8",
"proxy-memoize": "^2.0.3",
"proxy-memoize": "^2.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"redux": "^4.2.1",
"rollup": "^3.21.4",
"rollup": "^3.25.1",
"rollup-plugin-esbuild": "^5.0.0",
"shx": "^0.3.4",
"ts-expect": "^1.3.0",
"tslib": "^2.5.0",
"typescript": "^5.0.4",
"vite": "^4.3.4",
"vitest": "^0.31.0"
"tslib": "^2.5.3",
"typescript": "^5.1.3",
"vite": "^4.3.9",
"vitest": "^0.32.2"
},
"peerDependencies": {
"react": ">=16.8"
Expand Down
4 changes: 2 additions & 2 deletions src/vanilla/utils/derive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ export function derive<T extends object, U extends object>(
})
lastDependencies = dependencies
}
if (value instanceof Promise) {
value.finally(subscribeToDependencies)
if ((value as unknown) instanceof Promise) {
;(value as Promise<unknown>).finally(subscribeToDependencies)
} else {
subscribeToDependencies()
}
Expand Down
4 changes: 2 additions & 2 deletions tests/__snapshots__/macro-vite.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`basic 1`] = `
const Component = () => {const valtio_macro_snap_state = _useSnapshot(
state);
state);
return (
<div>
{valtio_macro_snap_state.count}
Expand All @@ -20,7 +20,7 @@ exports[`complex 1`] = `
const Component = () => {const valtio_macro_snap_state = _useSnapshot(
state);
state);
return (
<div>
<button onClick={() => {
Expand Down
Loading

1 comment on commit 161de07

@vercel
Copy link

@vercel vercel bot commented on 161de07 Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

valtio – ./

valtio-git-main-pmndrs.vercel.app
valtio.pmnd.rs
valtio.vercel.app
valtio-pmndrs.vercel.app

Please sign in to comment.