Skip to content

Commit 0949cd9

Browse files
authored
chore(deps): update dev dependencies (#723)
* chore(deps): update dev dependencies * use node 18 * fix rollup error * fix test snapshots * revert babel-plugin-terser * Revert "fix test snapshots" This reverts commit eb653d6. * testing the test
1 parent c815ac2 commit 0949cd9

8 files changed

+670
-975
lines changed

.codesandbox/ci.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"simple-snowpack-react-o1gmx",
88
"react-parcel-onewf"
99
],
10-
"node": "14"
10+
"node": "18"
1111
}

.github/workflows/lint-and-type.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v2
1515
with:
16-
node-version: '14'
16+
node-version: '18'
1717
cache: yarn
1818
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
1919
- run: yarn install --frozen-lockfile --check-files

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v2
1919
- uses: actions/setup-node@v2
2020
with:
21-
node-version: '14'
21+
node-version: '18'
2222
cache: yarn
2323
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2424
- run: yarn install --frozen-lockfile --check-files

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v2
1515
with:
16-
node-version: '14'
16+
node-version: '18'
1717
cache: yarn
1818
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
1919
- run: yarn install --frozen-lockfile --check-files
@@ -33,13 +33,13 @@ jobs:
3333
- 18.0.0
3434
- 18.1.0
3535
- 18.2.0
36-
- 18.3.0-next-b14f8da15-20230403
37-
- 0.0.0-experimental-b14f8da15-20230403
36+
- 18.3.0-canary-aef7ce554-20230503
37+
- 0.0.0-experimental-aef7ce554-20230503
3838
steps:
3939
- uses: actions/checkout@v2
4040
- uses: actions/setup-node@v2
4141
with:
42-
node-version: '14'
42+
node-version: '18'
4343
cache: yarn
4444
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
4545
- run: yarn install --frozen-lockfile --check-files

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v2
3131
- uses: actions/setup-node@v2
3232
with:
33-
node-version: '14'
33+
node-version: '18'
3434
cache: yarn
3535
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
3636
- run: yarn install --frozen-lockfile --check-files
@@ -60,7 +60,7 @@ jobs:
6060
yarn add -D typescript@${{ matrix.typescript }}
6161
rm node_modules/parse5/dist/*.d.ts
6262
- name: Patch testing setup for older TS
63-
if: ${{ matrix.typescript == '3.9.7' || matrix.typescript == '3.8.3' || matrix.typescript == '3.7.5' }}
63+
if: ${{ matrix.typescript == '4.0.5' || startsWith(matrix.typescript, '3.') }}
6464
run: |
6565
yarn add -D @testing-library/[email protected] @testing-library/[email protected]
6666
rm node_modules/vitest/dist/*.d.ts

package.json

+23-23
Original file line numberDiff line numberDiff line change
@@ -102,59 +102,59 @@
102102
"use-sync-external-store": "1.2.0"
103103
},
104104
"devDependencies": {
105-
"@babel/core": "^7.21.4",
105+
"@babel/core": "^7.21.8",
106106
"@babel/helper-module-imports": "^7.21.4",
107-
"@babel/plugin-transform-react-jsx": "^7.21.0",
107+
"@babel/plugin-transform-react-jsx": "^7.21.5",
108108
"@babel/plugin-transform-typescript": "^7.21.3",
109-
"@babel/preset-env": "^7.21.4",
110-
"@babel/types": "^7.21.4",
109+
"@babel/preset-env": "^7.21.5",
110+
"@babel/types": "^7.21.5",
111111
"@redux-devtools/extension": "^3.2.5",
112-
"@rollup/plugin-alias": "^4.0.3",
112+
"@rollup/plugin-alias": "^5.0.0",
113113
"@rollup/plugin-babel": "^6.0.3",
114-
"@rollup/plugin-node-resolve": "^15.0.1",
114+
"@rollup/plugin-node-resolve": "^15.0.2",
115115
"@rollup/plugin-replace": "^5.0.2",
116-
"@rollup/plugin-terser": "^0.4.0",
117-
"@rollup/plugin-typescript": "^11.0.0",
116+
"@rollup/plugin-terser": "^0.4.1",
117+
"@rollup/plugin-typescript": "^11.1.0",
118118
"@testing-library/react": "^14.0.0",
119119
"@types/babel-plugin-macros": "^3.1.0",
120120
"@types/jsdom": "^21.1.1",
121-
"@types/react": "^18.0.28",
122-
"@types/react-dom": "^18.0.11",
121+
"@types/react": "^18.2.5",
122+
"@types/react-dom": "^18.2.3",
123123
"@types/use-sync-external-store": "^0.0.3",
124-
"@typescript-eslint/eslint-plugin": "^5.57.1",
125-
"@typescript-eslint/parser": "^5.57.1",
126-
"@vitest/coverage-c8": "^0.30.1",
127-
"@vitest/ui": "^0.30.1",
124+
"@typescript-eslint/eslint-plugin": "^5.59.2",
125+
"@typescript-eslint/parser": "^5.59.2",
126+
"@vitest/coverage-c8": "^0.31.0",
127+
"@vitest/ui": "^0.31.0",
128128
"aslemammad-vite-plugin-macro": "^1.0.0",
129129
"babel-plugin-macros": "^3.1.0",
130130
"babel-plugin-tester": "10.1.0",
131131
"concurrently": "^8.0.1",
132132
"downlevel-dts": "^0.11.0",
133-
"esbuild": "^0.17.15",
134-
"eslint": "^8.37.0",
133+
"esbuild": "^0.17.18",
134+
"eslint": "^8.39.0",
135135
"eslint-config-prettier": "^8.8.0",
136136
"eslint-import-resolver-alias": "^1.1.2",
137137
"eslint-plugin-import": "^2.27.5",
138138
"eslint-plugin-prettier": "^4.2.1",
139139
"eslint-plugin-react": "^7.32.2",
140140
"eslint-plugin-react-hooks": "^4.6.0",
141-
"eslint-plugin-vitest": "^0.0.57",
142-
"jsdom": "^21.1.1",
141+
"eslint-plugin-vitest": "^0.1.5",
142+
"jsdom": "^22.0.0",
143143
"json": "^11.0.0",
144144
"postinstall-postinstall": "^2.1.0",
145-
"prettier": "^2.8.7",
145+
"prettier": "^2.8.8",
146146
"proxy-memoize": "^2.0.3",
147147
"react": "^18.2.0",
148148
"react-dom": "^18.2.0",
149149
"redux": "^4.2.1",
150-
"rollup": "^3.20.2",
150+
"rollup": "^3.21.4",
151151
"rollup-plugin-esbuild": "^5.0.0",
152152
"shx": "^0.3.4",
153153
"ts-expect": "^1.3.0",
154154
"tslib": "^2.5.0",
155-
"typescript": "^5.0.3",
156-
"vite": "^4.1.4",
157-
"vitest": "^0.29.8"
155+
"typescript": "^5.0.4",
156+
"vite": "^4.3.4",
157+
"vitest": "^0.31.0"
158158
},
159159
"peerDependencies": {
160160
"react": ">=16.8"

rollup.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function createESMConfig(input, output) {
6161
output: { file: output, format: 'esm' },
6262
external,
6363
plugins: [
64-
alias({ entries }),
64+
alias({ entries: entries.filter((e) => !e.find.test(input)) }),
6565
resolve({ extensions }),
6666
replace({
6767
...(output.endsWith('.js')
@@ -88,7 +88,7 @@ function createCommonJSConfig(input, output) {
8888
output: { file: `${output}.js`, format: 'cjs' },
8989
external,
9090
plugins: [
91-
alias({ entries }),
91+
alias({ entries: entries.filter((e) => !e.find.test(input)) }),
9292
resolve({ extensions }),
9393
replace({
9494
'import.meta.env?.MODE': 'process.env.NODE_ENV',
@@ -124,7 +124,7 @@ function createUMDConfig(input, output, env) {
124124
},
125125
external,
126126
plugins: [
127-
alias({ entries }),
127+
alias({ entries: entries.filter((e) => !e.find.test(input)) }),
128128
resolve({ extensions }),
129129
replace({
130130
'import.meta.env?.MODE': JSON.stringify(env),
@@ -146,7 +146,7 @@ function createSystemConfig(input, output, env) {
146146
},
147147
external,
148148
plugins: [
149-
alias({ entries }),
149+
alias({ entries: entries.filter((e) => !e.find.test(input)) }),
150150
resolve({ extensions }),
151151
replace({
152152
'import.meta.env?.MODE': JSON.stringify(env),

0 commit comments

Comments
 (0)