Skip to content

Commit 0e20949

Browse files
authored
chore: update major deps (#8572)
1 parent 26ecd5a commit 0e20949

File tree

19 files changed

+529
-349
lines changed

19 files changed

+529
-349
lines changed

.eslintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ module.exports = defineConfig({
155155
}
156156
},
157157
{
158-
files: ['*.js'],
158+
files: ['playground/**', '*.js'],
159159
rules: {
160160
'@typescript-eslint/explicit-module-boundary-types': 'off'
161161
}

.github/renovate.json5

+2-6
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,11 @@
1919
"typescript",
2020

2121
// breaking changes
22-
"cac", // `cac:v6.7.10+` has breaking changes
2322
"react-router", // `react-router:v6.0.0+` has breaking changes
2423
"react-router-dom", // `react-router-dom:v6.0.0+` has breaking changes
2524
"source-map", // `source-map:v0.7.0+` needs more investigation
2625
"dotenv-expand", // `dotenv-expand:6.0.0+` has breaking changes (#6858)
27-
28-
// ESM Only => https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm
29-
"node-fetch",
30-
"periscopic",
31-
"strip-ansi"
26+
"kill-port", // `kill-port:^2.0.0 has perf issues (#8392)
27+
"miniflare" // `miniflare:v2.0.0+` only supports node 16.7
3228
]
3329
}

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@types/micromatch": "^4.0.2",
5151
"@types/mime": "^2.0.3",
5252
"@types/minimist": "^1.2.2",
53-
"@types/node": "^17.0.31",
53+
"@types/node": "^17.0.42",
5454
"@types/prompts": "^2.4.0",
5555
"@types/resolve": "^1.20.2",
5656
"@types/sass": "~1.43.1",
@@ -61,26 +61,26 @@
6161
"@typescript-eslint/parser": "^5.27.1",
6262
"conventional-changelog-cli": "^2.2.2",
6363
"cross-env": "^7.0.3",
64-
"esbuild": "^0.14.38",
64+
"esbuild": "^0.14.43",
6565
"eslint": "^8.17.0",
6666
"eslint-define-config": "^1.5.1",
6767
"eslint-plugin-import": "^2.26.0",
6868
"eslint-plugin-node": "^11.1.0",
6969
"esno": "^0.16.3",
70-
"execa": "^5.1.1",
70+
"execa": "^6.1.0",
7171
"fs-extra": "^10.1.0",
7272
"kill-port": "^1.6.1",
7373
"lint-staged": "^13.0.1",
7474
"minimist": "^1.2.6",
75-
"node-fetch": "^2.6.7",
75+
"node-fetch": "^3.2.6",
7676
"npm-run-all": "^4.1.5",
7777
"picocolors": "^1.0.0",
7878
"playwright-chromium": "^1.22.2",
7979
"pnpm": "^7.2.1",
8080
"prettier": "2.6.2",
8181
"prompts": "^2.4.2",
8282
"rimraf": "^3.0.2",
83-
"rollup": "^2.72.1",
83+
"rollup": "^2.75.6",
8484
"semver": "^7.3.7",
8585
"simple-git-hooks": "^2.8.0",
8686
"sirv": "^2.0.2",

packages/create-vite/__tests__/cli.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'path'
22
import type { ExecaSyncReturnValue, SyncOptions } from 'execa'
3-
import { commandSync } from 'execa'
3+
import { execaCommandSync } from 'execa'
44
import { mkdirpSync, readdirSync, remove, writeFileSync } from 'fs-extra'
55
import { afterEach, beforeAll, expect, test } from 'vitest'
66

@@ -13,7 +13,7 @@ const run = (
1313
args: string[],
1414
options: SyncOptions<string> = {}
1515
): ExecaSyncReturnValue<string> => {
16-
return commandSync(`node ${CLI_PATH} ${args.join(' ')}`, options)
16+
return execaCommandSync(`node ${CLI_PATH} ${args.join(' ')}`, options)
1717
}
1818

1919
// Helper to create a non-empty directory

packages/plugin-legacy/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"homepage": "https://github.com/vitejs/vite/tree/main/packages/plugin-legacy#readme",
3737
"dependencies": {
38-
"@babel/standalone": "^7.18.4",
38+
"@babel/standalone": "^7.18.5",
3939
"core-js": "^3.22.8",
4040
"magic-string": "^0.26.2",
4141
"regenerator-runtime": "^0.13.9",
@@ -46,7 +46,7 @@
4646
"vite": "^3.0.0-alpha"
4747
},
4848
"devDependencies": {
49-
"vite": "workspace:*",
50-
"@babel/core": "^7.18.2"
49+
"@babel/core": "^7.18.5",
50+
"vite": "workspace:*"
5151
}
5252
}

packages/plugin-react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"homepage": "https://github.com/vitejs/vite/tree/main/packages/plugin-react#readme",
4141
"dependencies": {
42-
"@babel/core": "^7.18.2",
42+
"@babel/core": "^7.18.5",
4343
"@babel/plugin-transform-react-jsx": "^7.17.12",
4444
"@babel/plugin-transform-react-jsx-development": "^7.16.7",
4545
"@babel/plugin-transform-react-jsx-self": "^7.17.12",

packages/plugin-vue-jsx/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"homepage": "https://github.com/vitejs/vite/tree/main/packages/plugin-vue-jsx#readme",
3737
"dependencies": {
38-
"@babel/core": "^7.18.2",
38+
"@babel/core": "^7.18.5",
3939
"@babel/plugin-syntax-import-meta": "^7.10.4",
4040
"@babel/plugin-transform-typescript": "^7.18.4",
4141
"@vue/babel-plugin-jsx": "^1.1.1"

packages/plugin-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@jridgewell/gen-mapping": "^0.3.1",
4343
"@jridgewell/trace-mapping": "^0.3.13",
4444
"debug": "^4.3.4",
45-
"rollup": "^2.72.1",
45+
"rollup": "^2.75.6",
4646
"slash": "^4.0.0",
4747
"source-map": "^0.6.1",
4848
"vite": "workspace:*",

packages/vite/LICENSE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ Repository: chalk/ansi-regex
682682

683683
> MIT License
684684
>
685-
> Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
685+
> Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
686686
>
687687
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
688688
>
@@ -3477,7 +3477,7 @@ Repository: chalk/strip-ansi
34773477

34783478
> MIT License
34793479
>
3480-
> Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
3480+
> Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)
34813481
>
34823482
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
34833483
>
@@ -3854,7 +3854,7 @@ License: ISC
38543854
By: Eemeli Aro
38553855
Repository: github:eemeli/yaml
38563856

3857-
> Copyright 2018 Eemeli Aro <[email protected]>
3857+
> Copyright Eemeli Aro <[email protected]>
38583858
>
38593859
> Permission to use, copy, modify, and/or distribute this software for any purpose
38603860
> with or without fee is hereby granted, provided that the above copyright notice

packages/vite/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@
5757
},
5858
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
5959
"dependencies": {
60-
"esbuild": "^0.14.38",
60+
"esbuild": "^0.14.43",
6161
"postcss": "^8.4.14",
6262
"resolve": "^1.22.0",
63-
"rollup": "^2.72.1"
63+
"rollup": "^2.75.6"
6464
},
6565
"optionalDependencies": {
6666
"fsevents": "~2.3.2"
6767
},
6868
"devDependencies": {
6969
"@ampproject/remapping": "^2.2.0",
70-
"@babel/parser": "^7.18.4",
70+
"@babel/parser": "^7.18.5",
7171
"@babel/types": "^7.18.4",
7272
"@jridgewell/trace-mapping": "^0.3.13",
7373
"@rollup/plugin-alias": "^3.1.9",
@@ -79,7 +79,7 @@
7979
"@rollup/pluginutils": "^4.2.1",
8080
"@vue/compiler-dom": "^3.2.37",
8181
"acorn": "^8.7.1",
82-
"cac": "6.7.9",
82+
"cac": "^6.7.12",
8383
"chokidar": "^3.5.3",
8484
"connect": "^3.7.0",
8585
"connect-history-api-fallback": "^1.6.0",
@@ -91,7 +91,7 @@
9191
"dotenv-expand": "^5.1.0",
9292
"es-module-lexer": "^0.10.5",
9393
"esno": "^0.16.3",
94-
"estree-walker": "^2.0.2",
94+
"estree-walker": "^3.0.1",
9595
"etag": "^1.8.1",
9696
"fast-glob": "^3.2.11",
9797
"http-proxy": "^1.18.1",
@@ -103,17 +103,17 @@
103103
"node-forge": "^1.3.1",
104104
"okie": "^1.0.1",
105105
"open": "^8.4.0",
106-
"periscopic": "^2.0.3",
106+
"periscopic": "^3.0.4",
107107
"picocolors": "^1.0.0",
108108
"postcss-import": "^14.1.0",
109-
"postcss-load-config": "^3.1.4",
109+
"postcss-load-config": "^4.0.1",
110110
"postcss-modules": "^4.3.1",
111111
"resolve.exports": "^1.1.0",
112112
"rollup-plugin-license": "^2.8.1",
113113
"sirv": "^2.0.2",
114114
"source-map-js": "^1.0.2",
115115
"source-map-support": "^0.5.21",
116-
"strip-ansi": "^6.0.1",
116+
"strip-ansi": "^7.0.1",
117117
"strip-literal": "^0.3.0",
118118
"tsconfck": "^2.0.1",
119119
"tslib": "^2.4.0",

packages/vite/rollup.config.ts

-5
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ function createNodePlugins(
123123
src: `require('fsevents')`,
124124
replacement: `__require('fsevents')`
125125
},
126-
// cac re-assigns module.exports even in its mjs dist
127-
'cac/dist/index.mjs': {
128-
src: `if (typeof module !== "undefined") {`,
129-
replacement: `if (false) {`
130-
},
131126
// postcss-import -> sugarss
132127
'process-content.js': {
133128
src: 'require("sugarss")',

packages/vite/src/node/ssr/ssrTransform.ts

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import type {
88
Node as _Node
99
} from 'estree'
1010
import { extract_names as extractNames } from 'periscopic'
11+
// `eslint-plugin-node` doesn't support package without main
12+
// eslint-disable-next-line node/no-missing-import
1113
import { walk as eswalk } from 'estree-walker'
1214
import type { RawSourceMap } from '@ampproject/remapping'
1315
import type { TransformResult } from '../server/transformRequest'

playground/cli-module/__tests__/serve.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// this is automatically detected by playground/vitestSetup.ts and will replace
22
// the default e2e test serve behavior
33

4-
import execa from 'execa'
4+
import { execaCommand } from 'execa'
55
import kill from 'kill-port'
66
import {
77
isBuild,
@@ -45,7 +45,7 @@ export async function serve() {
4545
if (isBuild) {
4646
const buildCommand = `${viteBinPath} build`
4747
try {
48-
const buildProcess = execa.command(buildCommand, {
48+
const buildProcess = execaCommand(buildCommand, {
4949
cwd: rootDir,
5050
stdio: 'pipe'
5151
})
@@ -67,7 +67,7 @@ export async function serve() {
6767
viteServerArgs.unshift('preview')
6868
}
6969
const serverCommand = `${viteBinPath} ${viteServerArgs.join(' ')}`
70-
const serverProcess = execa.command(serverCommand, {
70+
const serverProcess = execaCommand(serverCommand, {
7171
cwd: rootDir,
7272
stdio: 'pipe'
7373
})

playground/cli/__tests__/serve.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// this is automatically detected by playground/vitestSetup.ts and will replace
22
// the default e2e test serve behavior
33

4-
import execa from 'execa'
4+
import { execaCommand } from 'execa'
55
import kill from 'kill-port'
66
import {
77
isBuild,
@@ -45,7 +45,7 @@ export async function serve() {
4545
if (isBuild) {
4646
const buildCommand = `${viteBinPath} build`
4747
try {
48-
const buildProcess = execa.command(buildCommand, {
48+
const buildProcess = execaCommand(buildCommand, {
4949
cwd: rootDir,
5050
stdio: 'pipe'
5151
})
@@ -67,7 +67,7 @@ export async function serve() {
6767
viteServerArgs.unshift('preview')
6868
}
6969
const serverCommand = `${viteBinPath} ${viteServerArgs.join(' ')}`
70-
const serverProcess = execa.command(serverCommand, {
70+
const serverProcess = execaCommand(serverCommand, {
7171
cwd: rootDir,
7272
stdio: 'pipe'
7373
})

playground/resolve-config/__tests__/resolve-config.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import fs from 'fs'
22
import path from 'path'
3-
import { commandSync } from 'execa'
3+
import { execaCommandSync } from 'execa'
44
import { isBuild, testDir, viteBinPath } from '~utils'
55

66
const fromTestDir = (...p: string[]) => path.resolve(testDir, ...p)
77

88
const build = (configName: string) => {
9-
commandSync(`${viteBinPath} build`, { cwd: fromTestDir(configName) })
9+
execaCommandSync(`${viteBinPath} build`, { cwd: fromTestDir(configName) })
1010
}
1111

1212
const getDistFile = (configName: string, extension: string) => {

playground/ssr-react/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"dependencies": {
1616
"react": "^17.0.2",
1717
"react-dom": "^17.0.2",
18-
"react-router": "^5.3.1",
19-
"react-router-dom": "^5.3.1"
18+
"react-router": "^5.3.3",
19+
"react-router-dom": "^5.3.3"
2020
},
2121
"devDependencies": {
2222
"@vitejs/plugin-react": "workspace:*",

playground/test-utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ export async function killProcess(
182182
): Promise<void> {
183183
if (isWindows) {
184184
try {
185-
const { default: execa } = await import('execa')
186-
execa.commandSync(`taskkill /pid ${serverProcess.pid} /T /F`)
185+
const { execaCommandSync } = await import('execa')
186+
execaCommandSync(`taskkill /pid ${serverProcess.pid} /T /F`)
187187
} catch (e) {
188188
console.error('failed to taskkill:', e)
189189
}

0 commit comments

Comments
 (0)