chore: update dev dependencies (#3279)

* chore: update dev dependencies

* downgrade vitest

* packages entry
This commit is contained in:
Daishi Kato 2025-11-01 12:32:05 +09:00 committed by GitHub
parent 7ab97535d7
commit 18ab9e2615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 954 additions and 1025 deletions

View File

@ -10,14 +10,14 @@ import tseslint from 'typescript-eslint'
export default defineConfig(
{
ignores: ['dist/', 'examples/'],
ignores: ['dist/', 'examples/', 'website/'],
},
eslint.configs.recommended,
importPlugin.flatConfigs.recommended,
tseslint.configs.recommended,
react.configs.flat.recommended,
react.configs.flat['jsx-runtime'],
reactHooks.configs.recommended,
reactHooks.configs.flat.recommended,
{
settings: {
react: {
@ -71,7 +71,6 @@ export default defineConfig(
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'react-hooks/react-compiler': 'error',
},
},
{
@ -81,7 +80,6 @@ export default defineConfig(
...vitest.configs.recommended,
rules: {
'import/extensions': ['error', 'never'],
'testing-library/no-node-access': 'off',
'vitest/consistent-test-it': [
'error',
{ fn: 'it', withinDescribe: 'it' },

View File

@ -114,46 +114,46 @@
"url": "https://github.com/pmndrs/zustand/issues"
},
"homepage": "https://github.com/pmndrs/zustand",
"packageManager": "pnpm@10.15.0",
"packageManager": "pnpm@10.18.3",
"devDependencies": {
"@eslint/js": "^9.33.0",
"@eslint/js": "^9.38.0",
"@redux-devtools/extension": "^3.3.0",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-typescript": "12.1.4",
"@testing-library/jest-dom": "^6.7.0",
"@rollup/plugin-alias": "^6.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-replace": "^6.0.3",
"@rollup/plugin-typescript": "12.3.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@types/node": "^24.3.0",
"@types/react": "^19.1.10",
"@types/react-dom": "^19.1.7",
"@types/node": "^24.9.2",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@types/use-sync-external-store": "^1.5.0",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/eslint-plugin": "^1.3.4",
"@vitest/eslint-plugin": "^1.3.26",
"@vitest/ui": "^3.2.4",
"esbuild": "^0.25.9",
"eslint": "9.33.0",
"esbuild": "^0.25.11",
"eslint": "9.38.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "6.0.0-rc.1",
"eslint-plugin-testing-library": "^7.6.6",
"immer": "^10.1.1",
"jsdom": "^26.1.0",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-testing-library": "^7.13.3",
"immer": "^10.2.0",
"jsdom": "^27.0.1",
"json": "^11.0.0",
"prettier": "^3.6.2",
"react": "19.1.1",
"react-dom": "19.1.1",
"react": "19.2.0",
"react-dom": "19.2.0",
"redux": "^5.0.1",
"rollup": "^4.46.3",
"rollup": "^4.52.5",
"rollup-plugin-esbuild": "^6.2.1",
"shelljs": "^0.10.0",
"shx": "^0.4.0",
"tslib": "^2.8.1",
"typescript": "^5.9.2",
"typescript-eslint": "^8.43.0",
"use-sync-external-store": "^1.5.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.2",
"use-sync-external-store": "^1.6.0",
"vitest": "^3.2.4"
},
"peerDependencies": {

1906
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

3
pnpm-workspace.yaml Normal file
View File

@ -0,0 +1,3 @@
packages:
- .
minimumReleaseAge: 1440

View File

@ -645,6 +645,7 @@ it('ensures the correct subscriber is removed on unmount', async () => {
function Component() {
const [Counter, setCounter] = useState(() => CountWithInitialIncrement)
useLayoutEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect
setCounter(() => Count)
}, [])
return (

View File

@ -669,25 +669,25 @@ describe('different envs', () => {
})
it('works in non-browser env', async () => {
const originalWindow = global.window
global.window = undefined as any
const originalWindow = globalThis.window
globalThis.window = undefined as any
expect(() => {
createStore(devtools(() => ({ count: 0 }), { enabled: true }))
}).not.toThrow()
global.window = originalWindow
globalThis.window = originalWindow
})
it('works in react native env', async () => {
const originalWindow = global.window
global.window = {} as any
const originalWindow = globalThis.window
globalThis.window = {} as any
expect(() => {
createStore(devtools(() => ({ count: 0 }), { enabled: true }))
}).not.toThrow()
global.window = originalWindow
globalThis.window = originalWindow
})
})

View File

@ -1,5 +1,4 @@
/* eslint @typescript-eslint/no-unused-expressions: off */ // FIXME
/* eslint react-hooks/react-compiler: off */
import { describe, expect, expectTypeOf, it } from 'vitest'
import { create } from 'zustand'

View File

@ -1,3 +1,5 @@
/// <reference types="node" />
import { StrictMode, useEffect } from 'react'
import { act, render, screen, waitFor } from '@testing-library/react'
import { afterEach, describe, expect, it, vi } from 'vitest'

View File

@ -1,3 +1,5 @@
/// <reference types="node" />
import { afterEach, describe, expect, it, vi } from 'vitest'
import { create } from 'zustand'
import { createJSONStorage, persist } from 'zustand/middleware'