Skip to content

Commit

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

* fix workflow file

* fix readme
  • Loading branch information
dai-shi committed Jan 15, 2023
1 parent e7e8524 commit e6ba1d5
Show file tree
Hide file tree
Showing 6 changed files with 542 additions and 403 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-multiple-versions.yml
Expand Up @@ -33,8 +33,8 @@ jobs:
- 18.0.0
- 18.1.0
- 18.2.0
- 18.3.0-next-de7d1c907-20221223
- 0.0.0-experimental-de7d1c907-20221223
- 18.3.0-next-555ece0cd-20230112
- 0.0.0-experimental-555ece0cd-20230112
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-old-typescript.yml
Expand Up @@ -48,7 +48,7 @@ jobs:
sed -i~ '1s/^/import React from "react";/' tests/*.tsx
sed -i~ "s/\"jsx\": \"react-jsx\",/\"jsx\": \"react\",/" tsconfig.json
sed -i~ "s/\"noUncheckedIndexedAccess\": true,//" tsconfig.json
yarn json -I -f package.json -e "this.resolutions['@types/jest']='26.0.14'; this.resolutions['pretty-format']='25.5.0'; this.resolutions['@types/prettier']='2.4.2';"
yarn json -I -f package.json -e "this.resolutions={}; this.resolutions['@types/jest']='26.0.14'; this.resolutions['pretty-format']='25.5.0'; this.resolutions['@types/prettier']='2.4.2';"
yarn add -D @types/jest@26.0.14 pretty-format@25.5.0 @types/prettier@2.4.2 @types/yargs@17.0.13 @types/babel__traverse@7.18.2
rm -r tests/macro-vite.*
- name: Test ${{ matrix.typescript }}
Expand Down
29 changes: 13 additions & 16 deletions package.json
Expand Up @@ -141,56 +141,53 @@
"@babel/plugin-transform-typescript": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"@babel/types": "^7.20.7",
"@redux-devtools/extension": "^3.2.3",
"@redux-devtools/extension": "^3.2.4",
"@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-typescript": "^10.0.1",
"@swc/core": "1.3.24",
"@rollup/plugin-typescript": "^11.0.0",
"@swc/core": "^1.3.26",
"@swc/jest": "^0.2.24",
"@testing-library/react": "^13.4.0",
"@types/babel-plugin-macros": "^2.8.5",
"@types/jest": "^29.2.5",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@types/use-sync-external-store": "^0.0.3",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"aslemammad-vite-plugin-macro": "^1.0.0",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-tester": "^10.1.0",
"concurrently": "^7.6.0",
"downlevel-dts": "^0.11.0",
"esbuild": "^0.16.14",
"eslint": "^8.31.0",
"esbuild": "^0.17.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.2.0",
"eslint-plugin-import": "^2.27.4",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react": "^7.32.0",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"json": "^11.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.8.1",
"proxy-memoize": "^2.0.0",
"prettier": "^2.8.3",
"proxy-memoize": "^2.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"redux": "^4.2.0",
"rollup": "^3.9.1",
"rollup": "^3.10.0",
"rollup-plugin-esbuild": "^5.0.0",
"rollup-plugin-terser": "^7.0.2",
"shx": "^0.3.4",
"tslib": "^2.4.1",
"typescript": "^4.9.4",
"vite": "^4.0.4"
},
"resolutions": {
"date-fns": "2.27.0"
},
"peerDependencies": {
"react": ">=16.8"
},
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Expand Up @@ -280,11 +280,11 @@ import { useProxy } from 'valtio/utils'
const state = proxy({ count: 1 })

const Component = () => {
const state = useProxy(state) // the local state variable is combined with proxy state and its snapshot
const combined = useProxy(state) // combined with proxy state and its snapshot
return (
<div>
{state.count}
<button onClick={() => ++state.count}>+1</button>
{combined.count}
<button onClick={() => ++combined.count}>+1</button>
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/vanilla/utils/devtools.ts
Expand Up @@ -51,7 +51,7 @@ export function devtools<T extends object>(
}
const { enabled, name = '' } = options || {}

let extension: typeof window['__REDUX_DEVTOOLS_EXTENSION__'] | false
let extension: (typeof window)['__REDUX_DEVTOOLS_EXTENSION__'] | false
try {
extension = (enabled ?? __DEV__) && window.__REDUX_DEVTOOLS_EXTENSION__
} catch {
Expand Down

1 comment on commit e6ba1d5

@vercel
Copy link

@vercel vercel bot commented on e6ba1d5 Jan 15, 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-pmndrs.vercel.app
valtio.vercel.app

Please sign in to comment.