Skip to content

Commit 10e24dc

Browse files
authored
chore: update dev dependencies (#1191)
* chore: update dev dependencies * fix ci * fix ci 2 * wip * wip * wip * fix ci * wip * vite 3.2.4 * copy from zustand * fix again * empty commit * fix syntax
1 parent ae430bb commit 10e24dc

5 files changed

Lines changed: 687 additions & 963 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
if: ${{ matrix.build == 'esm' }}
4242
run: |
4343
sed -i~ "s/resolve('\.\/src\(.*\)\.ts')/resolve('\.\/dist\/esm\1.mjs')/" vitest.config.mts
44-
sed -i~ "1s/^/import.meta.env=import.meta.env||{};import.meta.env.MODE='${NODE_ENV}';/" tests/*.tsx
44+
sed -i~ "1s/^/import.meta.env.MODE='${NODE_ENV}';/" tests/*.ts tests/*.tsx
4545
env:
4646
NODE_ENV: ${{ matrix.env }}
4747
- name: Test ${{ matrix.build }} ${{ matrix.env }}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
- 19.0.0
2121
- 19.1.0
2222
- 19.2.0
23-
- 19.3.0-canary-561ee24d-20251101
24-
- 0.0.0-experimental-561ee24d-20251101
23+
- 19.3.0-canary-65eec428-20251218
24+
- 0.0.0-experimental-65eec428-20251218
2525
steps:
2626
- uses: actions/checkout@v6
2727
- uses: pnpm/action-setup@v4

.github/workflows/test-old-typescript.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
typescript:
16-
- 5.9.2
16+
- 5.9.3
1717
- 5.8.3
1818
- 5.7.3
1919
- 5.6.3
@@ -45,13 +45,19 @@ jobs:
4545
run: |
4646
sed -i~ 's/"verbatimModuleSyntax": true,//' tsconfig.json
4747
- name: Patch for Old TS
48+
if: ${{ matrix.typescript == '5.5.4' || matrix.typescript == '5.4.5' || matrix.typescript == '5.3.3' || matrix.typescript == '5.2.2' || matrix.typescript == '5.1.6' || matrix.typescript == '5.0.4' || matrix.typescript == '4.9.5' || matrix.typescript == '4.8.4' || matrix.typescript == '4.7.4' || matrix.typescript == '4.6.4' || matrix.typescript == '4.5.5' }}
4849
run: |
4950
sed -i~ 's/"moduleResolution": "bundler",/"moduleResolution": "node",/' tsconfig.json
5051
sed -i~ 's/"allowImportingTsExtensions": true,//' tsconfig.json
5152
sed -i~ 's/"valtio": \["\.\/src\/index\.ts"\],/"valtio": [".\/dist\/index.d.ts"],/' tsconfig.json
5253
sed -i~ 's/"valtio\/\*": \["\.\/src\/\*\.ts"\]/"valtio\/*": [".\/dist\/*.d.ts"]/' tsconfig.json
5354
sed -i~ 's/"include": .*/"include": ["src\/types.d.ts", "dist\/**\/*", "tests\/**\/*"],/' tsconfig.json
54-
pnpm add -D @types/node@22.2.0
55+
- name: Patch for Older TS
56+
if: ${{ matrix.typescript == '4.7.4' || matrix.typescript == '4.6.4' || matrix.typescript == '4.5.5' }}
57+
run: |
58+
pnpm json -I -f package.json -e "this.resolutions={}; this.resolutions['@types/node']='18.13.0';"
59+
pnpm add -D @types/node@18.13.0
60+
pnpm add -D vitest@3.2.4 @vitest/coverage-v8@3.2.4 @vitest/ui@3.2.4
5561
- name: Install old TypeScript
5662
run: pnpm add -D typescript@${{ matrix.typescript }}
5763
- name: Test ${{ matrix.typescript }}

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -115,46 +115,46 @@
115115
"proxy-compare": "^3.0.1"
116116
},
117117
"devDependencies": {
118-
"@eslint/js": "^9.39.0",
118+
"@eslint/js": "^9.39.2",
119119
"@redux-devtools/extension": "^3.3.0",
120120
"@rollup/plugin-alias": "^6.0.0",
121121
"@rollup/plugin-node-resolve": "^16.0.3",
122122
"@rollup/plugin-replace": "^6.0.3",
123123
"@rollup/plugin-typescript": "^12.3.0",
124124
"@testing-library/jest-dom": "^6.9.1",
125-
"@testing-library/react": "^16.3.0",
125+
"@testing-library/react": "^16.3.1",
126126
"@types/jsdom": "^27.0.0",
127-
"@types/react": "^19.2.2",
128-
"@types/react-dom": "^19.2.2",
129-
"@vitest/coverage-v8": "^3.2.4",
130-
"@vitest/eslint-plugin": "^1.4.0",
131-
"@vitest/ui": "^3.2.4",
132-
"esbuild": "^0.25.12",
133-
"eslint": "9.39.0",
127+
"@types/react": "^19.2.7",
128+
"@types/react-dom": "^19.2.3",
129+
"@vitest/coverage-v8": "^4.0.16",
130+
"@vitest/eslint-plugin": "^1.6.4",
131+
"@vitest/ui": "^4.0.16",
132+
"esbuild": "^0.27.2",
133+
"eslint": "9.39.2",
134134
"eslint-import-resolver-typescript": "^4.4.4",
135135
"eslint-plugin-import": "^2.32.0",
136136
"eslint-plugin-jest-dom": "^5.5.0",
137137
"eslint-plugin-react": "^7.37.5",
138138
"eslint-plugin-react-hooks": "7.0.1",
139-
"eslint-plugin-testing-library": "^7.13.3",
139+
"eslint-plugin-testing-library": "^7.15.4",
140140
"jest-leak-detector": "^30.2.0",
141-
"jsdom": "^27.1.0",
141+
"jsdom": "^27.4.0",
142142
"json": "^11.0.0",
143143
"postinstall-postinstall": "^2.1.0",
144-
"prettier": "^3.6.2",
144+
"prettier": "^3.7.4",
145145
"proxy-memoize": "^3.0.1",
146-
"react": "19.2.0",
147-
"react-dom": "19.2.0",
146+
"react": "19.2.3",
147+
"react-dom": "19.2.3",
148148
"redux": "^5.0.1",
149-
"rollup": "^4.52.5",
149+
"rollup": "^4.54.0",
150150
"rollup-plugin-esbuild": "^6.2.1",
151151
"shelljs": "^0.10.0",
152152
"shx": "^0.4.0",
153153
"tslib": "^2.8.1",
154154
"typescript": "^5.9.3",
155-
"typescript-eslint": "^8.46.2",
156-
"vite": "^7.1.12",
157-
"vitest": "^3.2.4"
155+
"typescript-eslint": "^8.51.0",
156+
"vite": "^7.3.0",
157+
"vitest": "^4.0.16"
158158
},
159159
"peerDependencies": {
160160
"@types/react": ">=18.0.0",

0 commit comments

Comments
 (0)