Skip to content

Commit

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

* revert react experimental versions
  • Loading branch information
dai-shi authored Jan 10, 2023
1 parent 2e516d6 commit 53df2ed
Show file tree
Hide file tree
Showing 7 changed files with 455 additions and 402 deletions.
2 changes: 1 addition & 1 deletion docs/utils/split-atom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const initialState = [
const todosAtom = atom(initialState)
const todoAtomsAtom = splitAtom(todosAtom)

type TodoType = typeof initialState[number]
type TodoType = (typeof initialState)[number]

const TodoItem = ({
todoAtom,
Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,41 +141,41 @@
]
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/plugin-transform-react-jsx": "^7.20.7",
"@babel/plugin-transform-typescript": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"@babel/template": "^7.20.7",
"@babel/types": "^7.20.7",
"@redux-devtools/extension": "^3.2.3",
"@redux-devtools/extension": "^3.2.4",
"@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.25",
"@swc/jest": "^0.2.24",
"@tanstack/query-core": "^4.20.4",
"@tanstack/query-core": "^4.22.0",
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.2.4",
"@types/jest": "^29.2.5",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"@urql/core": "^3.1.1",
"benny": "^3.7.1",
"concurrently": "^7.6.0",
"downlevel-dts": "^0.11.0",
"esbuild": "^0.16.12",
"eslint": "^8.30.0",
"eslint-config-prettier": "^8.5.0",
"esbuild": "^0.16.16",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.7",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"graphql": "^16.6.0",
"immer": "^9.0.16",
"immer": "^9.0.17",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jotai-devtools": "^0.1.0",
Expand All @@ -190,11 +190,11 @@
"json": "^11.0.0",
"optics-ts": "^2.4.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.8.1",
"prettier": "^2.8.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"redux": "^4.2.0",
"rollup": "^3.9.0",
"rollup": "^3.9.1",
"rollup-plugin-esbuild": "^5.0.0",
"rollup-plugin-terser": "^7.0.2",
"rxjs": "^7.8.0",
Expand All @@ -203,10 +203,10 @@
"ts-node": "^10.9.1",
"tslib": "^2.4.1",
"typescript": "^4.9.4",
"valtio": "^1.8.0",
"valtio": "^1.8.2",
"wonka": "^6.1.2",
"xstate": "^4.35.1",
"zustand": "^4.1.5"
"xstate": "^4.35.2",
"zustand": "^4.3.1"
},
"peerDependencies": {
"@babel/core": "*",
Expand Down
4 changes: 2 additions & 2 deletions src/react/devtools/useAtomDevtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function useAtomDevtools<Value, Result>(
): void {
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__
Expand All @@ -34,7 +34,7 @@ export function useAtomDevtools<Value, Result>(
const isTimeTraveling = useRef(false)
const devtools = useRef<
ReturnType<
NonNullable<typeof window['__REDUX_DEVTOOLS_EXTENSION__']>['connect']
NonNullable<(typeof window)['__REDUX_DEVTOOLS_EXTENSION__']>['connect']
> & {
shouldInit?: boolean
}
Expand Down
4 changes: 2 additions & 2 deletions src/react/devtools/useAtomsDevtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function useAtomsDevtools(
): void {
const { enabled } = 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__
Expand All @@ -63,7 +63,7 @@ export function useAtomsDevtools(
const isRecording = useRef(true)
const devtools = useRef<
ReturnType<
NonNullable<typeof window['__REDUX_DEVTOOLS_EXTENSION__']>['connect']
NonNullable<(typeof window)['__REDUX_DEVTOOLS_EXTENSION__']>['connect']
> & {
shouldInit?: boolean
}
Expand Down
4 changes: 3 additions & 1 deletion tests/core/basic.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,9 @@ it('sync re-renders with useState re-renders (#827)', async () => {
const rotateAtoms = () => {
setCurrentAtomIndex((prev) => (prev + 1) % atoms.length)
}
const [atomValue] = useAtom(atoms[currentAtomIndex] as typeof atoms[number])
const [atomValue] = useAtom(
atoms[currentAtomIndex] as (typeof atoms)[number]
)

return (
<>
Expand Down
4 changes: 3 additions & 1 deletion tests/react/basic.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,9 @@ it('sync re-renders with useState re-renders (#827)', async () => {
const rotateAtoms = () => {
setCurrentAtomIndex((prev) => (prev + 1) % atoms.length)
}
const [atomValue] = useAtom(atoms[currentAtomIndex] as typeof atoms[number])
const [atomValue] = useAtom(
atoms[currentAtomIndex] as (typeof atoms)[number]
)

return (
<>
Expand Down
Loading

0 comments on commit 53df2ed

Please sign in to comment.