From 85fa2c89f35ecdda4ec5ed52ea50110337d98822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Sun, 4 Sep 2022 05:32:49 +0900 Subject: [PATCH 01/54] refactor(create-vite): migrate to TypeScript (#9941) --- package.json | 2 +- .../create-vite/src/{index.js => index.ts} | 115 ++++++++---------- packages/create-vite/tsconfig.json | 14 +++ pnpm-lock.yaml | 10 +- 4 files changed, 72 insertions(+), 69 deletions(-) rename packages/create-vite/src/{index.js => index.ts} (81%) create mode 100644 packages/create-vite/tsconfig.json diff --git a/package.json b/package.json index 2a41ad3a384ed9..a4e029cde05307 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@types/micromatch": "^4.0.2", "@types/minimist": "^1.2.2", "@types/node": "^17.0.42", - "@types/prompts": "^2.4.0", + "@types/prompts": "^2.0.14", "@types/resolve": "^1.20.2", "@types/sass": "~1.43.1", "@types/semver": "^7.3.12", diff --git a/packages/create-vite/src/index.js b/packages/create-vite/src/index.ts similarity index 81% rename from packages/create-vite/src/index.js rename to packages/create-vite/src/index.ts index 8e5aa02ff4a40e..799ca93a75cd47 100755 --- a/packages/create-vite/src/index.js +++ b/packages/create-vite/src/index.ts @@ -1,4 +1,3 @@ -// @ts-check import fs from 'node:fs' import path from 'node:path' import { fileURLToPath } from 'node:url' @@ -19,10 +18,27 @@ import { // Avoids autoconversion to number of the project name by defining that the args // non associated with an option ( _ ) needs to be parsed as a string. See #4606 -const argv = minimist(process.argv.slice(2), { string: ['_'] }) +const argv = minimist<{ + t?: string + template?: string +}>(process.argv.slice(2), { string: ['_'] }) const cwd = process.cwd() -const FRAMEWORKS = [ +type ColorFunc = (str: string | number) => string +type Framework = { + name: string + display: string + color: ColorFunc + variants: FrameworkVariant[] +} +type FrameworkVariant = { + name: string + display: string + color: ColorFunc + customCommand?: string +} + +const FRAMEWORKS: Framework[] = [ { name: 'vanilla', display: 'Vanilla', @@ -149,25 +165,29 @@ const TEMPLATES = FRAMEWORKS.map( (f) => (f.variants && f.variants.map((v) => v.name)) || [f.name] ).reduce((a, b) => a.concat(b), []) -const renameFiles = { +const renameFiles: Record = { _gitignore: '.gitignore' } +const defaultTargetDir = 'vite-project' + async function init() { - let targetDir = formatTargetDir(argv._[0]) - let template = argv.template || argv.t + const argTargetDir = formatTargetDir(argv._[0]) + const argTemplate = argv.template || argv.t - const defaultTargetDir = 'vite-project' + let targetDir = argTargetDir || defaultTargetDir const getProjectName = () => targetDir === '.' ? path.basename(path.resolve()) : targetDir - let result = {} + let result: prompts.Answers< + 'projectName' | 'overwrite' | 'packageName' | 'framework' | 'variant' + > try { result = await prompts( [ { - type: targetDir ? null : 'text', + type: argTargetDir ? null : 'text', name: 'projectName', message: reset('Project name:'), initial: defaultTargetDir, @@ -186,7 +206,7 @@ async function init() { ` is not empty. Remove existing files and continue?` }, { - type: (_, { overwrite } = {}) => { + type: (_, { overwrite }: { overwrite?: boolean }) => { if (overwrite === false) { throw new Error(red('✖') + ' Operation cancelled') } @@ -203,12 +223,13 @@ async function init() { isValidPackageName(dir) || 'Invalid package.json name' }, { - type: template && TEMPLATES.includes(template) ? null : 'select', + type: + argTemplate && TEMPLATES.includes(argTemplate) ? null : 'select', name: 'framework', message: - typeof template === 'string' && !TEMPLATES.includes(template) + typeof argTemplate === 'string' && !TEMPLATES.includes(argTemplate) ? reset( - `"${template}" isn't a valid template. Please choose from below: ` + `"${argTemplate}" isn't a valid template. Please choose from below: ` ) : reset('Select a framework:'), initial: 0, @@ -221,12 +242,11 @@ async function init() { }) }, { - type: (framework) => + type: (framework: Framework) => framework && framework.variants ? 'select' : null, name: 'variant', message: reset('Select a variant:'), - // @ts-ignore - choices: (framework) => + choices: (framework: Framework) => framework.variants.map((variant) => { const variantColor = variant.color return { @@ -242,7 +262,7 @@ async function init() { } } ) - } catch (cancelled) { + } catch (cancelled: any) { console.log(cancelled.message) return } @@ -259,23 +279,15 @@ async function init() { } // determine template - template = variant || framework || template + const template: string = variant || framework || argTemplate const pkgInfo = pkgFromUserAgent(process.env.npm_config_user_agent) const pkgManager = pkgInfo ? pkgInfo.name : 'npm' const isYarn1 = pkgManager === 'yarn' && pkgInfo?.version.startsWith('1.') - if (template.startsWith('custom-')) { - const getCustomCommand = (name) => { - for (const f of FRAMEWORKS) { - for (const v of f.variants || []) { - if (v.name === name) { - return v.customCommand - } - } - } - } - const customCommand = getCustomCommand(template) + const { customCommand } = + FRAMEWORKS.flatMap((f) => f.variants).find((v) => v.name === template) ?? {} + if (customCommand) { const fullCustomCommand = customCommand .replace('TARGET_DIR', targetDir) .replace(/^npm create/, `${pkgManager} create`) @@ -309,10 +321,8 @@ async function init() { `template-${template}` ) - const write = (file, content) => { - const targetPath = renameFiles[file] - ? path.join(root, renameFiles[file]) - : path.join(root, file) + const write = (file: string, content?: string) => { + const targetPath = path.join(root, renameFiles[file] ?? file) if (content) { fs.writeFileSync(targetPath, content) } else { @@ -350,14 +360,11 @@ async function init() { console.log() } -/** - * @param {string | undefined} targetDir - */ -function formatTargetDir(targetDir) { +function formatTargetDir(targetDir: string | undefined) { return targetDir?.trim().replace(/\/+$/g, '') } -function copy(src, dest) { +function copy(src: string, dest: string) { const stat = fs.statSync(src) if (stat.isDirectory()) { copyDir(src, dest) @@ -366,19 +373,13 @@ function copy(src, dest) { } } -/** - * @param {string} projectName - */ -function isValidPackageName(projectName) { +function isValidPackageName(projectName: string) { return /^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test( projectName ) } -/** - * @param {string} projectName - */ -function toValidPackageName(projectName) { +function toValidPackageName(projectName: string) { return projectName .trim() .toLowerCase() @@ -387,11 +388,7 @@ function toValidPackageName(projectName) { .replace(/[^a-z0-9-~]+/g, '-') } -/** - * @param {string} srcDir - * @param {string} destDir - */ -function copyDir(srcDir, destDir) { +function copyDir(srcDir: string, destDir: string) { fs.mkdirSync(destDir, { recursive: true }) for (const file of fs.readdirSync(srcDir)) { const srcFile = path.resolve(srcDir, file) @@ -400,18 +397,12 @@ function copyDir(srcDir, destDir) { } } -/** - * @param {string} path - */ -function isEmpty(path) { +function isEmpty(path: string) { const files = fs.readdirSync(path) return files.length === 0 || (files.length === 1 && files[0] === '.git') } -/** - * @param {string} dir - */ -function emptyDir(dir) { +function emptyDir(dir: string) { if (!fs.existsSync(dir)) { return } @@ -423,11 +414,7 @@ function emptyDir(dir) { } } -/** - * @param {string | undefined} userAgent process.env.npm_config_user_agent - * @returns object | undefined - */ -function pkgFromUserAgent(userAgent) { +function pkgFromUserAgent(userAgent: string | undefined) { if (!userAgent) return undefined const pkgSpec = userAgent.split(' ')[0] const pkgSpecArr = pkgSpec.split('/') diff --git a/packages/create-vite/tsconfig.json b/packages/create-vite/tsconfig.json new file mode 100644 index 00000000000000..0ec39bdf6a1404 --- /dev/null +++ b/packages/create-vite/tsconfig.json @@ -0,0 +1,14 @@ +{ + "include": ["src", "__tests__"], + "compilerOptions": { + "outDir": "dist", + "target": "ES2020", + "module": "ES2020", + "moduleResolution": "Node", + "strict": true, + "declaration": false, + "sourceMap": false, + "noUnusedLocals": true, + "esModuleInterop": true + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d459cc2893bd6..6c27045e25270e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,7 +25,7 @@ importers: '@types/micromatch': ^4.0.2 '@types/minimist': ^1.2.2 '@types/node': ^17.0.42 - '@types/prompts': ^2.4.0 + '@types/prompts': ^2.0.14 '@types/resolve': ^1.20.2 '@types/sass': ~1.43.1 '@types/semver': ^7.3.12 @@ -81,7 +81,7 @@ importers: '@types/micromatch': 4.0.2 '@types/minimist': 1.2.2 '@types/node': 17.0.42 - '@types/prompts': 2.4.0 + '@types/prompts': 2.0.14 '@types/resolve': 1.20.2 '@types/sass': 1.43.1 '@types/semver': 7.3.12 @@ -2807,8 +2807,10 @@ packages: /@types/parse-json/4.0.0: resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==} - /@types/prompts/2.4.0: - resolution: {integrity: sha512-7th8Opn+0XlN0O6qzO7dXOPwL6rigq/EwRS2DntaTHwSw8cLaYKeAPt5dWEKHSL+ffVSUl1itTPUC06+FlsV4Q==} + /@types/prompts/2.0.14: + resolution: {integrity: sha512-HZBd99fKxRWpYCErtm2/yxUZv6/PBI9J7N4TNFffl5JbrYMHBwF25DjQGTW3b3jmXq+9P6/8fCIb2ee57BFfYA==} + dependencies: + '@types/node': 17.0.42 dev: true /@types/resolve/1.17.1: From b1ad82def57f1e07233d5011489900bb38a8fe6b Mon Sep 17 00:00:00 2001 From: patak-dev Date: Mon, 5 Sep 2022 11:47:16 +0200 Subject: [PATCH 02/54] release: v3.1.0 --- packages/vite/CHANGELOG.md | 5 +++++ packages/vite/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/vite/CHANGELOG.md b/packages/vite/CHANGELOG.md index 632672a83b8012..c0b64448f1ef35 100644 --- a/packages/vite/CHANGELOG.md +++ b/packages/vite/CHANGELOG.md @@ -1,3 +1,8 @@ +## 3.1.0 (2022-09-05) + + + + ## 3.1.0-beta.2 (2022-09-02) * fix(css): remove css-post plugin sourcemap (#9914) ([c9521e7](https://github.com/vitejs/vite/commit/c9521e7)), closes [#9914](https://github.com/vitejs/vite/issues/9914) diff --git a/packages/vite/package.json b/packages/vite/package.json index 6a00bcc2656ecb..b929146aee5359 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -1,6 +1,6 @@ { "name": "vite", - "version": "3.1.0-beta.2", + "version": "3.1.0", "type": "module", "license": "MIT", "author": "Evan You", From 32ba6931aab50b59d896b96815c4ceb229d70ec1 Mon Sep 17 00:00:00 2001 From: patak-dev Date: Mon, 5 Sep 2022 11:47:59 +0200 Subject: [PATCH 03/54] release: plugin-vue@3.1.0 --- packages/plugin-vue/CHANGELOG.md | 5 +++++ packages/plugin-vue/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/plugin-vue/CHANGELOG.md b/packages/plugin-vue/CHANGELOG.md index afacf0f3eab86e..cde94520cdb190 100644 --- a/packages/plugin-vue/CHANGELOG.md +++ b/packages/plugin-vue/CHANGELOG.md @@ -1,3 +1,8 @@ +## 3.1.0 (2022-09-05) + + + + ## 3.1.0-beta.0 (2022-08-29) * docs: fix typo (#9855) ([583f185](https://github.com/vitejs/vite/commit/583f185)), closes [#9855](https://github.com/vitejs/vite/issues/9855) diff --git a/packages/plugin-vue/package.json b/packages/plugin-vue/package.json index efa3397bd2be46..832baeacb22d6e 100644 --- a/packages/plugin-vue/package.json +++ b/packages/plugin-vue/package.json @@ -1,6 +1,6 @@ { "name": "@vitejs/plugin-vue", - "version": "3.1.0-beta.0", + "version": "3.1.0", "license": "MIT", "author": "Evan You", "files": [ From 8b48181cd61f42d24fb0912609fa94b333a9ee95 Mon Sep 17 00:00:00 2001 From: patak-dev Date: Mon, 5 Sep 2022 11:48:54 +0200 Subject: [PATCH 04/54] release: plugin-react@2.1.0 --- packages/plugin-react/CHANGELOG.md | 6 ++++++ packages/plugin-react/package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/plugin-react/CHANGELOG.md b/packages/plugin-react/CHANGELOG.md index 649e5cd9c68078..f4408610482556 100644 --- a/packages/plugin-react/CHANGELOG.md +++ b/packages/plugin-react/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2.1.0 (2022-09-05) + +* fix(plugin-react): duplicate __self prop and __source prop (#9387) ([c89de3a](https://github.com/vitejs/vite/commit/c89de3a)), closes [#9387](https://github.com/vitejs/vite/issues/9387) + + + ## 2.1.0-beta.0 (2022-08-29) * docs: fix typo (#9855) ([583f185](https://github.com/vitejs/vite/commit/583f185)), closes [#9855](https://github.com/vitejs/vite/issues/9855) diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json index f8e7c6265232d9..fc9b1e9464ddec 100644 --- a/packages/plugin-react/package.json +++ b/packages/plugin-react/package.json @@ -1,6 +1,6 @@ { "name": "@vitejs/plugin-react", - "version": "2.1.0-beta.0", + "version": "2.1.0", "license": "MIT", "author": "Evan You", "contributors": [ From 4c88989a10b293a1faac9995019450b6c647ef4b Mon Sep 17 00:00:00 2001 From: patak-dev Date: Mon, 5 Sep 2022 11:49:50 +0200 Subject: [PATCH 05/54] release: plugin-legacy@2.1.0 --- packages/plugin-legacy/CHANGELOG.md | 5 +++++ packages/plugin-legacy/package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/plugin-legacy/CHANGELOG.md b/packages/plugin-legacy/CHANGELOG.md index cd34f3c6ff5845..61c7e6f4a1386c 100644 --- a/packages/plugin-legacy/CHANGELOG.md +++ b/packages/plugin-legacy/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.1.0 (2022-09-05) + + + + ## 2.1.0-beta.0 (2022-08-29) * fix(deps): update all non-major dependencies (#9888) ([e35a58b](https://github.com/vitejs/vite/commit/e35a58b)), closes [#9888](https://github.com/vitejs/vite/issues/9888) diff --git a/packages/plugin-legacy/package.json b/packages/plugin-legacy/package.json index 6f15399e39574c..87268121bf1edf 100644 --- a/packages/plugin-legacy/package.json +++ b/packages/plugin-legacy/package.json @@ -1,6 +1,6 @@ { "name": "@vitejs/plugin-legacy", - "version": "2.1.0-beta.0", + "version": "2.1.0", "license": "MIT", "author": "Evan You", "files": [ From 3a843d96c9ca0137803aadc6f866401550106295 Mon Sep 17 00:00:00 2001 From: patak-dev Date: Mon, 5 Sep 2022 11:50:27 +0200 Subject: [PATCH 06/54] release: create-vite@3.1.0 --- packages/create-vite/CHANGELOG.md | 13 +++++++++++++ packages/create-vite/package.json | 2 +- packages/create-vite/template-lit-ts/package.json | 2 +- packages/create-vite/template-lit/package.json | 2 +- .../create-vite/template-preact-ts/package.json | 2 +- packages/create-vite/template-preact/package.json | 2 +- packages/create-vite/template-react-ts/package.json | 4 ++-- packages/create-vite/template-react/package.json | 4 ++-- .../create-vite/template-svelte-ts/package.json | 2 +- packages/create-vite/template-svelte/package.json | 2 +- .../create-vite/template-vanilla-ts/package.json | 2 +- packages/create-vite/template-vanilla/package.json | 2 +- packages/create-vite/template-vue-ts/package.json | 4 ++-- packages/create-vite/template-vue/package.json | 4 ++-- 14 files changed, 30 insertions(+), 17 deletions(-) diff --git a/packages/create-vite/CHANGELOG.md b/packages/create-vite/CHANGELOG.md index 65eb850352c223..6a3fa6264561d7 100644 --- a/packages/create-vite/CHANGELOG.md +++ b/packages/create-vite/CHANGELOG.md @@ -1,3 +1,16 @@ +## 3.1.0 (2022-09-05) + +* refactor(create-vite): migrate to TypeScript (#9941) ([85fa2c8](https://github.com/vitejs/vite/commit/85fa2c8)), closes [#9941](https://github.com/vitejs/vite/issues/9941) +* perf: bundle create-vite (#9034) ([37ac91e](https://github.com/vitejs/vite/commit/37ac91e)), closes [#9034](https://github.com/vitejs/vite/issues/9034) +* fix(deps): update all non-major dependencies (#9888) ([e35a58b](https://github.com/vitejs/vite/commit/e35a58b)), closes [#9888](https://github.com/vitejs/vite/issues/9888) +* test(cli): remove unnecessary generics usage (#9859) ([45d6797](https://github.com/vitejs/vite/commit/45d6797)), closes [#9859](https://github.com/vitejs/vite/issues/9859) +* feat: skip `.git` when emptying dir (#9659) ([07fe65e](https://github.com/vitejs/vite/commit/07fe65e)), closes [#9659](https://github.com/vitejs/vite/issues/9659) +* feat(create-vite): add support for custom init commands (`create-vue`, Nuxt, and SvelteKit) (#9406) ([1673f3d](https://github.com/vitejs/vite/commit/1673f3d)), closes [#9406](https://github.com/vitejs/vite/issues/9406) +* chore(deps): update all non-major dependencies (#9675) ([4e56e87](https://github.com/vitejs/vite/commit/4e56e87)), closes [#9675](https://github.com/vitejs/vite/issues/9675) +* chore(deps): update all non-major dependencies (#9778) ([aceaefc](https://github.com/vitejs/vite/commit/aceaefc)), closes [#9778](https://github.com/vitejs/vite/issues/9778) + + + ## 3.0.2 (2022-08-12) diff --git a/packages/create-vite/package.json b/packages/create-vite/package.json index 76c33bcd95e75f..cb0b37beeabcb1 100644 --- a/packages/create-vite/package.json +++ b/packages/create-vite/package.json @@ -1,6 +1,6 @@ { "name": "create-vite", - "version": "3.0.2", + "version": "3.1.0", "type": "module", "license": "MIT", "author": "Evan You", diff --git a/packages/create-vite/template-lit-ts/package.json b/packages/create-vite/template-lit-ts/package.json index 463ed0a92f15e8..1fe7368853fa97 100644 --- a/packages/create-vite/template-lit-ts/package.json +++ b/packages/create-vite/template-lit-ts/package.json @@ -21,6 +21,6 @@ }, "devDependencies": { "typescript": "^4.6.4", - "vite": "^3.0.9" + "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-lit/package.json b/packages/create-vite/template-lit/package.json index d9a968e653d1dd..9df78634f332de 100644 --- a/packages/create-vite/template-lit/package.json +++ b/packages/create-vite/template-lit/package.json @@ -18,6 +18,6 @@ "lit": "^2.3.1" }, "devDependencies": { - "vite": "^3.0.9" + "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-preact-ts/package.json b/packages/create-vite/template-preact-ts/package.json index 67d72178f4e826..ce8145c3b7bb8f 100644 --- a/packages/create-vite/template-preact-ts/package.json +++ b/packages/create-vite/template-preact-ts/package.json @@ -14,6 +14,6 @@ "devDependencies": { "@preact/preset-vite": "^2.3.0", "typescript": "^4.6.4", - "vite": "^3.0.9" + "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-preact/package.json b/packages/create-vite/template-preact/package.json index f20f9c0e8c5a1f..552532559aaafd 100644 --- a/packages/create-vite/template-preact/package.json +++ b/packages/create-vite/template-preact/package.json @@ -13,6 +13,6 @@ }, "devDependencies": { "@preact/preset-vite": "^2.3.0", - "vite": "^3.0.9" + "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-react-ts/package.json b/packages/create-vite/template-react-ts/package.json index 954ab1b6c35af8..097084203ed080 100644 --- a/packages/create-vite/template-react-ts/package.json +++ b/packages/create-vite/template-react-ts/package.json @@ -15,8 +15,8 @@ "devDependencies": { "@types/react": "^18.0.17", "@types/react-dom": "^18.0.6", - "@vitejs/plugin-react": "^2.0.1", + "@vitejs/plugin-react": "^2.1.0", "typescript": "^4.6.4", - "vite": "^3.0.9" + "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-react/package.json b/packages/create-vite/template-react/package.json index ae854711e08149..45ed41a9ced8c8 100644 --- a/packages/create-vite/template-react/package.json +++ b/packages/create-vite/template-react/package.json @@ -15,7 +15,7 @@ "devDependencies": { "@types/react": "^18.0.17", "@types/react-dom": "^18.0.6", - "@vitejs/plugin-react": "^2.0.1", - "vite": "^3.0.9" + "@vitejs/plugin-react": "^2.1.0", + "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-svelte-ts/package.json b/packages/create-vite/template-svelte-ts/package.json index 4b2b573519f698..016cd21519b6a5 100644 --- a/packages/create-vite/template-svelte-ts/package.json +++ b/packages/create-vite/template-svelte-ts/package.json @@ -17,6 +17,6 @@ "svelte-preprocess": "^4.10.7", "tslib": "^2.4.0", "typescript": "^4.6.4", - "vite": "^3.0.9" + "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-svelte/package.json b/packages/create-vite/template-svelte/package.json index 8b1554b6107eb0..daadafb4cef070 100644 --- a/packages/create-vite/template-svelte/package.json +++ b/packages/create-vite/template-svelte/package.json @@ -11,6 +11,6 @@ "devDependencies": { "@sveltejs/vite-plugin-svelte": "^1.0.2", "svelte": "^3.49.0", - "vite": "^3.0.9" + "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-vanilla-ts/package.json b/packages/create-vite/template-vanilla-ts/package.json index d35e6a2f5051a2..3deb58bf3756f2 100644 --- a/packages/create-vite/template-vanilla-ts/package.json +++ b/packages/create-vite/template-vanilla-ts/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "typescript": "^4.6.4", - "vite": "^3.0.9" + "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-vanilla/package.json b/packages/create-vite/template-vanilla/package.json index 95543d260c4650..e0d02a899f40e4 100644 --- a/packages/create-vite/template-vanilla/package.json +++ b/packages/create-vite/template-vanilla/package.json @@ -9,6 +9,6 @@ "preview": "vite preview" }, "devDependencies": { - "vite": "^3.0.9" + "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-vue-ts/package.json b/packages/create-vite/template-vue-ts/package.json index 066d16c44ae57f..727ea107255221 100644 --- a/packages/create-vite/template-vue-ts/package.json +++ b/packages/create-vite/template-vue-ts/package.json @@ -12,9 +12,9 @@ "vue": "^3.2.37" }, "devDependencies": { - "@vitejs/plugin-vue": "^3.0.3", + "@vitejs/plugin-vue": "^3.1.0", "typescript": "^4.6.4", - "vite": "^3.0.9", + "vite": "^3.1.0", "vue-tsc": "^0.40.4" } } diff --git a/packages/create-vite/template-vue/package.json b/packages/create-vite/template-vue/package.json index e6bc9a293283c0..1fe94b6fadcb6c 100644 --- a/packages/create-vite/template-vue/package.json +++ b/packages/create-vite/template-vue/package.json @@ -12,7 +12,7 @@ "vue": "^3.2.37" }, "devDependencies": { - "@vitejs/plugin-vue": "^3.0.3", - "vite": "^3.0.9" + "@vitejs/plugin-vue": "^3.1.0", + "vite": "^3.1.0" } } From 44dbcbec8b1c0db0d42887ba5bf3de752e3baada Mon Sep 17 00:00:00 2001 From: patak Date: Mon, 5 Sep 2022 13:09:14 +0200 Subject: [PATCH 07/54] chore: update 3.1 changelog (#9994) --- packages/vite/CHANGELOG.md | 83 +++++++++++++++++++++++++------------- 1 file changed, 55 insertions(+), 28 deletions(-) diff --git a/packages/vite/CHANGELOG.md b/packages/vite/CHANGELOG.md index c0b64448f1ef35..4027c0270c61ca 100644 --- a/packages/vite/CHANGELOG.md +++ b/packages/vite/CHANGELOG.md @@ -1,39 +1,59 @@ ## 3.1.0 (2022-09-05) +### Main Changes +- Vite now uses [parse5](https://github.com/inikulin/parse5), which parses HTML in the same way as the latest browser versions. This migration gives us a more robust HTML story moving forward ([#9678](https://github.com/vitejs/vite/issues/9678)). +- Vite now supports using objects as hooks to change execution order ([#9634](https://github.com/vitejs/vite/issues/9634)). Check out the [RFC](https://github.com/vitejs/rfcs/discussions/12) and the implementation upstream at [rollup/rollup#4600](https://github.com/rollup/rollup/pull/4600) for details and rationale. + ```js + import { resolve } from 'node:path'; + import { readdir } from 'node:fs/promises'; + + export default function getFilesOnDisk() { + return { + name: 'getFilesOnDisk', + writeBundle: { + // run this hook sequentially even if the hook is parallel + sequential: true, + // push this hook to the 'post' stage, after all normal hooks + order: 'post', + // hook implementation + async handler({ dir }) { + const topLevelFiles = await readdir(resolve(dir)) + console.log(topLevelFiles) + } + } + } + } + ``` + Read the updated [Rollup Plugin docs](https://rollupjs.org/guide/en/#build-hooks) for more information. +> **Note** +> After Vite 3.1, you are no longer going to see `[vite] hot updated` log messages in the browser console. These messages have been moved to the debug channel ([#8855](https://github.com/vitejs/vite/issues/8855)). Check your browser docs to [show debug logs](https://developer.chrome.com/docs/devtools/console/log/#level). -## 3.1.0-beta.2 (2022-09-02) +### Features -* fix(css): remove css-post plugin sourcemap (#9914) ([c9521e7](https://github.com/vitejs/vite/commit/c9521e7)), closes [#9914](https://github.com/vitejs/vite/issues/9914) -* fix(hmr): duplicated modules because of query params mismatch (fixes #2255) (#9773) ([86bf776](https://github.com/vitejs/vite/commit/86bf776)), closes [#2255](https://github.com/vitejs/vite/issues/2255) [#9773](https://github.com/vitejs/vite/issues/9773) -* fix(ssr): enable `inlineDynamicImports` when input has length 1 (#9904) ([9ac5075](https://github.com/vitejs/vite/commit/9ac5075)), closes [#9904](https://github.com/vitejs/vite/issues/9904) -* fix(types): mark explicitImportRequired optional and experimental (#9962) ([7b618f0](https://github.com/vitejs/vite/commit/7b618f0)), closes [#9962](https://github.com/vitejs/vite/issues/9962) -* chore!: bump esbuild to 0.15.6 (#9934) ([091537c](https://github.com/vitejs/vite/commit/091537c)), closes [#9934](https://github.com/vitejs/vite/issues/9934) -* chore(deps): update dependency postcss-import to v15 (#9929) ([8f315a2](https://github.com/vitejs/vite/commit/8f315a2)), closes [#9929](https://github.com/vitejs/vite/issues/9929) * feat(css): format error (#9909) ([632fedf](https://github.com/vitejs/vite/commit/632fedf)), closes [#9909](https://github.com/vitejs/vite/issues/9909) * perf: bundle create-vite (#9034) ([37ac91e](https://github.com/vitejs/vite/commit/37ac91e)), closes [#9034](https://github.com/vitejs/vite/issues/9034) +* feat: stabilize server.resolvedUrls (#9866) ([c3f6731](https://github.com/vitejs/vite/commit/c3f6731)), closes [#9866](https://github.com/vitejs/vite/issues/9866) +* feat(client): use debug channel on hot updates (#8855) ([0452224](https://github.com/vitejs/vite/commit/0452224)), closes [#8855](https://github.com/vitejs/vite/issues/8855) +* feat: relax dep browser externals as warning (#9837) ([71cb374](https://github.com/vitejs/vite/commit/71cb374)), closes [#9837](https://github.com/vitejs/vite/issues/9837) +* feat: support object style hooks (#9634) ([757a92f](https://github.com/vitejs/vite/commit/757a92f)), closes [#9634](https://github.com/vitejs/vite/issues/9634) +* refactor: migrate from vue/compiler-dom to parse5 (#9678) ([05b3ce6](https://github.com/vitejs/vite/commit/05b3ce6)), closes [#9678](https://github.com/vitejs/vite/issues/9678) +* refactor: use `server.ssrTransform` (#9769) ([246a087](https://github.com/vitejs/vite/commit/246a087)), closes [#9769](https://github.com/vitejs/vite/issues/9769) +* perf: legacy avoid insert the entry module css (#9761) ([0765ab8](https://github.com/vitejs/vite/commit/0765ab8)), closes [#9761](https://github.com/vitejs/vite/issues/9761) +### Bug Fixes - -## 3.1.0-beta.1 (2022-08-29) - -* docs: fix typo (#9855) ([583f185](https://github.com/vitejs/vite/commit/583f185)), closes [#9855](https://github.com/vitejs/vite/issues/9855) +* fix(css): remove css-post plugin sourcemap (#9914) ([c9521e7](https://github.com/vitejs/vite/commit/c9521e7)), closes [#9914](https://github.com/vitejs/vite/issues/9914) +* fix(hmr): duplicated modules because of query params mismatch (fixes #2255) (#9773) ([86bf776](https://github.com/vitejs/vite/commit/86bf776)), closes [#2255](https://github.com/vitejs/vite/issues/2255) [#9773](https://github.com/vitejs/vite/issues/9773) +* fix(ssr): enable `inlineDynamicImports` when input has length 1 (#9904) ([9ac5075](https://github.com/vitejs/vite/commit/9ac5075)), closes [#9904](https://github.com/vitejs/vite/issues/9904) +* fix(types): mark explicitImportRequired optional and experimental (#9962) ([7b618f0](https://github.com/vitejs/vite/commit/7b618f0)), closes [#9962](https://github.com/vitejs/vite/issues/9962) +* fix: bump esbuild to 0.15.6 (#9934) ([091537c](https://github.com/vitejs/vite/commit/091537c)), closes [#9934](https://github.com/vitejs/vite/issues/9934) * refactor(hmr): simplify fetchUpdate (#9881) ([8872aba](https://github.com/vitejs/vite/commit/8872aba)), closes [#9881](https://github.com/vitejs/vite/issues/9881) * fix: ensure version query for direct node_modules imports (#9848) ([e7712ff](https://github.com/vitejs/vite/commit/e7712ff)), closes [#9848](https://github.com/vitejs/vite/issues/9848) * fix: escape glob path (#9842) ([6be971e](https://github.com/vitejs/vite/commit/6be971e)), closes [#9842](https://github.com/vitejs/vite/issues/9842) * fix(build): build project path error (#9793) ([cc8800a](https://github.com/vitejs/vite/commit/cc8800a)), closes [#9793](https://github.com/vitejs/vite/issues/9793) -* fix(deps): update all non-major dependencies (#9888) ([e35a58b](https://github.com/vitejs/vite/commit/e35a58b)), closes [#9888](https://github.com/vitejs/vite/issues/9888) * fix(types): explicitly set Vite hooks' `this` to `void` (#9885) ([2d2f2e5](https://github.com/vitejs/vite/commit/2d2f2e5)), closes [#9885](https://github.com/vitejs/vite/issues/9885) -* feat: stabilize server.resolvedUrls (#9866) ([c3f6731](https://github.com/vitejs/vite/commit/c3f6731)), closes [#9866](https://github.com/vitejs/vite/issues/9866) -* feat(client): use debug channel on hot updates (#8855) ([0452224](https://github.com/vitejs/vite/commit/0452224)), closes [#8855](https://github.com/vitejs/vite/issues/8855) - - - -## 3.1.0-beta.0 (2022-08-25) - -* feat: relax dep browser externals as warning (#9837) ([71cb374](https://github.com/vitejs/vite/commit/71cb374)), closes [#9837](https://github.com/vitejs/vite/issues/9837) -* feat: support object style hooks (#9634) ([757a92f](https://github.com/vitejs/vite/commit/757a92f)), closes [#9634](https://github.com/vitejs/vite/issues/9634) * fix: `completeSystemWrapPlugin` captures `function ()` (fixes #9807) (#9821) ([1ee0364](https://github.com/vitejs/vite/commit/1ee0364)), closes [#9807](https://github.com/vitejs/vite/issues/9807) [#9821](https://github.com/vitejs/vite/issues/9821) * fix: `injectQuery` break relative path (#9760) ([61273b2](https://github.com/vitejs/vite/commit/61273b2)), closes [#9760](https://github.com/vitejs/vite/issues/9760) * fix: close socket when client error handled (#9816) ([ba62be4](https://github.com/vitejs/vite/commit/ba62be4)), closes [#9816](https://github.com/vitejs/vite/issues/9816) @@ -42,13 +62,20 @@ * fix: sanitize asset filenames (#9737) ([2f468bb](https://github.com/vitejs/vite/commit/2f468bb)), closes [#9737](https://github.com/vitejs/vite/issues/9737) * fix: Skip inlining Git LFS placeholders (fix #9714) (#9795) ([9c7e43d](https://github.com/vitejs/vite/commit/9c7e43d)), closes [#9714](https://github.com/vitejs/vite/issues/9714) [#9795](https://github.com/vitejs/vite/issues/9795) * fix(html): move importmap before module scripts (#9392) ([b386fba](https://github.com/vitejs/vite/commit/b386fba)), closes [#9392](https://github.com/vitejs/vite/issues/9392) -* refactor: migrate from vue/compiler-dom to parse5 (#9678) ([05b3ce6](https://github.com/vitejs/vite/commit/05b3ce6)), closes [#9678](https://github.com/vitejs/vite/issues/9678) -* refactor: use `server.ssrTransform` (#9769) ([246a087](https://github.com/vitejs/vite/commit/246a087)), closes [#9769](https://github.com/vitejs/vite/issues/9769) -* chore: output tsconfck debug log (#9768) ([9206ad7](https://github.com/vitejs/vite/commit/9206ad7)), closes [#9768](https://github.com/vitejs/vite/issues/9768) -* chore: remove custom vitepress config (#9785) ([b2c0ee0](https://github.com/vitejs/vite/commit/b2c0ee0)), closes [#9785](https://github.com/vitejs/vite/issues/9785) -* chore(deps): update all non-major dependencies (#9778) ([aceaefc](https://github.com/vitejs/vite/commit/aceaefc)), closes [#9778](https://github.com/vitejs/vite/issues/9778) -* chore(deps): update dependency postcss-modules to v5 (#9779) ([aca6ac2](https://github.com/vitejs/vite/commit/aca6ac2)), closes [#9779](https://github.com/vitejs/vite/issues/9779) -* perf: legacy avoid insert the entry module css (#9761) ([0765ab8](https://github.com/vitejs/vite/commit/0765ab8)), closes [#9761](https://github.com/vitejs/vite/issues/9761) + +### Previous Changelogs + +#### [3.1.0-beta.2](https://github.com/vitejs/vite/compare/v3.1.0-beta.1...v3.1.0-beta.2) (2022-09-02) + +See [3.1.0-beta.2 changelog](https://github.com/vitejs/vite/blob/v3.1.0-beta.2/packages/vite/CHANGELOG.md) + +#### [3.1.0-beta.1](https://github.com/vitejs/vite/compare/v3.1.0-beta.0...v3.1.0-beta.1) (2022-08-29) + +See [3.1.0-beta.1 changelog](https://github.com/vitejs/vite/blob/v3.1.0-beta.1/packages/vite/CHANGELOG.md) + +#### [3.1.0-beta.0](https://github.com/vitejs/vite/compare/v3.0.0...v3.1.0-beta.0) (2022-08-25) + +See [3.1.0-beta.0 changelog](https://github.com/vitejs/vite/blob/v3.1.0-beta.0/packages/vite/CHANGELOG.md) From 0d20eae2236231aebdfe5cf8fc1794226873d779 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Mon, 5 Sep 2022 22:55:01 +0800 Subject: [PATCH 08/54] fix(preview): send configured headers (#9976) --- docs/config/preview-options.md | 6 ++++++ packages/vite/src/node/preview.ts | 10 +++++++++- playground/fs-serve/__tests__/fs-serve.spec.ts | 9 +++++++++ playground/fs-serve/package.json | 2 +- playground/fs-serve/root/vite.config.js | 8 ++++++++ 5 files changed, 33 insertions(+), 2 deletions(-) diff --git a/docs/config/preview-options.md b/docs/config/preview-options.md index 32589a5091d12b..3604afb9576d42 100644 --- a/docs/config/preview-options.md +++ b/docs/config/preview-options.md @@ -75,3 +75,9 @@ Uses [`http-proxy`](https://github.com/http-party/node-http-proxy). Full options - **Default:** [`server.cors`](./server-options#server-cors) Configure CORS for the preview server. This is enabled by default and allows any origin. Pass an [options object](https://github.com/expressjs/cors) to fine tune the behavior or `false` to disable. + +## preview.headers + +- **Type:** `OutgoingHttpHeaders` + +Specify server response headers. diff --git a/packages/vite/src/node/preview.ts b/packages/vite/src/node/preview.ts index bebd212217d384..82640c3ff5c43c 100644 --- a/packages/vite/src/node/preview.ts +++ b/packages/vite/src/node/preview.ts @@ -111,12 +111,20 @@ export async function preview( // static assets const distDir = path.resolve(config.root, config.build.outDir) + const headers = config.preview.headers app.use( previewBase, sirv(distDir, { etag: true, dev: true, - single: config.appType === 'spa' + single: config.appType === 'spa', + setHeaders(res) { + if (headers) { + for (const name in headers) { + res.setHeader(name, headers[name]!) + } + } + } }) ) diff --git a/playground/fs-serve/__tests__/fs-serve.spec.ts b/playground/fs-serve/__tests__/fs-serve.spec.ts index 8fcb3f61125158..90d35d21b04773 100644 --- a/playground/fs-serve/__tests__/fs-serve.spec.ts +++ b/playground/fs-serve/__tests__/fs-serve.spec.ts @@ -1,3 +1,4 @@ +import fetch from 'node-fetch' import { beforeAll, describe, expect, test } from 'vitest' import testJSON from '../safe.json' import { isServe, page, viteTestUrl } from '~utils' @@ -97,3 +98,11 @@ describe.runIf(isServe)('main', () => { expect(await page.textContent('.unsafe-dotenv')).toBe('404') }) }) + +describe('fetch', () => { + // Note: this should pass in build too, but the test setup doesn't use Vite preview + test.runIf(isServe)('serve with configured headers', async () => { + const res = await fetch(viteTestUrl + '/src/') + expect(res.headers.get('x-served-by')).toBe('vite') + }) +}) diff --git a/playground/fs-serve/package.json b/playground/fs-serve/package.json index c50be06a8cb286..6a5d18e2303c53 100644 --- a/playground/fs-serve/package.json +++ b/playground/fs-serve/package.json @@ -6,6 +6,6 @@ "dev": "vite root", "build": "vite build root", "debug": "node --inspect-brk ../../packages/vite/bin/vite", - "preview": "vite preview" + "preview": "vite preview root" } } diff --git a/playground/fs-serve/root/vite.config.js b/playground/fs-serve/root/vite.config.js index 5712ad5acb3438..12d07754cbf10d 100644 --- a/playground/fs-serve/root/vite.config.js +++ b/playground/fs-serve/root/vite.config.js @@ -18,6 +18,14 @@ module.exports = { }, hmr: { overlay: false + }, + headers: { + 'x-served-by': 'vite' + } + }, + preview: { + headers: { + 'x-served-by': 'vite' } }, define: { From 855f2f077eb8dc41b395bccecb6a5b836eb526a9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 5 Sep 2022 20:09:13 +0200 Subject: [PATCH 09/54] fix(deps): update all non-major dependencies (#9985) --- package.json | 22 +- .../template-preact-ts/package.json | 2 +- .../create-vite/template-preact/package.json | 2 +- .../template-react-ts/package.json | 2 +- .../create-vite/template-react/package.json | 2 +- .../template-svelte-ts/package.json | 6 +- .../create-vite/template-svelte/package.json | 4 +- .../create-vite/template-vue-ts/package.json | 4 +- .../create-vite/template-vue/package.json | 2 +- packages/plugin-legacy/package.json | 4 +- packages/plugin-react/package.json | 2 +- packages/plugin-vue/package.json | 2 +- packages/vite/package.json | 4 +- playground/alias/package.json | 4 +- playground/backend-integration/package.json | 2 +- playground/css-sourcemap/package.json | 4 +- playground/css/package.json | 2 +- playground/extensions/package.json | 2 +- .../dep-that-imports-vue/package.json | 2 +- .../dep-that-requires-vue/package.json | 2 +- playground/external/package.json | 2 +- playground/json/package.json | 2 +- playground/multiple-entrypoints/package.json | 2 +- playground/object-hooks/package.json | 2 +- playground/optimize-deps/package.json | 2 +- playground/preload/package.json | 2 +- playground/react-emotion/package.json | 2 +- playground/ssr-vue/package.json | 2 +- playground/tailwind/package.json | 2 +- playground/vue-jsx/package.json | 2 +- playground/vue-legacy/package.json | 2 +- playground/vue-lib/package.json | 2 +- playground/vue-server-origin/package.json | 2 +- playground/vue-sourcemap/package.json | 4 +- playground/vue/package.json | 4 +- pnpm-lock.yaml | 964 +++++++----------- 36 files changed, 423 insertions(+), 651 deletions(-) diff --git a/package.json b/package.json index a4e029cde05307..b2d0409cbce6a8 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@babel/types": "^7.18.13", - "@microsoft/api-extractor": "^7.29.5", + "@microsoft/api-extractor": "^7.30.0", "@rollup/plugin-typescript": "^8.4.0", "@types/babel__core": "^7.1.19", "@types/babel__standalone": "^7.1.4", @@ -57,13 +57,13 @@ "@types/semver": "^7.3.12", "@types/stylus": "^0.48.38", "@types/ws": "^8.5.3", - "@typescript-eslint/eslint-plugin": "^5.35.1", - "@typescript-eslint/parser": "^5.35.1", + "@typescript-eslint/eslint-plugin": "^5.36.1", + "@typescript-eslint/parser": "^5.36.1", "conventional-changelog-cli": "^2.2.2", "cross-env": "^7.0.3", "esbuild": "^0.14.47", "eslint": "^8.23.0", - "eslint-define-config": "^1.6.0", + "eslint-define-config": "^1.7.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-node": "^11.1.0", "execa": "^6.1.0", @@ -74,7 +74,7 @@ "npm-run-all": "^4.1.5", "picocolors": "^1.0.0", "playwright-chromium": "^1.25.1", - "pnpm": "^7.9.5", + "pnpm": "^7.11.0", "prettier": "2.7.1", "prompts": "^2.4.2", "resolve": "^1.22.1", @@ -84,13 +84,13 @@ "semver": "^7.3.7", "simple-git-hooks": "^2.8.0", "tslib": "^2.4.0", - "tsx": "^3.8.2", + "tsx": "^3.9.0", "typescript": "^4.6.4", - "unbuild": "^0.8.9", + "unbuild": "^0.8.10", "vite": "workspace:*", - "vitepress": "^1.0.0-alpha.12", - "vitest": "^0.22.1", - "vue": "^3.2.37" + "vitepress": "^1.0.0-alpha.13", + "vitest": "^0.23.1", + "vue": "^3.2.38" }, "simple-git-hooks": { "pre-commit": "pnpm exec lint-staged --concurrent false", @@ -110,7 +110,7 @@ "eslint --cache --fix" ] }, - "packageManager": "pnpm@7.9.5", + "packageManager": "pnpm@7.11.0", "pnpm": { "overrides": { "vite": "workspace:*", diff --git a/packages/create-vite/template-preact-ts/package.json b/packages/create-vite/template-preact-ts/package.json index ce8145c3b7bb8f..7693977472c178 100644 --- a/packages/create-vite/template-preact-ts/package.json +++ b/packages/create-vite/template-preact-ts/package.json @@ -12,7 +12,7 @@ "preact": "^10.10.6" }, "devDependencies": { - "@preact/preset-vite": "^2.3.0", + "@preact/preset-vite": "^2.3.1", "typescript": "^4.6.4", "vite": "^3.1.0" } diff --git a/packages/create-vite/template-preact/package.json b/packages/create-vite/template-preact/package.json index 552532559aaafd..f82ab1d9206030 100644 --- a/packages/create-vite/template-preact/package.json +++ b/packages/create-vite/template-preact/package.json @@ -12,7 +12,7 @@ "preact": "^10.10.6" }, "devDependencies": { - "@preact/preset-vite": "^2.3.0", + "@preact/preset-vite": "^2.3.1", "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-react-ts/package.json b/packages/create-vite/template-react-ts/package.json index 097084203ed080..644fb8237ad867 100644 --- a/packages/create-vite/template-react-ts/package.json +++ b/packages/create-vite/template-react-ts/package.json @@ -13,7 +13,7 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@types/react": "^18.0.17", + "@types/react": "^18.0.18", "@types/react-dom": "^18.0.6", "@vitejs/plugin-react": "^2.1.0", "typescript": "^4.6.4", diff --git a/packages/create-vite/template-react/package.json b/packages/create-vite/template-react/package.json index 45ed41a9ced8c8..ad6398aa052314 100644 --- a/packages/create-vite/template-react/package.json +++ b/packages/create-vite/template-react/package.json @@ -13,7 +13,7 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@types/react": "^18.0.17", + "@types/react": "^18.0.18", "@types/react-dom": "^18.0.6", "@vitejs/plugin-react": "^2.1.0", "vite": "^3.1.0" diff --git a/packages/create-vite/template-svelte-ts/package.json b/packages/create-vite/template-svelte-ts/package.json index 016cd21519b6a5..dd42c5937717fb 100644 --- a/packages/create-vite/template-svelte-ts/package.json +++ b/packages/create-vite/template-svelte-ts/package.json @@ -10,10 +10,10 @@ "check": "svelte-check --tsconfig ./tsconfig.json" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^1.0.2", + "@sveltejs/vite-plugin-svelte": "^1.0.5", "@tsconfig/svelte": "^3.0.0", - "svelte": "^3.49.0", - "svelte-check": "^2.8.1", + "svelte": "^3.50.0", + "svelte-check": "^2.9.0", "svelte-preprocess": "^4.10.7", "tslib": "^2.4.0", "typescript": "^4.6.4", diff --git a/packages/create-vite/template-svelte/package.json b/packages/create-vite/template-svelte/package.json index daadafb4cef070..e6cd66218a5059 100644 --- a/packages/create-vite/template-svelte/package.json +++ b/packages/create-vite/template-svelte/package.json @@ -9,8 +9,8 @@ "preview": "vite preview" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^1.0.2", - "svelte": "^3.49.0", + "@sveltejs/vite-plugin-svelte": "^1.0.5", + "svelte": "^3.50.0", "vite": "^3.1.0" } } diff --git a/packages/create-vite/template-vue-ts/package.json b/packages/create-vite/template-vue-ts/package.json index 727ea107255221..56a4f4ad3c2651 100644 --- a/packages/create-vite/template-vue-ts/package.json +++ b/packages/create-vite/template-vue-ts/package.json @@ -9,12 +9,12 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" }, "devDependencies": { "@vitejs/plugin-vue": "^3.1.0", "typescript": "^4.6.4", "vite": "^3.1.0", - "vue-tsc": "^0.40.4" + "vue-tsc": "^0.40.7" } } diff --git a/packages/create-vite/template-vue/package.json b/packages/create-vite/template-vue/package.json index 1fe94b6fadcb6c..12770e3b800e3a 100644 --- a/packages/create-vite/template-vue/package.json +++ b/packages/create-vite/template-vue/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" }, "devDependencies": { "@vitejs/plugin-vue": "^3.1.0", diff --git a/packages/plugin-legacy/package.json b/packages/plugin-legacy/package.json index 87268121bf1edf..0696a08e6d0075 100644 --- a/packages/plugin-legacy/package.json +++ b/packages/plugin-legacy/package.json @@ -37,9 +37,9 @@ "dependencies": { "@babel/standalone": "^7.18.13", "core-js": "^3.25.0", - "magic-string": "^0.26.2", + "magic-string": "^0.26.3", "regenerator-runtime": "^0.13.9", - "systemjs": "^6.12.4" + "systemjs": "^6.12.6" }, "peerDependencies": { "terser": "^5.4.0", diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json index fc9b1e9464ddec..ce6635d5179e6a 100644 --- a/packages/plugin-react/package.json +++ b/packages/plugin-react/package.json @@ -44,7 +44,7 @@ "@babel/plugin-transform-react-jsx-development": "^7.18.6", "@babel/plugin-transform-react-jsx-self": "^7.18.6", "@babel/plugin-transform-react-jsx-source": "^7.18.6", - "magic-string": "^0.26.2", + "magic-string": "^0.26.3", "react-refresh": "^0.14.0" }, "peerDependencies": { diff --git a/packages/plugin-vue/package.json b/packages/plugin-vue/package.json index 832baeacb22d6e..af38d881dadba3 100644 --- a/packages/plugin-vue/package.json +++ b/packages/plugin-vue/package.json @@ -46,6 +46,6 @@ "slash": "^4.0.0", "source-map": "^0.6.1", "vite": "workspace:*", - "vue": "^3.2.37" + "vue": "^3.2.38" } } diff --git a/packages/vite/package.json b/packages/vite/package.json index b929146aee5359..ab59809cb0d833 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -96,13 +96,13 @@ "http-proxy": "^1.18.1", "json5": "^2.2.1", "launch-editor-middleware": "^2.6.0", - "magic-string": "^0.26.2", + "magic-string": "^0.26.3", "micromatch": "^4.0.5", "mlly": "^0.5.14", "mrmime": "^1.0.1", "okie": "^1.0.1", "open": "^8.4.0", - "parse5": "^7.0.0", + "parse5": "^7.1.1", "periscopic": "^3.0.4", "picocolors": "^1.0.0", "postcss-import": "^15.0.0", diff --git a/playground/alias/package.json b/playground/alias/package.json index 4b49ca8d346ebf..332f3ab1450e02 100644 --- a/playground/alias/package.json +++ b/playground/alias/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "aliased-module": "file:./dir/module", - "vue": "^3.2.37", - "@vue/shared": "^3.2.37" + "vue": "^3.2.38", + "@vue/shared": "^3.2.38" }, "devDependencies": { "resolve-linked": "workspace:*" diff --git a/playground/backend-integration/package.json b/playground/backend-integration/package.json index 299ffe9d9920dd..10fd4cde9bd15e 100644 --- a/playground/backend-integration/package.json +++ b/playground/backend-integration/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "devDependencies": { - "sass": "^1.54.5", + "sass": "^1.54.8", "tailwindcss": "^3.1.8", "fast-glob": "^3.2.11" } diff --git a/playground/css-sourcemap/package.json b/playground/css-sourcemap/package.json index cdc1d168f2d448..48ab27d966d93f 100644 --- a/playground/css-sourcemap/package.json +++ b/playground/css-sourcemap/package.json @@ -10,8 +10,8 @@ }, "devDependencies": { "less": "^4.1.3", - "magic-string": "^0.26.2", - "sass": "^1.54.5", + "magic-string": "^0.26.3", + "sass": "^1.54.8", "stylus": "^0.59.0" } } diff --git a/playground/css/package.json b/playground/css/package.json index 87e768f5938630..d78392341905a9 100644 --- a/playground/css/package.json +++ b/playground/css/package.json @@ -17,7 +17,7 @@ "fast-glob": "^3.2.11", "less": "^4.1.3", "postcss-nested": "^5.0.6", - "sass": "^1.54.5", + "sass": "^1.54.8", "stylus": "^0.59.0" } } diff --git a/playground/extensions/package.json b/playground/extensions/package.json index 380aaa142fd0c4..a90473c15cfb64 100644 --- a/playground/extensions/package.json +++ b/playground/extensions/package.json @@ -9,6 +9,6 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" } } diff --git a/playground/external/dep-that-imports-vue/package.json b/playground/external/dep-that-imports-vue/package.json index 0fcd4b186a979b..0c9cf889e25c2f 100644 --- a/playground/external/dep-that-imports-vue/package.json +++ b/playground/external/dep-that-imports-vue/package.json @@ -3,6 +3,6 @@ "private": true, "version": "0.0.0", "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" } } diff --git a/playground/external/dep-that-requires-vue/package.json b/playground/external/dep-that-requires-vue/package.json index a71847a02bb969..759433b6094a55 100644 --- a/playground/external/dep-that-requires-vue/package.json +++ b/playground/external/dep-that-requires-vue/package.json @@ -3,6 +3,6 @@ "private": true, "version": "0.0.0", "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" } } diff --git a/playground/external/package.json b/playground/external/package.json index 94fdc429ce2b0b..8e3fde96ecdb18 100644 --- a/playground/external/package.json +++ b/playground/external/package.json @@ -14,6 +14,6 @@ }, "devDependencies": { "vite": "workspace:*", - "vue": "^3.2.37" + "vue": "^3.2.38" } } diff --git a/playground/json/package.json b/playground/json/package.json index ef60b42ff96971..ee851285a0945c 100644 --- a/playground/json/package.json +++ b/playground/json/package.json @@ -15,6 +15,6 @@ "cross-env": "^7.0.3", "express": "^4.18.1", "json-module": "file:./json-module", - "vue": "^3.2.37" + "vue": "^3.2.38" } } diff --git a/playground/multiple-entrypoints/package.json b/playground/multiple-entrypoints/package.json index 88896854311469..8a62eb41c6dbde 100644 --- a/playground/multiple-entrypoints/package.json +++ b/playground/multiple-entrypoints/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "fast-glob": "^3.2.11", - "sass": "^1.54.5" + "sass": "^1.54.8" } } diff --git a/playground/object-hooks/package.json b/playground/object-hooks/package.json index 380aaa142fd0c4..a90473c15cfb64 100644 --- a/playground/object-hooks/package.json +++ b/playground/object-hooks/package.json @@ -9,6 +9,6 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" } } diff --git a/playground/optimize-deps/package.json b/playground/optimize-deps/package.json index 2ece5488da5425..f9254a5e221147 100644 --- a/playground/optimize-deps/package.json +++ b/playground/optimize-deps/package.json @@ -33,7 +33,7 @@ "react-dom": "^18.2.0", "resolve-linked": "workspace:0.0.0", "url": "^0.11.0", - "vue": "^3.2.37", + "vue": "^3.2.38", "vuex": "^4.0.2", "lodash": "^4.17.21", "lodash.clonedeep": "^4.5.0" diff --git a/playground/preload/package.json b/playground/preload/package.json index 07fad09b3b6f3f..ec11ffd6b10599 100644 --- a/playground/preload/package.json +++ b/playground/preload/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.37", + "vue": "^3.2.38", "vue-router": "^4.1.5" }, "devDependencies": { diff --git a/playground/react-emotion/package.json b/playground/react-emotion/package.json index bca5d25bc6a3e9..842f7c6402d84e 100644 --- a/playground/react-emotion/package.json +++ b/playground/react-emotion/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@emotion/react": "^11.10.0", + "@emotion/react": "^11.10.4", "react": "^18.2.0", "react-dom": "^18.2.0", "react-switch": "^7.0.0" diff --git a/playground/ssr-vue/package.json b/playground/ssr-vue/package.json index 16beb1dbcca4bc..5c450d10d62d60 100644 --- a/playground/ssr-vue/package.json +++ b/playground/ssr-vue/package.json @@ -16,7 +16,7 @@ }, "dependencies": { "example-external-component": "file:example-external-component", - "vue": "^3.2.37", + "vue": "^3.2.38", "vue-router": "^4.1.5", "vuex": "^4.0.2" }, diff --git a/playground/tailwind/package.json b/playground/tailwind/package.json index 1f4246c162273c..0bc57919fdf209 100644 --- a/playground/tailwind/package.json +++ b/playground/tailwind/package.json @@ -11,7 +11,7 @@ "dependencies": { "autoprefixer": "^10.4.8", "tailwindcss": "^3.1.8", - "vue": "^3.2.37", + "vue": "^3.2.38", "vue-router": "^4.1.5" }, "devDependencies": { diff --git a/playground/vue-jsx/package.json b/playground/vue-jsx/package.json index af84606ab64eea..8d376c526a9bde 100644 --- a/playground/vue-jsx/package.json +++ b/playground/vue-jsx/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" }, "devDependencies": { "@vitejs/plugin-vue": "workspace:*", diff --git a/playground/vue-legacy/package.json b/playground/vue-legacy/package.json index 201a5ae47bb293..9a6267fc79c842 100644 --- a/playground/vue-legacy/package.json +++ b/playground/vue-legacy/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" }, "devDependencies": { "@vitejs/plugin-vue": "workspace:*", diff --git a/playground/vue-lib/package.json b/playground/vue-lib/package.json index c10f1729c5a71a..e593d30981e3b6 100644 --- a/playground/vue-lib/package.json +++ b/playground/vue-lib/package.json @@ -8,7 +8,7 @@ "build-consumer": "vite build --config ./vite.config.consumer.ts" }, "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" }, "devDependencies": { "@vitejs/plugin-vue": "workspace:*" diff --git a/playground/vue-server-origin/package.json b/playground/vue-server-origin/package.json index 8d379e3ee194d1..754c4122af8a18 100644 --- a/playground/vue-server-origin/package.json +++ b/playground/vue-server-origin/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" }, "devDependencies": { "@vitejs/plugin-vue": "workspace:*" diff --git a/playground/vue-sourcemap/package.json b/playground/vue-sourcemap/package.json index db8ae355815d52..f140a473affb2e 100644 --- a/playground/vue-sourcemap/package.json +++ b/playground/vue-sourcemap/package.json @@ -12,9 +12,9 @@ "@vitejs/plugin-vue": "workspace:*", "less": "^4.1.3", "postcss-nested": "^5.0.6", - "sass": "^1.54.5" + "sass": "^1.54.8" }, "dependencies": { - "vue": "^3.2.37" + "vue": "^3.2.38" } } diff --git a/playground/vue/package.json b/playground/vue/package.json index ae3f05e966bfdc..7ef2fe5d69c4d4 100644 --- a/playground/vue/package.json +++ b/playground/vue/package.json @@ -10,14 +10,14 @@ }, "dependencies": { "lodash-es": "^4.17.21", - "vue": "^3.2.37" + "vue": "^3.2.38" }, "devDependencies": { "@vitejs/plugin-vue": "workspace:*", "js-yaml": "^4.1.0", "less": "^4.1.3", "pug": "^3.0.2", - "sass": "^1.54.5", + "sass": "^1.54.8", "stylus": "^0.59.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6c27045e25270e..dfd5fe3955fc31 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,7 +11,7 @@ importers: .: specifiers: '@babel/types': ^7.18.13 - '@microsoft/api-extractor': ^7.29.5 + '@microsoft/api-extractor': ^7.30.0 '@rollup/plugin-typescript': ^8.4.0 '@types/babel__core': ^7.1.19 '@types/babel__standalone': ^7.1.4 @@ -31,13 +31,13 @@ importers: '@types/semver': ^7.3.12 '@types/stylus': ^0.48.38 '@types/ws': ^8.5.3 - '@typescript-eslint/eslint-plugin': ^5.35.1 - '@typescript-eslint/parser': ^5.35.1 + '@typescript-eslint/eslint-plugin': ^5.36.1 + '@typescript-eslint/parser': ^5.36.1 conventional-changelog-cli: ^2.2.2 cross-env: ^7.0.3 esbuild: ^0.14.47 eslint: ^8.23.0 - eslint-define-config: ^1.6.0 + eslint-define-config: ^1.7.0 eslint-plugin-import: ^2.26.0 eslint-plugin-node: ^11.1.0 execa: ^6.1.0 @@ -48,7 +48,7 @@ importers: npm-run-all: ^4.1.5 picocolors: ^1.0.0 playwright-chromium: ^1.25.1 - pnpm: ^7.9.5 + pnpm: ^7.11.0 prettier: 2.7.1 prompts: ^2.4.2 resolve: ^1.22.1 @@ -58,16 +58,16 @@ importers: semver: ^7.3.7 simple-git-hooks: ^2.8.0 tslib: ^2.4.0 - tsx: ^3.8.2 + tsx: ^3.9.0 typescript: ^4.6.4 - unbuild: ^0.8.9 + unbuild: ^0.8.10 vite: workspace:* - vitepress: ^1.0.0-alpha.12 - vitest: ^0.22.1 - vue: ^3.2.37 + vitepress: ^1.0.0-alpha.13 + vitest: ^0.23.1 + vue: ^3.2.38 devDependencies: '@babel/types': 7.18.13 - '@microsoft/api-extractor': 7.29.5 + '@microsoft/api-extractor': 7.30.0 '@rollup/plugin-typescript': 8.4.0_7emp2e44zzc74lnyjhc37gdv4y '@types/babel__core': 7.1.19 '@types/babel__standalone': 7.1.4 @@ -87,14 +87,14 @@ importers: '@types/semver': 7.3.12 '@types/stylus': 0.48.38 '@types/ws': 8.5.3 - '@typescript-eslint/eslint-plugin': 5.35.1_hy4by47wjjtoupqk2r7jy5xf2e - '@typescript-eslint/parser': 5.35.1_pyvvhc3zqdua4akflcggygkl44 + '@typescript-eslint/eslint-plugin': 5.36.1_g2qdd2k5igsxhudjjarcmw5o7e + '@typescript-eslint/parser': 5.36.1_pyvvhc3zqdua4akflcggygkl44 conventional-changelog-cli: 2.2.2 cross-env: 7.0.3 esbuild: 0.14.47 eslint: 8.23.0 - eslint-define-config: 1.6.0 - eslint-plugin-import: 2.26.0_kavhtzjob4obuugpatbfgsyfbm + eslint-define-config: 1.7.0 + eslint-plugin-import: 2.26.0_wyxuyzvlfep3lsyoibc4fosfq4 eslint-plugin-node: 11.1.0_eslint@8.23.0 execa: 6.1.0 fast-glob: 3.2.11 @@ -104,7 +104,7 @@ importers: npm-run-all: 4.1.5 picocolors: 1.0.0 playwright-chromium: 1.25.1 - pnpm: 7.9.5 + pnpm: 7.11.0 prettier: 2.7.1 prompts: 2.4.2 resolve: 1.22.1 @@ -114,13 +114,13 @@ importers: semver: 7.3.7 simple-git-hooks: 2.8.0 tslib: 2.4.0 - tsx: 3.8.2 + tsx: 3.9.0 typescript: 4.6.4 - unbuild: 0.8.9 + unbuild: 0.8.10 vite: link:packages/vite - vitepress: 1.0.0-alpha.12 - vitest: 0.22.1 - vue: 3.2.37 + vitepress: 1.0.0-alpha.13 + vitest: 0.23.1 + vue: 3.2.38 packages/create-vite: specifiers: @@ -139,16 +139,16 @@ importers: '@babel/core': ^7.18.13 '@babel/standalone': ^7.18.13 core-js: ^3.25.0 - magic-string: ^0.26.2 + magic-string: ^0.26.3 regenerator-runtime: ^0.13.9 - systemjs: ^6.12.4 + systemjs: ^6.12.6 vite: workspace:* dependencies: '@babel/standalone': 7.18.13 core-js: 3.25.0 - magic-string: 0.26.2 + magic-string: 0.26.3 regenerator-runtime: 0.13.9 - systemjs: 6.12.4 + systemjs: 6.12.6 devDependencies: '@babel/core': 7.18.13 vite: link:../vite @@ -160,7 +160,7 @@ importers: '@babel/plugin-transform-react-jsx-development': ^7.18.6 '@babel/plugin-transform-react-jsx-self': ^7.18.6 '@babel/plugin-transform-react-jsx-source': ^7.18.6 - magic-string: ^0.26.2 + magic-string: ^0.26.3 react-refresh: ^0.14.0 vite: workspace:* dependencies: @@ -169,7 +169,7 @@ importers: '@babel/plugin-transform-react-jsx-development': 7.18.6_@babel+core@7.18.13 '@babel/plugin-transform-react-jsx-self': 7.18.6_@babel+core@7.18.13 '@babel/plugin-transform-react-jsx-source': 7.18.6_@babel+core@7.18.13 - magic-string: 0.26.2 + magic-string: 0.26.3 react-refresh: 0.14.0 devDependencies: vite: link:../vite @@ -183,7 +183,7 @@ importers: slash: ^4.0.0 source-map: ^0.6.1 vite: workspace:* - vue: ^3.2.37 + vue: ^3.2.38 devDependencies: '@jridgewell/gen-mapping': 0.3.2 '@jridgewell/trace-mapping': 0.3.15 @@ -192,7 +192,7 @@ importers: slash: 4.0.0 source-map: 0.6.1 vite: link:../vite - vue: 3.2.37 + vue: 3.2.38 packages/plugin-vue-jsx: specifiers: @@ -242,13 +242,13 @@ importers: http-proxy: ^1.18.1 json5: ^2.2.1 launch-editor-middleware: ^2.6.0 - magic-string: ^0.26.2 + magic-string: ^0.26.3 micromatch: ^4.0.5 mlly: ^0.5.14 mrmime: ^1.0.1 okie: ^1.0.1 open: ^8.4.0 - parse5: ^7.0.0 + parse5: ^7.1.1 periscopic: ^3.0.4 picocolors: ^1.0.0 postcss: ^8.4.16 @@ -305,13 +305,13 @@ importers: http-proxy: 1.18.1_debug@4.3.4 json5: 2.2.1 launch-editor-middleware: 2.6.0 - magic-string: 0.26.2 + magic-string: 0.26.3 micromatch: 4.0.5 mlly: 0.5.14 mrmime: 1.0.1 okie: 1.0.1 open: 8.4.0 - parse5: 7.0.0 + parse5: 7.1.1 periscopic: 3.0.4 picocolors: 1.0.0 postcss-import: 15.0.0_postcss@8.4.16 @@ -345,14 +345,14 @@ importers: playground/alias: specifiers: - '@vue/shared': ^3.2.37 + '@vue/shared': ^3.2.38 aliased-module: file:./dir/module resolve-linked: workspace:* - vue: ^3.2.37 + vue: ^3.2.38 dependencies: - '@vue/shared': 3.2.37 + '@vue/shared': 3.2.38 aliased-module: file:playground/alias/dir/module - vue: 3.2.37 + vue: 3.2.38 devDependencies: resolve-linked: link:../resolve-linked @@ -368,11 +368,11 @@ importers: playground/backend-integration: specifiers: fast-glob: ^3.2.11 - sass: ^1.54.5 + sass: ^1.54.8 tailwindcss: ^3.1.8 devDependencies: fast-glob: 3.2.11 - sass: 1.54.5 + sass: 1.54.8 tailwindcss: 3.1.8 playground/build-old: @@ -391,7 +391,7 @@ importers: fast-glob: ^3.2.11 less: ^4.1.3 postcss-nested: ^5.0.6 - sass: ^1.54.5 + sass: ^1.54.8 stylus: ^0.59.0 devDependencies: css-dep: link:css-dep @@ -399,7 +399,7 @@ importers: fast-glob: 3.2.11 less: 4.1.3 postcss-nested: 5.0.6 - sass: 1.54.5 + sass: 1.54.8 stylus: 0.59.0 playground/css-codesplit: @@ -411,13 +411,13 @@ importers: playground/css-sourcemap: specifiers: less: ^4.1.3 - magic-string: ^0.26.2 - sass: ^1.54.5 + magic-string: ^0.26.3 + sass: ^1.54.8 stylus: ^0.59.0 devDependencies: less: 4.1.3 - magic-string: 0.26.2 - sass: 1.54.5 + magic-string: 0.26.3 + sass: 1.54.8 stylus: 0.59.0 playground/css/css-dep: @@ -467,34 +467,34 @@ importers: playground/extensions: specifiers: - vue: ^3.2.37 + vue: ^3.2.38 dependencies: - vue: 3.2.37 + vue: 3.2.38 playground/external: specifiers: '@vitejs/dep-that-imports-vue': file:./dep-that-imports-vue '@vitejs/dep-that-requires-vue': file:./dep-that-requires-vue vite: workspace:* - vue: ^3.2.37 + vue: ^3.2.38 dependencies: '@vitejs/dep-that-imports-vue': file:playground/external/dep-that-imports-vue '@vitejs/dep-that-requires-vue': file:playground/external/dep-that-requires-vue devDependencies: vite: link:../../packages/vite - vue: 3.2.37 + vue: 3.2.38 playground/external/dep-that-imports-vue: specifiers: - vue: ^3.2.37 + vue: ^3.2.38 dependencies: - vue: 3.2.37 + vue: 3.2.38 playground/external/dep-that-requires-vue: specifiers: - vue: ^3.2.37 + vue: ^3.2.38 dependencies: - vue: 3.2.37 + vue: 3.2.38 playground/file-delete-restore: specifiers: @@ -536,12 +536,12 @@ importers: cross-env: ^7.0.3 express: ^4.18.1 json-module: file:./json-module - vue: ^3.2.37 + vue: ^3.2.38 devDependencies: cross-env: 7.0.3 express: 4.18.1 json-module: file:playground/json/json-module - vue: 3.2.37 + vue: 3.2.38 playground/json/json-module: specifiers: {} @@ -565,10 +565,10 @@ importers: playground/multiple-entrypoints: specifiers: fast-glob: ^3.2.11 - sass: ^1.54.5 + sass: ^1.54.8 devDependencies: fast-glob: 3.2.11 - sass: 1.54.5 + sass: 1.54.8 playground/nested-deps: specifiers: @@ -621,9 +621,9 @@ importers: playground/object-hooks: specifiers: - vue: ^3.2.37 + vue: ^3.2.38 dependencies: - vue: 3.2.37 + vue: 3.2.38 playground/optimize-deps: specifiers: @@ -654,7 +654,7 @@ importers: react-dom: ^18.2.0 resolve-linked: workspace:0.0.0 url: ^0.11.0 - vue: ^3.2.37 + vue: ^3.2.38 vuex: ^4.0.2 dependencies: added-in-entries: file:playground/optimize-deps/added-in-entries @@ -683,8 +683,8 @@ importers: react-dom: 18.2.0_react@18.2.0 resolve-linked: link:../resolve-linked url: 0.11.0 - vue: 3.2.37 - vuex: 4.0.2_vue@3.2.37 + vue: 3.2.38 + vuex: 4.0.2_vue@3.2.38 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue @@ -775,11 +775,11 @@ importers: dep-a: file:./dep-a dep-including-a: file:./dep-including-a terser: ^5.15.0 - vue: ^3.2.37 + vue: ^3.2.38 vue-router: ^4.1.5 dependencies: - vue: 3.2.37 - vue-router: 4.1.5_vue@3.2.37 + vue: 3.2.38 + vue-router: 4.1.5_vue@3.2.38 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue dep-a: file:playground/preload/dep-a @@ -832,13 +832,13 @@ importers: specifiers: '@babel/plugin-proposal-pipeline-operator': ^7.18.9 '@emotion/babel-plugin': ^11.10.2 - '@emotion/react': ^11.10.0 + '@emotion/react': ^11.10.4 '@vitejs/plugin-react': workspace:* react: ^18.2.0 react-dom: ^18.2.0 react-switch: ^7.0.0 dependencies: - '@emotion/react': 11.10.0_react@18.2.0 + '@emotion/react': 11.10.4_react@18.2.0 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 react-switch: 7.0.0_biqbaboplfbrettd7655fr4n2y @@ -1110,14 +1110,14 @@ importers: example-external-component: file:example-external-component express: ^4.18.1 serve-static: ^1.15.0 - vue: ^3.2.37 + vue: ^3.2.38 vue-router: ^4.1.5 vuex: ^4.0.2 dependencies: example-external-component: file:playground/ssr-vue/example-external-component - vue: 3.2.37 - vue-router: 4.1.5_vue@3.2.37 - vuex: 4.0.2_vue@3.2.37 + vue: 3.2.38 + vue-router: 4.1.5_vue@3.2.38 + vuex: 4.0.2_vue@3.2.38 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue '@vitejs/plugin-vue-jsx': link:../../packages/plugin-vue-jsx @@ -1152,13 +1152,13 @@ importers: autoprefixer: ^10.4.8 tailwindcss: ^3.1.8 ts-node: ^10.9.1 - vue: ^3.2.37 + vue: ^3.2.38 vue-router: ^4.1.5 dependencies: autoprefixer: 10.4.8 tailwindcss: 3.1.8_ts-node@10.9.1 - vue: 3.2.37 - vue-router: 4.1.5_vue@3.2.37 + vue: 3.2.38 + vue-router: 4.1.5_vue@3.2.38 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue ts-node: 10.9.1 @@ -1182,27 +1182,27 @@ importers: less: ^4.1.3 lodash-es: ^4.17.21 pug: ^3.0.2 - sass: ^1.54.5 + sass: ^1.54.8 stylus: ^0.59.0 - vue: ^3.2.37 + vue: ^3.2.38 dependencies: lodash-es: 4.17.21 - vue: 3.2.37 + vue: 3.2.38 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue js-yaml: 4.1.0 less: 4.1.3 pug: 3.0.2 - sass: 1.54.5 + sass: 1.54.8 stylus: 0.59.0 playground/vue-jsx: specifiers: '@vitejs/plugin-vue': workspace:* '@vitejs/plugin-vue-jsx': workspace:* - vue: ^3.2.37 + vue: ^3.2.38 dependencies: - vue: 3.2.37 + vue: 3.2.38 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue '@vitejs/plugin-vue-jsx': link:../../packages/plugin-vue-jsx @@ -1211,9 +1211,9 @@ importers: specifiers: '@vitejs/plugin-legacy': workspace:* '@vitejs/plugin-vue': workspace:* - vue: ^3.2.37 + vue: ^3.2.38 dependencies: - vue: 3.2.37 + vue: 3.2.38 devDependencies: '@vitejs/plugin-legacy': link:../../packages/plugin-legacy '@vitejs/plugin-vue': link:../../packages/plugin-vue @@ -1221,18 +1221,18 @@ importers: playground/vue-lib: specifiers: '@vitejs/plugin-vue': workspace:* - vue: ^3.2.37 + vue: ^3.2.38 dependencies: - vue: 3.2.37 + vue: 3.2.38 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue playground/vue-server-origin: specifiers: '@vitejs/plugin-vue': workspace:* - vue: ^3.2.37 + vue: ^3.2.38 dependencies: - vue: 3.2.37 + vue: 3.2.38 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue @@ -1241,15 +1241,15 @@ importers: '@vitejs/plugin-vue': workspace:* less: ^4.1.3 postcss-nested: ^5.0.6 - sass: ^1.54.5 - vue: ^3.2.37 + sass: ^1.54.8 + vue: ^3.2.38 dependencies: - vue: 3.2.37 + vue: 3.2.38 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue less: 4.1.3 postcss-nested: 5.0.6 - sass: 1.54.5 + sass: 1.54.8 playground/wasm: specifiers: {} @@ -1393,7 +1393,7 @@ packages: resolution: {integrity: sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.17.9 + '@babel/highlight': 7.18.6 dev: true /@babel/code-frame/7.18.6: @@ -1411,29 +1411,6 @@ packages: resolution: {integrity: sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ==} engines: {node: '>=6.9.0'} - /@babel/core/7.18.10: - resolution: {integrity: sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw==} - engines: {node: '>=6.9.0'} - dependencies: - '@ampproject/remapping': 2.2.0 - '@babel/code-frame': 7.18.6 - '@babel/generator': 7.18.12 - '@babel/helper-compilation-targets': 7.18.9_@babel+core@7.18.10 - '@babel/helper-module-transforms': 7.18.9 - '@babel/helpers': 7.18.9 - '@babel/parser': 7.18.11 - '@babel/template': 7.18.10 - '@babel/traverse': 7.18.11 - '@babel/types': 7.18.13 - convert-source-map: 1.8.0 - debug: 4.3.4 - gensync: 1.0.0-beta.2 - json5: 2.2.1 - semver: 6.3.0 - transitivePeerDependencies: - - supports-color - dev: true - /@babel/core/7.18.13: resolution: {integrity: sha512-ZisbOvRRusFktksHSG6pjj1CSvkPkcZq/KHD45LAkVP/oiHJkNBZWfpvlLmX8OtHDG8IuzsFlVRWo08w7Qxn0A==} engines: {node: '>=6.9.0'} @@ -1479,15 +1456,6 @@ packages: - supports-color dev: true - /@babel/generator/7.18.12: - resolution: {integrity: sha512-dfQ8ebCN98SvyL7IxNMCUtZQSq5R7kxgN+r8qYTGDmmSion1hX2C0zq2yo1bsCDhXixokv1SAWTZUMYbO/V5zg==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.18.13 - '@jridgewell/gen-mapping': 0.3.2 - jsesc: 2.5.2 - dev: true - /@babel/generator/7.18.13: resolution: {integrity: sha512-CkPg8ySSPuHTYPJYo7IRALdqyjM9HCbt/3uOBEFbzyGVP6Mn8bwFPB0jX6982JVNBlYzM1nnPkfjuXSOPtQeEQ==} engines: {node: '>=6.9.0'} @@ -1509,7 +1477,7 @@ packages: resolution: {integrity: sha512-wt5Naw6lJrL1/SGkipMiFxJjtyczUWTP38deiP1PO60HsBjDeKk08CGC3S8iVuvf0FmTdgKwU1KIXzSKL1G0Ug==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.10 + '@babel/types': 7.18.13 '@jridgewell/gen-mapping': 0.3.2 jsesc: 2.5.2 dev: false @@ -1534,19 +1502,6 @@ packages: semver: 6.3.0 dev: true - /@babel/helper-compilation-targets/7.18.9_@babel+core@7.18.10: - resolution: {integrity: sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 - dependencies: - '@babel/compat-data': 7.18.8 - '@babel/core': 7.18.10 - '@babel/helper-validator-option': 7.18.6 - browserslist: 4.21.3 - semver: 6.3.0 - dev: true - /@babel/helper-compilation-targets/7.18.9_@babel+core@7.18.13: resolution: {integrity: sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg==} engines: {node: '>=6.9.0'} @@ -1648,7 +1603,7 @@ packages: '@babel/helper-module-imports': 7.16.7 '@babel/helper-simple-access': 7.17.7 '@babel/helper-split-export-declaration': 7.16.7 - '@babel/helper-validator-identifier': 7.16.7 + '@babel/helper-validator-identifier': 7.18.6 '@babel/template': 7.16.7 '@babel/traverse': 7.18.5 '@babel/types': 7.18.13 @@ -1738,6 +1693,7 @@ packages: /@babel/helper-validator-identifier/7.16.7: resolution: {integrity: sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==} engines: {node: '>=6.9.0'} + dev: true /@babel/helper-validator-identifier/7.18.6: resolution: {integrity: sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==} @@ -1773,15 +1729,6 @@ packages: transitivePeerDependencies: - supports-color - /@babel/highlight/7.17.9: - resolution: {integrity: sha512-J9PfEKCbFIv2X5bjTMiZu6Vf341N05QIY+d6FvVKynkG1S7G0j3I0QoRtWIrXhZ+/Nlb5Q0MzqL7TokEJ5BNHg==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.16.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - dev: true - /@babel/highlight/7.18.6: resolution: {integrity: sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==} engines: {node: '>=6.9.0'} @@ -1795,7 +1742,7 @@ packages: engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.18.10 + '@babel/types': 7.18.13 /@babel/parser/7.18.13: resolution: {integrity: sha512-dgXcIfMuQ0kgzLB2b9tRZs7TTFFaGM2AbtA4fJgUUYukzGH4jwsS7hzQHEGs67jdehpm22vkgKwvbU+aEflgwg==} @@ -1810,13 +1757,14 @@ packages: hasBin: true dependencies: '@babel/types': 7.18.4 + dev: true /@babel/parser/7.18.9: resolution: {integrity: sha512-9uJveS9eY9DJ0t64YbIBZICtJy8a5QrDEVdiLCG97fVLpDTpGX7t8mMSb6OWw6Lrnjqj4O8zwjELX3dhoMgiBg==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.18.10 + '@babel/types': 7.18.13 dev: false /@babel/plugin-proposal-pipeline-operator/7.18.9: @@ -1943,28 +1891,15 @@ packages: - supports-color dev: false - /@babel/runtime/7.18.3: - resolution: {integrity: sha512-38Y8f7YUhce/K7RMwTp7m0uCumpv9hZkitCbBClqQIow1qSbCvGkcegKOXpEWCQLfWmevgRiWokZ1GkpfhbZug==} - engines: {node: '>=6.9.0'} - dependencies: - regenerator-runtime: 0.13.9 - dev: false - /@babel/runtime/7.18.9: resolution: {integrity: sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.13.9 - /@babel/standalone/7.18.12: - resolution: {integrity: sha512-wDh3K5IUJiSMAY0MLYBFoCaj2RCZwvDz5BHn2uHat9KOsGWEVDFgFQFIOO+81Js2phFKNppLC45iOCsZVfJniw==} - engines: {node: '>=6.9.0'} - dev: true - /@babel/standalone/7.18.13: resolution: {integrity: sha512-5hjvvFkaXyfQri+s4CAZtx6FTKclfTNd2QN2RwgzCVJhnYYgKh4YFBCnNJSxurzvpSKD2NmpCkoWAkMc+j9y+g==} engines: {node: '>=6.9.0'} - dev: false /@babel/template/7.16.7: resolution: {integrity: sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==} @@ -2000,24 +1935,6 @@ packages: - supports-color dev: false - /@babel/traverse/7.18.11: - resolution: {integrity: sha512-TG9PiM2R/cWCAy6BPJKeHzNbu4lPzOSZpeMfeNErskGpTJx6trEvFaVCbDvpcxwy49BKWmEPwiW8mrysNiDvIQ==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/code-frame': 7.18.6 - '@babel/generator': 7.18.12 - '@babel/helper-environment-visitor': 7.18.9 - '@babel/helper-function-name': 7.18.9 - '@babel/helper-hoist-variables': 7.18.6 - '@babel/helper-split-export-declaration': 7.18.6 - '@babel/parser': 7.18.11 - '@babel/types': 7.18.13 - debug: 4.3.4 - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - dev: true - /@babel/traverse/7.18.13: resolution: {integrity: sha512-N6kt9X1jRMLPxxxPYWi7tgvJRH/rtoU+dbKAPDM44RFHiMH8igdsaSBgFeskhSl/kLWLDUvIh1RXCrTmg0/zvA==} engines: {node: '>=6.9.0'} @@ -2045,7 +1962,7 @@ packages: '@babel/helper-function-name': 7.17.9 '@babel/helper-hoist-variables': 7.16.7 '@babel/helper-split-export-declaration': 7.16.7 - '@babel/parser': 7.18.5 + '@babel/parser': 7.18.13 '@babel/types': 7.18.13 debug: 4.3.4 globals: 11.12.0 @@ -2077,6 +1994,7 @@ packages: dependencies: '@babel/helper-validator-identifier': 7.18.6 to-fast-properties: 2.0.0 + dev: false /@babel/types/7.18.10: resolution: {integrity: sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==} @@ -2100,6 +2018,7 @@ packages: dependencies: '@babel/helper-validator-identifier': 7.16.7 to-fast-properties: 2.0.0 + dev: true /@cloudflare/workers-types/2.2.2: resolution: {integrity: sha512-kaMn2rueJ0PL1TYVGknTCh0X0x0d9G+FNXAFep7/4uqecEZoQb/63o6rOmMuiqI09zLuHV6xhKRXinokV/MY9A==} @@ -2183,8 +2102,8 @@ packages: /@emotion/memoize/0.8.0: resolution: {integrity: sha512-G/YwXTkv7Den9mXDO7AhLWkE3q+I92B+VqAE+dYG4NGPaHZGvt3G8Q0p9vmE+sq7rTGphUbAvmQ9YpbfMQGGlA==} - /@emotion/react/11.10.0_react@18.2.0: - resolution: {integrity: sha512-K6z9zlHxxBXwN8TcpwBKcEsBsOw4JWCCmR+BeeOWgqp8GIU1yA2Odd41bwdAAr0ssbQrbJbVnndvv7oiv1bZeQ==} + /@emotion/react/11.10.4_react@18.2.0: + resolution: {integrity: sha512-j0AkMpr6BL8gldJZ6XQsQ8DnS9TxEQu1R+OGmDZiWjBAJtCcbt0tS3I/YffoqHXxH6MjgI7KdMbYKw3MEiU9eA==} peerDependencies: '@babel/core': ^7.0.0 '@types/react': '*' @@ -2199,6 +2118,7 @@ packages: '@emotion/babel-plugin': 11.10.2 '@emotion/cache': 11.10.0 '@emotion/serialize': 1.1.0 + '@emotion/use-insertion-effect-with-fallbacks': 1.0.0_react@18.2.0 '@emotion/utils': 1.2.0 '@emotion/weak-memoize': 0.3.0 hoist-non-react-statics: 3.3.2 @@ -2221,6 +2141,14 @@ packages: /@emotion/unitless/0.8.0: resolution: {integrity: sha512-VINS5vEYAscRl2ZUDiT3uMPlrFQupiKgHz5AA4bCH1miKBg4qtwkim1qPmJj/4WG6TreYMY111rEFsjupcOKHw==} + /@emotion/use-insertion-effect-with-fallbacks/1.0.0_react@18.2.0: + resolution: {integrity: sha512-1eEgUGmkaljiBnRMTdksDV1W4kUnmwgp7X9G8B++9GYwl1lUdqSndSriIrTJ0N7LQaoauY9JJ2yhiOYK5+NI4A==} + peerDependencies: + react: '>=16.8.0' + dependencies: + react: 18.2.0 + dev: false + /@emotion/utils/1.2.0: resolution: {integrity: sha512-sn3WH53Kzpw8oQ5mgMmIzzyAaH2ZqFEbozVVBSYp538E06OSE6ytOp7pRAjNQR+Q/orwqdQYJSe2m3hCOeznkw==} @@ -2249,22 +2177,12 @@ packages: get-tsconfig: 4.1.0 dev: true - /@esbuild/linux-loong64/0.15.5: - resolution: {integrity: sha512-UHkDFCfSGTuXq08oQltXxSZmH1TXyWsL+4QhZDWvvLl6mEJQqk3u7/wq1LjhrrAXYIllaTtRSzUXl4Olkf2J8A==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-loong64/0.15.6: resolution: {integrity: sha512-hqmVU2mUjH6J2ZivHphJ/Pdse2ZD+uGCHK0uvsiLDk/JnSedEVj77CiVUnbMKuU4tih1TZZL8tG9DExQg/GZsw==} engines: {node: '>=12'} cpu: [loong64] os: [linux] requiresBuild: true - dev: false optional: true /@eslint/eslintrc/1.3.1: @@ -2396,19 +2314,19 @@ packages: - supports-color dev: false - /@microsoft/api-extractor-model/7.23.3: - resolution: {integrity: sha512-HpsWzG6jrWHrTlIg53kmp/IVQPBHUZc+8dunnr9VXrmDjVBehaXxp9A6jhTQ/bd7W1m5TYfAvwCmseC1+9FCuA==} + /@microsoft/api-extractor-model/7.24.0: + resolution: {integrity: sha512-lFzF5h+quTyVB7eaKJkqrbQRDGSkrHzXyF8iMVvHdlaNrodGeyhtQeBFDuRVvBXTW2ILBiOV6ZWwUM1eGKcD+A==} dependencies: '@microsoft/tsdoc': 0.14.1 '@microsoft/tsdoc-config': 0.16.1 '@rushstack/node-core-library': 3.51.1 dev: true - /@microsoft/api-extractor/7.29.5: - resolution: {integrity: sha512-+vqO/TAGw9xXANpvTjA4y5ADcaRuYuBoJ9IfoAHubrGuxKG6GoW3P2tfdgwteLz95CnlftBxYp+3NG/mf05P9Q==} + /@microsoft/api-extractor/7.30.0: + resolution: {integrity: sha512-XmtvrW74SzGvv59cjNC6+TE13XbIm4qrKKZtveoFRNbKdyTR4eIqnLmPvh1fgfolSF+iKfXlHHsQJpcgwdNztA==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.23.3 + '@microsoft/api-extractor-model': 7.24.0 '@microsoft/tsdoc': 0.14.1 '@microsoft/tsdoc-config': 0.16.1 '@rushstack/node-core-library': 3.51.1 @@ -2504,6 +2422,16 @@ packages: slash: 3.0.0 dev: true + /@rollup/plugin-alias/3.1.9_rollup@2.79.0: + resolution: {integrity: sha512-QI5fsEvm9bDzt32k39wpOwZhVzRcL5ydcffUHMyLVaVaLeC70I8TJZ17F1z1eMoLu4E/UOcH9BWVkKpIKdrfiw==} + engines: {node: '>=8.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0 + dependencies: + rollup: 2.79.0 + slash: 3.0.0 + dev: true + /@rollup/plugin-commonjs/22.0.2_rollup@2.78.0: resolution: {integrity: sha512-//NdP6iIwPbMTcazYsiBMbJW7gfmpHom33u1beiIoHDEM0Q9clvtQB1T0efvMqHeKsGohiHo97BCPCkBXdscwg==} engines: {node: '>= 12.0.0'} @@ -2520,6 +2448,22 @@ packages: rollup: 2.78.0 dev: true + /@rollup/plugin-commonjs/22.0.2_rollup@2.79.0: + resolution: {integrity: sha512-//NdP6iIwPbMTcazYsiBMbJW7gfmpHom33u1beiIoHDEM0Q9clvtQB1T0efvMqHeKsGohiHo97BCPCkBXdscwg==} + engines: {node: '>= 12.0.0'} + peerDependencies: + rollup: ^2.68.0 + dependencies: + '@rollup/pluginutils': 3.1.0_rollup@2.79.0 + commondir: 1.0.1 + estree-walker: 2.0.2 + glob: 7.2.0 + is-reference: 1.2.1 + magic-string: 0.25.9 + resolve: 1.22.1 + rollup: 2.79.0 + dev: true + /@rollup/plugin-dynamic-import-vars/1.4.4_rollup@2.78.0: resolution: {integrity: sha512-51BcU6ag9EeF09CtEsa5D/IHYo7KI42TR1Jc4doNzV1nHAiH7TvUi5vsLERFMjs9Gzy9K0otbZH/2wb0hpBhRA==} engines: {node: '>= 10.0.0'} @@ -2542,6 +2486,15 @@ packages: rollup: 2.78.0 dev: true + /@rollup/plugin-json/4.1.0_rollup@2.79.0: + resolution: {integrity: sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==} + peerDependencies: + rollup: ^1.20.0 || ^2.0.0 + dependencies: + '@rollup/pluginutils': 3.1.0_rollup@2.79.0 + rollup: 2.79.0 + dev: true + /@rollup/plugin-node-resolve/13.3.0_rollup@2.78.0: resolution: {integrity: sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==} engines: {node: '>= 10.0.0'} @@ -2557,14 +2510,29 @@ packages: rollup: 2.78.0 dev: true - /@rollup/plugin-replace/4.0.0_rollup@2.78.0: + /@rollup/plugin-node-resolve/13.3.0_rollup@2.79.0: + resolution: {integrity: sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==} + engines: {node: '>= 10.0.0'} + peerDependencies: + rollup: ^2.42.0 + dependencies: + '@rollup/pluginutils': 3.1.0_rollup@2.79.0 + '@types/resolve': 1.17.1 + deepmerge: 4.2.2 + is-builtin-module: 3.1.0 + is-module: 1.0.0 + resolve: 1.22.1 + rollup: 2.79.0 + dev: true + + /@rollup/plugin-replace/4.0.0_rollup@2.79.0: resolution: {integrity: sha512-+rumQFiaNac9y64OHtkHGmdjm7us9bo1PlbgQfdihQtuNxzjpaB064HbRnewUOggLQxVCCyINfStkgmBeQpv1g==} peerDependencies: rollup: ^1.20.0 || ^2.0.0 dependencies: - '@rollup/pluginutils': 3.1.0_rollup@2.78.0 + '@rollup/pluginutils': 3.1.0_rollup@2.79.0 magic-string: 0.25.9 - rollup: 2.78.0 + rollup: 2.79.0 dev: true /@rollup/plugin-typescript/8.4.0_7emp2e44zzc74lnyjhc37gdv4y: @@ -2614,6 +2582,18 @@ packages: rollup: 2.78.0 dev: true + /@rollup/pluginutils/3.1.0_rollup@2.79.0: + resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==} + engines: {node: '>= 8.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0 + dependencies: + '@types/estree': 0.0.39 + estree-walker: 1.0.1 + picomatch: 2.3.1 + rollup: 2.79.0 + dev: true + /@rollup/pluginutils/4.2.1: resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} engines: {node: '>= 8.0.0'} @@ -2853,8 +2833,8 @@ packages: '@types/node': 17.0.42 dev: true - /@typescript-eslint/eslint-plugin/5.35.1_hy4by47wjjtoupqk2r7jy5xf2e: - resolution: {integrity: sha512-RBZZXZlI4XCY4Wzgy64vB+0slT9+yAPQRjj/HSaRwUot33xbDjF1oN9BLwOLTewoOI0jothIltZRe9uJCHf8gg==} + /@typescript-eslint/eslint-plugin/5.36.1_g2qdd2k5igsxhudjjarcmw5o7e: + resolution: {integrity: sha512-iC40UK8q1tMepSDwiLbTbMXKDxzNy+4TfPWgIL661Ym0sD42vRcQU93IsZIrmi+x292DBr60UI/gSwfdVYexCA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: '@typescript-eslint/parser': ^5.0.0 @@ -2864,10 +2844,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.35.1_pyvvhc3zqdua4akflcggygkl44 - '@typescript-eslint/scope-manager': 5.35.1 - '@typescript-eslint/type-utils': 5.35.1_pyvvhc3zqdua4akflcggygkl44 - '@typescript-eslint/utils': 5.35.1_pyvvhc3zqdua4akflcggygkl44 + '@typescript-eslint/parser': 5.36.1_pyvvhc3zqdua4akflcggygkl44 + '@typescript-eslint/scope-manager': 5.36.1 + '@typescript-eslint/type-utils': 5.36.1_pyvvhc3zqdua4akflcggygkl44 + '@typescript-eslint/utils': 5.36.1_pyvvhc3zqdua4akflcggygkl44 debug: 4.3.4 eslint: 8.23.0 functional-red-black-tree: 1.0.1 @@ -2880,8 +2860,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser/5.35.1_pyvvhc3zqdua4akflcggygkl44: - resolution: {integrity: sha512-XL2TBTSrh3yWAsMYpKseBYTVpvudNf69rPOWXWVBI08My2JVT5jR66eTt4IgQFHA/giiKJW5dUD4x/ZviCKyGg==} + /@typescript-eslint/parser/5.36.1_pyvvhc3zqdua4akflcggygkl44: + resolution: {integrity: sha512-/IsgNGOkBi7CuDfUbwt1eOqUXF9WGVBW9dwEe1pi+L32XrTsZIgmDFIi2RxjzsvB/8i+MIf5JIoTEH8LOZ368A==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -2890,9 +2870,9 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 5.35.1 - '@typescript-eslint/types': 5.35.1 - '@typescript-eslint/typescript-estree': 5.35.1_typescript@4.6.4 + '@typescript-eslint/scope-manager': 5.36.1 + '@typescript-eslint/types': 5.36.1 + '@typescript-eslint/typescript-estree': 5.36.1_typescript@4.6.4 debug: 4.3.4 eslint: 8.23.0 typescript: 4.6.4 @@ -2900,16 +2880,16 @@ packages: - supports-color dev: true - /@typescript-eslint/scope-manager/5.35.1: - resolution: {integrity: sha512-kCYRSAzIW9ByEIzmzGHE50NGAvAP3wFTaZevgWva7GpquDyFPFcmvVkFJGWJJktg/hLwmys/FZwqM9EKr2u24Q==} + /@typescript-eslint/scope-manager/5.36.1: + resolution: {integrity: sha512-pGC2SH3/tXdu9IH3ItoqciD3f3RRGCh7hb9zPdN2Drsr341zgd6VbhP5OHQO/reUqihNltfPpMpTNihFMarP2w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.35.1 - '@typescript-eslint/visitor-keys': 5.35.1 + '@typescript-eslint/types': 5.36.1 + '@typescript-eslint/visitor-keys': 5.36.1 dev: true - /@typescript-eslint/type-utils/5.35.1_pyvvhc3zqdua4akflcggygkl44: - resolution: {integrity: sha512-8xT8ljvo43Mp7BiTn1vxLXkjpw8wS4oAc00hMSB4L1/jIiYbjjnc3Qp2GAUOG/v8zsNCd1qwcqfCQ0BuishHkw==} + /@typescript-eslint/type-utils/5.36.1_pyvvhc3zqdua4akflcggygkl44: + resolution: {integrity: sha512-xfZhfmoQT6m3lmlqDvDzv9TiCYdw22cdj06xY0obSznBsT///GK5IEZQdGliXpAOaRL34o8phEvXzEo/VJx13Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -2918,7 +2898,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/utils': 5.35.1_pyvvhc3zqdua4akflcggygkl44 + '@typescript-eslint/typescript-estree': 5.36.1_typescript@4.6.4 + '@typescript-eslint/utils': 5.36.1_pyvvhc3zqdua4akflcggygkl44 debug: 4.3.4 eslint: 8.23.0 tsutils: 3.21.0_typescript@4.6.4 @@ -2927,13 +2908,13 @@ packages: - supports-color dev: true - /@typescript-eslint/types/5.35.1: - resolution: {integrity: sha512-FDaujtsH07VHzG0gQ6NDkVVhi1+rhq0qEvzHdJAQjysN+LHDCKDKCBRlZFFE0ec0jKxiv0hN63SNfExy0KrbQQ==} + /@typescript-eslint/types/5.36.1: + resolution: {integrity: sha512-jd93ShpsIk1KgBTx9E+hCSEuLCUFwi9V/urhjOWnOaksGZFbTOxAT47OH2d4NLJnLhkVD+wDbB48BuaycZPLBg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/typescript-estree/5.35.1_typescript@4.6.4: - resolution: {integrity: sha512-JUqE1+VRTGyoXlDWWjm6MdfpBYVq+hixytrv1oyjYIBEOZhBCwtpp5ZSvBt4wIA1MKWlnaC2UXl2XmYGC3BoQA==} + /@typescript-eslint/typescript-estree/5.36.1_typescript@4.6.4: + resolution: {integrity: sha512-ih7V52zvHdiX6WcPjsOdmADhYMDN15SylWRZrT2OMy80wzKbc79n8wFW0xpWpU0x3VpBz/oDgTm2xwDAnFTl+g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: typescript: '*' @@ -2941,8 +2922,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.35.1 - '@typescript-eslint/visitor-keys': 5.35.1 + '@typescript-eslint/types': 5.36.1 + '@typescript-eslint/visitor-keys': 5.36.1 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 @@ -2953,16 +2934,16 @@ packages: - supports-color dev: true - /@typescript-eslint/utils/5.35.1_pyvvhc3zqdua4akflcggygkl44: - resolution: {integrity: sha512-v6F8JNXgeBWI4pzZn36hT2HXXzoBBBJuOYvoQiaQaEEjdi5STzux3Yj8v7ODIpx36i/5s8TdzuQ54TPc5AITQQ==} + /@typescript-eslint/utils/5.36.1_pyvvhc3zqdua4akflcggygkl44: + resolution: {integrity: sha512-lNj4FtTiXm5c+u0pUehozaUWhh7UYKnwryku0nxJlYUEWetyG92uw2pr+2Iy4M/u0ONMKzfrx7AsGBTCzORmIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: '@types/json-schema': 7.0.11 - '@typescript-eslint/scope-manager': 5.35.1 - '@typescript-eslint/types': 5.35.1 - '@typescript-eslint/typescript-estree': 5.35.1_typescript@4.6.4 + '@typescript-eslint/scope-manager': 5.36.1 + '@typescript-eslint/types': 5.36.1 + '@typescript-eslint/typescript-estree': 5.36.1_typescript@4.6.4 eslint: 8.23.0 eslint-scope: 5.1.1 eslint-utils: 3.0.0_eslint@8.23.0 @@ -2971,11 +2952,11 @@ packages: - typescript dev: true - /@typescript-eslint/visitor-keys/5.35.1: - resolution: {integrity: sha512-cEB1DvBVo1bxbW/S5axbGPE6b7FIMAbo3w+AGq6zNDA7+NYJOIkKj/sInfTv4edxd4PxJSgdN4t6/pbvgA+n5g==} + /@typescript-eslint/visitor-keys/5.36.1: + resolution: {integrity: sha512-ojB9aRyRFzVMN3b5joSYni6FAS10BBSCAfKJhjJAV08t/a95aM6tAhz+O1jF+EtgxktuSO3wJysp2R+Def/IWQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.35.1 + '@typescript-eslint/types': 5.36.1 eslint-visitor-keys: 3.3.0 dev: true @@ -3000,39 +2981,39 @@ packages: - supports-color dev: false - /@vue/compiler-core/3.2.37: - resolution: {integrity: sha512-81KhEjo7YAOh0vQJoSmAD68wLfYqJvoiD4ulyedzF+OEk/bk6/hx3fTNVfuzugIIaTrOx4PGx6pAiBRe5e9Zmg==} + /@vue/compiler-core/3.2.38: + resolution: {integrity: sha512-/FsvnSu7Z+lkd/8KXMa4yYNUiqQrI22135gfsQYVGuh5tqEgOB0XqrUdb/KnCLa5+TmQLPwvyUnKMyCpu+SX3Q==} dependencies: - '@babel/parser': 7.18.5 - '@vue/shared': 3.2.37 + '@babel/parser': 7.18.13 + '@vue/shared': 3.2.38 estree-walker: 2.0.2 source-map: 0.6.1 - /@vue/compiler-dom/3.2.37: - resolution: {integrity: sha512-yxJLH167fucHKxaqXpYk7x8z7mMEnXOw3G2q62FTkmsvNxu4FQSu5+3UMb+L7fjKa26DEzhrmCxAgFLLIzVfqQ==} + /@vue/compiler-dom/3.2.38: + resolution: {integrity: sha512-zqX4FgUbw56kzHlgYuEEJR8mefFiiyR3u96498+zWPsLeh1WKvgIReoNE+U7gG8bCUdvsrJ0JRmev0Ky6n2O0g==} dependencies: - '@vue/compiler-core': 3.2.37 - '@vue/shared': 3.2.37 + '@vue/compiler-core': 3.2.38 + '@vue/shared': 3.2.38 - /@vue/compiler-sfc/3.2.37: - resolution: {integrity: sha512-+7i/2+9LYlpqDv+KTtWhOZH+pa8/HnX/905MdVmAcI/mPQOBwkHHIzrsEsucyOIZQYMkXUiTkmZq5am/NyXKkg==} + /@vue/compiler-sfc/3.2.38: + resolution: {integrity: sha512-KZjrW32KloMYtTcHAFuw3CqsyWc5X6seb8KbkANSWt3Cz9p2qA8c1GJpSkksFP9ABb6an0FLCFl46ZFXx3kKpg==} dependencies: - '@babel/parser': 7.18.5 - '@vue/compiler-core': 3.2.37 - '@vue/compiler-dom': 3.2.37 - '@vue/compiler-ssr': 3.2.37 - '@vue/reactivity-transform': 3.2.37 - '@vue/shared': 3.2.37 + '@babel/parser': 7.18.13 + '@vue/compiler-core': 3.2.38 + '@vue/compiler-dom': 3.2.38 + '@vue/compiler-ssr': 3.2.38 + '@vue/reactivity-transform': 3.2.38 + '@vue/shared': 3.2.38 estree-walker: 2.0.2 magic-string: 0.25.9 - postcss: 8.4.14 + postcss: 8.4.16 source-map: 0.6.1 - /@vue/compiler-ssr/3.2.37: - resolution: {integrity: sha512-7mQJD7HdXxQjktmsWp/J67lThEIcxLemz1Vb5I6rYJHR5vI+lON3nPGOH3ubmbvYGt8xEUaAr1j7/tIFWiEOqw==} + /@vue/compiler-ssr/3.2.38: + resolution: {integrity: sha512-bm9jOeyv1H3UskNm4S6IfueKjUNFmi2kRweFIGnqaGkkRePjwEcfCVqyS3roe7HvF4ugsEkhf4+kIvDhip6XzQ==} dependencies: - '@vue/compiler-dom': 3.2.37 - '@vue/shared': 3.2.37 + '@vue/compiler-dom': 3.2.38 + '@vue/shared': 3.2.38 /@vue/devtools-api/6.1.4: resolution: {integrity: sha512-IiA0SvDrJEgXvVxjNkHPFfDx6SXw0b/TUkqMcDZWNg9fnCAHbTpoo59YfJ9QLFkwa3raau5vSlRVzMSLDnfdtQ==} @@ -3041,52 +3022,52 @@ packages: /@vue/devtools-api/6.2.1: resolution: {integrity: sha512-OEgAMeQXvCoJ+1x8WyQuVZzFo0wcyCmUR3baRVLmKBo1LmYZWMlRiXlux5jd0fqVJu6PfDbOrZItVqUEzLobeQ==} - /@vue/reactivity-transform/3.2.37: - resolution: {integrity: sha512-IWopkKEb+8qpu/1eMKVeXrK0NLw9HicGviJzhJDEyfxTR9e1WtpnnbYkJWurX6WwoFP0sz10xQg8yL8lgskAZg==} + /@vue/reactivity-transform/3.2.38: + resolution: {integrity: sha512-3SD3Jmi1yXrDwiNJqQ6fs1x61WsDLqVk4NyKVz78mkaIRh6d3IqtRnptgRfXn+Fzf+m6B1KxBYWq1APj6h4qeA==} dependencies: - '@babel/parser': 7.18.5 - '@vue/compiler-core': 3.2.37 - '@vue/shared': 3.2.37 + '@babel/parser': 7.18.13 + '@vue/compiler-core': 3.2.38 + '@vue/shared': 3.2.38 estree-walker: 2.0.2 magic-string: 0.25.9 - /@vue/reactivity/3.2.37: - resolution: {integrity: sha512-/7WRafBOshOc6m3F7plwzPeCu/RCVv9uMpOwa/5PiY1Zz+WLVRWiy0MYKwmg19KBdGtFWsmZ4cD+LOdVPcs52A==} + /@vue/reactivity/3.2.38: + resolution: {integrity: sha512-6L4myYcH9HG2M25co7/BSo0skKFHpAN8PhkNPM4xRVkyGl1K5M3Jx4rp5bsYhvYze2K4+l+pioN4e6ZwFLUVtw==} dependencies: - '@vue/shared': 3.2.37 + '@vue/shared': 3.2.38 - /@vue/runtime-core/3.2.37: - resolution: {integrity: sha512-JPcd9kFyEdXLl/i0ClS7lwgcs0QpUAWj+SKX2ZC3ANKi1U4DOtiEr6cRqFXsPwY5u1L9fAjkinIdB8Rz3FoYNQ==} + /@vue/runtime-core/3.2.38: + resolution: {integrity: sha512-kk0qiSiXUU/IKxZw31824rxmFzrLr3TL6ZcbrxWTKivadoKupdlzbQM4SlGo4MU6Zzrqv4fzyUasTU1jDoEnzg==} dependencies: - '@vue/reactivity': 3.2.37 - '@vue/shared': 3.2.37 + '@vue/reactivity': 3.2.38 + '@vue/shared': 3.2.38 - /@vue/runtime-dom/3.2.37: - resolution: {integrity: sha512-HimKdh9BepShW6YozwRKAYjYQWg9mQn63RGEiSswMbW+ssIht1MILYlVGkAGGQbkhSh31PCdoUcfiu4apXJoPw==} + /@vue/runtime-dom/3.2.38: + resolution: {integrity: sha512-4PKAb/ck2TjxdMSzMsnHViOrrwpudk4/A56uZjhzvusoEU9xqa5dygksbzYepdZeB5NqtRw5fRhWIiQlRVK45A==} dependencies: - '@vue/runtime-core': 3.2.37 - '@vue/shared': 3.2.37 + '@vue/runtime-core': 3.2.38 + '@vue/shared': 3.2.38 csstype: 2.6.20 - /@vue/server-renderer/3.2.37_vue@3.2.37: - resolution: {integrity: sha512-kLITEJvaYgZQ2h47hIzPh2K3jG8c1zCVbp/o/bzQOyvzaKiCquKS7AaioPI28GNxIsE/zSx+EwWYsNxDCX95MA==} + /@vue/server-renderer/3.2.38_vue@3.2.38: + resolution: {integrity: sha512-pg+JanpbOZ5kEfOZzO2bt02YHd+ELhYP8zPeLU1H0e7lg079NtuuSB8fjLdn58c4Ou8UQ6C1/P+528nXnLPAhA==} peerDependencies: - vue: 3.2.37 + vue: 3.2.38 dependencies: - '@vue/compiler-ssr': 3.2.37 - '@vue/shared': 3.2.37 - vue: 3.2.37 + '@vue/compiler-ssr': 3.2.38 + '@vue/shared': 3.2.38 + vue: 3.2.38 - /@vue/shared/3.2.37: - resolution: {integrity: sha512-4rSJemR2NQIo9Klm1vabqWjD8rs/ZaJSzMxkMNeJS6lHiUjjUeYFbooN19NgFjztubEKh3WlZUeOLVdbbUWHsw==} + /@vue/shared/3.2.38: + resolution: {integrity: sha512-dTyhTIRmGXBjxJE+skC8tTWCGLCVc4wQgRRLt8+O9p5ewBAjoBwtCAkLPrtToSr1xltoe3st21Pv953aOZ7alg==} - /@vueuse/core/9.1.0_vue@3.2.37: + /@vueuse/core/9.1.0_vue@3.2.38: resolution: {integrity: sha512-BIroqvXEqt826aE9r3K5cox1zobuPuAzdYJ36kouC2TVhlXvFKIILgFVWrpp9HZPwB3aLzasmG3K87q7TSyXZg==} dependencies: '@types/web-bluetooth': 0.0.15 '@vueuse/metadata': 9.1.0 - '@vueuse/shared': 9.1.0_vue@3.2.37 - vue-demi: 0.13.1_vue@3.2.37 + '@vueuse/shared': 9.1.0_vue@3.2.38 + vue-demi: 0.13.1_vue@3.2.38 transitivePeerDependencies: - '@vue/composition-api' - vue @@ -3096,10 +3077,10 @@ packages: resolution: {integrity: sha512-8OEhlog1iaAGTD3LICZ8oBGQdYeMwByvXetOtAOZCJOzyCRSwqwdggTsmVZZ1rkgYIEqgUBk942AsAPwM21s6A==} dev: true - /@vueuse/shared/9.1.0_vue@3.2.37: + /@vueuse/shared/9.1.0_vue@3.2.38: resolution: {integrity: sha512-pB/3njQu4tfJJ78ajELNda0yMG6lKfpToQW7Soe09CprF1k3QuyoNi1tBNvo75wBDJWD+LOnr+c4B5HZ39jY/Q==} dependencies: - vue-demi: 0.13.1_vue@3.2.37 + vue-demi: 0.13.1_vue@3.2.38 transitivePeerDependencies: - '@vue/composition-api' - vue @@ -3395,7 +3376,7 @@ packages: resolution: {integrity: sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw==} engines: {node: '>= 10.0.0'} dependencies: - '@babel/types': 7.17.10 + '@babel/types': 7.18.13 dev: true /balanced-match/1.0.2: @@ -3634,7 +3615,7 @@ packages: fast-glob: 3.2.11 helpertypes: 0.0.2 reserved-words: 0.1.2 - resolve: 1.22.0 + resolve: 1.22.1 typescript: 4.6.4 dev: true @@ -3819,8 +3800,8 @@ packages: /constantinople/4.0.1: resolution: {integrity: sha512-vCrqcSIq4//Gx74TXXCGnHpulY1dskqLTFGDmhrGxzeXL8lF8kvXv6mpNWlJj1uD4DW23D4ljAqbY4RRaaUZIw==} dependencies: - '@babel/parser': 7.18.5 - '@babel/types': 7.17.10 + '@babel/parser': 7.18.13 + '@babel/types': 7.18.13 dev: true /content-disposition/0.5.4: @@ -4333,8 +4314,8 @@ packages: engines: {node: '>= 0.8'} dev: true - /entities/4.3.1: - resolution: {integrity: sha512-o4q/dYJlmyjP2zfnaWDUC6A3BQFmVTX+tZPezK7k0GLSU9QYCauscf5Y+qcEPzKL+EixVouYDgLQK5H9GrLpkg==} + /entities/4.4.0: + resolution: {integrity: sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==} engines: {node: '>=0.12'} dev: true @@ -4452,22 +4433,12 @@ packages: dev: true optional: true - /esbuild-android-64/0.15.5: - resolution: {integrity: sha512-dYPPkiGNskvZqmIK29OPxolyY3tp+c47+Fsc2WYSOVjEPWNCHNyqhtFqQadcXMJDQt8eN0NMDukbyQgFcHquXg==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - dev: true - optional: true - /esbuild-android-64/0.15.6: resolution: {integrity: sha512-Z1CHSgB1crVQi2LKSBwSkpaGtaloVz0ZIYcRMsvHc3uSXcR/x5/bv9wcZspvH/25lIGTaViosciS/NS09ERmVA==} engines: {node: '>=12'} cpu: [x64] os: [android] requiresBuild: true - dev: false optional: true /esbuild-android-arm64/0.14.47: @@ -4488,22 +4459,12 @@ packages: dev: true optional: true - /esbuild-android-arm64/0.15.5: - resolution: {integrity: sha512-YyEkaQl08ze3cBzI/4Cm1S+rVh8HMOpCdq8B78JLbNFHhzi4NixVN93xDrHZLztlocEYqi45rHHCgA8kZFidFg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - /esbuild-android-arm64/0.15.6: resolution: {integrity: sha512-mvM+gqNxqKm2pCa3dnjdRzl7gIowuc4ga7P7c3yHzs58Im8v/Lfk1ixSgQ2USgIywT48QWaACRa3F4MG7djpSw==} engines: {node: '>=12'} cpu: [arm64] os: [android] requiresBuild: true - dev: false optional: true /esbuild-darwin-64/0.14.47: @@ -4524,22 +4485,12 @@ packages: dev: true optional: true - /esbuild-darwin-64/0.15.5: - resolution: {integrity: sha512-Cr0iIqnWKx3ZTvDUAzG0H/u9dWjLE4c2gTtRLz4pqOBGjfjqdcZSfAObFzKTInLLSmD0ZV1I/mshhPoYSBMMCQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /esbuild-darwin-64/0.15.6: resolution: {integrity: sha512-BsfVt3usScAfGlXJiGtGamwVEOTM8AiYiw1zqDWhGv6BncLXCnTg1As+90mxWewdTZKq3iIy8s9g8CKkrrAXVw==} engines: {node: '>=12'} cpu: [x64] os: [darwin] requiresBuild: true - dev: false optional: true /esbuild-darwin-arm64/0.14.47: @@ -4560,22 +4511,12 @@ packages: dev: true optional: true - /esbuild-darwin-arm64/0.15.5: - resolution: {integrity: sha512-WIfQkocGtFrz7vCu44ypY5YmiFXpsxvz2xqwe688jFfSVCnUsCn2qkEVDo7gT8EpsLOz1J/OmqjExePL1dr1Kg==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /esbuild-darwin-arm64/0.15.6: resolution: {integrity: sha512-CnrAeJaEpPakUobhqO4wVSA4Zm6TPaI5UY4EsI62j9mTrjIyQPXA1n4Ju6Iu5TVZRnEqV6q8blodgYJ6CJuwCA==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] requiresBuild: true - dev: false optional: true /esbuild-freebsd-64/0.14.47: @@ -4596,22 +4537,12 @@ packages: dev: true optional: true - /esbuild-freebsd-64/0.15.5: - resolution: {integrity: sha512-M5/EfzV2RsMd/wqwR18CELcenZ8+fFxQAAEO7TJKDmP3knhWSbD72ILzrXFMMwshlPAS1ShCZ90jsxkm+8FlaA==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - /esbuild-freebsd-64/0.15.6: resolution: {integrity: sha512-+qFdmqi+jkAsxsNJkaWVrnxEUUI50nu6c3MBVarv3RCDCbz7ZS1a4ZrdkwEYFnKcVWu6UUE0Kkb1SQ1yGEG6sg==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] requiresBuild: true - dev: false optional: true /esbuild-freebsd-arm64/0.14.47: @@ -4632,22 +4563,12 @@ packages: dev: true optional: true - /esbuild-freebsd-arm64/0.15.5: - resolution: {integrity: sha512-2JQQ5Qs9J0440F/n/aUBNvY6lTo4XP/4lt1TwDfHuo0DY3w5++anw+jTjfouLzbJmFFiwmX7SmUhMnysocx96w==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - /esbuild-freebsd-arm64/0.15.6: resolution: {integrity: sha512-KtQkQOhnNciXm2yrTYZMD3MOm2zBiiwFSU+dkwNbcfDumzzUprr1x70ClTdGuZwieBS1BM/k0KajRQX7r504Xw==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] requiresBuild: true - dev: false optional: true /esbuild-linux-32/0.14.47: @@ -4668,22 +4589,12 @@ packages: dev: true optional: true - /esbuild-linux-32/0.15.5: - resolution: {integrity: sha512-gO9vNnIN0FTUGjvTFucIXtBSr1Woymmx/aHQtuU+2OllGU6YFLs99960UD4Dib1kFovVgs59MTXwpFdVoSMZoQ==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-32/0.15.6: resolution: {integrity: sha512-IAkDNz3TpxwISTGVdQijwyHBZrbFgLlRi5YXcvaEHtgbmayLSDcJmH5nV1MFgo/x2QdKcHBkOYHdjhKxUAcPwg==} engines: {node: '>=12'} cpu: [ia32] os: [linux] requiresBuild: true - dev: false optional: true /esbuild-linux-64/0.14.47: @@ -4704,22 +4615,12 @@ packages: dev: true optional: true - /esbuild-linux-64/0.15.5: - resolution: {integrity: sha512-ne0GFdNLsm4veXbTnYAWjbx3shpNKZJUd6XpNbKNUZaNllDZfYQt0/zRqOg0sc7O8GQ+PjSMv9IpIEULXVTVmg==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-64/0.15.6: resolution: {integrity: sha512-gQPksyrEYfA4LJwyfTQWAZaVZCx4wpaLrSzo2+Xc9QLC+i/sMWmX31jBjrn4nLJCd79KvwCinto36QC7BEIU/A==} engines: {node: '>=12'} cpu: [x64] os: [linux] requiresBuild: true - dev: false optional: true /esbuild-linux-arm/0.14.47: @@ -4740,22 +4641,12 @@ packages: dev: true optional: true - /esbuild-linux-arm/0.15.5: - resolution: {integrity: sha512-wvAoHEN+gJ/22gnvhZnS/+2H14HyAxM07m59RSLn3iXrQsdS518jnEWRBnJz3fR6BJa+VUTo0NxYjGaNt7RA7Q==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-arm/0.15.6: resolution: {integrity: sha512-xZ0Bq2aivsthDjA/ytQZzxrxIZbG0ATJYMJxNeOIBc1zUjpbVpzBKgllOZMsTSXMHFHGrow6TnCcgwqY0+oEoQ==} engines: {node: '>=12'} cpu: [arm] os: [linux] requiresBuild: true - dev: false optional: true /esbuild-linux-arm64/0.14.47: @@ -4776,22 +4667,12 @@ packages: dev: true optional: true - /esbuild-linux-arm64/0.15.5: - resolution: {integrity: sha512-7EgFyP2zjO065XTfdCxiXVEk+f83RQ1JsryN1X/VSX2li9rnHAt2swRbpoz5Vlrl6qjHrCmq5b6yxD13z6RheA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-arm64/0.15.6: resolution: {integrity: sha512-aovDkclFa6C9EdZVBuOXxqZx83fuoq8097xZKhEPSygwuy4Lxs8J4anHG7kojAsR+31lfUuxzOo2tHxv7EiNHA==} engines: {node: '>=12'} cpu: [arm64] os: [linux] requiresBuild: true - dev: false optional: true /esbuild-linux-mips64le/0.14.47: @@ -4812,22 +4693,12 @@ packages: dev: true optional: true - /esbuild-linux-mips64le/0.15.5: - resolution: {integrity: sha512-KdnSkHxWrJ6Y40ABu+ipTZeRhFtc8dowGyFsZY5prsmMSr1ZTG9zQawguN4/tunJ0wy3+kD54GaGwdcpwWAvZQ==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-mips64le/0.15.6: resolution: {integrity: sha512-wVpW8wkWOGizsCqCwOR/G3SHwhaecpGy3fic9BF1r7vq4djLjUcA8KunDaBCjJ6TgLQFhJ98RjDuyEf8AGjAvw==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] requiresBuild: true - dev: false optional: true /esbuild-linux-ppc64le/0.14.47: @@ -4848,22 +4719,12 @@ packages: dev: true optional: true - /esbuild-linux-ppc64le/0.15.5: - resolution: {integrity: sha512-QdRHGeZ2ykl5P0KRmfGBZIHmqcwIsUKWmmpZTOq573jRWwmpfRmS7xOhmDHBj9pxv+6qRMH8tLr2fe+ZKQvCYw==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-ppc64le/0.15.6: resolution: {integrity: sha512-z6w6gsPH/Y77uchocluDC8tkCg9rfkcPTePzZKNr879bF4tu7j9t255wuNOCE396IYEGxY7y8u2HJ9i7kjCLVw==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] requiresBuild: true - dev: false optional: true /esbuild-linux-riscv64/0.14.47: @@ -4884,22 +4745,12 @@ packages: dev: true optional: true - /esbuild-linux-riscv64/0.15.5: - resolution: {integrity: sha512-p+WE6RX+jNILsf+exR29DwgV6B73khEQV0qWUbzxaycxawZ8NE0wA6HnnTxbiw5f4Gx9sJDUBemh9v49lKOORA==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-riscv64/0.15.6: resolution: {integrity: sha512-pfK/3MJcmbfU399TnXW5RTPS1S+ID6ra+CVj9TFZ2s0q9Ja1F5A1VirUUvViPkjiw+Kq3zveyn6U09Wg1zJXrw==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] requiresBuild: true - dev: false optional: true /esbuild-linux-s390x/0.14.47: @@ -4920,22 +4771,12 @@ packages: dev: true optional: true - /esbuild-linux-s390x/0.15.5: - resolution: {integrity: sha512-J2ngOB4cNzmqLHh6TYMM/ips8aoZIuzxJnDdWutBw5482jGXiOzsPoEF4j2WJ2mGnm7FBCO4StGcwzOgic70JQ==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - /esbuild-linux-s390x/0.15.6: resolution: {integrity: sha512-OZeeDu32liefcwAE63FhVqM4heWTC8E3MglOC7SK0KYocDdY/6jyApw0UDkDHlcEK9mW6alX/SH9r3PDjcCo/Q==} engines: {node: '>=12'} cpu: [s390x] os: [linux] requiresBuild: true - dev: false optional: true /esbuild-netbsd-64/0.14.47: @@ -4956,22 +4797,12 @@ packages: dev: true optional: true - /esbuild-netbsd-64/0.15.5: - resolution: {integrity: sha512-MmKUYGDizYjFia0Rwt8oOgmiFH7zaYlsoQ3tIOfPxOqLssAsEgG0MUdRDm5lliqjiuoog8LyDu9srQk5YwWF3w==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - /esbuild-netbsd-64/0.15.6: resolution: {integrity: sha512-kaxw61wcHMyiEsSsi5ut1YYs/hvTC2QkxJwyRvC2Cnsz3lfMLEu8zAjpBKWh9aU/N0O/gsRap4wTur5GRuSvBA==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] requiresBuild: true - dev: false optional: true /esbuild-openbsd-64/0.14.47: @@ -4992,22 +4823,12 @@ packages: dev: true optional: true - /esbuild-openbsd-64/0.15.5: - resolution: {integrity: sha512-2mMFfkLk3oPWfopA9Plj4hyhqHNuGyp5KQyTT9Rc8hFd8wAn5ZrbJg+gNcLMo2yzf8Uiu0RT6G9B15YN9WQyMA==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - /esbuild-openbsd-64/0.15.6: resolution: {integrity: sha512-CuoY60alzYfIZapUHqFXqXbj88bbRJu8Fp9okCSHRX2zWIcGz4BXAHXiG7dlCye5nFVrY72psesLuWdusyf2qw==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] requiresBuild: true - dev: false optional: true /esbuild-sunos-64/0.14.47: @@ -5028,22 +4849,12 @@ packages: dev: true optional: true - /esbuild-sunos-64/0.15.5: - resolution: {integrity: sha512-2sIzhMUfLNoD+rdmV6AacilCHSxZIoGAU2oT7XmJ0lXcZWnCvCtObvO6D4puxX9YRE97GodciRGDLBaiC6x1SA==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - /esbuild-sunos-64/0.15.6: resolution: {integrity: sha512-1ceefLdPWcd1nW/ZLruPEYxeUEAVX0YHbG7w+BB4aYgfknaLGotI/ZvPWUZpzhC8l1EybrVlz++lm3E6ODIJOg==} engines: {node: '>=12'} cpu: [x64] os: [sunos] requiresBuild: true - dev: false optional: true /esbuild-windows-32/0.14.47: @@ -5064,22 +4875,12 @@ packages: dev: true optional: true - /esbuild-windows-32/0.15.5: - resolution: {integrity: sha512-e+duNED9UBop7Vnlap6XKedA/53lIi12xv2ebeNS4gFmu7aKyTrok7DPIZyU5w/ftHD4MUDs5PJUkQPP9xJRzg==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - /esbuild-windows-32/0.15.6: resolution: {integrity: sha512-pBqdOsKqCD5LRYiwF29PJRDJZi7/Wgkz46u3d17MRFmrLFcAZDke3nbdDa1c8YgY78RiemudfCeAemN8EBlIpA==} engines: {node: '>=12'} cpu: [ia32] os: [win32] requiresBuild: true - dev: false optional: true /esbuild-windows-64/0.14.47: @@ -5100,22 +4901,12 @@ packages: dev: true optional: true - /esbuild-windows-64/0.15.5: - resolution: {integrity: sha512-v+PjvNtSASHOjPDMIai9Yi+aP+Vwox+3WVdg2JB8N9aivJ7lyhp4NVU+J0MV2OkWFPnVO8AE/7xH+72ibUUEnw==} - engines: {node: '>=12'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /esbuild-windows-64/0.15.6: resolution: {integrity: sha512-KpPOh4aTOo//g9Pk2oVAzXMpc9Sz9n5A9sZTmWqDSXCiiachfFhbuFlsKBGATYCVitXfmBIJ4nNYYWSOdz4hQg==} engines: {node: '>=12'} cpu: [x64] os: [win32] requiresBuild: true - dev: false optional: true /esbuild-windows-arm64/0.14.47: @@ -5136,22 +4927,12 @@ packages: dev: true optional: true - /esbuild-windows-arm64/0.15.5: - resolution: {integrity: sha512-Yz8w/D8CUPYstvVQujByu6mlf48lKmXkq6bkeSZZxTA626efQOJb26aDGLzmFWx6eg/FwrXgt6SZs9V8Pwy/aA==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /esbuild-windows-arm64/0.15.6: resolution: {integrity: sha512-DB3G2x9OvFEa00jV+OkDBYpufq5x/K7a6VW6E2iM896DG4ZnAvJKQksOsCPiM1DUaa+DrijXAQ/ZOcKAqf/3Hg==} engines: {node: '>=12'} cpu: [arm64] os: [win32] requiresBuild: true - dev: false optional: true /esbuild/0.14.47: @@ -5210,35 +4991,6 @@ packages: esbuild-windows-arm64: 0.14.50 dev: true - /esbuild/0.15.5: - resolution: {integrity: sha512-VSf6S1QVqvxfIsSKb3UKr3VhUCis7wgDbtF4Vd9z84UJr05/Sp2fRKmzC+CSPG/dNAPPJZ0BTBLTT1Fhd6N9Gg==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@esbuild/linux-loong64': 0.15.5 - esbuild-android-64: 0.15.5 - esbuild-android-arm64: 0.15.5 - esbuild-darwin-64: 0.15.5 - esbuild-darwin-arm64: 0.15.5 - esbuild-freebsd-64: 0.15.5 - esbuild-freebsd-arm64: 0.15.5 - esbuild-linux-32: 0.15.5 - esbuild-linux-64: 0.15.5 - esbuild-linux-arm: 0.15.5 - esbuild-linux-arm64: 0.15.5 - esbuild-linux-mips64le: 0.15.5 - esbuild-linux-ppc64le: 0.15.5 - esbuild-linux-riscv64: 0.15.5 - esbuild-linux-s390x: 0.15.5 - esbuild-netbsd-64: 0.15.5 - esbuild-openbsd-64: 0.15.5 - esbuild-sunos-64: 0.15.5 - esbuild-windows-32: 0.15.5 - esbuild-windows-64: 0.15.5 - esbuild-windows-arm64: 0.15.5 - dev: true - /esbuild/0.15.6: resolution: {integrity: sha512-sgLOv3l4xklvXzzczhRwKRotyrfyZ2i1fCS6PTOLPd9wevDPArGU8HFtHrHCOcsMwTjLjzGm15gvC8uxVzQf+w==} engines: {node: '>=12'} @@ -5266,7 +5018,6 @@ packages: esbuild-windows-32: 0.15.6 esbuild-windows-64: 0.15.6 esbuild-windows-arm64: 0.15.6 - dev: false /escalade/3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -5284,8 +5035,8 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - /eslint-define-config/1.6.0: - resolution: {integrity: sha512-3qulYnwDRGYQHXHGdXBSRcfpI7m37ilBoERzTUYI8fBUoK/46yfUVNkGwM9cF/aoBrGgIDcBSz/HyPQJTHI/+w==} + /eslint-define-config/1.7.0: + resolution: {integrity: sha512-13zk8z8eKO4tpPMvAGV0sa6ok0XuMeu7Zhcizu2bLwcLy1fbNt7/h8PU1wbp9IoIgQETggZJozU0nPXUXOao2g==} engines: {node: '>= 14.6.0', npm: '>= 6.0.0', pnpm: '>= 7.0.0'} dev: true @@ -5298,7 +5049,7 @@ packages: - supports-color dev: true - /eslint-module-utils/2.7.3_v26d7mdxwhyqykunawffqp7s2m: + /eslint-module-utils/2.7.3_632zrvmnhpkgiajg2zqauquf6u: resolution: {integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==} engines: {node: '>=4'} peerDependencies: @@ -5316,7 +5067,7 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 5.35.1_pyvvhc3zqdua4akflcggygkl44 + '@typescript-eslint/parser': 5.36.1_pyvvhc3zqdua4akflcggygkl44 debug: 3.2.7 eslint-import-resolver-node: 0.3.6 find-up: 2.1.0 @@ -5335,7 +5086,7 @@ packages: regexpp: 3.2.0 dev: true - /eslint-plugin-import/2.26.0_kavhtzjob4obuugpatbfgsyfbm: + /eslint-plugin-import/2.26.0_wyxuyzvlfep3lsyoibc4fosfq4: resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==} engines: {node: '>=4'} peerDependencies: @@ -5345,14 +5096,14 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 5.35.1_pyvvhc3zqdua4akflcggygkl44 + '@typescript-eslint/parser': 5.36.1_pyvvhc3zqdua4akflcggygkl44 array-includes: 3.1.5 array.prototype.flat: 1.3.0 debug: 2.6.9 doctrine: 2.1.0 eslint: 8.23.0 eslint-import-resolver-node: 0.3.6 - eslint-module-utils: 2.7.3_v26d7mdxwhyqykunawffqp7s2m + eslint-module-utils: 2.7.3_632zrvmnhpkgiajg2zqauquf6u has: 1.0.3 is-core-module: 2.9.0 is-glob: 4.0.3 @@ -6064,7 +5815,7 @@ packages: /history/5.3.0: resolution: {integrity: sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==} dependencies: - '@babel/runtime': 7.18.3 + '@babel/runtime': 7.18.9 dev: false /hoist-non-react-statics/3.3.2: @@ -6073,8 +5824,8 @@ packages: react-is: 16.13.1 dev: false - /hookable/5.1.1: - resolution: {integrity: sha512-7qam9XBFb+DijNBthaL1k/7lHU2TEMZkWSyuqmU3sCQze1wFm5w9AlEx30PD7a+QVAjOy6Ec2goFwe1YVyk2uA==} + /hookable/5.3.0: + resolution: {integrity: sha512-4gTA2q08HT8G32uIW7Jpro3rSXgT2ZTM8R6+r7H7joq90eZlqFPPTvHD6w8WZUohIrbXbDperL96ilb6dkNxNw==} dev: true /hosted-git-info/2.8.9: @@ -6776,8 +6527,8 @@ packages: dependencies: sourcemap-codec: 1.4.8 - /magic-string/0.26.2: - resolution: {integrity: sha512-NzzlXpclt5zAbmo6h6jNc8zl2gNRGHvmsZW4IvZhTC4W7k4OlLP+S5YLussa/r3ixNT66KOQfNORlXHSOy/X4A==} + /magic-string/0.26.3: + resolution: {integrity: sha512-u1Po0NDyFcwdg2nzHT88wSK0+Rih0N1M+Ph1Sp08k8yvFFU3KR72wryS7e1qMPJypt99WB7fIFVCA92mQrMjrg==} engines: {node: '>=12'} dependencies: sourcemap-codec: 1.4.8 @@ -6981,7 +6732,7 @@ packages: engines: {node: '>=10'} hasBin: true - /mkdist/0.3.13_typescript@4.7.4: + /mkdist/0.3.13_typescript@4.8.2: resolution: {integrity: sha512-+eCPpkr8l2X630y5PIlkts2tzYEsb+aGIgXdrQv9ZGtWE2bLlD6kVIFfI6FJwFpjjw4dPPyorxQc6Uhm/oXlvg==} hasBin: true peerDependencies: @@ -6997,7 +6748,7 @@ packages: jiti: 1.14.0 mri: 1.2.0 pathe: 0.2.0 - typescript: 4.7.4 + typescript: 4.8.2 dev: true /mlly/0.5.14: @@ -7409,10 +7160,10 @@ packages: engines: {node: '>= 0.10'} dev: true - /parse5/7.0.0: - resolution: {integrity: sha512-y/t8IXSPWTuRZqXc0ajH/UwDj4mnqLEbSttNbThcFhGrZuOyoyvNBO85PBp2jQa55wY9d07PBNjsK8ZP3K5U6g==} + /parse5/7.1.1: + resolution: {integrity: sha512-kwpuwzB+px5WUg9pyK0IcK/shltJN5/OVhQagxhCQNtT9Y9QRZqNY2e1cmbu/paRh5LMnz/oVTVLBpjFmMZhSg==} dependencies: - entities: 4.3.1 + entities: 4.4.0 dev: true /parseurl/1.3.3: @@ -7547,8 +7298,8 @@ packages: hasBin: true dev: true - /pnpm/7.9.5: - resolution: {integrity: sha512-+r7+PlBIsblqia8eUOUsBp/R+lHmGAm55jyQRt3DWMUI0srVR1aNJhQECfx24L53Ckz9g48mVxQXEniQMWQPmw==} + /pnpm/7.11.0: + resolution: {integrity: sha512-cxh4TfCE8L4ZbLBN72kTGKTYP7X08nrIzoQ2rQCKihAcIHAdNIgsk4bEJyE1xHjE+bNJt9skwr7aJv3LpvUawQ==} engines: {node: '>=14.6'} hasBin: true dev: true @@ -8192,22 +7943,22 @@ packages: dependencies: glob: 7.2.0 - /rollup-plugin-dts/4.2.2_nm5mlcuxlwr6samvke7b2fz27i: + /rollup-plugin-dts/4.2.2_id3sp2lbl4kx3dskm7teaj32um: resolution: {integrity: sha512-A3g6Rogyko/PXeKoUlkjxkP++8UDVpgA7C+Tdl77Xj4fgEaIjPSnxRmR53EzvoYy97VMVwLAOcWJudaVAuxneQ==} engines: {node: '>=v12.22.11'} peerDependencies: rollup: ^2.55 typescript: ^4.1 dependencies: - magic-string: 0.26.2 - rollup: 2.78.0 - typescript: 4.7.4 + magic-string: 0.26.3 + rollup: 2.79.0 + typescript: 4.8.2 optionalDependencies: '@babel/code-frame': 7.18.6 dev: true - /rollup-plugin-esbuild/4.9.3_g2b53jqudjimruv6spqg4ieafm: - resolution: {integrity: sha512-bxfUNYTa9Tw/4kdFfT9gtidDtqXyRdCW11ctZM7D8houCCVqp5qHzQF7hhIr31rqMA0APbG47fgVbbCGXgM49Q==} + /rollup-plugin-esbuild/4.10.1_ajqsvouysgwbbwdvvze7lmgc4q: + resolution: {integrity: sha512-/ymcRB283zjFp1JTBXO8ekxv0c9vRc2L6OTljghsLthQ4vqeDSDWa9BVz1tHiVrx6SbUnUpDPLC0K/MXK7j5TA==} engines: {node: '>=12'} peerDependencies: esbuild: '>=0.10.1' @@ -8216,10 +7967,10 @@ packages: '@rollup/pluginutils': 4.2.1 debug: 4.3.4 es-module-lexer: 0.9.3 - esbuild: 0.15.5 + esbuild: 0.15.6 joycon: 3.1.1 jsonc-parser: 3.1.0 - rollup: 2.78.0 + rollup: 2.79.0 transitivePeerDependencies: - supports-color dev: true @@ -8233,7 +7984,7 @@ packages: commenting: 1.1.0 glob: 7.2.0 lodash: 4.17.21 - magic-string: 0.26.2 + magic-string: 0.26.3 mkdirp: 1.0.4 moment: 2.29.3 package-name-regex: 2.0.6 @@ -8249,6 +8000,14 @@ packages: optionalDependencies: fsevents: 2.3.2 + /rollup/2.79.0: + resolution: {integrity: sha512-x4KsrCgwQ7ZJPcFA/SUu6QVcYlO7uRLfLAy0DSA4NS2eG8japdbpM50ToH7z4iObodRYOJ0soneF0iaQRJ6zhA==} + engines: {node: '>=10.0.0'} + hasBin: true + optionalDependencies: + fsevents: 2.3.2 + dev: true + /run-parallel/1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} dependencies: @@ -8276,8 +8035,8 @@ packages: truncate-utf8-bytes: 1.0.2 dev: true - /sass/1.54.5: - resolution: {integrity: sha512-p7DTOzxkUPa/63FU0R3KApkRHwcVZYC0PLnLm5iyZACyp15qSi32x7zVUhRdABAATmkALqgGrjCJAcWvobmhHw==} + /sass/1.54.8: + resolution: {integrity: sha512-ib4JhLRRgbg6QVy6bsv5uJxnJMTS2soVcCp9Y88Extyy13A8vV0G1fAwujOzmNkFQbR3LvedudAMbtuNRPbQww==} engines: {node: '>=12.0.0'} hasBin: true dependencies: @@ -8732,8 +8491,8 @@ packages: resolution: {integrity: sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q=} dev: false - /systemjs/6.12.4: - resolution: {integrity: sha512-ha/j+KULJmavOQY3ZQ5vQ5Qp4Y9uf+lWL5ulrC7FqbhKsIyEyPDOTkHYSSKSVTwN9HimZYc0UN7rwVVK+HKwwA==} + /systemjs/6.12.6: + resolution: {integrity: sha512-SawLiWya8/uNR4p12OggSYZ35tP4U4QTpfV57DdZEOPr6+J6zlLSeeEpMmzYTEoBAsMhctdEE+SWJUDYX4EaKw==} dev: false /tailwindcss/3.1.8: @@ -8863,6 +8622,11 @@ packages: resolution: {integrity: sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==} dev: false + /tinybench/2.1.4: + resolution: {integrity: sha512-NFWIw2Gg7EUPdeE8nL1Dc7AMVlk7sOr2PmSNKVuQrZ0YwTOFoshPQ+hcLrgnhK8dTP3FWMCJaf4N+/hXp6lKPw==} + engines: {node: '>=16.0.0'} + dev: true + /tinypool/0.2.4: resolution: {integrity: sha512-Vs3rhkUH6Qq1t5bqtb816oT+HeJTXfwt2cbPH17sWHIYKTotQIFPk3tf2fgqRrVyMDVOc1EnPgzIxfIulXVzwQ==} engines: {node: '>=14.0.0'} @@ -8985,8 +8749,8 @@ packages: typescript: 4.6.4 dev: true - /tsx/3.8.2: - resolution: {integrity: sha512-Jf9izq3Youry5aEarspf6Gm+v/IE2A2xP7YVhtNH1VSCpM0jjACg7C3oD5rIoLBfXWGJSZj4KKC2bwE0TgLb2Q==} + /tsx/3.9.0: + resolution: {integrity: sha512-ofxsE+qjqCYYq4UBt5khglvb+ESgxef1YpuNcdQI92kvcAT2tZVrnSK3g4bRXTUhLmKHcC5q8vIZA47os/stng==} hasBin: true dependencies: '@esbuild-kit/cjs-loader': 2.3.3 @@ -9061,6 +8825,12 @@ packages: hasBin: true dev: true + /typescript/4.8.2: + resolution: {integrity: sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: true + /typeson-registry/1.0.0-alpha.39: resolution: {integrity: sha512-NeGDEquhw+yfwNhguLPcZ9Oj0fzbADiX4R0WxvoY8nGhy98IbzQy1sezjoEFWOywOboj/DWehI+/aUlRVrJnnw==} engines: {node: '>=10.0.0'} @@ -9100,38 +8870,38 @@ packages: which-boxed-primitive: 1.0.2 dev: true - /unbuild/0.8.9: - resolution: {integrity: sha512-LCFL/V3Y0UDxal6MNvSTGuyOnTAha467oTCRURZqj4zaW1r/kTDeVNkA9OdP8J/bnsxr0CvkdjRjlvv/K3o7Yw==} + /unbuild/0.8.10: + resolution: {integrity: sha512-i9VPStkM59dBLFNpeED1G2+EQuR8Tb35yErNxlo5WVDN0zAlE9PHgK5JilX/73sZD9381BTe28H8U/dgXsMvSA==} hasBin: true dependencies: - '@rollup/plugin-alias': 3.1.9_rollup@2.78.0 - '@rollup/plugin-commonjs': 22.0.2_rollup@2.78.0 - '@rollup/plugin-json': 4.1.0_rollup@2.78.0 - '@rollup/plugin-node-resolve': 13.3.0_rollup@2.78.0 - '@rollup/plugin-replace': 4.0.0_rollup@2.78.0 + '@rollup/plugin-alias': 3.1.9_rollup@2.79.0 + '@rollup/plugin-commonjs': 22.0.2_rollup@2.79.0 + '@rollup/plugin-json': 4.1.0_rollup@2.79.0 + '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.0 + '@rollup/plugin-replace': 4.0.0_rollup@2.79.0 '@rollup/pluginutils': 4.2.1 chalk: 5.0.1 consola: 2.15.3 defu: 6.1.0 - esbuild: 0.15.5 + esbuild: 0.15.6 globby: 13.1.2 - hookable: 5.1.1 + hookable: 5.3.0 jiti: 1.14.0 - magic-string: 0.26.2 + magic-string: 0.26.3 mkdirp: 1.0.4 - mkdist: 0.3.13_typescript@4.7.4 + mkdist: 0.3.13_typescript@4.8.2 mlly: 0.5.14 mri: 1.2.0 pathe: 0.3.5 pkg-types: 0.3.4 pretty-bytes: 6.0.0 rimraf: 3.0.2 - rollup: 2.78.0 - rollup-plugin-dts: 4.2.2_nm5mlcuxlwr6samvke7b2fz27i - rollup-plugin-esbuild: 4.9.3_g2b53jqudjimruv6spqg4ieafm + rollup: 2.79.0 + rollup-plugin-dts: 4.2.2_id3sp2lbl4kx3dskm7teaj32um + rollup-plugin-esbuild: 4.10.1_ajqsvouysgwbbwdvvze7lmgc4q scule: 0.3.2 - typescript: 4.7.4 - untyped: 0.4.5 + typescript: 4.8.2 + untyped: 0.4.7 transitivePeerDependencies: - supports-color dev: true @@ -9151,11 +8921,11 @@ packages: engines: {node: '>= 0.8'} dev: true - /untyped/0.4.5: - resolution: {integrity: sha512-buq9URfOj4xAnVfu6BYNKzHZLHAzsCbHsDc/kHy66ESMqRpj00oD9qWf2M2qm0pC0DigsVxRF3uhOa5HJtrwGA==} + /untyped/0.4.7: + resolution: {integrity: sha512-hBgCv7fnqIRzAagn2cUZxxVmhTE7NcMAgI8CfQelFVacG4O55VrurigpK0G504ph4sQSqVsGEo52O5EKFCnJ9g==} dependencies: - '@babel/core': 7.18.10 - '@babel/standalone': 7.18.12 + '@babel/core': 7.18.13 + '@babel/standalone': 7.18.13 '@babel/types': 7.18.13 scule: 0.3.2 transitivePeerDependencies: @@ -9223,19 +8993,19 @@ packages: engines: {node: '>= 0.8'} dev: true - /vitepress/1.0.0-alpha.12: - resolution: {integrity: sha512-++e7p9oxqk7RKz2fMNtrOAWmZSWVPozDuOG1owwntPRincC8/pIhPkJ9ojNHcHCHBylszJBsjkRqbseurZ7vCg==} + /vitepress/1.0.0-alpha.13: + resolution: {integrity: sha512-gCbKb+6o0g5wHt2yyqBPk7FcvrB+MfwGtg1JMS5p99GTQR87l3b7symCl8o1ecv7MDXwJ2mPB8ZrYNLnQAJxLQ==} hasBin: true dependencies: '@docsearch/css': 3.2.1 '@docsearch/js': 3.2.1 '@vitejs/plugin-vue': link:packages/plugin-vue '@vue/devtools-api': 6.2.1 - '@vueuse/core': 9.1.0_vue@3.2.37 + '@vueuse/core': 9.1.0_vue@3.2.38 body-scroll-lock: 4.0.0-beta.0 shiki: 0.11.1 vite: link:packages/vite - vue: 3.2.37 + vue: 3.2.38 transitivePeerDependencies: - '@algolia/client-search' - '@types/react' @@ -9244,8 +9014,8 @@ packages: - react-dom dev: true - /vitest/0.22.1: - resolution: {integrity: sha512-+x28YTnSLth4KbXg7MCzoDAzPJlJex7YgiZbUh6YLp0/4PqVZ7q7/zyfdL0OaPtKTpNiQFPpMC8Y2MSzk8F7dw==} + /vitest/0.23.1: + resolution: {integrity: sha512-kn9pG+h6VA3yj/xRvwgLKEd33rOlzMqJEg3tl5HSm3WUPlkY1Lr1FK8RN1uIqVKvFxmz6HGU3EQW+xW2kazRkQ==} engines: {node: '>=v14.16.0'} hasBin: true peerDependencies: @@ -9272,6 +9042,8 @@ packages: chai: 4.3.6 debug: 4.3.4 local-pkg: 0.4.2 + strip-literal: 0.4.0 + tinybench: 2.1.4 tinypool: 0.2.4 tinyspy: 1.0.2 vite: link:packages/vite @@ -9292,7 +9064,7 @@ packages: resolution: {integrity: sha512-gu73tuZfJgu+mvCSy4UZwd2JXykjK9zAZsfmDeut5dx/1a7FeTk0XwJsSuqQn+cuMCGVbIBfl+s53X4T19DnzQ==} dev: true - /vue-demi/0.13.1_vue@3.2.37: + /vue-demi/0.13.1_vue@3.2.38: resolution: {integrity: sha512-xmkJ56koG3ptpLnpgmIzk9/4nFf4CqduSJbUM0OdPoU87NwRuZ6x49OLhjSa/fC15fV+5CbEnrxU4oyE022svg==} engines: {node: '>=12'} hasBin: true @@ -9304,34 +9076,34 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.2.37 + vue: 3.2.38 dev: true - /vue-router/4.1.5_vue@3.2.37: + /vue-router/4.1.5_vue@3.2.38: resolution: {integrity: sha512-IsvoF5D2GQ/EGTs/Th4NQms9gd2NSqV+yylxIyp/OYp8xOwxmU8Kj/74E9DTSYAyH5LX7idVUngN3JSj1X4xcQ==} peerDependencies: vue: ^3.2.0 dependencies: '@vue/devtools-api': 6.2.1 - vue: 3.2.37 + vue: 3.2.38 dev: false - /vue/3.2.37: - resolution: {integrity: sha512-bOKEZxrm8Eh+fveCqS1/NkG/n6aMidsI6hahas7pa0w/l7jkbssJVsRhVDs07IdDq7h9KHswZOgItnwJAgtVtQ==} + /vue/3.2.38: + resolution: {integrity: sha512-hHrScEFSmDAWL0cwO4B6WO7D3sALZPbfuThDsGBebthrNlDxdJZpGR3WB87VbjpPh96mep1+KzukYEhpHDFa8Q==} dependencies: - '@vue/compiler-dom': 3.2.37 - '@vue/compiler-sfc': 3.2.37 - '@vue/runtime-dom': 3.2.37 - '@vue/server-renderer': 3.2.37_vue@3.2.37 - '@vue/shared': 3.2.37 + '@vue/compiler-dom': 3.2.38 + '@vue/compiler-sfc': 3.2.38 + '@vue/runtime-dom': 3.2.38 + '@vue/server-renderer': 3.2.38_vue@3.2.38 + '@vue/shared': 3.2.38 - /vuex/4.0.2_vue@3.2.37: + /vuex/4.0.2_vue@3.2.38: resolution: {integrity: sha512-M6r8uxELjZIK8kTKDGgZTYX/ahzblnzC4isU1tpmEuOIIKmV+TRdc+H4s8ds2NuZ7wpUTdGRzJRtoj+lI+pc0Q==} peerDependencies: vue: ^3.0.2 dependencies: '@vue/devtools-api': 6.1.4 - vue: 3.2.37 + vue: 3.2.38 dev: false /web-streams-polyfill/3.2.1: @@ -9409,8 +9181,8 @@ packages: resolution: {integrity: sha512-RNGKj82nUPg3g5ygxkQl0R937xLyho1J24ItRCBTr/m1YnZkzJy1hUiHUJrc/VlsDQzsCnInEGSg3bci0Lmd4w==} engines: {node: '>= 10.0.0'} dependencies: - '@babel/parser': 7.18.5 - '@babel/types': 7.17.10 + '@babel/parser': 7.18.13 + '@babel/types': 7.18.13 assert-never: 1.2.1 babel-walk: 3.0.0-canary-5 dev: true @@ -9569,7 +9341,7 @@ packages: name: '@vitejs/dep-that-imports-vue' version: 0.0.0 dependencies: - vue: 3.2.37 + vue: 3.2.38 dev: false file:playground/external/dep-that-requires-vue: @@ -9577,7 +9349,7 @@ packages: name: '@vitejs/dep-that-requires-vue' version: 0.0.0 dependencies: - vue: 3.2.37 + vue: 3.2.38 dev: false file:playground/import-assertion/import-assertion-dep: From 9c1be108bfb1eac3dbbe432214349153d8b9ed5e Mon Sep 17 00:00:00 2001 From: musicq Date: Tue, 6 Sep 2022 05:06:18 +0800 Subject: [PATCH 10/54] refactor: config hook helper function (#9982) --- packages/vite/src/node/config.ts | 43 +++++++++++++++++--------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index 4fb0fcc9a15a93..829c47fee07abf 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -442,16 +442,7 @@ export async function resolveConfig( // run config hooks const userPlugins = [...prePlugins, ...normalPlugins, ...postPlugins] - for (const p of getSortedPluginsByHook('config', userPlugins)) { - const hook = p.config - const handler = hook && 'handler' in hook ? hook.handler : hook - if (handler) { - const res = await handler(config, configEnv) - if (res) { - config = mergeConfig(config, res) - } - } - } + config = await runConfigHook(config, userPlugins, configEnv) if (process.env.VITE_TEST_WITHOUT_PLUGIN_COMMONJS) { config = mergeConfig(config, { @@ -611,16 +602,7 @@ export async function resolveConfig( ...workerNormalPlugins, ...workerPostPlugins ] - for (const p of getSortedPluginsByHook('config', workerUserPlugins)) { - const hook = p.config - const handler = hook && 'handler' in hook ? hook.handler : hook - if (handler) { - const res = await handler(workerConfig, configEnv) - if (res) { - workerConfig = mergeConfig(workerConfig, res) - } - } - } + workerConfig = await runConfigHook(workerConfig, workerUserPlugins, configEnv) const resolvedWorkerOptions: ResolveWorkerOptions = { format: workerConfig.worker?.format || 'iife', plugins: [], @@ -1089,6 +1071,27 @@ async function loadConfigFromBundledFile( } } +async function runConfigHook( + config: InlineConfig, + plugins: Plugin[], + configEnv: ConfigEnv +): Promise { + let conf = config + + for (const p of getSortedPluginsByHook('config', plugins)) { + const hook = p.config + const handler = hook && 'handler' in hook ? hook.handler : hook + if (handler) { + const res = await handler(conf, configEnv) + if (res) { + conf = mergeConfig(conf, res) + } + } + } + + return conf +} + export function getDepOptimizationConfig( config: ResolvedConfig, ssr: boolean From 31f5ff3ef9ee071afa8cc66870e13e9753c3ab93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=A3=E9=87=8C=E5=A5=BD=E8=84=8F=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5?= Date: Wed, 7 Sep 2022 00:57:10 +0800 Subject: [PATCH 11/54] refactor: optimize `async` and `await` in code (#9854) --- packages/vite/src/node/optimizer/optimizer.ts | 2 +- packages/vite/src/node/plugins/importAnalysis.ts | 2 +- playground/assets/__tests__/assets.spec.ts | 2 +- playground/ssr-vue/src/entry-server.js | 2 +- playground/vitestGlobalSetup.ts | 2 +- playground/vitestSetup.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/vite/src/node/optimizer/optimizer.ts b/packages/vite/src/node/optimizer/optimizer.ts index 9bf03aa88005b0..0f32d70300dfb7 100644 --- a/packages/vite/src/node/optimizer/optimizer.ts +++ b/packages/vite/src/node/optimizer/optimizer.ts @@ -232,7 +232,7 @@ async function createDepsOptimizer( } } - async function startNextDiscoveredBatch() { + function startNextDiscoveredBatch() { newDepsDiscovered = false // Add the current depOptimizationProcessing to the queue, these diff --git a/packages/vite/src/node/plugins/importAnalysis.ts b/packages/vite/src/node/plugins/importAnalysis.ts index f1356d5c7f879e..80204c17a65091 100644 --- a/packages/vite/src/node/plugins/importAnalysis.ts +++ b/packages/vite/src/node/plugins/importAnalysis.ts @@ -87,7 +87,7 @@ function markExplicitImport(url: string) { return url } -async function extractImportedBindings( +function extractImportedBindings( id: string, source: string, importSpec: ImportSpecifier, diff --git a/playground/assets/__tests__/assets.spec.ts b/playground/assets/__tests__/assets.spec.ts index ceb259102d4031..affe284fb62d75 100644 --- a/playground/assets/__tests__/assets.spec.ts +++ b/playground/assets/__tests__/assets.spec.ts @@ -272,7 +272,7 @@ describe.runIf(isBuild)('encodeURI', () => { test('img src with encodeURI', async () => { const img = await page.$('.encodeURI') expect( - await (await img.getAttribute('src')).startsWith('data:image/png;base64') + (await img.getAttribute('src')).startsWith('data:image/png;base64') ).toBe(true) }) }) diff --git a/playground/ssr-vue/src/entry-server.js b/playground/ssr-vue/src/entry-server.js index ec0810f885863f..e44c9abd3eb114 100644 --- a/playground/ssr-vue/src/entry-server.js +++ b/playground/ssr-vue/src/entry-server.js @@ -6,7 +6,7 @@ export async function render(url, manifest) { const { app, router } = createApp() // set the router to the desired URL before rendering - router.push(url) + await router.push(url) await router.isReady() // passing SSR context object which will be available via useSSRContext() diff --git a/playground/vitestGlobalSetup.ts b/playground/vitestGlobalSetup.ts index 05bbf767423487..611b32064971c0 100644 --- a/playground/vitestGlobalSetup.ts +++ b/playground/vitestGlobalSetup.ts @@ -42,7 +42,7 @@ export async function setup(): Promise { } export async function teardown(): Promise { - browserServer?.close() + await browserServer?.close() if (!process.env.VITE_PRESERVE_BUILD_ARTIFACTS) { fs.removeSync(path.resolve(__dirname, '../playground-temp')) } diff --git a/playground/vitestSetup.ts b/playground/vitestSetup.ts index 57d44f9a91c898..f7c2629daa8f45 100644 --- a/playground/vitestSetup.ts +++ b/playground/vitestSetup.ts @@ -172,7 +172,7 @@ beforeAll(async (s) => { serverLogs.length = 0 await page?.close() await server?.close() - watcher?.close() + await watcher?.close() if (browser) { await browser.close() } From a7706d0d980307a91c443c6bb57e048cade7dc75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Wed, 7 Sep 2022 04:22:59 +0900 Subject: [PATCH 12/54] fix: prevent error overlay style being overridden (fixes #9969) (#9971) --- packages/vite/src/client/overlay.ts | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/packages/vite/src/client/overlay.ts b/packages/vite/src/client/overlay.ts index f9a22b7db2c6b3..e094f5664a5bb6 100644 --- a/packages/vite/src/client/overlay.ts +++ b/packages/vite/src/client/overlay.ts @@ -1,8 +1,17 @@ import type { ErrorPayload } from 'types/hmrPayload' +// set :host styles to make playwright detect the element as visible const template = /*html*/ ` -
-
-

-  

-  

-  
- Click outside or fix the code to dismiss.
- You can also disable this overlay by setting - server.hmr.overlay to false in vite.config.js. +
+
+
+

+    

+    

+    
+ Click outside or fix the code to dismiss.
+ You can also disable this overlay by setting + server.hmr.overlay to false in vite.config.js. +
` From 1b822d0598a6e13108da541e37d6e0ccb5c226f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Mussini?= Date: Tue, 6 Sep 2022 16:58:36 -0300 Subject: [PATCH 13/54] fix: ensure version query for relative node_modules imports (#10016) --- packages/vite/src/node/plugins/resolve.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/node/plugins/resolve.ts b/packages/vite/src/node/plugins/resolve.ts index 371609fdf23c83..97b032b2833e11 100644 --- a/packages/vite/src/node/plugins/resolve.ts +++ b/packages/vite/src/node/plugins/resolve.ts @@ -175,7 +175,10 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin { // as if they would have been imported through a bare import // Use the original id to do the check as the resolved id may be the real // file path after symlinks resolution - const isNodeModule = !!normalizePath(id).match(nodeModulesInPathRE) + const isNodeModule = + nodeModulesInPathRE.test(normalizePath(id)) || + nodeModulesInPathRE.test(normalizePath(resolved)) + if (isNodeModule && !resolved.match(DEP_VERSION_RE)) { const versionHash = depsOptimizer.metadata.browserHash if (versionHash && OPTIMIZABLE_ENTRY_RE.test(resolved)) { From 9f8d79b9897427882bb7da1bdb7862a15938c865 Mon Sep 17 00:00:00 2001 From: Percy Ma Date: Wed, 7 Sep 2022 16:00:54 +0800 Subject: [PATCH 14/54] chore: use pnpm `shell-emulator` instead of `cross-env` (#10023) --- .npmrc | 1 + package.json | 13 +++++------ playground/env/package.json | 7 ++---- playground/json/package.json | 3 +-- playground/react-sourcemap/package.json | 7 +++--- playground/ssr-deps/package.json | 3 +-- playground/ssr-html/package.json | 3 +-- playground/ssr-pug/package.json | 3 +-- playground/ssr-react/package.json | 3 +-- playground/ssr-vue/package.json | 3 +-- playground/ssr-webworker/package.json | 3 +-- playground/worker/package.json | 24 +++++++++---------- pnpm-lock.yaml | 31 +------------------------ 13 files changed, 32 insertions(+), 72 deletions(-) diff --git a/.npmrc b/.npmrc index 6d64ed708da7d4..148b202c642b5e 100644 --- a/.npmrc +++ b/.npmrc @@ -6,3 +6,4 @@ hoist-pattern[]=pug hoist-pattern[]=source-map-support hoist-pattern[]=ts-node strict-peer-dependencies=false +shell-emulator=true \ No newline at end of file diff --git a/package.json b/package.json index b2d0409cbce6a8..3f5145d12a99b4 100644 --- a/package.json +++ b/package.json @@ -20,17 +20,17 @@ "typecheck": "tsc -p scripts --noEmit && tsc -p playground --noEmit", "test": "run-s test-unit test-serve test-build", "test-serve": "vitest run -c vitest.config.e2e.ts", - "test-build": "cross-env VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts", - "test-build-without-plugin-commonjs": "cross-env VITE_TEST_WITHOUT_PLUGIN_COMMONJS=1 pnpm test-build", + "test-build": "VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts", + "test-build-without-plugin-commonjs": "VITE_TEST_WITHOUT_PLUGIN_COMMONJS=1 pnpm test-build", "test-unit": "vitest run", "test-docs": "pnpm run docs-build", - "debug-serve": "cross-env VITE_DEBUG_SERVE=1 vitest run -c vitest.config.e2e.ts", - "debug-build": "cross-env VITE_TEST_BUILD=1 VITE_PRESERVE_BUILD_ARTIFACTS=1 vitest run -c vitest.config.e2e.ts", + "debug-serve": "VITE_DEBUG_SERVE=1 vitest run -c vitest.config.e2e.ts", + "debug-build": "VITE_TEST_BUILD=1 VITE_PRESERVE_BUILD_ARTIFACTS=1 vitest run -c vitest.config.e2e.ts", "docs": "vitepress dev docs", "docs-build": "vitepress build docs", "docs-serve": "vitepress serve docs", - "build": "pnpm -r --filter=./packages/* run build", - "dev": "pnpm -r --parallel --filter=./packages/* run dev", + "build": "pnpm -r --filter='./packages/*' run build", + "dev": "pnpm -r --parallel --filter='./packages/*' run dev", "release": "tsx scripts/release.ts", "ci-publish": "tsx scripts/publishCI.ts", "ci-docs": "run-s build docs-build" @@ -60,7 +60,6 @@ "@typescript-eslint/eslint-plugin": "^5.36.1", "@typescript-eslint/parser": "^5.36.1", "conventional-changelog-cli": "^2.2.2", - "cross-env": "^7.0.3", "esbuild": "^0.14.47", "eslint": "^8.23.0", "eslint-define-config": "^1.7.0", diff --git a/playground/env/package.json b/playground/env/package.json index 271cbf0a7d20c0..091afe4bd08a88 100644 --- a/playground/env/package.json +++ b/playground/env/package.json @@ -3,12 +3,9 @@ "private": true, "version": "0.0.0", "scripts": { - "dev": "cross-env VITE_INLINE=inline-serve vite", - "build": "cross-env VITE_INLINE=inline-build vite build", + "dev": "VITE_INLINE=inline-serve vite", + "build": "VITE_INLINE=inline-build vite build", "debug": "node --inspect-brk ../../packages/vite/bin/vite", "preview": "vite preview" - }, - "devDependencies": { - "cross-env": "^7.0.3" } } diff --git a/playground/json/package.json b/playground/json/package.json index ee851285a0945c..b2c29d3e6f494d 100644 --- a/playground/json/package.json +++ b/playground/json/package.json @@ -8,11 +8,10 @@ "debug": "node --inspect-brk ../../packages/vite/bin/vite", "preview": "vite preview", "dev:ssr": "node server", - "serve:ssr": "cross-env NODE_ENV=production node server", + "serve:ssr": "NODE_ENV=production node server", "debug:ssr": "node --inspect-brk server" }, "devDependencies": { - "cross-env": "^7.0.3", "express": "^4.18.1", "json-module": "file:./json-module", "vue": "^3.2.38" diff --git a/playground/react-sourcemap/package.json b/playground/react-sourcemap/package.json index 91aa3331b877b4..70398d97257914 100644 --- a/playground/react-sourcemap/package.json +++ b/playground/react-sourcemap/package.json @@ -4,9 +4,9 @@ "version": "0.0.0", "scripts": { "dev": "vite", - "dev:classic": "cross-env USE_CLASSIC=1 vite", + "dev:classic": "USE_CLASSIC=1 vite", "build": "vite build", - "build:classic": "cross-env USE_CLASSIC=1 vite build", + "build:classic": "USE_CLASSIC=1 vite build", "debug": "node --inspect-brk ../../packages/vite/bin/vite", "preview": "vite preview" }, @@ -15,7 +15,6 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@vitejs/plugin-react": "workspace:*", - "cross-env": "^7.0.3" + "@vitejs/plugin-react": "workspace:*" } } diff --git a/playground/ssr-deps/package.json b/playground/ssr-deps/package.json index ac82dadbcead63..785806c3bab816 100644 --- a/playground/ssr-deps/package.json +++ b/playground/ssr-deps/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "node server", - "serve": "cross-env NODE_ENV=production node server", + "serve": "NODE_ENV=production node server", "debug": "node --inspect-brk server" }, "dependencies": { @@ -32,7 +32,6 @@ "pkg-exports": "file:./pkg-exports" }, "devDependencies": { - "cross-env": "^7.0.3", "express": "^4.18.1" } } diff --git a/playground/ssr-html/package.json b/playground/ssr-html/package.json index 73614bab95ca5a..a800fe8477a416 100644 --- a/playground/ssr-html/package.json +++ b/playground/ssr-html/package.json @@ -5,12 +5,11 @@ "type": "module", "scripts": { "dev": "node server", - "serve": "cross-env NODE_ENV=production node server", + "serve": "NODE_ENV=production node server", "debug": "node --inspect-brk server" }, "dependencies": {}, "devDependencies": { - "cross-env": "^7.0.3", "express": "^4.18.1" } } diff --git a/playground/ssr-pug/package.json b/playground/ssr-pug/package.json index 547e8cbf7e94b2..5b64c6535cbfe9 100644 --- a/playground/ssr-pug/package.json +++ b/playground/ssr-pug/package.json @@ -5,11 +5,10 @@ "type": "module", "scripts": { "dev": "node server", - "serve": "cross-env NODE_ENV=production node server", + "serve": "NODE_ENV=production node server", "debug": "node --inspect-brk server" }, "devDependencies": { - "cross-env": "^7.0.3", "express": "^4.18.1", "pug": "^3.0.2" } diff --git a/playground/ssr-react/package.json b/playground/ssr-react/package.json index 3fd0f7134a2de9..ea03ab80086d47 100644 --- a/playground/ssr-react/package.json +++ b/playground/ssr-react/package.json @@ -9,7 +9,7 @@ "build:client": "vite build --outDir dist/client", "build:server": "vite build --ssr src/entry-server.jsx --outDir dist/server", "generate": "vite build --outDir dist/static && npm run build:server && node prerender", - "serve": "cross-env NODE_ENV=production node server", + "serve": "NODE_ENV=production node server", "debug": "node --inspect-brk server" }, "dependencies": { @@ -20,7 +20,6 @@ "devDependencies": { "@vitejs/plugin-react": "workspace:*", "compression": "^1.7.4", - "cross-env": "^7.0.3", "express": "^4.18.1", "serve-static": "^1.15.0" } diff --git a/playground/ssr-vue/package.json b/playground/ssr-vue/package.json index 5c450d10d62d60..f3869dc9c1fdf3 100644 --- a/playground/ssr-vue/package.json +++ b/playground/ssr-vue/package.json @@ -11,7 +11,7 @@ "build:server": "vite build --ssr src/entry-server.js --outDir dist/server", "build:server:noExternal": "vite build --config vite.config.noexternal.js --ssr src/entry-server.js --outDir dist/server", "generate": "vite build --ssrManifest --outDir dist/static && npm run build:server && node prerender", - "serve": "cross-env NODE_ENV=production node server", + "serve": "NODE_ENV=production node server", "debug": "node --inspect-brk server" }, "dependencies": { @@ -24,7 +24,6 @@ "@vitejs/plugin-vue": "workspace:*", "@vitejs/plugin-vue-jsx": "workspace:*", "compression": "^1.7.4", - "cross-env": "^7.0.3", "dep-import-type": "link:./dep-import-type", "express": "^4.18.1", "serve-static": "^1.15.0" diff --git a/playground/ssr-webworker/package.json b/playground/ssr-webworker/package.json index 9f6c8c00534eab..66fdc8b7afaa99 100644 --- a/playground/ssr-webworker/package.json +++ b/playground/ssr-webworker/package.json @@ -4,14 +4,13 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "cross-env DEV=1 node worker", + "dev": "DEV=1 node worker", "build:worker": "vite build --ssr src/entry-worker.jsx --outDir dist/worker" }, "dependencies": { "react": "^18.2.0" }, "devDependencies": { - "cross-env": "^7.0.3", "miniflare": "^1.4.1", "resolve-linked": "workspace:*" } diff --git a/playground/worker/package.json b/playground/worker/package.json index 701fca25628e76..e3fe8121a49d46 100644 --- a/playground/worker/package.json +++ b/playground/worker/package.json @@ -9,18 +9,18 @@ "dev:es": "vite --config ./vite.config-es.js dev", "build:es": "vite --config ./vite.config-es.js build", "preview:es": "vite --config ./vite.config-es.js preview", - "dev:sourcemap": "cross-env WORKER_MODE=sourcemap vite --config ./vite.config-sourcemap.js dev", - "build:sourcemap": "cross-env WORKER_MODE=sourcemap vite --config ./vite.config-sourcemap.js build", - "preview:sourcemap": "cross-env WORKER_MODE=sourcemap vite --config ./vite.config-sourcemap.js preview", - "dev:sourcemap-hidden": "cross-env WORKER_MODE=hidden vite --config ./vite.config-sourcemap.js dev", - "build:sourcemap-hidden": "cross-env WORKER_MODE=hidden vite --config ./vite.config-sourcemap.js build", - "preview:sourcemap-hidden": "cross-env WORKER_MODE=hidden vite --config ./vite.config-sourcemap.js preview", - "dev:sourcemap-inline": "cross-env WORKER_MODE=inline vite --config ./vite.config-sourcemap.js dev", - "build:sourcemap-inline": "cross-env WORKER_MODE=inline vite --config ./vite.config-sourcemap.js build", - "preview:sourcemap-inline": "cross-env WORKER_MODE=inline vite --config ./vite.config-sourcemap.js preview", - "dev:relative-base": "cross-env WORKER_MODE=inline vite --config ./vite.config-relative-base.js dev", - "build:relative-base": "cross-env WORKER_MODE=inline vite --config ./vite.config-relative-base.js build", - "preview:relative-base": "cross-env WORKER_MODE=inline vite --config ./vite.config-relative-base.js preview", + "dev:sourcemap": "WORKER_MODE=sourcemap vite --config ./vite.config-sourcemap.js dev", + "build:sourcemap": "WORKER_MODE=sourcemap vite --config ./vite.config-sourcemap.js build", + "preview:sourcemap": "WORKER_MODE=sourcemap vite --config ./vite.config-sourcemap.js preview", + "dev:sourcemap-hidden": "WORKER_MODE=hidden vite --config ./vite.config-sourcemap.js dev", + "build:sourcemap-hidden": "WORKER_MODE=hidden vite --config ./vite.config-sourcemap.js build", + "preview:sourcemap-hidden": "WORKER_MODE=hidden vite --config ./vite.config-sourcemap.js preview", + "dev:sourcemap-inline": "WORKER_MODE=inline vite --config ./vite.config-sourcemap.js dev", + "build:sourcemap-inline": "WORKER_MODE=inline vite --config ./vite.config-sourcemap.js build", + "preview:sourcemap-inline": "WORKER_MODE=inline vite --config ./vite.config-sourcemap.js preview", + "dev:relative-base": "WORKER_MODE=inline vite --config ./vite.config-relative-base.js dev", + "build:relative-base": "WORKER_MODE=inline vite --config ./vite.config-relative-base.js build", + "preview:relative-base": "WORKER_MODE=inline vite --config ./vite.config-relative-base.js preview", "debug": "node --inspect-brk ../../packages/vite/bin/vite" }, "dependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dfd5fe3955fc31..ca8db4b26b25a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34,7 +34,6 @@ importers: '@typescript-eslint/eslint-plugin': ^5.36.1 '@typescript-eslint/parser': ^5.36.1 conventional-changelog-cli: ^2.2.2 - cross-env: ^7.0.3 esbuild: ^0.14.47 eslint: ^8.23.0 eslint-define-config: ^1.7.0 @@ -90,7 +89,6 @@ importers: '@typescript-eslint/eslint-plugin': 5.36.1_g2qdd2k5igsxhudjjarcmw5o7e '@typescript-eslint/parser': 5.36.1_pyvvhc3zqdua4akflcggygkl44 conventional-changelog-cli: 2.2.2 - cross-env: 7.0.3 esbuild: 0.14.47 eslint: 8.23.0 eslint-define-config: 1.7.0 @@ -457,10 +455,7 @@ importers: specifiers: {} playground/env: - specifiers: - cross-env: ^7.0.3 - devDependencies: - cross-env: 7.0.3 + specifiers: {} playground/env-nested: specifiers: {} @@ -533,12 +528,10 @@ importers: playground/json: specifiers: - cross-env: ^7.0.3 express: ^4.18.1 json-module: file:./json-module vue: ^3.2.38 devDependencies: - cross-env: 7.0.3 express: 4.18.1 json-module: file:playground/json/json-module vue: 3.2.38 @@ -850,7 +843,6 @@ importers: playground/react-sourcemap: specifiers: '@vitejs/plugin-react': workspace:* - cross-env: ^7.0.3 react: ^18.2.0 react-dom: ^18.2.0 dependencies: @@ -858,7 +850,6 @@ importers: react-dom: 18.2.0_react@18.2.0 devDependencies: '@vitejs/plugin-react': link:../../packages/plugin-react - cross-env: 7.0.3 playground/react/jsx-entry: specifiers: {} @@ -936,7 +927,6 @@ importers: specifiers: '@vitejs/css-lib': file:./css-lib bcrypt: ^5.0.1 - cross-env: ^7.0.3 define-properties-exports: file:./define-properties-exports define-property-exports: file:./define-property-exports express: ^4.18.1 @@ -980,7 +970,6 @@ importers: require-absolute: file:playground/ssr-deps/require-absolute ts-transpiled-exports: file:playground/ssr-deps/ts-transpiled-exports devDependencies: - cross-env: 7.0.3 express: 4.18.1 playground/ssr-deps/css-lib: @@ -1063,19 +1052,15 @@ importers: playground/ssr-html: specifiers: - cross-env: ^7.0.3 express: ^4.18.1 devDependencies: - cross-env: 7.0.3 express: 4.18.1 playground/ssr-pug: specifiers: - cross-env: ^7.0.3 express: ^4.18.1 pug: ^3.0.2 devDependencies: - cross-env: 7.0.3 express: 4.18.1 pug: 3.0.2 @@ -1083,7 +1068,6 @@ importers: specifiers: '@vitejs/plugin-react': workspace:* compression: ^1.7.4 - cross-env: ^7.0.3 express: ^4.18.1 react: ^18.2.0 react-dom: ^18.2.0 @@ -1096,7 +1080,6 @@ importers: devDependencies: '@vitejs/plugin-react': link:../../packages/plugin-react compression: 1.7.4 - cross-env: 7.0.3 express: 4.18.1 serve-static: 1.15.0 @@ -1105,7 +1088,6 @@ importers: '@vitejs/plugin-vue': workspace:* '@vitejs/plugin-vue-jsx': workspace:* compression: ^1.7.4 - cross-env: ^7.0.3 dep-import-type: link:./dep-import-type example-external-component: file:example-external-component express: ^4.18.1 @@ -1122,7 +1104,6 @@ importers: '@vitejs/plugin-vue': link:../../packages/plugin-vue '@vitejs/plugin-vue-jsx': link:../../packages/plugin-vue-jsx compression: 1.7.4 - cross-env: 7.0.3 dep-import-type: link:dep-import-type express: 4.18.1 serve-static: 1.15.0 @@ -1135,14 +1116,12 @@ importers: playground/ssr-webworker: specifiers: - cross-env: ^7.0.3 miniflare: ^1.4.1 react: ^18.2.0 resolve-linked: workspace:* dependencies: react: 18.2.0 devDependencies: - cross-env: 7.0.3 miniflare: 1.4.1 resolve-linked: link:../resolve-linked @@ -4029,14 +4008,6 @@ packages: /create-require/1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - /cross-env/7.0.3: - resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} - engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} - hasBin: true - dependencies: - cross-spawn: 7.0.3 - dev: true - /cross-spawn/6.0.5: resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==} engines: {node: '>=4.8'} From 9de9bc477638ec46d2e80e6e66ec4f3eb6b439e9 Mon Sep 17 00:00:00 2001 From: Shyim <6224096+shyim@users.noreply.github.com> Date: Fri, 9 Sep 2022 13:10:47 +0200 Subject: [PATCH 15/54] fix: proxy to secured websocket server (#10045) --- packages/vite/src/node/server/middlewares/proxy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/node/server/middlewares/proxy.ts b/packages/vite/src/node/server/middlewares/proxy.ts index f08f69091f1c68..6554358f091028 100644 --- a/packages/vite/src/node/server/middlewares/proxy.ts +++ b/packages/vite/src/node/server/middlewares/proxy.ts @@ -88,7 +88,9 @@ export function proxyMiddleware( if (doesProxyContextMatchUrl(context, url)) { const [proxy, opts] = proxies[context] if ( - (opts.ws || opts.target?.toString().startsWith('ws:')) && + (opts.ws || + opts.target?.toString().startsWith('ws:') || + opts.target?.toString().startsWith('wss:')) && req.headers['sec-websocket-protocol'] !== HMR_HEADER ) { if (opts.rewrite) { From 9e65a41f15b9593cf5f1518d4ad4c4f84bd37c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Sat, 10 Sep 2022 18:14:37 +0900 Subject: [PATCH 16/54] chore: cleanup old changelogs (#10056) --- packages/vite/CHANGELOG.md | 3316 +----------------------------------- 1 file changed, 21 insertions(+), 3295 deletions(-) diff --git a/packages/vite/CHANGELOG.md b/packages/vite/CHANGELOG.md index 4027c0270c61ca..003d80425afc20 100644 --- a/packages/vite/CHANGELOG.md +++ b/packages/vite/CHANGELOG.md @@ -575,3307 +575,33 @@ See [3.0.0-alpha.1 changelog](https://github.com/vitejs/vite/blob/v3.0.0-alpha.1 See [3.0.0-alpha.0 changelog](https://github.com/vitejs/vite/blob/v3.0.0-alpha.0/packages/vite/CHANGELOG.md) +## Previous Changelogs +### 2.9.x (2022-03-30 - 2022-08-12) +See [2.9.15 changelog](https://github.com/vitejs/vite/blob/v2.9.15/packages/vite/CHANGELOG.md) +### 2.8.x (2022-02-09 - 2022-03-01) +See [2.8.6 changelog](https://github.com/vitejs/vite/blob/v2.8.6/packages/vite/CHANGELOG.md) -## 2.9.14 (2022-07-08) +### 2.7.x (2021-10-28 - 2021-12-28) +See [2.7.13 changelog](https://github.com/vitejs/vite/blob/v2.7.13/packages/vite/CHANGELOG.md) -* fix: re-encode url to prevent fs.allow bypass (fixes #8498) (#8990) ([adb61c5](https://github.com/vitejs/vite/commit/adb61c5)), closes [#8498](https://github.com/vitejs/vite/issues/8498) [#8990](https://github.com/vitejs/vite/issues/8990) -* fix: reverts #8471, fix css content ([da77dee](https://github.com/vitejs/vite/commit/da77dee)), closes [#8874](https://github.com/vitejs/vite/issues/8874) -* fix(css): preserve dynamic import css code (fixes #5348) ([d4d89b9](https://github.com/vitejs/vite/commit/d4d89b9)), closes [#5348](https://github.com/vitejs/vite/issues/5348) [#7746](https://github.com/vitejs/vite/issues/7746) -* fix(css): always use css module content (#8977) ([84ec02a](https://github.com/vitejs/vite/commit/84ec02a)), closes [#8936](https://github.com/vitejs/vite/issues/8936) [#8977](https://github.com/vitejs/vite/issues/8977) +### 2.6.x (2021-09-20 - 2021-10-27) +See [2.6.14 changelog](https://github.com/vitejs/vite/blob/v2.6.14/packages/vite/CHANGELOG.md) +### 2.5.x (2021-08-03 - 2021-09-13) +See [2.5.10 changelog](https://github.com/vitejs/vite/blob/v2.5.10/packages/vite/CHANGELOG.md) +### 2.4.x (2021-06-27 - 2021-07-27) +See [2.4.4 changelog](https://github.com/vitejs/vite/blob/v2.4.4/packages/vite/CHANGELOG.md) -## 2.9.13 (2022-06-27) +### 2.3.x (2021-05-11 - 2021-06-19) +See [2.3.8 changelog](https://github.com/vitejs/vite/blob/v2.3.8/packages/vite/CHANGELOG.md) -* fix: /@fs/ dir traversal with escaped chars (fixes #8498) (#8805) ([e109d64](https://github.com/vitejs/vite/commit/e109d64)), closes [#8498](https://github.com/vitejs/vite/issues/8498) [#8805](https://github.com/vitejs/vite/issues/8805) -* fix(wasm): support decoding data URL in Node < v16 (#8668) ([1afc1c2](https://github.com/vitejs/vite/commit/1afc1c2)), closes [#8668](https://github.com/vitejs/vite/issues/8668) +### 2.2.x (2021-04-19 - 2021-05-03) +See [2.2.4 changelog](https://github.com/vitejs/vite/blob/v2.2.4/packages/vite/CHANGELOG.md) +### 2.1.x (2021-03-15 - 2021-03-31) +See [2.1.5 changelog](https://github.com/vitejs/vite/blob/v2.1.5/packages/vite/CHANGELOG.md) - -## 2.9.12 (2022-06-10) - -* fix: outdated optimized dep removed from module graph (#8534) ([c0d6c60](https://github.com/vitejs/vite/commit/c0d6c60)), closes [#8534](https://github.com/vitejs/vite/issues/8534) - - - -## 2.9.11 (2022-06-10) - -* fix: respect server.headers in static middlewares (#8481) ([ab7dc1c](https://github.com/vitejs/vite/commit/ab7dc1c)), closes [#8481](https://github.com/vitejs/vite/issues/8481) -* fix(dev): avoid FOUC when swapping out link tag (fix #7973) (#8495) ([01fa807](https://github.com/vitejs/vite/commit/01fa807)), closes [#7973](https://github.com/vitejs/vite/issues/7973) [#8495](https://github.com/vitejs/vite/issues/8495) - - - -## 2.9.10 (2022-06-06) - -* feat: treat Astro file scripts as TS (#8151) ([9fdd0a3](https://github.com/vitejs/vite/commit/9fdd0a3)), closes [#8151](https://github.com/vitejs/vite/issues/8151) -* feat: new hook `configurePreviewServer` (#7658) (#8437) ([7b972bc](https://github.com/vitejs/vite/commit/7b972bc)), closes [#7658](https://github.com/vitejs/vite/issues/7658) [#8437](https://github.com/vitejs/vite/issues/8437) -* fix: remove empty chunk css imports when using esnext (#8345) ([9fbc1a9](https://github.com/vitejs/vite/commit/9fbc1a9)), closes [#8345](https://github.com/vitejs/vite/issues/8345) -* fix: EPERM error on Windows when processing dependencies (#8235) ([dfe4307](https://github.com/vitejs/vite/commit/dfe4307)), closes [#8235](https://github.com/vitejs/vite/issues/8235) -* fix(css): remove `?used` hack (fixes #6421, #8245) (#8278) (#8471) ([8d7bac4](https://github.com/vitejs/vite/commit/8d7bac4)), closes [#6421](https://github.com/vitejs/vite/issues/6421) [#8245](https://github.com/vitejs/vite/issues/8245) [#8278](https://github.com/vitejs/vite/issues/8278) [#8471](https://github.com/vitejs/vite/issues/8471) -* chore(lint): sort for imports (#8113) ([4bd1531](https://github.com/vitejs/vite/commit/4bd1531)), closes [#8113](https://github.com/vitejs/vite/issues/8113) - - - -## 2.9.9 (2022-05-11) - -* fix: add direct query to html-proxy css (fixes #8091) (#8094) ([a24b5e3](https://github.com/vitejs/vite/commit/a24b5e3)), closes [#8091](https://github.com/vitejs/vite/issues/8091) [#8094](https://github.com/vitejs/vite/issues/8094) -* fix: graceful rename in windows (#8036) ([84496f8](https://github.com/vitejs/vite/commit/84496f8)), closes [#8036](https://github.com/vitejs/vite/issues/8036) -* fix: image-set with base64 images (fix #8028) (#8035) ([992aee2](https://github.com/vitejs/vite/commit/992aee2)), closes [#8028](https://github.com/vitejs/vite/issues/8028) [#8035](https://github.com/vitejs/vite/issues/8035) -* fix: invalidate ssrError when HMR update occurs (#8052) ([22fa882](https://github.com/vitejs/vite/commit/22fa882)), closes [#8052](https://github.com/vitejs/vite/issues/8052) -* fix: use `strip-literal` to strip string lterals (#8054) ([b6fc3cd](https://github.com/vitejs/vite/commit/b6fc3cd)), closes [#8054](https://github.com/vitejs/vite/issues/8054) -* perf(lib): reduce backtrack when injecting esbuild helpers (#8110) ([e5556ab](https://github.com/vitejs/vite/commit/e5556ab)), closes [#8110](https://github.com/vitejs/vite/issues/8110) - - - -## 2.9.8 (2022-05-04) - -* fix: inline js and css paths for virtual html (#7993) ([d49e3fb](https://github.com/vitejs/vite/commit/d49e3fb)), closes [#7993](https://github.com/vitejs/vite/issues/7993) -* fix: only handle merge ssr.noExternal (#8003) ([642d65b](https://github.com/vitejs/vite/commit/642d65b)), closes [#8003](https://github.com/vitejs/vite/issues/8003) -* fix: optimized processing folder renaming in win (fix #7939) (#8019) ([e5fe1c6](https://github.com/vitejs/vite/commit/e5fe1c6)), closes [#7939](https://github.com/vitejs/vite/issues/7939) [#8019](https://github.com/vitejs/vite/issues/8019) -* fix(css): do not clean id when passing to postcss (fix #7822) (#7827) ([72f17f8](https://github.com/vitejs/vite/commit/72f17f8)), closes [#7822](https://github.com/vitejs/vite/issues/7822) [#7827](https://github.com/vitejs/vite/issues/7827) -* fix(css): var in image-set (#7921) ([e96b908](https://github.com/vitejs/vite/commit/e96b908)), closes [#7921](https://github.com/vitejs/vite/issues/7921) -* fix(ssr): allow ssrTransform to parse hashbang (#8005) ([6420ba0](https://github.com/vitejs/vite/commit/6420ba0)), closes [#8005](https://github.com/vitejs/vite/issues/8005) -* feat: import ts with .js in vue (#7998) ([9974094](https://github.com/vitejs/vite/commit/9974094)), closes [#7998](https://github.com/vitejs/vite/issues/7998) -* chore: remove maybeVirtualHtmlSet (#8010) ([e85164e](https://github.com/vitejs/vite/commit/e85164e)), closes [#8010](https://github.com/vitejs/vite/issues/8010) - - - -## 2.9.7 (2022-05-02) - -* chore: update license ([d58c030](https://github.com/vitejs/vite/commit/d58c030)) -* chore(css): catch postcss config error (fix #2793) (#7934) ([7f535ac](https://github.com/vitejs/vite/commit/7f535ac)), closes [#2793](https://github.com/vitejs/vite/issues/2793) [#7934](https://github.com/vitejs/vite/issues/7934) -* chore(deps): update all non-major dependencies (#7949) ([b877d30](https://github.com/vitejs/vite/commit/b877d30)), closes [#7949](https://github.com/vitejs/vite/issues/7949) -* fix: inject esbuild helpers in IIFE and UMD wrappers (#7948) ([f7d2d71](https://github.com/vitejs/vite/commit/f7d2d71)), closes [#7948](https://github.com/vitejs/vite/issues/7948) -* fix: inline css hash (#7974) ([f6ae60d](https://github.com/vitejs/vite/commit/f6ae60d)), closes [#7974](https://github.com/vitejs/vite/issues/7974) -* fix: inline style hmr, transform style code inplace (#7869) ([a30a548](https://github.com/vitejs/vite/commit/a30a548)), closes [#7869](https://github.com/vitejs/vite/issues/7869) -* fix: use NODE_ENV in optimizer (#7673) ([50672e4](https://github.com/vitejs/vite/commit/50672e4)), closes [#7673](https://github.com/vitejs/vite/issues/7673) -* fix(css): clean comments before hoist at rules (#7924) ([e48827f](https://github.com/vitejs/vite/commit/e48827f)), closes [#7924](https://github.com/vitejs/vite/issues/7924) -* fix(css): dynamic import css in package fetches removed js (fixes #7955, #6823) (#7969) ([025eebf](https://github.com/vitejs/vite/commit/025eebf)), closes [#7955](https://github.com/vitejs/vite/issues/7955) [#6823](https://github.com/vitejs/vite/issues/6823) [#7969](https://github.com/vitejs/vite/issues/7969) -* fix(css): inline css module when ssr, minify issue (fix #5471) (#7807) ([cf8a48a](https://github.com/vitejs/vite/commit/cf8a48a)), closes [#5471](https://github.com/vitejs/vite/issues/5471) [#7807](https://github.com/vitejs/vite/issues/7807) -* fix(css): sourcemap crash with postcss (#7982) ([7f9f8f1](https://github.com/vitejs/vite/commit/7f9f8f1)), closes [#7982](https://github.com/vitejs/vite/issues/7982) -* fix(css): support postcss.config.ts (#7935) ([274c10e](https://github.com/vitejs/vite/commit/274c10e)), closes [#7935](https://github.com/vitejs/vite/issues/7935) -* fix(ssr): failed ssrLoadModule call throws same error (#7177) ([891e7fc](https://github.com/vitejs/vite/commit/891e7fc)), closes [#7177](https://github.com/vitejs/vite/issues/7177) -* fix(worker): import.meta.* (#7706) ([b092697](https://github.com/vitejs/vite/commit/b092697)), closes [#7706](https://github.com/vitejs/vite/issues/7706) -* docs: `server.origin` config trailing slash (fix #6622) (#7865) ([5c1ee5a](https://github.com/vitejs/vite/commit/5c1ee5a)), closes [#6622](https://github.com/vitejs/vite/issues/6622) [#7865](https://github.com/vitejs/vite/issues/7865) - - - -## 2.9.6 (2022-04-26) - -* fix: `apply` condition skipped for nested plugins (#7741) ([1f2ca53](https://github.com/vitejs/vite/commit/1f2ca53)), closes [#7741](https://github.com/vitejs/vite/issues/7741) -* fix: clean string regexp (#7871) ([ecc78bc](https://github.com/vitejs/vite/commit/ecc78bc)), closes [#7871](https://github.com/vitejs/vite/issues/7871) -* fix: escape character in string regexp match (#7834) ([1d468c8](https://github.com/vitejs/vite/commit/1d468c8)), closes [#7834](https://github.com/vitejs/vite/issues/7834) -* fix: HMR propagation of HTML changes (fix #7870) (#7895) ([1f7855c](https://github.com/vitejs/vite/commit/1f7855c)), closes [#7870](https://github.com/vitejs/vite/issues/7870) [#7895](https://github.com/vitejs/vite/issues/7895) -* fix: modulepreload polyfill only during build (fix #4786) (#7816) ([709776f](https://github.com/vitejs/vite/commit/709776f)), closes [#4786](https://github.com/vitejs/vite/issues/4786) [#7816](https://github.com/vitejs/vite/issues/7816) -* fix: new SharedWorker syntax (#7800) ([474d5c2](https://github.com/vitejs/vite/commit/474d5c2)), closes [#7800](https://github.com/vitejs/vite/issues/7800) -* fix: node v18 support (#7812) ([fc89057](https://github.com/vitejs/vite/commit/fc89057)), closes [#7812](https://github.com/vitejs/vite/issues/7812) -* fix: preview jsdoc params (#7903) ([e474381](https://github.com/vitejs/vite/commit/e474381)), closes [#7903](https://github.com/vitejs/vite/issues/7903) -* fix: replace import.meta.url correctly (#7792) ([12d1194](https://github.com/vitejs/vite/commit/12d1194)), closes [#7792](https://github.com/vitejs/vite/issues/7792) -* fix: set `isSelfAccepting` to `false` for any asset not processed by importAnalysis (#7898) ([0d2089c](https://github.com/vitejs/vite/commit/0d2089c)), closes [#7898](https://github.com/vitejs/vite/issues/7898) -* fix: spelling mistakes (#7883) ([54728e3](https://github.com/vitejs/vite/commit/54728e3)), closes [#7883](https://github.com/vitejs/vite/issues/7883) -* fix: ssr.noExternal with boolean values (#7813) ([0b2d307](https://github.com/vitejs/vite/commit/0b2d307)), closes [#7813](https://github.com/vitejs/vite/issues/7813) -* fix: style use string instead of js import (#7786) ([ba43c29](https://github.com/vitejs/vite/commit/ba43c29)), closes [#7786](https://github.com/vitejs/vite/issues/7786) -* fix: update sourcemap in importAnalysisBuild (#7825) ([d7540c8](https://github.com/vitejs/vite/commit/d7540c8)), closes [#7825](https://github.com/vitejs/vite/issues/7825) -* fix(ssr): rewrite dynamic class method name (fix #7751) (#7757) ([b89974a](https://github.com/vitejs/vite/commit/b89974a)), closes [#7751](https://github.com/vitejs/vite/issues/7751) [#7757](https://github.com/vitejs/vite/issues/7757) -* chore: code structure (#7790) ([5f7fe00](https://github.com/vitejs/vite/commit/5f7fe00)), closes [#7790](https://github.com/vitejs/vite/issues/7790) -* chore: fix worker sourcemap output style (#7805) ([17f3be7](https://github.com/vitejs/vite/commit/17f3be7)), closes [#7805](https://github.com/vitejs/vite/issues/7805) -* chore(deps): update all non-major dependencies (#7780) ([eba9d05](https://github.com/vitejs/vite/commit/eba9d05)), closes [#7780](https://github.com/vitejs/vite/issues/7780) -* chore(deps): update all non-major dependencies (#7847) ([e29d1d9](https://github.com/vitejs/vite/commit/e29d1d9)), closes [#7847](https://github.com/vitejs/vite/issues/7847) -* feat: enable optimizeDeps.esbuildOptions.loader (#6840) ([af8ca60](https://github.com/vitejs/vite/commit/af8ca60)), closes [#6840](https://github.com/vitejs/vite/issues/6840) - - - -## 2.9.5 (2022-04-14) - -* fix: revert #7582, fix #7721 and #7736 (#7737) ([fa86d69](https://github.com/vitejs/vite/commit/fa86d69)), closes [#7721](https://github.com/vitejs/vite/issues/7721) [#7736](https://github.com/vitejs/vite/issues/7736) [#7737](https://github.com/vitejs/vite/issues/7737) -* chore: format css minify esbuild error (#7731) ([c445075](https://github.com/vitejs/vite/commit/c445075)), closes [#7731](https://github.com/vitejs/vite/issues/7731) - - - -## 2.9.4 (2022-04-13) - -* fix: handle url imports with semicolon (fix #7717) (#7718) ([a5c2a78](https://github.com/vitejs/vite/commit/a5c2a78)), closes [#7717](https://github.com/vitejs/vite/issues/7717) [#7718](https://github.com/vitejs/vite/issues/7718) - - - -## 2.9.3 (2022-04-13) - -* fix: revert #7665 (#7716) ([26862c4](https://github.com/vitejs/vite/commit/26862c4)), closes [#7665](https://github.com/vitejs/vite/issues/7665) [#7716](https://github.com/vitejs/vite/issues/7716) - - - -## 2.9.2 (2022-04-13) - -* fix: `$ vite preview` 404 handling (#7665) ([66b6dc5](https://github.com/vitejs/vite/commit/66b6dc5)), closes [#7665](https://github.com/vitejs/vite/issues/7665) -* fix: build should also respect esbuild=false config (#7602) ([2dc0e80](https://github.com/vitejs/vite/commit/2dc0e80)), closes [#7602](https://github.com/vitejs/vite/issues/7602) -* fix: default value of assetsDir option (#7703) ([83d32d9](https://github.com/vitejs/vite/commit/83d32d9)), closes [#7703](https://github.com/vitejs/vite/issues/7703) -* fix: detect env hmr (#7595) ([212d454](https://github.com/vitejs/vite/commit/212d454)), closes [#7595](https://github.com/vitejs/vite/issues/7595) -* fix: EACCES permission denied due to resolve new paths default (#7612) ([1dd019f](https://github.com/vitejs/vite/commit/1dd019f)), closes [#7612](https://github.com/vitejs/vite/issues/7612) -* fix: fix HMR propagation when imports not analyzed (#7561) ([57e7914](https://github.com/vitejs/vite/commit/57e7914)), closes [#7561](https://github.com/vitejs/vite/issues/7561) -* fix: nested comments and strings, new regexp utils (#7650) ([93900f0](https://github.com/vitejs/vite/commit/93900f0)), closes [#7650](https://github.com/vitejs/vite/issues/7650) -* fix: revert optimizeDeps false, keep optimizedDeps.disabled (#7715) ([ba9a1ff](https://github.com/vitejs/vite/commit/ba9a1ff)), closes [#7715](https://github.com/vitejs/vite/issues/7715) -* fix: update watch mode (#7132) ([9ed1672](https://github.com/vitejs/vite/commit/9ed1672)), closes [#7132](https://github.com/vitejs/vite/issues/7132) -* fix: update ws types (#7605) ([b620587](https://github.com/vitejs/vite/commit/b620587)), closes [#7605](https://github.com/vitejs/vite/issues/7605) -* fix: use correct proxy config in preview (#7604) ([cf59005](https://github.com/vitejs/vite/commit/cf59005)), closes [#7604](https://github.com/vitejs/vite/issues/7604) -* fix(css): hoist charset (#7678) ([29e622c](https://github.com/vitejs/vite/commit/29e622c)), closes [#7678](https://github.com/vitejs/vite/issues/7678) -* fix(css): include inline css module in bundle (#7591) ([45b9273](https://github.com/vitejs/vite/commit/45b9273)), closes [#7591](https://github.com/vitejs/vite/issues/7591) -* fix(deps): update all non-major dependencies (#7668) ([485263c](https://github.com/vitejs/vite/commit/485263c)), closes [#7668](https://github.com/vitejs/vite/issues/7668) -* fix(less): handles rewriting relative paths passed Less's `data-uri` function. (#7400) ([08e39b7](https://github.com/vitejs/vite/commit/08e39b7)), closes [#7400](https://github.com/vitejs/vite/issues/7400) -* fix(resolver): skip known ESM entries when resolving a `require` call (#7582) ([5d6ea8e](https://github.com/vitejs/vite/commit/5d6ea8e)), closes [#7582](https://github.com/vitejs/vite/issues/7582) -* fix(ssr): properly transform export default with expressions (#7705) ([d6830e3](https://github.com/vitejs/vite/commit/d6830e3)), closes [#7705](https://github.com/vitejs/vite/issues/7705) -* feat: clean string module lex string template (#7667) ([dfce283](https://github.com/vitejs/vite/commit/dfce283)), closes [#7667](https://github.com/vitejs/vite/issues/7667) -* feat: explicit the word boundary (#6876) ([7ddbf96](https://github.com/vitejs/vite/commit/7ddbf96)), closes [#6876](https://github.com/vitejs/vite/issues/6876) -* feat: optimizeDeps.disabled (#7646) ([48e038c](https://github.com/vitejs/vite/commit/48e038c)), closes [#7646](https://github.com/vitejs/vite/issues/7646) -* chore: fix term cases (#7553) ([c296130](https://github.com/vitejs/vite/commit/c296130)), closes [#7553](https://github.com/vitejs/vite/issues/7553) -* chore: revert removed line in #7698 ([7e6a2c8](https://github.com/vitejs/vite/commit/7e6a2c8)), closes [#7698](https://github.com/vitejs/vite/issues/7698) -* chore: type unknown env as any (#7702) ([23fdef1](https://github.com/vitejs/vite/commit/23fdef1)), closes [#7702](https://github.com/vitejs/vite/issues/7702) -* chore(deps): update all non-major dependencies (#7603) ([fc51a15](https://github.com/vitejs/vite/commit/fc51a15)), closes [#7603](https://github.com/vitejs/vite/issues/7603) -* perf(css): hoist at rules with regex (#7691) ([8858180](https://github.com/vitejs/vite/commit/8858180)), closes [#7691](https://github.com/vitejs/vite/issues/7691) -* refactor: esbuild handles `target` and `useDefineForClassFields` (#7698) ([0c928aa](https://github.com/vitejs/vite/commit/0c928aa)), closes [#7698](https://github.com/vitejs/vite/issues/7698) -* docs: update release notes (#7563) ([a74bd7b](https://github.com/vitejs/vite/commit/a74bd7b)), closes [#7563](https://github.com/vitejs/vite/issues/7563) - - - -## 2.9.1 (2022-03-31) - -* fix: allow port 0 to be provided to server (#7530) ([173e4c9](https://github.com/vitejs/vite/commit/173e4c9)), closes [#7530](https://github.com/vitejs/vite/issues/7530) -* fix: brotli let for reassignment (#7544) ([d0253d7](https://github.com/vitejs/vite/commit/d0253d7)), closes [#7544](https://github.com/vitejs/vite/issues/7544) -* fix: dynamic import warning with @vite-ignore (#7533) ([29c1ec0](https://github.com/vitejs/vite/commit/29c1ec0)), closes [#7533](https://github.com/vitejs/vite/issues/7533) -* fix: remove unneeded skipping optimization log (#7531) ([41fa2f5](https://github.com/vitejs/vite/commit/41fa2f5)), closes [#7531](https://github.com/vitejs/vite/issues/7531) -* docs(changelog): fix raw glob imports syntax (#7540) ([87fbe13](https://github.com/vitejs/vite/commit/87fbe13)), closes [#7540](https://github.com/vitejs/vite/issues/7540) -* chore: 2.9 release notes (#7525) ([4324f48](https://github.com/vitejs/vite/commit/4324f48)), closes [#7525](https://github.com/vitejs/vite/issues/7525) - - - -# [2.9.0](https://github.com/vitejs/vite/compare/v2.8.6...v2.9.0) (2022-03-30) - -### Faster Cold Start - -Before 2.9, the first time dev was run on a project Vite needed to perform a scan phase to discover dependencies and then pre-bundle them before starting the server. In 2.9 both scanning [#7379](https://github.com/vitejs/vite/issues/7379) and pre-bundling [#6758](https://github.com/vitejs/vite/issues/6758) of dependencies are now non-blocking, so the server starts right away during cold start. We also now allow requests to flow through the pipeline improving initial cold start load speed and increasing the chances of discovering new missing dependencies when re-processing and letting Vite populate the module graph and the browser to process files. In many cases, there is also no need to full-reload the page when new dependencies are discovered. - -### CSS Sourcemap support during dev (experimental) - -Vite now supports CSS sourcemaps [#7173](https://github.com/vitejs/vite/issues/7173). This feature is still experimental, and it is disabled by default to avoid incurring a performance penalty for users that don't need it. To enable it, set [css.devSourcemap](https://vitejs.dev/config/#css-devsourcemap) to `true`. - -### Avoid splitting vendor chunks by default - -Vite's default chunking strategy was a good fit for most SPAs, but it wasn't ideal in some other use cases. Vite doesn't have enough context to make the best decision here, so in Vite 2.9 the previous chunking strategy is now [opt-in](https://vitejs.dev/guide/build.html#chunking-strategy) [#6534](https://github.com/vitejs/vite/issues/6534) and Vite will no longer split vendor libs in a separate chunk. - -### Web Workers enhancements - -Web Workers now supports source map generation (see [#5417](https://github.com/vitejs/vite/issues/5417)). The implementation is also now more robust, fixing several issues encountered in previous versions ([#6599](https://github.com/vitejs/vite/issues/6599)). - -### Raw Glob Imports - -Glob imports support for the `raw` modifier syntax has changed to using `{ as: 'raw' }`, which works in the same way as the `?raw` suffix in regular imports: - -```js -const examples = import.meta.globEager('./examples/*.html', { as: 'raw' }) -``` - -The `{ assert: { type: 'raw' }}` syntax introduced in v2.8 has been deprecated. See [#7017](https://github.com/vitejs/vite/issues/7017) for more information. - -### `envDir` changes - -The `envDir` now correctly loads `.env` files in the specified directory only (defaults to `root`). Previously, it would load files above the directory, which imposed security issues. If you had relied on the previous behaviour, make sure you move your `.env` files to the correct directory, or configure the `envDir` option. - -### New tools for Plugin and Framework Authors - -#### Client Server Communication API - -Vite now provides utilities for plugins to help handle the communication with clients connected to Vite's server [#7437](https://github.com/vitejs/vite/issues/7437). Reusing the open WebSocket connection between the server and clients several use cases can be simplified ([vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect), [SliDev](https://sli.dev), and many others). Check out the [Client Server Communication docs](https://vitejs.dev/guide/api-plugin.html#client-server-communication) for more information. - -```js -// Send a message from the client to the server -if (import.meta.hot) { - import.meta.hot.send('my:from-client', { msg: 'Hey!' }) -} -``` - -```js -// And listen to client messages in a plugin - configureServer(server) { - server.ws.on('my:from-client', (data, client) => { - console.log('Message from client:', data.msg) // Hey! - // ... - }) - } -``` - -#### `importedCss` and `importedAssets` to RenderedChunk type - -Replace the internal `chunkToEmittedCssFileMap` and `chunkToEmittedAssetsMap` variables with public properties added by Vite to `RenderedChunk` objects in the `renderChunk` phase. These is useful for Vite-based frameworks that generate their own HTML. See [#6629](https://github.com/vitejs/vite/issues/6629). - -#### Optimize Custom Extensions (experimental) - -A new `optimizeDeps.extensions: string[]` option is available to enable pre-bundling of custom extensions. A respective esbuild plugin is required to handle that extension. e.g. `['.svelte', '.svelte.md']`. See [#6801](https://github.com/vitejs/vite/issues/6801) for more information. - - -### Bug Fixes - -* fix: build path error on Windows (#7383) ([e3c7c7a](https://github.com/vitejs/vite/commit/e3c7c7a)), closes [#7383](https://github.com/vitejs/vite/issues/7383) -* fix: import url worker two times (#7468) ([f05a813](https://github.com/vitejs/vite/commit/f05a813)), closes [#7468](https://github.com/vitejs/vite/issues/7468) -* fix: import with query with exports/browser field (#7098) ([9ce6732](https://github.com/vitejs/vite/commit/9ce6732)), closes [#7098](https://github.com/vitejs/vite/issues/7098) -* fix: make @fs URLs work with special characters (#7510) ([2b7dad1](https://github.com/vitejs/vite/commit/2b7dad1)), closes [#7510](https://github.com/vitejs/vite/issues/7510) -* fix: tailwind css sourcemap warning (#7480) ([90df0bb](https://github.com/vitejs/vite/commit/90df0bb)), closes [#7480](https://github.com/vitejs/vite/issues/7480) -* fix: worker match only run in js (#7500) ([9481c7d](https://github.com/vitejs/vite/commit/9481c7d)), closes [#7500](https://github.com/vitejs/vite/issues/7500) -* fix: Correctly process urls when they are rewritten to contain space (#7452) ([9ee2cf6](https://github.com/vitejs/vite/commit/9ee2cf6)), closes [#7452](https://github.com/vitejs/vite/issues/7452) -* fix: custom event payload type (#7498) ([28b0660](https://github.com/vitejs/vite/commit/28b0660)), closes [#7498](https://github.com/vitejs/vite/issues/7498) -* fix: handle relative path glob raw import, fix #7307 (#7371) ([7f8dc58](https://github.com/vitejs/vite/commit/7f8dc58)), closes [#7307](https://github.com/vitejs/vite/issues/7307) [#7371](https://github.com/vitejs/vite/issues/7371) -* fix: import.meta.url in worker (#7464) ([8ac4b12](https://github.com/vitejs/vite/commit/8ac4b12)), closes [#7464](https://github.com/vitejs/vite/issues/7464) -* fix: optimizeDeps.entries default ignore paths (#7469) ([4c95e99](https://github.com/vitejs/vite/commit/4c95e99)), closes [#7469](https://github.com/vitejs/vite/issues/7469) -* fix: errors in worker handling (#7236) ([77dc1a1](https://github.com/vitejs/vite/commit/77dc1a1)), closes [#7236](https://github.com/vitejs/vite/issues/7236) -* fix: consider undefined port when checking port (#7318) ([c7fc7c3](https://github.com/vitejs/vite/commit/c7fc7c3)), closes [#7318](https://github.com/vitejs/vite/issues/7318) -* fix: inline style css sourcemap (#7434) ([47668b5](https://github.com/vitejs/vite/commit/47668b5)), closes [#7434](https://github.com/vitejs/vite/issues/7434) -* fix: sourcemap missing source files warning with cached vue (#7442) ([a2ce20d](https://github.com/vitejs/vite/commit/a2ce20d)), closes [#7442](https://github.com/vitejs/vite/issues/7442) -* fix: update tsconfck to 1.2.1 (#7424) ([a90b03b](https://github.com/vitejs/vite/commit/a90b03b)), closes [#7424](https://github.com/vitejs/vite/issues/7424) -* fix: virtual html sourcemap warning (#7440) ([476786b](https://github.com/vitejs/vite/commit/476786b)), closes [#7440](https://github.com/vitejs/vite/issues/7440) -* fix(less): empty less file error (#7412) ([0535c70](https://github.com/vitejs/vite/commit/0535c70)), closes [#7412](https://github.com/vitejs/vite/issues/7412) -* fix(resolve): skip `module` field when the importer is a `require` call (#7438) ([fe4c1ed](https://github.com/vitejs/vite/commit/fe4c1ed)), closes [#7438](https://github.com/vitejs/vite/issues/7438) -* fix: avoid mangling code from incorrect magic-string usage (#7397) ([68d76c9](https://github.com/vitejs/vite/commit/68d76c9)), closes [#7397](https://github.com/vitejs/vite/issues/7397) -* fix(config): server restart on config dependencies changed on windows (#7366) ([c43467a](https://github.com/vitejs/vite/commit/c43467a)), closes [#7366](https://github.com/vitejs/vite/issues/7366) -* fix(deps): update all non-major dependencies (#7392) ([b63fc3b](https://github.com/vitejs/vite/commit/b63fc3b)), closes [#7392](https://github.com/vitejs/vite/issues/7392) -* fix: add version to optimized chunks, fix #7323 (#7350) ([1be1db6](https://github.com/vitejs/vite/commit/1be1db6)), closes [#7323](https://github.com/vitejs/vite/issues/7323) [#7350](https://github.com/vitejs/vite/issues/7350) -* fix: browser cache of newly discovered deps (#7378) ([392a0de](https://github.com/vitejs/vite/commit/392a0de)), closes [#7378](https://github.com/vitejs/vite/issues/7378) -* fix: do not warn (about not being able to bundle non module scripts) when src is an external url (#7 ([0646fe8](https://github.com/vitejs/vite/commit/0646fe8)), closes [#7380](https://github.com/vitejs/vite/issues/7380) -* fix: overwrite deps info browserHash only on commit (#7359) ([1e9615d](https://github.com/vitejs/vite/commit/1e9615d)), closes [#7359](https://github.com/vitejs/vite/issues/7359) -* fix: delayed full page reload (#7347) ([fa0820a](https://github.com/vitejs/vite/commit/fa0820a)), closes [#7347](https://github.com/vitejs/vite/issues/7347) -* fix: early discovery of missing deps, fix #7333 (#7346) ([7d2f37c](https://github.com/vitejs/vite/commit/7d2f37c)), closes [#7333](https://github.com/vitejs/vite/issues/7333) [#7346](https://github.com/vitejs/vite/issues/7346) -* fix: unhandled exception on eager transformRequest (#7345) ([c3260a4](https://github.com/vitejs/vite/commit/c3260a4)), closes [#7345](https://github.com/vitejs/vite/issues/7345) -* fix: update to esbuild 0.14.27, fix #6994 (#7320) ([65aaeee](https://github.com/vitejs/vite/commit/65aaeee)), closes [#6994](https://github.com/vitejs/vite/issues/6994) [#7320](https://github.com/vitejs/vite/issues/7320) -* fix: `ssrExternal` should not skip nested dependencies (#7154) ([f8f934a](https://github.com/vitejs/vite/commit/f8f934a)), closes [#7154](https://github.com/vitejs/vite/issues/7154) -* fix: dep with dynamic import wrong error log (#7313) ([769f535](https://github.com/vitejs/vite/commit/769f535)), closes [#7313](https://github.com/vitejs/vite/issues/7313) -* fix: avoid caching transform result of invalidated module (#7254) ([2d7ba72](https://github.com/vitejs/vite/commit/2d7ba72)), closes [#7254](https://github.com/vitejs/vite/issues/7254) -* fix: dont replace define in json (#7294) ([fc5c937](https://github.com/vitejs/vite/commit/fc5c937)), closes [#7294](https://github.com/vitejs/vite/issues/7294) -* fix: main browserHash after stable optimization rerun (#7284) ([98eefa8](https://github.com/vitejs/vite/commit/98eefa8)), closes [#7284](https://github.com/vitejs/vite/issues/7284) -* fix: needs es interop check for newly discovered deps (#7243) ([ba3047d](https://github.com/vitejs/vite/commit/ba3047d)), closes [#7243](https://github.com/vitejs/vite/issues/7243) -* fix: pending requests after module invalidation (#7283) ([a1044d7](https://github.com/vitejs/vite/commit/a1044d7)), closes [#7283](https://github.com/vitejs/vite/issues/7283) -* fix: use browserHash for imports from node_modules (#7278) ([161f8ea](https://github.com/vitejs/vite/commit/161f8ea)), closes [#7278](https://github.com/vitejs/vite/issues/7278) -* fix: use hmr port if specified (#7282) ([3ee04c0](https://github.com/vitejs/vite/commit/3ee04c0)), closes [#7282](https://github.com/vitejs/vite/issues/7282) -* fix: use relative paths in _metadata.json (#7299) ([8b945f5](https://github.com/vitejs/vite/commit/8b945f5)), closes [#7299](https://github.com/vitejs/vite/issues/7299) -* fix(asset): allow non-existent url (#7306) ([6bc45a2](https://github.com/vitejs/vite/commit/6bc45a2)), closes [#7306](https://github.com/vitejs/vite/issues/7306) -* fix(hmr): hmr style tag no support in html (#7262) ([fae120a](https://github.com/vitejs/vite/commit/fae120a)), closes [#7262](https://github.com/vitejs/vite/issues/7262) -* fix: `import.meta.url` should not throw (#7219) ([5de3a98](https://github.com/vitejs/vite/commit/5de3a98)), closes [#7219](https://github.com/vitejs/vite/issues/7219) -* fix: allow `localhost` as a valid hostname (#7092) ([4194cce](https://github.com/vitejs/vite/commit/4194cce)), closes [#7092](https://github.com/vitejs/vite/issues/7092) -* fix: build optimize deps metada location (#7214) ([dc46adf](https://github.com/vitejs/vite/commit/dc46adf)), closes [#7214](https://github.com/vitejs/vite/issues/7214) -* fix: define plugin not ignore file names (#6340) ([7215a03](https://github.com/vitejs/vite/commit/7215a03)), closes [#6340](https://github.com/vitejs/vite/issues/6340) -* fix: deprecate `{ assert: { type: raw }}` in favor of `{ as: raw }` (fix #7017) (#7215) ([87ecce5](https://github.com/vitejs/vite/commit/87ecce5)), closes [#7017](https://github.com/vitejs/vite/issues/7017) [#7215](https://github.com/vitejs/vite/issues/7215) -* fix: execute classic worker in dev mode (#7099) ([3c0a609](https://github.com/vitejs/vite/commit/3c0a609)), closes [#7099](https://github.com/vitejs/vite/issues/7099) -* fix: handle files with multiple comments (#7202) ([3f5b645](https://github.com/vitejs/vite/commit/3f5b645)), closes [#7202](https://github.com/vitejs/vite/issues/7202) -* fix: honor the host param when creating a websocket server (#5617) ([882c8a8](https://github.com/vitejs/vite/commit/882c8a8)), closes [#5617](https://github.com/vitejs/vite/issues/5617) -* fix: import css in less/scss (fix 3293) (#7147) ([9b51a3a](https://github.com/vitejs/vite/commit/9b51a3a)), closes [#7147](https://github.com/vitejs/vite/issues/7147) -* fix: optimizeDeps.include missing in known imports fallback (#7218) ([6c08c86](https://github.com/vitejs/vite/commit/6c08c86)), closes [#7218](https://github.com/vitejs/vite/issues/7218) -* fix: prevent loading env outside of root (#6995) ([e0a4d81](https://github.com/vitejs/vite/commit/e0a4d81)), closes [#6995](https://github.com/vitejs/vite/issues/6995) -* fix: reoptimize deps on esbuild options change (#6855) ([4517c2b](https://github.com/vitejs/vite/commit/4517c2b)), closes [#6855](https://github.com/vitejs/vite/issues/6855) -* fix: replacing compression with modern version (#6557) ([5648d09](https://github.com/vitejs/vite/commit/5648d09)), closes [#6557](https://github.com/vitejs/vite/issues/6557) -* fix: restart optimize (#7004) ([47fbe29](https://github.com/vitejs/vite/commit/47fbe29)), closes [#7004](https://github.com/vitejs/vite/issues/7004) -* fix: reusing variable names in html module scripts (fix #6851) (#6818) ([c46b56d](https://github.com/vitejs/vite/commit/c46b56d)), closes [#6851](https://github.com/vitejs/vite/issues/6851) [#6818](https://github.com/vitejs/vite/issues/6818) -* fix: revert #6340, definePlugin tests, warning box (#7174) ([6cb0647](https://github.com/vitejs/vite/commit/6cb0647)), closes [#6340](https://github.com/vitejs/vite/issues/6340) [#7174](https://github.com/vitejs/vite/issues/7174) -* fix: update postcss-load-config to load PostCSS plugins based on their config file path (#6856) ([f02f961](https://github.com/vitejs/vite/commit/f02f961)), closes [#6856](https://github.com/vitejs/vite/issues/6856) -* fix(hmr): client pinging behind a proxy on websocket disconnect (fix #4501) (#5466) ([96573db](https://github.com/vitejs/vite/commit/96573db)), closes [#4501](https://github.com/vitejs/vite/issues/4501) [#5466](https://github.com/vitejs/vite/issues/5466) -* fix(html): build mode ignore html define transform (#6663) ([79dd003](https://github.com/vitejs/vite/commit/79dd003)), closes [#6663](https://github.com/vitejs/vite/issues/6663) -* fix(json): load json module error (#6352) ([c8a7ea8](https://github.com/vitejs/vite/commit/c8a7ea8)), closes [#6352](https://github.com/vitejs/vite/issues/6352) -* fix(optimizer): add missing keys to hash (#7189) ([b0c0efe](https://github.com/vitejs/vite/commit/b0c0efe)), closes [#7189](https://github.com/vitejs/vite/issues/7189) -* fix(resolve): try .tsx extension for .js import from typescript module (#7005) ([72b8cb6](https://github.com/vitejs/vite/commit/72b8cb6)), closes [#7005](https://github.com/vitejs/vite/issues/7005) -* fix(server): base middleware redirect with search and hash (#6574) ([a516e85](https://github.com/vitejs/vite/commit/a516e85)), closes [#6574](https://github.com/vitejs/vite/issues/6574) -* fix(server): ensure consistency for url to file mapping in importAnalysis and static middleware (#65 ([b214115](https://github.com/vitejs/vite/commit/b214115)), closes [#6518](https://github.com/vitejs/vite/issues/6518) -* fix(ssr): bypass missing resolve error in SSR (#7164) ([a4927c5](https://github.com/vitejs/vite/commit/a4927c5)), closes [#7164](https://github.com/vitejs/vite/issues/7164) - - -### Features - -* feat(worker): Add sourcemap support for worker bundles (#5417) ([465b6b9](https://github.com/vitejs/vite/commit/465b6b9)), closes [#5417](https://github.com/vitejs/vite/issues/5417) -* feat(type): support typing for custom events (#7476) ([50a8765](https://github.com/vitejs/vite/commit/50a8765)), closes [#7476](https://github.com/vitejs/vite/issues/7476) -* refactor(types): share hot context type (#7475) ([64ddff0](https://github.com/vitejs/vite/commit/64ddff0)), closes [#7475](https://github.com/vitejs/vite/issues/7475) -* feat: support importing css with ?raw (#5796) ([fedb106](https://github.com/vitejs/vite/commit/fedb106)), closes [#5796](https://github.com/vitejs/vite/issues/5796) -* feat(css): css.devSourcemap option (#7471) ([57f14cb](https://github.com/vitejs/vite/commit/57f14cb)), closes [#7471](https://github.com/vitejs/vite/issues/7471) -* feat(dev): expose APIs for client-server communication (#7437) ([e29ea8e](https://github.com/vitejs/vite/commit/e29ea8e)), closes [#7437](https://github.com/vitejs/vite/issues/7437) -* feat: hide optimized deps found during scan phase logs (#7419) ([f4934e8](https://github.com/vitejs/vite/commit/f4934e8)), closes [#7419](https://github.com/vitejs/vite/issues/7419) -* feat: non-blocking scanning of dependencies (#7379) ([676f545](https://github.com/vitejs/vite/commit/676f545)), closes [#7379](https://github.com/vitejs/vite/issues/7379) -* feat: css sourcemap support during dev (#7173) ([38a655f](https://github.com/vitejs/vite/commit/38a655f)), closes [#7173](https://github.com/vitejs/vite/issues/7173) -* feat: expose ssrRewriteStacktrace (#7091) ([d4ae45d](https://github.com/vitejs/vite/commit/d4ae45d)), closes [#7091](https://github.com/vitejs/vite/issues/7091) -* feat: add `importedCss` and `importedAssets` to RenderedChunk type (#6629) ([8d0fc90](https://github.com/vitejs/vite/commit/8d0fc90)), closes [#6629](https://github.com/vitejs/vite/issues/6629) -* feat: non-blocking pre bundling of dependencies (#6758) ([24bb3e4](https://github.com/vitejs/vite/commit/24bb3e4)), closes [#6758](https://github.com/vitejs/vite/issues/6758) -* feat: optimize custom extensions (#6801) ([c11af23](https://github.com/vitejs/vite/commit/c11af23)), closes [#6801](https://github.com/vitejs/vite/issues/6801) -* feat: show all prebundle deps when debug (#6726) ([e626055](https://github.com/vitejs/vite/commit/e626055)), closes [#6726](https://github.com/vitejs/vite/issues/6726) -* feat(glob): import.meta.glob support alias path (#6526) ([86882ad](https://github.com/vitejs/vite/commit/86882ad)), closes [#6526](https://github.com/vitejs/vite/issues/6526) -* feat(perf): tsconfck perf improvement (#7055) ([993ea39](https://github.com/vitejs/vite/commit/993ea39)), closes [#7055](https://github.com/vitejs/vite/issues/7055) -* feat(worker): bundle worker emit asset file (#6599) ([0ade335](https://github.com/vitejs/vite/commit/0ade335)), closes [#6599](https://github.com/vitejs/vite/issues/6599) -* refactor: avoid splitting vendor chunk by default (#6534) ([849e845](https://github.com/vitejs/vite/commit/849e845)), closes [#6534](https://github.com/vitejs/vite/issues/6534) - - -### Beta Changelogs - - -#### [2.9.0-beta.11](https://github.com/vitejs/vite/compare/v2.9.0-beta.10...v2.9.0-beta.11) (2022-03-29) - -See [2.9.0-beta.11 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.11/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.10](https://github.com/vitejs/vite/compare/v2.9.0-beta.9...v2.9.0-beta.10) (2022-03-28) - -See [2.9.0-beta.10 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.10/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.9](https://github.com/vitejs/vite/compare/v2.9.0-beta.8...v2.9.0-beta.9) (2022-03-26) - -See [2.9.0-beta.9 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.9/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.8](https://github.com/vitejs/vite/compare/v2.9.0-beta.7...v2.9.0-beta.8) (2022-03-24) - -See [2.9.0-beta.8 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.8/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.7](https://github.com/vitejs/vite/compare/v2.9.0-beta.6...v2.9.0-beta.7) (2022-03-23) - -See [2.9.0-beta.7 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.7/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.6](https://github.com/vitejs/vite/compare/v2.9.0-beta.5...v2.9.0-beta.6) (2022-03-22) - -See [2.9.0-beta.6 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.6/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.5](https://github.com/vitejs/vite/compare/v2.9.0-beta.4...v2.9.0-beta.5) (2022-03-22) - -See [2.9.0-beta.5 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.5/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.4](https://github.com/vitejs/vite/compare/v2.9.0-beta.3...v2.9.0-beta.4) (2022-03-19) - -See [2.9.0-beta.4 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.4/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.3](https://github.com/vitejs/vite/compare/v2.9.0-beta.2...v2.9.0-beta.3) (2022-03-16) - -See [2.9.0-beta.3 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.3/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.2](https://github.com/vitejs/vite/compare/v2.9.0-beta.1...v2.9.0-beta.2) (2022-03-14) - -See [2.9.0-beta.2 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.2/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.1](https://github.com/vitejs/vite/compare/v2.9.0-beta.0...v2.9.0-beta.1) (2022-03-14) - -See [2.9.0-beta.1 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.1/packages/vite/CHANGELOG.md) - - -#### [2.9.0-beta.0](https://github.com/vitejs/vite/compare/v2.8.6...v2.9.0-beta.0) (2022-03-09) - -See [2.9.0-beta.0 changelog](https://github.com/vitejs/vite/blob/v2.9.0-beta.0/packages/vite/CHANGELOG.md) - - - -## [2.8.6](https://github.com/vitejs/vite/compare/v2.8.5...v2.8.6) (2022-03-01) - - -### Bug Fixes - -* revert [#7052](https://github.com/vitejs/vite/issues/7052), hmr style tag no support in html ([#7136](https://github.com/vitejs/vite/issues/7136)) ([5c116ec](https://github.com/vitejs/vite/commit/5c116ecde0ad43409334853457d68481a22e19d4)) -* throw Error when can't preload CSS ([#7108](https://github.com/vitejs/vite/issues/7108)) ([d9f8edb](https://github.com/vitejs/vite/commit/d9f8edbd5b243f60212cc4bb9271c01b7e3fdd76)) - - - -## [2.8.5](https://github.com/vitejs/vite/compare/v2.8.4...v2.8.5) (2022-02-28) - - -### Bug Fixes - -* ?html-proxy with trailing = added by some servers ([#7093](https://github.com/vitejs/vite/issues/7093)) ([5818ac9](https://github.com/vitejs/vite/commit/5818ac927861783ea2b05450761fed30f40e7399)) -* allow optional trailing comma in asset `import.meta.url` ([#6983](https://github.com/vitejs/vite/issues/6983)) ([2debb9f](https://github.com/vitejs/vite/commit/2debb9f4cbb6003e7d24444cf049b45582d82ff1)) -* cannot reassign process.env.NODE_ENV in ssr ([#6989](https://github.com/vitejs/vite/issues/6989)) ([983feb2](https://github.com/vitejs/vite/commit/983feb2cdc5180dc46c3f5fc5b99baaa8d6b7078)) -* **config:** Warn about terserOptions in more cases ([#7101](https://github.com/vitejs/vite/issues/7101)) ([79428ad](https://github.com/vitejs/vite/commit/79428ad5b849455e14f95d1b439ae296ba231221)) -* don't override user config ([#7034](https://github.com/vitejs/vite/issues/7034)) ([8fd8f6e](https://github.com/vitejs/vite/commit/8fd8f6e0e501c9e46bc3e179c900d31fa5cafce1)) -* fileToBuiltUrl got undefined when file type is `.ico` ([#7106](https://github.com/vitejs/vite/issues/7106)) ([7a1a552](https://github.com/vitejs/vite/commit/7a1a552ba710bad5714ef0fbb16fdd29ac58ae0b)) -* **glob:** css imports injecting a ?used query to export the css string ([#6949](https://github.com/vitejs/vite/issues/6949)) ([0b3f4ef](https://github.com/vitejs/vite/commit/0b3f4ef231004e072bf1b037f63bc4ef169d938e)) -* **hmr:** hmr style tag no support in html ([#7052](https://github.com/vitejs/vite/issues/7052)) ([a9dfce3](https://github.com/vitejs/vite/commit/a9dfce38108e796e0de0e3b43ced34d60883cef3)) -* image -> image/x-icon ([#7120](https://github.com/vitejs/vite/issues/7120)) ([065ceca](https://github.com/vitejs/vite/commit/065ceca5c7b8f1843e220fbdbe8a0da4cbb78935)) -* import with query with exports field ([#7073](https://github.com/vitejs/vite/issues/7073)) ([88ded7f](https://github.com/vitejs/vite/commit/88ded7f16382d83603511de043785e01ee1e4a3a)) -* prebundle dep with colon ([#7006](https://github.com/vitejs/vite/issues/7006)) ([2136f2b](https://github.com/vitejs/vite/commit/2136f2bb960d1a81ac3b3ca04d9ebd89dba44661)) -* recycle serve to avoid preventing Node self-exit ([#6895](https://github.com/vitejs/vite/issues/6895)) ([d6b2c53](https://github.com/vitejs/vite/commit/d6b2c53c6f0bcc4ffa9cdf48375f9bbcc98f79f7)) -* resolve [@import](https://github.com/import) of the proxied