From 364aae13f0826169e8b1c5db41ac6b5bb2756958 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Fri, 29 Jul 2022 17:33:13 +0800 Subject: [PATCH 01/36] feat(ssr): debug failed node resolve (#9432) --- packages/vite/src/node/ssr/ssrExternal.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/vite/src/node/ssr/ssrExternal.ts b/packages/vite/src/node/ssr/ssrExternal.ts index 04b60afdd263eb..d73d17c1d7c3c8 100644 --- a/packages/vite/src/node/ssr/ssrExternal.ts +++ b/packages/vite/src/node/ssr/ssrExternal.ts @@ -145,6 +145,9 @@ export function createIsConfiguredAsSsrExternal( !!configuredAsExternal )?.external } catch (e) { + debug( + `Failed to node resolve "${id}". Skipping externalizing it by default.` + ) // may be an invalid import that's resolved by a plugin return false } From 46264ffaa1ae011e2a087f1a23ea99832ffd9020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Sat, 30 Jul 2022 23:51:02 +0900 Subject: [PATCH 02/36] docs: ESM is always strict mode (#9454) --- docs/guide/troubleshooting.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/guide/troubleshooting.md b/docs/guide/troubleshooting.md index c7e558f0f08192..1021d9e41f04b1 100644 --- a/docs/guide/troubleshooting.md +++ b/docs/guide/troubleshooting.md @@ -65,3 +65,17 @@ If you are running Vite with WSL2, Vite cannot watch file changes in some condit If HMR is not handled by Vite or a plugin, a full reload will happen. Also if there is a dependency loop, a full reload will happen. To solve this, try removing the loop. + +## Others + +### Syntax Error / Type Error happens + +Vite cannot handle and does not support code that only runs on non-strict mode (sloppy mode). This is because Vite uses ESM and it is always [strict mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode) inside ESM. + +For example, you might see these errors. + +> [ERROR] With statements cannot be used with the "esm" output format due to strict mode + +> TypeError: Cannot create property 'foo' on boolean 'false' + +If these code are used inside dependecies, you could use [`patch-package`](https://github.com/ds300/patch-package) (or [`yarn patch`](https://yarnpkg.com/cli/patch) or [`pnpm patch`](https://pnpm.io/cli/patch)) for an escape hatch. From 4032cef70426117a2300ceef57646d41f18b9cfd Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 31 Jul 2022 14:50:44 +0800 Subject: [PATCH 03/36] docs: update team description --- docs/_data/team.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_data/team.js b/docs/_data/team.js index 43b56ad5bf481b..fd386685af6bc1 100644 --- a/docs/_data/team.js +++ b/docs/_data/team.js @@ -5,7 +5,7 @@ export const core = [ title: 'Creator', org: 'Vue.js', orgLink: 'https://vuejs.org/', - desc: 'Husband, father of two, independent open source developer.', + desc: 'Independent open source developer, creator of Vue.js and Vite.', links: [ { icon: 'github', link: 'https://github.com/yyx990803' }, { icon: 'twitter', link: 'https://twitter.com/youyuxi' } From ba23711de1285562994f191d1ee3a7d7d1fd697f Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 31 Jul 2022 15:08:26 +0800 Subject: [PATCH 04/36] docs: test netlify ignore using shell script --- netlify.toml | 2 +- scripts/docs-check.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 scripts/docs-check.sh diff --git a/netlify.toml b/netlify.toml index f618d808000f61..10bc161218e1cc 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,4 +4,4 @@ [build] publish = "docs/.vitepress/dist" command = "npx pnpm i --store=node_modules/.pnpm-store --frozen-lockfile && npm run ci-docs" - ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF docs package.json pnpm-lock.yaml netlify.toml" \ No newline at end of file + ignore = "./scripts/docs-check.sh" diff --git a/scripts/docs-check.sh b/scripts/docs-check.sh new file mode 100644 index 00000000000000..891eb7da1b7185 --- /dev/null +++ b/scripts/docs-check.sh @@ -0,0 +1 @@ +git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF docs package.json pnpm-lock.yaml netlify.toml scripts/docs-check.sh From 5169c511127ab0a2de89b71941459c70dbe09dd9 Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sun, 31 Jul 2022 20:52:44 +0800 Subject: [PATCH 05/36] docs: fix incomplete comment (#9466) --- packages/vite/src/node/preview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/preview.ts b/packages/vite/src/node/preview.ts index 7b2cc4bb1729b4..c223c4debd3baf 100644 --- a/packages/vite/src/node/preview.ts +++ b/packages/vite/src/node/preview.ts @@ -48,7 +48,7 @@ export interface PreviewServer { */ httpServer: http.Server /** - * The resolved urls Vite prints on the + * The resolved urls Vite prints on the CLI * * @experimental */ From 0309a6195dc567ff9c8cf2c3b76b61cb1ce0fa24 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Sun, 31 Jul 2022 21:11:53 +0800 Subject: [PATCH 06/36] chore: fix docs-check.sh lint (#9467) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index db125589ab225f..e9a3576f9b4462 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "preinstall": "npx only-allow pnpm", "postinstall": "simple-git-hooks", "format": "prettier --write --cache .", - "lint": "eslint --cache packages/*/{src,types,__tests__}/** playground/**/__tests__/**/*.ts scripts/**", + "lint": "eslint --cache packages/*/{src,types,__tests__}/** playground/**/__tests__/**/*.ts scripts/**/*.ts", "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", From 9c5846502379be7ae16e525d62009d36aef402bd Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 1 Aug 2022 09:19:07 +0800 Subject: [PATCH 07/36] docs: give docs-check.sh execution permission --- scripts/docs-check.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 scripts/docs-check.sh diff --git a/scripts/docs-check.sh b/scripts/docs-check.sh old mode 100644 new mode 100755 From d764aa0047d5d5f930978ed74cb14a7bbd4e4583 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 1 Aug 2022 09:25:48 +0800 Subject: [PATCH 08/36] docs: echo info in ignore script --- scripts/docs-check.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/docs-check.sh b/scripts/docs-check.sh index 891eb7da1b7185..470164e73a35fc 100755 --- a/scripts/docs-check.sh +++ b/scripts/docs-check.sh @@ -1 +1,6 @@ +echo "prev commit: $CACHED_COMMIT_REF" +echo "current commit: $COMMIT_REF" git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF docs package.json pnpm-lock.yaml netlify.toml scripts/docs-check.sh +status=$? +echo "diff exit code: $status" +exit $status From 77e258fe2caa17f3101932f4de7fb724268d5600 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 1 Aug 2022 12:19:48 +0800 Subject: [PATCH 09/36] chore(deps): update dependency @types/mime to v3 (#9479) --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e9a3576f9b4462..968d1ecd503156 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@types/hash-sum": "^1.0.0", "@types/less": "^3.0.3", "@types/micromatch": "^4.0.2", - "@types/mime": "^2.0.3", + "@types/mime": "^3.0.0", "@types/minimist": "^1.2.2", "@types/node": "^17.0.42", "@types/prompts": "^2.4.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4c9742082efe58..20e4e0479fdabf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,7 +24,7 @@ importers: '@types/hash-sum': ^1.0.0 '@types/less': ^3.0.3 '@types/micromatch': ^4.0.2 - '@types/mime': ^2.0.3 + '@types/mime': ^3.0.0 '@types/minimist': ^1.2.2 '@types/node': ^17.0.42 '@types/prompts': ^2.4.0 @@ -82,7 +82,7 @@ importers: '@types/hash-sum': 1.0.0 '@types/less': 3.0.3 '@types/micromatch': 4.0.2 - '@types/mime': 2.0.3 + '@types/mime': 3.0.0 '@types/minimist': 1.2.2 '@types/node': 17.0.42 '@types/prompts': 2.4.0 @@ -2702,8 +2702,8 @@ packages: '@types/braces': 3.0.1 dev: true - /@types/mime/2.0.3: - resolution: {integrity: sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q==} + /@types/mime/3.0.0: + resolution: {integrity: sha512-fccbsHKqFDXClBZTDLA43zl0+TbxyIwyzIzwwhvoJvhNjOErCdeX2xJbURimv2EbSVUGav001PaCJg4mZxMl4w==} dev: true /@types/minimist/1.2.2: From c5e789512a78f903c11f3029186fc90b124e48b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Mon, 1 Aug 2022 14:06:03 +0900 Subject: [PATCH 10/36] fix: ignore tsconfig target when bundling config (#9457) --- packages/vite/src/node/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index 55374774da6ecc..c3baff8e4f7661 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -932,6 +932,7 @@ async function bundleConfigFile( entryPoints: [fileName], outfile: 'out.js', write: false, + target: ['node14.18', 'node16'], platform: 'node', bundle: true, format: isESM ? 'esm' : 'cjs', From 22084a64264e84bcbb97eb9ccaa2d7672f0bee71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Mon, 1 Aug 2022 14:17:26 +0900 Subject: [PATCH 11/36] fix(config): use file url for import path (fixes #9471) (#9473) --- packages/vite/src/node/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index c3baff8e4f7661..c2a60cb674b5be 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -976,7 +976,7 @@ async function bundleConfigFile( if (path.relative(idPkgDir, fileName).startsWith('..')) { return { // normalize actual import after bundled as a single vite config - path: idFsPath, + path: pathToFileURL(idFsPath).href, external: true } } From f4addcfc24b1668b906411ff8f8fc394ce5c3643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Mon, 1 Aug 2022 14:39:26 +0900 Subject: [PATCH 12/36] chore: tidy up eslint config (#9468) --- .eslintrc.cjs | 62 +++++++++++-------- package.json | 4 +- .../template-lit-ts/src/my-element.ts | 2 +- .../template-lit/src/my-element.js | 2 +- packages/vite/rollup.config.ts | 4 +- playground/css/main.js | 1 + playground/css/postcss.config.js | 2 +- playground/json/server.js | 3 +- playground/resolve/browser-field/relative.js | 1 + playground/tailwind/__test__/tailwind.spec.ts | 10 +-- playground/tailwind/src/router.ts | 2 +- playground/wasm/worker.js | 1 - playground/worker/my-worker.ts | 2 +- pnpm-lock.yaml | 8 +-- 14 files changed, 58 insertions(+), 46 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index ba8d46f3c26f97..904873b07043cc 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -42,18 +42,6 @@ module.exports = defineConfig({ tryExtensions: ['.ts', '.js', '.jsx', '.tsx', '.d.ts'] } ], - 'node/no-restricted-require': [ - 'error', - Object.keys(require('./packages/vite/package.json').devDependencies).map( - (d) => ({ - name: d, - message: - `devDependencies can only be imported using ESM syntax so ` + - `that they are included in the rollup bundle. If you are trying to ` + - `lazy load a dependency, use (await import('dependency')).default instead.` - }) - ) - ], 'node/no-extraneous-import': [ 'error', { @@ -107,6 +95,30 @@ module.exports = defineConfig({ ] }, overrides: [ + { + files: ['packages/**'], + excludedFiles: '**/__tests__/**', + rules: { + 'no-restricted-globals': ['error', 'require', '__dirname', '__filename'] + } + }, + { + files: 'packages/vite/**/*.*', + rules: { + 'node/no-restricted-require': [ + 'error', + Object.keys( + require('./packages/vite/package.json').devDependencies + ).map((d) => ({ + name: d, + message: + `devDependencies can only be imported using ESM syntax so ` + + `that they are included in the rollup bundle. If you are trying to ` + + `lazy load a dependency, use (await import('dependency')).default instead.` + })) + ] + } + }, { files: ['packages/vite/src/node/**'], rules: { @@ -120,9 +132,11 @@ module.exports = defineConfig({ } }, { - files: ['packages/plugin-*/**/*'], + files: ['packages/create-vite/template-*/**', '**/build.config.ts'], rules: { - 'no-restricted-globals': ['error', 'require', '__dirname', '__filename'] + 'no-undef': 'off', + 'node/no-missing-import': 'off', + '@typescript-eslint/explicit-module-boundary-types': 'off' } }, { @@ -132,7 +146,6 @@ module.exports = defineConfig({ 'node/no-extraneous-require': 'off', 'node/no-missing-import': 'off', 'node/no-missing-require': 'off', - 'no-undef': 'off', // engine field doesn't exist in playgrounds 'node/no-unsupported-features/es-builtins': [ 'error', @@ -145,17 +158,22 @@ module.exports = defineConfig({ { version: '^14.18.0 || >=16.0.0' } - ] + ], + '@typescript-eslint/explicit-module-boundary-types': 'off' } }, { - files: ['packages/create-vite/template-*/**', '**/build.config.ts'], + files: ['playground/**'], + excludedFiles: '**/__tests__/**', rules: { - 'node/no-missing-import': 'off' + 'no-undef': 'off', + 'no-empty': 'off', + 'no-constant-condition': 'off', + '@typescript-eslint/no-empty-function': 'off' } }, { - files: ['playground/**', '*.js'], + files: ['*.js'], rules: { '@typescript-eslint/explicit-module-boundary-types': 'off' } @@ -165,12 +183,6 @@ module.exports = defineConfig({ rules: { '@typescript-eslint/triple-slash-reference': 'off' } - }, - { - files: 'packages/vite/**/*.*', - rules: { - 'no-restricted-globals': ['error', 'require', '__dirname', '__filename'] - } } ], reportUnusedDisableDirectives: true diff --git a/package.json b/package.json index 968d1ecd503156..40c1e68a6e06e3 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "preinstall": "npx only-allow pnpm", "postinstall": "simple-git-hooks", "format": "prettier --write --cache .", - "lint": "eslint --cache packages/*/{src,types,__tests__}/** playground/**/__tests__/**/*.ts scripts/**/*.ts", + "lint": "eslint --cache .", "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", @@ -65,7 +65,7 @@ "cross-env": "^7.0.3", "esbuild": "^0.14.47", "eslint": "^8.20.0", - "eslint-define-config": "^1.5.1", + "eslint-define-config": "^1.6.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-node": "^11.1.0", "execa": "^6.1.0", diff --git a/packages/create-vite/template-lit-ts/src/my-element.ts b/packages/create-vite/template-lit-ts/src/my-element.ts index da680eb1d0f19c..dde5d8cd50de89 100644 --- a/packages/create-vite/template-lit-ts/src/my-element.ts +++ b/packages/create-vite/template-lit-ts/src/my-element.ts @@ -1,4 +1,4 @@ -import { html, css, LitElement } from 'lit' +import { LitElement, css, html } from 'lit' import { customElement, property } from 'lit/decorators.js' import litLogo from './assets/lit.svg' diff --git a/packages/create-vite/template-lit/src/my-element.js b/packages/create-vite/template-lit/src/my-element.js index 411701454b89de..7c0c0426e49116 100644 --- a/packages/create-vite/template-lit/src/my-element.js +++ b/packages/create-vite/template-lit/src/my-element.js @@ -1,4 +1,4 @@ -import { html, css, LitElement } from 'lit' +import { LitElement, css, html } from 'lit' import litLogo from './assets/lit.svg' /** diff --git a/packages/vite/rollup.config.ts b/packages/vite/rollup.config.ts index a630c2a813198c..a271d4f3562906 100644 --- a/packages/vite/rollup.config.ts +++ b/packages/vite/rollup.config.ts @@ -11,7 +11,7 @@ import MagicString from 'magic-string' import colors from 'picocolors' import fg from 'fast-glob' import { sync as resolve } from 'resolve' -import type { Plugin } from 'rollup' +import type { Plugin, RollupOptions } from 'rollup' import { defineConfig } from 'rollup' import pkg from './package.json' @@ -185,7 +185,7 @@ function createCjsConfig(isProduction: boolean) { }) } -export default (commandLineArgs: any) => { +export default (commandLineArgs: any): RollupOptions[] => { const isDev = commandLineArgs.watch const isProduction = !isDev diff --git a/playground/css/main.js b/playground/css/main.js index 45e7730b868eb1..f767a3d9b9674d 100644 --- a/playground/css/main.js +++ b/playground/css/main.js @@ -47,6 +47,7 @@ text('.charset-css', charset) import './dep.css' import './glob-dep.css' +// eslint-disable-next-line import/order import { barModuleClasses } from 'css-js-dep' document .querySelector('.css-js-dep-module') diff --git a/playground/css/postcss.config.js b/playground/css/postcss.config.js index b30209bff42097..48d5dd23d5a8f1 100644 --- a/playground/css/postcss.config.js +++ b/playground/css/postcss.config.js @@ -3,8 +3,8 @@ module.exports = { } const fs = require('fs') -const glob = require('fast-glob') const path = require('path') +const glob = require('fast-glob') const { normalizePath } = require('vite') /** diff --git a/playground/json/server.js b/playground/json/server.js index b0c0dd18dc43ae..d78c7f6246d540 100644 --- a/playground/json/server.js +++ b/playground/json/server.js @@ -15,8 +15,7 @@ async function createServer( /** * @type {import('vite').ViteDevServer} */ - let vite - vite = await require('vite').createServer({ + const vite = await require('vite').createServer({ root, logLevel: isTest ? 'error' : 'info', server: { diff --git a/playground/resolve/browser-field/relative.js b/playground/resolve/browser-field/relative.js index bbf6a2c74a10b5..492be3e96738eb 100644 --- a/playground/resolve/browser-field/relative.js +++ b/playground/resolve/browser-field/relative.js @@ -1,3 +1,4 @@ +/* eslint-disable import/no-duplicates */ import ra from './no-ext' import rb from './no-ext.js' // no substitution import rc from './ext' diff --git a/playground/tailwind/__test__/tailwind.spec.ts b/playground/tailwind/__test__/tailwind.spec.ts index 4483aabf6f6597..d72680cc522f64 100644 --- a/playground/tailwind/__test__/tailwind.spec.ts +++ b/playground/tailwind/__test__/tailwind.spec.ts @@ -1,11 +1,11 @@ import { - isBuild, + browserLogs, editFile, - untilUpdated, - getColor, getBgColor, - browserLogs, - page + getColor, + isBuild, + page, + untilUpdated } from '~utils' test('should render', async () => { diff --git a/playground/tailwind/src/router.ts b/playground/tailwind/src/router.ts index cfcf2a29b637e2..2a8c3cd0dd966f 100644 --- a/playground/tailwind/src/router.ts +++ b/playground/tailwind/src/router.ts @@ -1,4 +1,4 @@ -import { createWebHistory, createRouter } from 'vue-router' +import { createRouter, createWebHistory } from 'vue-router' import Page from './views/Page.vue' const history = createWebHistory() diff --git a/playground/wasm/worker.js b/playground/wasm/worker.js index dbbc0640226406..7e7ee8c331f917 100644 --- a/playground/wasm/worker.js +++ b/playground/wasm/worker.js @@ -1,5 +1,4 @@ import init from './add.wasm?init' init().then(({ exports }) => { - // eslint-disable-next-line no-undef self.postMessage({ result: exports.add(1, 2) }) }) diff --git a/playground/worker/my-worker.ts b/playground/worker/my-worker.ts index 8c91d49d70ba5c..9a5203711d3375 100644 --- a/playground/worker/my-worker.ts +++ b/playground/worker/my-worker.ts @@ -1,6 +1,6 @@ +import { msg as msgFromDep } from 'dep-to-optimize' import { mode, msg } from './modules/workerImport' import { bundleWithPlugin } from './modules/test-plugin' -import { msg as msgFromDep } from 'dep-to-optimize' self.onmessage = (e) => { if (e.data === 'ping') { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 20e4e0479fdabf..401c275a44de8e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,7 +39,7 @@ importers: cross-env: ^7.0.3 esbuild: ^0.14.47 eslint: ^8.20.0 - eslint-define-config: ^1.5.1 + eslint-define-config: ^1.6.0 eslint-plugin-import: ^2.26.0 eslint-plugin-node: ^11.1.0 execa: ^6.1.0 @@ -97,7 +97,7 @@ importers: cross-env: 7.0.3 esbuild: 0.14.47 eslint: 8.20.0 - eslint-define-config: 1.5.1 + eslint-define-config: 1.6.0 eslint-plugin-import: 2.26.0_xconv27bia2733zao6ipggqv2i eslint-plugin-node: 11.1.0_eslint@8.20.0 execa: 6.1.0 @@ -4766,8 +4766,8 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - /eslint-define-config/1.5.1: - resolution: {integrity: sha512-6gxrmN7aKGffaO8dCtMMKyo3IxbWymMQ248p4lf8GbaFRcLsqOXHFdUhhM0Hcy1NudvnpwHcfbDf7Nh9pIm1TA==} + /eslint-define-config/1.6.0: + resolution: {integrity: sha512-3qulYnwDRGYQHXHGdXBSRcfpI7m37ilBoERzTUYI8fBUoK/46yfUVNkGwM9cF/aoBrGgIDcBSz/HyPQJTHI/+w==} engines: {node: '>= 14.6.0', npm: '>= 6.0.0', pnpm: '>= 7.0.0'} dev: true From cecc366614042e54744a1e3ef7aada0ca5f7c491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Mon, 1 Aug 2022 19:10:21 +0900 Subject: [PATCH 13/36] chore: remove unused deps (#9480) --- package.json | 5 ----- playground/package.json | 5 ++++- pnpm-lock.yaml | 30 +++++++++--------------------- 3 files changed, 13 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 40c1e68a6e06e3..4826123b8f2230 100644 --- a/package.json +++ b/package.json @@ -47,10 +47,8 @@ "@types/estree": "^1.0.0", "@types/etag": "^1.8.1", "@types/fs-extra": "^9.0.13", - "@types/hash-sum": "^1.0.0", "@types/less": "^3.0.3", "@types/micromatch": "^4.0.2", - "@types/mime": "^3.0.0", "@types/minimist": "^1.2.2", "@types/node": "^17.0.42", "@types/prompts": "^2.4.0", @@ -70,10 +68,8 @@ "eslint-plugin-node": "^11.1.0", "execa": "^6.1.0", "fs-extra": "^10.1.0", - "kill-port": "^1.6.1", "lint-staged": "^13.0.3", "minimist": "^1.2.6", - "node-fetch": "^3.2.9", "npm-run-all": "^4.1.5", "picocolors": "^1.0.0", "playwright-chromium": "^1.24.0", @@ -84,7 +80,6 @@ "rollup": "^2.75.6", "semver": "^7.3.7", "simple-git-hooks": "^2.8.0", - "sirv": "^2.0.2", "tslib": "^2.4.0", "tsx": "^3.8.0", "typescript": "^4.6.4", diff --git a/playground/package.json b/playground/package.json index 75b1d15d299319..fc420746346cd1 100644 --- a/playground/package.json +++ b/playground/package.json @@ -4,6 +4,9 @@ "version": "1.0.0", "devDependencies": { "convert-source-map": "^1.8.0", - "css-color-names": "^1.0.1" + "css-color-names": "^1.0.1", + "kill-port": "^1.6.1", + "node-fetch": "^3.2.10", + "sirv": "^2.0.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 401c275a44de8e..eb4b329bc518c2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,10 +21,8 @@ importers: '@types/estree': ^1.0.0 '@types/etag': ^1.8.1 '@types/fs-extra': ^9.0.13 - '@types/hash-sum': ^1.0.0 '@types/less': ^3.0.3 '@types/micromatch': ^4.0.2 - '@types/mime': ^3.0.0 '@types/minimist': ^1.2.2 '@types/node': ^17.0.42 '@types/prompts': ^2.4.0 @@ -44,10 +42,8 @@ importers: eslint-plugin-node: ^11.1.0 execa: ^6.1.0 fs-extra: ^10.1.0 - kill-port: ^1.6.1 lint-staged: ^13.0.3 minimist: ^1.2.6 - node-fetch: ^3.2.9 npm-run-all: ^4.1.5 picocolors: ^1.0.0 playwright-chromium: ^1.24.0 @@ -58,7 +54,6 @@ importers: rollup: ^2.75.6 semver: ^7.3.7 simple-git-hooks: ^2.8.0 - sirv: ^2.0.2 tslib: ^2.4.0 tsx: ^3.8.0 typescript: ^4.6.4 @@ -79,10 +74,8 @@ importers: '@types/estree': 1.0.0 '@types/etag': 1.8.1 '@types/fs-extra': 9.0.13 - '@types/hash-sum': 1.0.0 '@types/less': 3.0.3 '@types/micromatch': 4.0.2 - '@types/mime': 3.0.0 '@types/minimist': 1.2.2 '@types/node': 17.0.42 '@types/prompts': 2.4.0 @@ -102,10 +95,8 @@ importers: eslint-plugin-node: 11.1.0_eslint@8.20.0 execa: 6.1.0 fs-extra: 10.1.0 - kill-port: 1.6.1 lint-staged: 13.0.3 minimist: 1.2.6 - node-fetch: 3.2.9 npm-run-all: 4.1.5 picocolors: 1.0.0 playwright-chromium: 1.24.0 @@ -116,7 +107,6 @@ importers: rollup: 2.75.6 semver: 7.3.7 simple-git-hooks: 2.8.0 - sirv: 2.0.2 tslib: 2.4.0 tsx: 3.8.0 typescript: 4.6.4 @@ -337,9 +327,15 @@ importers: specifiers: convert-source-map: ^1.8.0 css-color-names: ^1.0.1 + kill-port: ^1.6.1 + node-fetch: ^3.2.10 + sirv: ^2.0.2 devDependencies: convert-source-map: 1.8.0 css-color-names: 1.0.1 + kill-port: 1.6.1 + node-fetch: 3.2.10 + sirv: 2.0.2 playground/alias: specifiers: @@ -2680,10 +2676,6 @@ packages: '@types/node': 17.0.42 dev: true - /@types/hash-sum/1.0.0: - resolution: {integrity: sha512-FdLBT93h3kcZ586Aee66HPCVJ6qvxVjBlDWNmxSGSbCZe9hTsjRKdSsl4y1T+3zfujxo9auykQMnFsfyHWD7wg==} - dev: true - /@types/json-schema/7.0.11: resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==} dev: true @@ -2702,10 +2694,6 @@ packages: '@types/braces': 3.0.1 dev: true - /@types/mime/3.0.0: - resolution: {integrity: sha512-fccbsHKqFDXClBZTDLA43zl0+TbxyIwyzIzwwhvoJvhNjOErCdeX2xJbURimv2EbSVUGav001PaCJg4mZxMl4w==} - dev: true - /@types/minimist/1.2.2: resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} dev: true @@ -5355,7 +5343,7 @@ packages: dev: true /get-them-args/1.3.2: - resolution: {integrity: sha1-dKILqKSr7OWuGZrQPyvMaP38m6U=} + resolution: {integrity: sha512-LRn8Jlk+DwZE4GTlDbT3Hikd1wSHgLMme/+7ddlqKd7ldwR6LjJgTVWzBnR01wnYGe4KgrXjg287RaI22UHmAw==} dev: true /get-tsconfig/4.1.0: @@ -6554,8 +6542,8 @@ packages: whatwg-url: 5.0.0 dev: false - /node-fetch/3.2.9: - resolution: {integrity: sha512-/2lI+DBecVvVm9tDhjziTVjo2wmTsSxSk58saUYP0P/fRJ3xxtfMDY24+CKTkfm0Dlhyn3CSXNL0SoRiCZ8Rzg==} + /node-fetch/3.2.10: + resolution: {integrity: sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: data-uri-to-buffer: 4.0.0 From c530d168309557c7a254128364f07f7b4f017e14 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 1 Aug 2022 21:48:58 +0800 Subject: [PATCH 14/36] chore(deps): update all non-major dependencies (#9478) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 18 +- .../create-vite/template-lit-ts/package.json | 2 +- .../create-vite/template-lit/package.json | 2 +- .../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 | 2 +- .../create-vite/template-svelte/package.json | 2 +- .../template-vanilla-ts/package.json | 2 +- .../create-vite/template-vanilla/package.json | 2 +- .../create-vite/template-vue-ts/package.json | 4 +- .../create-vite/template-vue/package.json | 2 +- packages/plugin-legacy/package.json | 2 +- packages/vite/package.json | 2 +- playground/backend-integration/package.json | 2 +- playground/preload/package.json | 2 +- playground/react-emotion/package.json | 4 +- playground/ssr-vue/package.json | 2 +- playground/tailwind-sourcemap/package.json | 2 +- playground/tailwind/package.json | 6 +- pnpm-lock.yaml | 513 ++++++++++-------- 22 files changed, 325 insertions(+), 254 deletions(-) diff --git a/package.json b/package.json index 4826123b8f2230..d5e656455da117 100644 --- a/package.json +++ b/package.json @@ -37,8 +37,8 @@ }, "devDependencies": { "@babel/types": "^7.18.9", - "@microsoft/api-extractor": "^7.28.6", - "@rollup/plugin-typescript": "^8.3.3", + "@microsoft/api-extractor": "^7.28.7", + "@rollup/plugin-typescript": "^8.3.4", "@types/babel__core": "^7.1.19", "@types/babel__standalone": "^7.1.4", "@types/convert-source-map": "^1.5.2", @@ -57,12 +57,12 @@ "@types/semver": "^7.3.10", "@types/stylus": "^0.48.38", "@types/ws": "^8.5.3", - "@typescript-eslint/eslint-plugin": "^5.30.7", - "@typescript-eslint/parser": "^5.30.7", + "@typescript-eslint/eslint-plugin": "^5.31.0", + "@typescript-eslint/parser": "^5.31.0", "conventional-changelog-cli": "^2.2.2", "cross-env": "^7.0.3", "esbuild": "^0.14.47", - "eslint": "^8.20.0", + "eslint": "^8.21.0", "eslint-define-config": "^1.6.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-node": "^11.1.0", @@ -72,8 +72,8 @@ "minimist": "^1.2.6", "npm-run-all": "^4.1.5", "picocolors": "^1.0.0", - "playwright-chromium": "^1.24.0", - "pnpm": "^7.6.0", + "playwright-chromium": "^1.24.2", + "pnpm": "^7.8.0", "prettier": "2.7.1", "prompts": "^2.4.2", "rimraf": "^3.0.2", @@ -86,7 +86,7 @@ "unbuild": "^0.7.6", "vite": "workspace:*", "vitepress": "^1.0.0-alpha.4", - "vitest": "^0.19.0", + "vitest": "^0.20.2", "vue": "^3.2.37" }, "simple-git-hooks": { @@ -107,7 +107,7 @@ "eslint --cache --fix" ] }, - "packageManager": "pnpm@7.6.0", + "packageManager": "pnpm@7.8.0", "pnpm": { "overrides": { "vite": "workspace:*", diff --git a/packages/create-vite/template-lit-ts/package.json b/packages/create-vite/template-lit-ts/package.json index ad26e218ecde13..729be0dd364b97 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.2" + "vite": "^3.0.4" } } diff --git a/packages/create-vite/template-lit/package.json b/packages/create-vite/template-lit/package.json index 125f1a4c00f527..12780ad0d630e1 100644 --- a/packages/create-vite/template-lit/package.json +++ b/packages/create-vite/template-lit/package.json @@ -18,6 +18,6 @@ "lit": "^2.2.8" }, "devDependencies": { - "vite": "^3.0.2" + "vite": "^3.0.4" } } diff --git a/packages/create-vite/template-preact-ts/package.json b/packages/create-vite/template-preact-ts/package.json index 08cc2ee8862a30..736219910d9c1e 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.2" + "vite": "^3.0.4" } } diff --git a/packages/create-vite/template-preact/package.json b/packages/create-vite/template-preact/package.json index 305161e05cd1de..43d5b2d1b8c6bc 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.2" + "vite": "^3.0.4" } } diff --git a/packages/create-vite/template-react-ts/package.json b/packages/create-vite/template-react-ts/package.json index 5f5431e58c7150..8d421e08a5619a 100644 --- a/packages/create-vite/template-react-ts/package.json +++ b/packages/create-vite/template-react-ts/package.json @@ -17,6 +17,6 @@ "@types/react-dom": "^18.0.6", "@vitejs/plugin-react": "^2.0.0", "typescript": "^4.6.4", - "vite": "^3.0.2" + "vite": "^3.0.4" } } diff --git a/packages/create-vite/template-react/package.json b/packages/create-vite/template-react/package.json index 06f85bc71db5e5..bcdf162cbc9b9b 100644 --- a/packages/create-vite/template-react/package.json +++ b/packages/create-vite/template-react/package.json @@ -16,6 +16,6 @@ "@types/react": "^18.0.15", "@types/react-dom": "^18.0.6", "@vitejs/plugin-react": "^2.0.0", - "vite": "^3.0.2" + "vite": "^3.0.4" } } diff --git a/packages/create-vite/template-svelte-ts/package.json b/packages/create-vite/template-svelte-ts/package.json index cdb7ed7c39f0ae..14243db0d2324a 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.2" + "vite": "^3.0.4" } } diff --git a/packages/create-vite/template-svelte/package.json b/packages/create-vite/template-svelte/package.json index 3e401fc3cd673d..df1cab80439178 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.1", "svelte": "^3.49.0", - "vite": "^3.0.2" + "vite": "^3.0.4" } } diff --git a/packages/create-vite/template-vanilla-ts/package.json b/packages/create-vite/template-vanilla-ts/package.json index 89881abdc58079..285215effd5ba9 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.2" + "vite": "^3.0.4" } } diff --git a/packages/create-vite/template-vanilla/package.json b/packages/create-vite/template-vanilla/package.json index e3053d7fe79533..6007b392afb44a 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.2" + "vite": "^3.0.4" } } diff --git a/packages/create-vite/template-vue-ts/package.json b/packages/create-vite/template-vue-ts/package.json index 35526e650e6bc3..ec71916a963033 100644 --- a/packages/create-vite/template-vue-ts/package.json +++ b/packages/create-vite/template-vue-ts/package.json @@ -14,7 +14,7 @@ "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", "typescript": "^4.6.4", - "vite": "^3.0.2", - "vue-tsc": "^0.39.0" + "vite": "^3.0.4", + "vue-tsc": "^0.39.4" } } diff --git a/packages/create-vite/template-vue/package.json b/packages/create-vite/template-vue/package.json index 5bf8423ad99da6..5fef1df56df96e 100644 --- a/packages/create-vite/template-vue/package.json +++ b/packages/create-vite/template-vue/package.json @@ -13,6 +13,6 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", - "vite": "^3.0.2" + "vite": "^3.0.4" } } diff --git a/packages/plugin-legacy/package.json b/packages/plugin-legacy/package.json index 6d416fe5e96474..145a79e5574e86 100644 --- a/packages/plugin-legacy/package.json +++ b/packages/plugin-legacy/package.json @@ -36,7 +36,7 @@ "homepage": "https://github.com/vitejs/vite/tree/main/packages/plugin-legacy#readme", "dependencies": { "@babel/standalone": "^7.18.9", - "core-js": "^3.24.0", + "core-js": "^3.24.1", "magic-string": "^0.26.2", "regenerator-runtime": "^0.13.9", "systemjs": "^6.12.1" diff --git a/packages/vite/package.json b/packages/vite/package.json index 4306f77257915c..199b53d81ce30a 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -76,7 +76,7 @@ "@rollup/plugin-dynamic-import-vars": "^1.4.3", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "13.3.0", - "@rollup/plugin-typescript": "^8.3.3", + "@rollup/plugin-typescript": "^8.3.4", "@rollup/pluginutils": "^4.2.1", "@vue/compiler-dom": "^3.2.37", "acorn": "^8.8.0", diff --git a/playground/backend-integration/package.json b/playground/backend-integration/package.json index ff6b79bd924158..cc4a5f4aad5df7 100644 --- a/playground/backend-integration/package.json +++ b/playground/backend-integration/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "sass": "^1.54.0", - "tailwindcss": "^3.1.6", + "tailwindcss": "^3.1.7", "fast-glob": "^3.2.11" } } diff --git a/playground/preload/package.json b/playground/preload/package.json index a42f414575cd22..39c4f9893978ef 100644 --- a/playground/preload/package.json +++ b/playground/preload/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "vue": "^3.2.37", - "vue-router": "^4.1.2" + "vue-router": "^4.1.3" }, "devDependencies": { "@vitejs/plugin-vue": "workspace:*", diff --git a/playground/react-emotion/package.json b/playground/react-emotion/package.json index c9b77a7374df8d..b0a91b34f83cf4 100644 --- a/playground/react-emotion/package.json +++ b/playground/react-emotion/package.json @@ -9,14 +9,14 @@ "preview": "vite preview" }, "dependencies": { - "@emotion/react": "^11.9.3", + "@emotion/react": "^11.10.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-switch": "^7.0.0" }, "devDependencies": { "@babel/plugin-proposal-pipeline-operator": "^7.18.9", - "@emotion/babel-plugin": "^11.9.2", + "@emotion/babel-plugin": "^11.10.0", "@vitejs/plugin-react": "workspace:*" }, "babel": { diff --git a/playground/ssr-vue/package.json b/playground/ssr-vue/package.json index 6565324fc37fe5..260e02f0fc5ff1 100644 --- a/playground/ssr-vue/package.json +++ b/playground/ssr-vue/package.json @@ -17,7 +17,7 @@ "dependencies": { "example-external-component": "file:example-external-component", "vue": "^3.2.37", - "vue-router": "^4.1.2", + "vue-router": "^4.1.3", "vuex": "^4.0.2" }, "devDependencies": { diff --git a/playground/tailwind-sourcemap/package.json b/playground/tailwind-sourcemap/package.json index 747bd8acecd76d..648b657482e5d5 100644 --- a/playground/tailwind-sourcemap/package.json +++ b/playground/tailwind-sourcemap/package.json @@ -9,6 +9,6 @@ "preview": "vite preview" }, "dependencies": { - "tailwindcss": "^3.1.6" + "tailwindcss": "^3.1.7" } } diff --git a/playground/tailwind/package.json b/playground/tailwind/package.json index 42b6c098e5e106..b3d50a6df45515 100644 --- a/playground/tailwind/package.json +++ b/playground/tailwind/package.json @@ -9,10 +9,10 @@ "preview": "vite preview" }, "dependencies": { - "autoprefixer": "^10.4.7", - "tailwindcss": "^3.1.6", + "autoprefixer": "^10.4.8", + "tailwindcss": "^3.1.7", "vue": "^3.2.37", - "vue-router": "^4.1.2" + "vue-router": "^4.1.3" }, "devDependencies": { "@vitejs/plugin-vue": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eb4b329bc518c2..3b00d19680be01 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,8 +11,8 @@ importers: .: specifiers: '@babel/types': ^7.18.9 - '@microsoft/api-extractor': ^7.28.6 - '@rollup/plugin-typescript': ^8.3.3 + '@microsoft/api-extractor': ^7.28.7 + '@rollup/plugin-typescript': ^8.3.4 '@types/babel__core': ^7.1.19 '@types/babel__standalone': ^7.1.4 '@types/convert-source-map': ^1.5.2 @@ -31,12 +31,12 @@ importers: '@types/semver': ^7.3.10 '@types/stylus': ^0.48.38 '@types/ws': ^8.5.3 - '@typescript-eslint/eslint-plugin': ^5.30.7 - '@typescript-eslint/parser': ^5.30.7 + '@typescript-eslint/eslint-plugin': ^5.31.0 + '@typescript-eslint/parser': ^5.31.0 conventional-changelog-cli: ^2.2.2 cross-env: ^7.0.3 esbuild: ^0.14.47 - eslint: ^8.20.0 + eslint: ^8.21.0 eslint-define-config: ^1.6.0 eslint-plugin-import: ^2.26.0 eslint-plugin-node: ^11.1.0 @@ -46,8 +46,8 @@ importers: minimist: ^1.2.6 npm-run-all: ^4.1.5 picocolors: ^1.0.0 - playwright-chromium: ^1.24.0 - pnpm: ^7.6.0 + playwright-chromium: ^1.24.2 + pnpm: ^7.8.0 prettier: 2.7.1 prompts: ^2.4.2 rimraf: ^3.0.2 @@ -60,12 +60,12 @@ importers: unbuild: ^0.7.6 vite: workspace:* vitepress: ^1.0.0-alpha.4 - vitest: ^0.19.0 + vitest: ^0.20.2 vue: ^3.2.37 devDependencies: '@babel/types': 7.18.9 - '@microsoft/api-extractor': 7.28.6 - '@rollup/plugin-typescript': 8.3.3_uct5nfewsakxkk4livyn3qaf3e + '@microsoft/api-extractor': 7.28.7 + '@rollup/plugin-typescript': 8.3.4_uct5nfewsakxkk4livyn3qaf3e '@types/babel__core': 7.1.19 '@types/babel__standalone': 7.1.4 '@types/convert-source-map': 1.5.2 @@ -84,23 +84,23 @@ importers: '@types/semver': 7.3.10 '@types/stylus': 0.48.38 '@types/ws': 8.5.3 - '@typescript-eslint/eslint-plugin': 5.30.7_cedektzxz37523qbpytbckztui - '@typescript-eslint/parser': 5.30.7_sxmbcirybhoxa24uzkr344oiiy + '@typescript-eslint/eslint-plugin': 5.31.0_47ooyv4whyi5jcher5bzfc7xvi + '@typescript-eslint/parser': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im conventional-changelog-cli: 2.2.2 cross-env: 7.0.3 esbuild: 0.14.47 - eslint: 8.20.0 + eslint: 8.21.0 eslint-define-config: 1.6.0 - eslint-plugin-import: 2.26.0_xconv27bia2733zao6ipggqv2i - eslint-plugin-node: 11.1.0_eslint@8.20.0 + eslint-plugin-import: 2.26.0_eygs4xj346vriqwkjbwjuyviaa + eslint-plugin-node: 11.1.0_eslint@8.21.0 execa: 6.1.0 fs-extra: 10.1.0 lint-staged: 13.0.3 minimist: 1.2.6 npm-run-all: 4.1.5 picocolors: 1.0.0 - playwright-chromium: 1.24.0 - pnpm: 7.6.0 + playwright-chromium: 1.24.2 + pnpm: 7.8.0 prettier: 2.7.1 prompts: 2.4.2 rimraf: 3.0.2 @@ -113,7 +113,7 @@ importers: unbuild: 0.7.6 vite: link:packages/vite vitepress: 1.0.0-alpha.4 - vitest: 0.19.0 + vitest: 0.20.2 vue: 3.2.37 packages/create-vite: @@ -130,14 +130,14 @@ importers: specifiers: '@babel/core': ^7.18.9 '@babel/standalone': ^7.18.9 - core-js: ^3.24.0 + core-js: ^3.24.1 magic-string: ^0.26.2 regenerator-runtime: ^0.13.9 systemjs: ^6.12.1 vite: workspace:* dependencies: '@babel/standalone': 7.18.9 - core-js: 3.24.0 + core-js: 3.24.1 magic-string: 0.26.2 regenerator-runtime: 0.13.9 systemjs: 6.12.1 @@ -212,7 +212,7 @@ importers: '@rollup/plugin-dynamic-import-vars': ^1.4.3 '@rollup/plugin-json': ^4.1.0 '@rollup/plugin-node-resolve': 13.3.0 - '@rollup/plugin-typescript': ^8.3.3 + '@rollup/plugin-typescript': ^8.3.4 '@rollup/pluginutils': ^4.2.1 '@vue/compiler-dom': ^3.2.37 acorn: ^8.8.0 @@ -278,7 +278,7 @@ importers: '@rollup/plugin-dynamic-import-vars': 1.4.3_rollup@2.75.6 '@rollup/plugin-json': 4.1.0_rollup@2.75.6 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.75.6 - '@rollup/plugin-typescript': 8.3.3_rollup@2.75.6+tslib@2.4.0 + '@rollup/plugin-typescript': 8.3.4_rollup@2.75.6+tslib@2.4.0 '@rollup/pluginutils': 4.2.1 '@vue/compiler-dom': 3.2.37 acorn: 8.8.0 @@ -360,11 +360,11 @@ importers: specifiers: fast-glob: ^3.2.11 sass: ^1.54.0 - tailwindcss: ^3.1.6 + tailwindcss: ^3.1.7 devDependencies: fast-glob: 3.2.11 sass: 1.54.0 - tailwindcss: 3.1.6 + tailwindcss: 3.1.7 playground/build-old: specifiers: {} @@ -751,10 +751,10 @@ importers: dep-including-a: file:./dep-including-a terser: ^5.14.2 vue: ^3.2.37 - vue-router: ^4.1.2 + vue-router: ^4.1.3 dependencies: vue: 3.2.37 - vue-router: 4.1.2_vue@3.2.37 + vue-router: 4.1.3_vue@3.2.37 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue dep-a: file:playground/preload/dep-a @@ -806,20 +806,20 @@ importers: playground/react-emotion: specifiers: '@babel/plugin-proposal-pipeline-operator': ^7.18.9 - '@emotion/babel-plugin': ^11.9.2 - '@emotion/react': ^11.9.3 + '@emotion/babel-plugin': ^11.10.0 + '@emotion/react': ^11.10.0 '@vitejs/plugin-react': workspace:* react: ^18.2.0 react-dom: ^18.2.0 react-switch: ^7.0.0 dependencies: - '@emotion/react': 11.9.3_react@18.2.0 + '@emotion/react': 11.10.0_react@18.2.0 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 react-switch: 7.0.0_biqbaboplfbrettd7655fr4n2y devDependencies: '@babel/plugin-proposal-pipeline-operator': 7.18.9 - '@emotion/babel-plugin': 11.9.2 + '@emotion/babel-plugin': 11.10.0 '@vitejs/plugin-react': link:../../packages/plugin-react playground/react-sourcemap: @@ -1066,12 +1066,12 @@ importers: express: ^4.18.1 serve-static: ^1.15.0 vue: ^3.2.37 - vue-router: ^4.1.2 + vue-router: ^4.1.3 vuex: ^4.0.2 dependencies: example-external-component: file:playground/ssr-vue/example-external-component vue: 3.2.37 - vue-router: 4.1.2_vue@3.2.37 + vue-router: 4.1.3_vue@3.2.37 vuex: 4.0.2_vue@3.2.37 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue @@ -1102,25 +1102,25 @@ importers: playground/tailwind: specifiers: '@vitejs/plugin-vue': workspace:* - autoprefixer: ^10.4.7 - tailwindcss: ^3.1.6 + autoprefixer: ^10.4.8 + tailwindcss: ^3.1.7 ts-node: ^10.9.1 vue: ^3.2.37 - vue-router: ^4.1.2 + vue-router: ^4.1.3 dependencies: - autoprefixer: 10.4.7 - tailwindcss: 3.1.6_ts-node@10.9.1 + autoprefixer: 10.4.8 + tailwindcss: 3.1.7_ts-node@10.9.1 vue: 3.2.37 - vue-router: 4.1.2_vue@3.2.37 + vue-router: 4.1.3_vue@3.2.37 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue ts-node: 10.9.1 playground/tailwind-sourcemap: specifiers: - tailwindcss: ^3.1.6 + tailwindcss: ^3.1.7 dependencies: - tailwindcss: 3.1.6 + tailwindcss: 3.1.7 playground/tsconfig-json: specifiers: {} @@ -1541,7 +1541,7 @@ packages: resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.7 + '@babel/types': 7.18.9 /@babel/helper-module-transforms/7.18.0: resolution: {integrity: sha512-kclUYSUBIjlvnzN2++K9f2qzYKFgjmnmjwL4zlmU5f8ZtzgWe8s0rUPSTGy2HmK4P8T52MQsS+HTQAgZd3dMEA==} @@ -1589,11 +1589,11 @@ packages: /@babel/helper-plugin-utils/7.18.6: resolution: {integrity: sha512-gvZnm1YAAxh13eJdkb9EWHBnF3eAub3XTLCZEehHT2kWxiKVRL64+ae5Y6Ivne0mVHmMYKT+xWgZO+gQhuLUBg==} engines: {node: '>=6.9.0'} + dev: false /@babel/helper-plugin-utils/7.18.9: resolution: {integrity: sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==} engines: {node: '>=6.9.0'} - dev: true /@babel/helper-replace-supers/7.18.6: resolution: {integrity: sha512-fTf7zoXnUGl9gF25fXCWE26t7Tvtyn6H4hkLSYhATwJvw2uYxd3aoXplMSe0g9XbwK7bmxNes7+FGO0rB/xC0g==} @@ -1729,23 +1729,23 @@ packages: '@babel/helper-plugin-utils': 7.16.7 dev: false - /@babel/plugin-syntax-jsx/7.16.7: + /@babel/plugin-syntax-jsx/7.16.7_@babel+core@7.18.9: resolution: {integrity: sha512-Esxmk7YjA8QysKeT3VhTXvF6y77f/a91SIs4pWb4H2eWGQkCKFgQaG6hdoEVZtGsrAcb2K5BW66XsOErD4WU3Q==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: + '@babel/core': 7.18.9 '@babel/helper-plugin-utils': 7.18.6 + dev: false - /@babel/plugin-syntax-jsx/7.16.7_@babel+core@7.18.9: - resolution: {integrity: sha512-Esxmk7YjA8QysKeT3VhTXvF6y77f/a91SIs4pWb4H2eWGQkCKFgQaG6hdoEVZtGsrAcb2K5BW66XsOErD4WU3Q==} + /@babel/plugin-syntax-jsx/7.18.6: + resolution: {integrity: sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 - dev: false + '@babel/helper-plugin-utils': 7.18.9 /@babel/plugin-syntax-jsx/7.18.6_@babel+core@7.18.9: resolution: {integrity: sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==} @@ -1754,7 +1754,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/helper-plugin-utils': 7.18.9 dev: false /@babel/plugin-syntax-pipeline-operator/7.18.6: @@ -1834,12 +1834,6 @@ packages: - supports-color dev: false - /@babel/runtime/7.17.9: - resolution: {integrity: sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==} - engines: {node: '>=6.9.0'} - dependencies: - regenerator-runtime: 0.13.9 - /@babel/runtime/7.18.3: resolution: {integrity: sha512-38Y8f7YUhce/K7RMwTp7m0uCumpv9hZkitCbBClqQIow1qSbCvGkcegKOXpEWCQLfWmevgRiWokZ1GkpfhbZug==} engines: {node: '>=6.9.0'} @@ -1852,7 +1846,6 @@ packages: engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.13.9 - dev: false /@babel/standalone/7.18.9: resolution: {integrity: sha512-6E+p5azHMHcMkHzGFnA7Pqhtgfwx1cClwjMqomMHhdFupCLZDDpVQUctRGYE7p7nn7cXJZSI/L9en+tt30AP3w==} @@ -1965,6 +1958,7 @@ packages: dependencies: '@babel/helper-validator-identifier': 7.18.6 to-fast-properties: 2.0.0 + dev: false /@babel/types/7.18.8: resolution: {integrity: sha512-qwpdsmraq0aJ3osLJRApsc2ouSJCdnMeZwB0DhbtHAtRpZNZCdlbRnHIgcRKzdE1g0iOGg644fzjOBcdOz9cPw==} @@ -2017,42 +2011,42 @@ packages: algoliasearch: 4.13.1 dev: true - /@emotion/babel-plugin/11.9.2: - resolution: {integrity: sha512-Pr/7HGH6H6yKgnVFNEj2MVlreu3ADqftqjqwUvDy/OJzKFgxKeTQ+eeUf20FOTuHVkDON2iNa25rAXVYtWJCjw==} + /@emotion/babel-plugin/11.10.0: + resolution: {integrity: sha512-xVnpDAAbtxL1dsuSelU5A7BnY/lftws0wUexNJZTPsvX/1tM4GZJbclgODhvW4E+NH7E5VFcH0bBn30NvniPJA==} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/helper-module-imports': 7.16.7 - '@babel/plugin-syntax-jsx': 7.16.7 - '@babel/runtime': 7.17.9 - '@emotion/hash': 0.8.0 - '@emotion/memoize': 0.7.5 - '@emotion/serialize': 1.0.3 - babel-plugin-macros: 2.8.0 + '@babel/helper-module-imports': 7.18.6 + '@babel/plugin-syntax-jsx': 7.18.6 + '@babel/runtime': 7.18.9 + '@emotion/hash': 0.9.0 + '@emotion/memoize': 0.8.0 + '@emotion/serialize': 1.1.0 + babel-plugin-macros: 3.1.0 convert-source-map: 1.8.0 escape-string-regexp: 4.0.0 find-root: 1.1.0 source-map: 0.5.7 stylis: 4.0.13 - /@emotion/cache/11.9.3: - resolution: {integrity: sha512-0dgkI/JKlCXa+lEXviaMtGBL0ynpx4osh7rjOXE71q9bIF8G+XhJgvi+wDu0B0IdCVx37BffiwXlN9I3UuzFvg==} + /@emotion/cache/11.10.0: + resolution: {integrity: sha512-3FoUWnDbHWg/pXGCvL46jvpOSJP0xvRZLY8khUcUHGOBcp0S/MCIk+osp84/dby2Ctahw/Ev4KTHWkY3i0g39g==} dependencies: - '@emotion/memoize': 0.7.5 - '@emotion/sheet': 1.1.1 - '@emotion/utils': 1.1.0 - '@emotion/weak-memoize': 0.2.5 + '@emotion/memoize': 0.8.0 + '@emotion/sheet': 1.2.0 + '@emotion/utils': 1.2.0 + '@emotion/weak-memoize': 0.3.0 stylis: 4.0.13 dev: false - /@emotion/hash/0.8.0: - resolution: {integrity: sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==} + /@emotion/hash/0.9.0: + resolution: {integrity: sha512-14FtKiHhy2QoPIzdTcvh//8OyBlknNs2nXRwIhG904opCby3l+9Xaf/wuPvICBF0rc1ZCNBd3nKe9cd2mecVkQ==} - /@emotion/memoize/0.7.5: - resolution: {integrity: sha512-igX9a37DR2ZPGYtV6suZ6whr8pTFtyHL3K/oLUotxpSVO2ASaprmAe2Dkq7tBo7CRY7MMDrAa9nuQP9/YG8FxQ==} + /@emotion/memoize/0.8.0: + resolution: {integrity: sha512-G/YwXTkv7Den9mXDO7AhLWkE3q+I92B+VqAE+dYG4NGPaHZGvt3G8Q0p9vmE+sq7rTGphUbAvmQ9YpbfMQGGlA==} - /@emotion/react/11.9.3_react@18.2.0: - resolution: {integrity: sha512-g9Q1GcTOlzOEjqwuLF/Zd9LC+4FljjPjDfxSM7KmEakm+hsHXk+bYZ2q+/hTJzr0OUNkujo72pXLQvXj6H+GJQ==} + /@emotion/react/11.10.0_react@18.2.0: + resolution: {integrity: sha512-K6z9zlHxxBXwN8TcpwBKcEsBsOw4JWCCmR+BeeOWgqp8GIU1yA2Odd41bwdAAr0ssbQrbJbVnndvv7oiv1bZeQ==} peerDependencies: '@babel/core': ^7.0.0 '@types/react': '*' @@ -2063,47 +2057,37 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.18.3 - '@emotion/babel-plugin': 11.9.2 - '@emotion/cache': 11.9.3 - '@emotion/serialize': 1.0.4 - '@emotion/utils': 1.1.0 - '@emotion/weak-memoize': 0.2.5 + '@babel/runtime': 7.18.9 + '@emotion/babel-plugin': 11.10.0 + '@emotion/cache': 11.10.0 + '@emotion/serialize': 1.1.0 + '@emotion/utils': 1.2.0 + '@emotion/weak-memoize': 0.3.0 hoist-non-react-statics: 3.3.2 react: 18.2.0 dev: false - /@emotion/serialize/1.0.3: - resolution: {integrity: sha512-2mSSvgLfyV3q+iVh3YWgNlUc2a9ZlDU7DjuP5MjK3AXRR0dYigCrP99aeFtaB2L/hjfEZdSThn5dsZ0ufqbvsA==} - dependencies: - '@emotion/hash': 0.8.0 - '@emotion/memoize': 0.7.5 - '@emotion/unitless': 0.7.5 - '@emotion/utils': 1.1.0 - csstype: 3.0.11 - - /@emotion/serialize/1.0.4: - resolution: {integrity: sha512-1JHamSpH8PIfFwAMryO2bNka+y8+KA5yga5Ocf2d7ZEiJjb7xlLW7aknBGZqJLajuLOvJ+72vN+IBSwPlXD1Pg==} + /@emotion/serialize/1.1.0: + resolution: {integrity: sha512-F1ZZZW51T/fx+wKbVlwsfchr5q97iW8brAnXmsskz4d0hVB4O3M/SiA3SaeH06x02lSNzkkQv+n3AX3kCXKSFA==} dependencies: - '@emotion/hash': 0.8.0 - '@emotion/memoize': 0.7.5 - '@emotion/unitless': 0.7.5 - '@emotion/utils': 1.1.0 + '@emotion/hash': 0.9.0 + '@emotion/memoize': 0.8.0 + '@emotion/unitless': 0.8.0 + '@emotion/utils': 1.2.0 csstype: 3.0.11 - dev: false - /@emotion/sheet/1.1.1: - resolution: {integrity: sha512-J3YPccVRMiTZxYAY0IOq3kd+hUP8idY8Kz6B/Cyo+JuXq52Ek+zbPbSQUrVQp95aJ+lsAW7DPL1P2Z+U1jGkKA==} + /@emotion/sheet/1.2.0: + resolution: {integrity: sha512-OiTkRgpxescko+M51tZsMq7Puu/KP55wMT8BgpcXVG2hqXc0Vo0mfymJ/Uj24Hp0i083ji/o0aLddh08UEjq8w==} dev: false - /@emotion/unitless/0.7.5: - resolution: {integrity: sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==} + /@emotion/unitless/0.8.0: + resolution: {integrity: sha512-VINS5vEYAscRl2ZUDiT3uMPlrFQupiKgHz5AA4bCH1miKBg4qtwkim1qPmJj/4WG6TreYMY111rEFsjupcOKHw==} - /@emotion/utils/1.1.0: - resolution: {integrity: sha512-iRLa/Y4Rs5H/f2nimczYmS5kFJEbpiVvgN3XVfZ022IYhuNA1IRSHEizcof88LtCTXtl9S2Cxt32KgaXEu72JQ==} + /@emotion/utils/1.2.0: + resolution: {integrity: sha512-sn3WH53Kzpw8oQ5mgMmIzzyAaH2ZqFEbozVVBSYp538E06OSE6ytOp7pRAjNQR+Q/orwqdQYJSe2m3hCOeznkw==} - /@emotion/weak-memoize/0.2.5: - resolution: {integrity: sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==} + /@emotion/weak-memoize/0.3.0: + resolution: {integrity: sha512-AHPmaAx+RYfZz0eYu6Gviiagpmiyw98ySSlQvCUhVGDRtDFe4DBS0x1bSjdF3gqUDYOczB+yYvBTtEylYSdRhg==} dev: false /@esbuild-kit/cjs-loader/2.3.1: @@ -2133,7 +2117,7 @@ packages: dependencies: ajv: 6.12.6 debug: 4.3.4 - espree: 9.3.2 + espree: 9.3.3 globals: 13.15.0 ignore: 5.2.0 import-fresh: 3.3.0 @@ -2144,8 +2128,8 @@ packages: - supports-color dev: true - /@humanwhocodes/config-array/0.9.5: - resolution: {integrity: sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==} + /@humanwhocodes/config-array/0.10.4: + resolution: {integrity: sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==} engines: {node: '>=10.10.0'} dependencies: '@humanwhocodes/object-schema': 1.2.1 @@ -2155,6 +2139,10 @@ packages: - supports-color dev: true + /@humanwhocodes/gitignore-to-minimatch/1.0.2: + resolution: {integrity: sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==} + dev: true + /@humanwhocodes/object-schema/1.2.1: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: true @@ -2247,22 +2235,22 @@ packages: - supports-color dev: false - /@microsoft/api-extractor-model/7.22.1: - resolution: {integrity: sha512-3Bx6VC8F4ti8XlhaOCynCpwGvdXGwHD2dGBpo2xpJT9gEmPQvpAL3Ni+5gaEX0eQ27zGILVTUZDqZSRYskk/Rw==} + /@microsoft/api-extractor-model/7.22.2: + resolution: {integrity: sha512-fqb7std1sRfg7tvXkJwB7zrgIyzty7iIJXxpqA2/bEdct36jhkgIhKpgYr2yoi+Jhqbinjmhyf9tPKJ2E3TdwA==} dependencies: '@microsoft/tsdoc': 0.14.1 '@microsoft/tsdoc-config': 0.16.1 - '@rushstack/node-core-library': 3.49.0 + '@rushstack/node-core-library': 3.50.0 dev: true - /@microsoft/api-extractor/7.28.6: - resolution: {integrity: sha512-RNUokJTlBGD0ax/Jo8xLPWv4s6IboqrYrcabEEh6rFadO/tVPoV/R5YHtEeZ2q4ubvwhHTtX3sRm+p4fJo/3Sg==} + /@microsoft/api-extractor/7.28.7: + resolution: {integrity: sha512-hDVYSbqGsY4gioHMi/NkIarAJ2qoE5cKEZ6V5HqLcUl0+hNV0Auk/5VbBmU2UO2le6MFgO69EJsrfszwzC6QBA==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.22.1 + '@microsoft/api-extractor-model': 7.22.2 '@microsoft/tsdoc': 0.14.1 '@microsoft/tsdoc-config': 0.16.1 - '@rushstack/node-core-library': 3.49.0 + '@rushstack/node-core-library': 3.50.0 '@rushstack/rig-package': 0.3.13 '@rushstack/ts-command-line': 4.12.1 colors: 1.2.5 @@ -2468,8 +2456,8 @@ packages: rollup: 2.77.0 dev: true - /@rollup/plugin-typescript/8.3.3_rollup@2.75.6+tslib@2.4.0: - resolution: {integrity: sha512-55L9SyiYu3r/JtqdjhwcwaECXP7JeJ9h1Sg1VWRJKIutla2MdZQodTgcCNybXLMCnqpNLEhS2vGENww98L1npg==} + /@rollup/plugin-typescript/8.3.4_rollup@2.75.6+tslib@2.4.0: + resolution: {integrity: sha512-wt7JnYE9antX6BOXtsxGoeVSu4dZfw0dU3xykfOQ4hC3EddxRbVG/K0xiY1Wup7QOHJcjLYXWAn0Kx9Z1SBHHg==} engines: {node: '>=8.0.0'} peerDependencies: rollup: ^2.14.0 @@ -2485,8 +2473,8 @@ packages: tslib: 2.4.0 dev: true - /@rollup/plugin-typescript/8.3.3_uct5nfewsakxkk4livyn3qaf3e: - resolution: {integrity: sha512-55L9SyiYu3r/JtqdjhwcwaECXP7JeJ9h1Sg1VWRJKIutla2MdZQodTgcCNybXLMCnqpNLEhS2vGENww98L1npg==} + /@rollup/plugin-typescript/8.3.4_uct5nfewsakxkk4livyn3qaf3e: + resolution: {integrity: sha512-wt7JnYE9antX6BOXtsxGoeVSu4dZfw0dU3xykfOQ4hC3EddxRbVG/K0xiY1Wup7QOHJcjLYXWAn0Kx9Z1SBHHg==} engines: {node: '>=8.0.0'} peerDependencies: rollup: ^2.14.0 @@ -2535,8 +2523,8 @@ packages: picomatch: 2.3.1 dev: true - /@rushstack/node-core-library/3.49.0: - resolution: {integrity: sha512-yBJRzGgUNFwulVrwwBARhbGaHsxVMjsZ9JwU1uSBbqPYCdac+t2HYdzi4f4q/Zpgb0eNbwYj2yxgHYpJORNEaw==} + /@rushstack/node-core-library/3.50.0: + resolution: {integrity: sha512-FFEZhgu6iN1MVjpQWmLcz46pSa4r2Oe2JYPo7mtnl3uYfwDaSXUSZuRN3JQgKkXu10TBcffJ7AGKcIt/k+qE/Q==} dependencies: '@types/node': 12.20.24 colors: 1.2.5 @@ -2761,8 +2749,8 @@ packages: '@types/node': 17.0.42 dev: true - /@typescript-eslint/eslint-plugin/5.30.7_cedektzxz37523qbpytbckztui: - resolution: {integrity: sha512-l4L6Do+tfeM2OK0GJsU7TUcM/1oN/N25xHm3Jb4z3OiDU4Lj8dIuxX9LpVMS9riSXQs42D1ieX7b85/r16H9Fw==} + /@typescript-eslint/eslint-plugin/5.31.0_47ooyv4whyi5jcher5bzfc7xvi: + resolution: {integrity: sha512-VKW4JPHzG5yhYQrQ1AzXgVgX8ZAJEvCz0QI6mLRX4tf7rnFfh5D8SKm0Pq6w5PyNfAWJk6sv313+nEt3ohWMBQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: '@typescript-eslint/parser': ^5.0.0 @@ -2772,12 +2760,12 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.30.7_sxmbcirybhoxa24uzkr344oiiy - '@typescript-eslint/scope-manager': 5.30.7 - '@typescript-eslint/type-utils': 5.30.7_sxmbcirybhoxa24uzkr344oiiy - '@typescript-eslint/utils': 5.30.7_sxmbcirybhoxa24uzkr344oiiy + '@typescript-eslint/parser': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im + '@typescript-eslint/scope-manager': 5.31.0 + '@typescript-eslint/type-utils': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im + '@typescript-eslint/utils': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im debug: 4.3.4 - eslint: 8.20.0 + eslint: 8.21.0 functional-red-black-tree: 1.0.1 ignore: 5.2.0 regexpp: 3.2.0 @@ -2788,8 +2776,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser/5.30.7_sxmbcirybhoxa24uzkr344oiiy: - resolution: {integrity: sha512-Rg5xwznHWWSy7v2o0cdho6n+xLhK2gntImp0rJroVVFkcYFYQ8C8UJTSuTw/3CnExBmPjycjmUJkxVmjXsld6A==} + /@typescript-eslint/parser/5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im: + resolution: {integrity: sha512-UStjQiZ9OFTFReTrN+iGrC6O/ko9LVDhreEK5S3edmXgR396JGq7CoX2TWIptqt/ESzU2iRKXAHfSF2WJFcWHw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -2798,26 +2786,26 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 5.30.7 - '@typescript-eslint/types': 5.30.7 - '@typescript-eslint/typescript-estree': 5.30.7_typescript@4.6.4 + '@typescript-eslint/scope-manager': 5.31.0 + '@typescript-eslint/types': 5.31.0 + '@typescript-eslint/typescript-estree': 5.31.0_typescript@4.6.4 debug: 4.3.4 - eslint: 8.20.0 + eslint: 8.21.0 typescript: 4.6.4 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/scope-manager/5.30.7: - resolution: {integrity: sha512-7BM1bwvdF1UUvt+b9smhqdc/eniOnCKxQT/kj3oXtj3LqnTWCAM0qHRHfyzCzhEfWX0zrW7KqXXeE4DlchZBKw==} + /@typescript-eslint/scope-manager/5.31.0: + resolution: {integrity: sha512-8jfEzBYDBG88rcXFxajdVavGxb5/XKXyvWgvD8Qix3EEJLCFIdVloJw+r9ww0wbyNLOTYyBsR+4ALNGdlalLLg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.30.7 - '@typescript-eslint/visitor-keys': 5.30.7 + '@typescript-eslint/types': 5.31.0 + '@typescript-eslint/visitor-keys': 5.31.0 dev: true - /@typescript-eslint/type-utils/5.30.7_sxmbcirybhoxa24uzkr344oiiy: - resolution: {integrity: sha512-nD5qAE2aJX/YLyKMvOU5jvJyku4QN5XBVsoTynFrjQZaDgDV6i7QHFiYCx10wvn7hFvfuqIRNBtsgaLe0DbWhw==} + /@typescript-eslint/type-utils/5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im: + resolution: {integrity: sha512-7ZYqFbvEvYXFn9ax02GsPcEOmuWNg+14HIf4q+oUuLnMbpJ6eHAivCg7tZMVwzrIuzX3QCeAOqKoyMZCv5xe+w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -2826,22 +2814,22 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/utils': 5.30.7_sxmbcirybhoxa24uzkr344oiiy + '@typescript-eslint/utils': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im debug: 4.3.4 - eslint: 8.20.0 + eslint: 8.21.0 tsutils: 3.21.0_typescript@4.6.4 typescript: 4.6.4 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/types/5.30.7: - resolution: {integrity: sha512-ocVkETUs82+U+HowkovV6uxf1AnVRKCmDRNUBUUo46/5SQv1owC/EBFkiu4MOHeZqhKz2ktZ3kvJJ1uFqQ8QPg==} + /@typescript-eslint/types/5.31.0: + resolution: {integrity: sha512-/f/rMaEseux+I4wmR6mfpM2wvtNZb1p9hAV77hWfuKc3pmaANp5dLAZSiE3/8oXTYTt3uV9KW5yZKJsMievp6g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/typescript-estree/5.30.7_typescript@4.6.4: - resolution: {integrity: sha512-tNslqXI1ZdmXXrHER83TJ8OTYl4epUzJC0aj2i4DMDT4iU+UqLT3EJeGQvJ17BMbm31x5scSwo3hPM0nqQ1AEA==} + /@typescript-eslint/typescript-estree/5.31.0_typescript@4.6.4: + resolution: {integrity: sha512-3S625TMcARX71wBc2qubHaoUwMEn+l9TCsaIzYI/ET31Xm2c9YQ+zhGgpydjorwQO9pLfR/6peTzS/0G3J/hDw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: typescript: '*' @@ -2849,8 +2837,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.30.7 - '@typescript-eslint/visitor-keys': 5.30.7 + '@typescript-eslint/types': 5.31.0 + '@typescript-eslint/visitor-keys': 5.31.0 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 @@ -2861,29 +2849,29 @@ packages: - supports-color dev: true - /@typescript-eslint/utils/5.30.7_sxmbcirybhoxa24uzkr344oiiy: - resolution: {integrity: sha512-Z3pHdbFw+ftZiGUnm1GZhkJgVqsDL5CYW2yj+TB2mfXDFOMqtbzQi2dNJIyPqPbx9mv2kUxS1gU+r2gKlKi1rQ==} + /@typescript-eslint/utils/5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im: + resolution: {integrity: sha512-kcVPdQS6VIpVTQ7QnGNKMFtdJdvnStkqS5LeALr4rcwx11G6OWb2HB17NMPnlRHvaZP38hL9iK8DdE9Fne7NYg==} 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.30.7 - '@typescript-eslint/types': 5.30.7 - '@typescript-eslint/typescript-estree': 5.30.7_typescript@4.6.4 - eslint: 8.20.0 + '@typescript-eslint/scope-manager': 5.31.0 + '@typescript-eslint/types': 5.31.0 + '@typescript-eslint/typescript-estree': 5.31.0_typescript@4.6.4 + eslint: 8.21.0 eslint-scope: 5.1.1 - eslint-utils: 3.0.0_eslint@8.20.0 + eslint-utils: 3.0.0_eslint@8.21.0 transitivePeerDependencies: - supports-color - typescript dev: true - /@typescript-eslint/visitor-keys/5.30.7: - resolution: {integrity: sha512-KrRXf8nnjvcpxDFOKej4xkD7657+PClJs5cJVSG7NNoCNnjEdc46juNAQt7AyuWctuCgs6mVRc1xGctEqrjxWw==} + /@typescript-eslint/visitor-keys/5.31.0: + resolution: {integrity: sha512-ZK0jVxSjS4gnPirpVjXHz7mgdOsZUHzNYSfTw2yPa3agfbt9YfqaBiBZFSSxeBWnpWkzCxTfUpnzA3Vily/CSg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.30.7 + '@typescript-eslint/types': 5.31.0 eslint-visitor-keys: 3.3.0 dev: true @@ -3045,12 +3033,12 @@ packages: negotiator: 0.6.3 dev: true - /acorn-jsx/5.3.2_acorn@8.7.1: + /acorn-jsx/5.3.2_acorn@8.8.0: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.7.1 + acorn: 8.8.0 dev: true /acorn-node/1.8.2: @@ -3280,15 +3268,15 @@ packages: hasBin: true dev: true - /autoprefixer/10.4.7: - resolution: {integrity: sha512-ypHju4Y2Oav95SipEcCcI5J7CGPuvz8oat7sUtYj3ClK44bldfvtvcxK6IEK++7rqB7YchDGzweZIBG+SD0ZAA==} + /autoprefixer/10.4.8: + resolution: {integrity: sha512-75Jr6Q/XpTqEf6D2ltS5uMewJIx5irCU1oBYJrWjFenq/m12WRRrz6g15L1EIoYvPLXTbEry7rDOwrcYNj77xw==} engines: {node: ^10 || ^12 || >=14} hasBin: true peerDependencies: postcss: ^8.1.0 dependencies: - browserslist: 4.20.3 - caniuse-lite: 1.0.30001339 + browserslist: 4.21.3 + caniuse-lite: 1.0.30001373 fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 @@ -3304,12 +3292,13 @@ packages: - debug dev: false - /babel-plugin-macros/2.8.0: - resolution: {integrity: sha512-SEP5kJpfGYqYKpBrj5XU3ahw5p5GOHJ0U5ssOSQ/WBVdwkD2Dzlce95exQTs3jOVWPPKLBN2rlEWkCK7dSmLvg==} + /babel-plugin-macros/3.1.0: + resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==} + engines: {node: '>=10', npm: '>=6'} dependencies: - '@babel/runtime': 7.17.9 - cosmiconfig: 6.0.0 - resolve: 1.22.0 + '@babel/runtime': 7.18.9 + cosmiconfig: 7.0.1 + resolve: 1.22.1 /babel-walk/3.0.0-canary-5: resolution: {integrity: sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw==} @@ -3393,6 +3382,17 @@ packages: node-releases: 2.0.4 picocolors: 1.0.0 + /browserslist/4.21.3: + resolution: {integrity: sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + dependencies: + caniuse-lite: 1.0.30001373 + electron-to-chromium: 1.4.206 + node-releases: 2.0.6 + update-browserslist-db: 1.0.5_browserslist@4.21.3 + dev: false + /buffer-from/1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} dev: true @@ -3461,6 +3461,10 @@ packages: /caniuse-lite/1.0.30001339: resolution: {integrity: sha512-Es8PiVqCe+uXdms0Gu5xP5PF2bxLR7OBp3wUzUnuO7OHzhOfCyg3hdiGWVPVxhiuniOzng+hTc1u3fEQ0TlkSQ==} + /caniuse-lite/1.0.30001373: + resolution: {integrity: sha512-pJYArGHrPp3TUqQzFYRmP/lwJlj8RCbVe3Gd3eJQkAV8SAC6b19XS9BjMvRdvaS8RMkaTN8ZhoHP6S1y8zzwEQ==} + dev: false + /chai/4.3.6: resolution: {integrity: sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==} engines: {node: '>=4'} @@ -3923,8 +3927,8 @@ packages: is-what: 3.14.1 dev: true - /core-js/3.24.0: - resolution: {integrity: sha512-IeOyT8A6iK37Ep4kZDD423mpi6JfPRoPUdQwEWYiGolvn4o6j2diaRzNfDfpTdu3a5qMbrGUzKUpYpRY8jXCkQ==} + /core-js/3.24.1: + resolution: {integrity: sha512-0QTBSYSUZ6Gq21utGzkfITDylE8jWC9Ne1D2MrhvlsZBI1x39OdDIVbzSqtgMndIy6BlHxBXpMGqzZmnztg2rg==} requiresBuild: true dev: false @@ -3940,9 +3944,9 @@ packages: vary: 1.1.2 dev: true - /cosmiconfig/6.0.0: - resolution: {integrity: sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==} - engines: {node: '>=8'} + /cosmiconfig/7.0.1: + resolution: {integrity: sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==} + engines: {node: '>=10'} dependencies: '@types/parse-json': 4.0.0 import-fresh: 3.3.0 @@ -4235,6 +4239,10 @@ packages: /electron-to-chromium/1.4.137: resolution: {integrity: sha512-0Rcpald12O11BUogJagX3HsCN3FE83DSqWjgXoHo5a72KUKMSfI39XBgJpgNNxS9fuGzytaFjE06kZkiVFy2qA==} + /electron-to-chromium/1.4.206: + resolution: {integrity: sha512-h+Fadt1gIaQ06JaIiyqPsBjJ08fV5Q7md+V8bUvQW/9OvXfL2LRICTz2EcnnCP7QzrFTS6/27MRV6Bl9Yn97zA==} + dev: false + /emoji-regex/8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -4768,7 +4776,7 @@ packages: - supports-color dev: true - /eslint-module-utils/2.7.3_f7rggfnq2itgt2uu6gnhkpzzne: + /eslint-module-utils/2.7.3_vozeh3qpn3prlhg65r4uuu3jv4: resolution: {integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==} engines: {node: '>=4'} peerDependencies: @@ -4786,7 +4794,7 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 5.30.7_sxmbcirybhoxa24uzkr344oiiy + '@typescript-eslint/parser': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im debug: 3.2.7 eslint-import-resolver-node: 0.3.6 find-up: 2.1.0 @@ -4794,18 +4802,18 @@ packages: - supports-color dev: true - /eslint-plugin-es/3.0.1_eslint@8.20.0: + /eslint-plugin-es/3.0.1_eslint@8.21.0: resolution: {integrity: sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==} engines: {node: '>=8.10.0'} peerDependencies: eslint: '>=4.19.1' dependencies: - eslint: 8.20.0 + eslint: 8.21.0 eslint-utils: 2.1.0 regexpp: 3.2.0 dev: true - /eslint-plugin-import/2.26.0_xconv27bia2733zao6ipggqv2i: + /eslint-plugin-import/2.26.0_eygs4xj346vriqwkjbwjuyviaa: resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==} engines: {node: '>=4'} peerDependencies: @@ -4815,14 +4823,14 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 5.30.7_sxmbcirybhoxa24uzkr344oiiy + '@typescript-eslint/parser': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im array-includes: 3.1.5 array.prototype.flat: 1.3.0 debug: 2.6.9 doctrine: 2.1.0 - eslint: 8.20.0 + eslint: 8.21.0 eslint-import-resolver-node: 0.3.6 - eslint-module-utils: 2.7.3_f7rggfnq2itgt2uu6gnhkpzzne + eslint-module-utils: 2.7.3_vozeh3qpn3prlhg65r4uuu3jv4 has: 1.0.3 is-core-module: 2.9.0 is-glob: 4.0.3 @@ -4836,14 +4844,14 @@ packages: - supports-color dev: true - /eslint-plugin-node/11.1.0_eslint@8.20.0: + /eslint-plugin-node/11.1.0_eslint@8.21.0: resolution: {integrity: sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==} engines: {node: '>=8.10.0'} peerDependencies: eslint: '>=5.16.0' dependencies: - eslint: 8.20.0 - eslint-plugin-es: 3.0.1_eslint@8.20.0 + eslint: 8.21.0 + eslint-plugin-es: 3.0.1_eslint@8.21.0 eslint-utils: 2.1.0 ignore: 5.2.0 minimatch: 3.1.2 @@ -4874,13 +4882,13 @@ packages: eslint-visitor-keys: 1.3.0 dev: true - /eslint-utils/3.0.0_eslint@8.20.0: + /eslint-utils/3.0.0_eslint@8.21.0: resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} peerDependencies: eslint: '>=5' dependencies: - eslint: 8.20.0 + eslint: 8.21.0 eslint-visitor-keys: 2.1.0 dev: true @@ -4899,13 +4907,14 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint/8.20.0: - resolution: {integrity: sha512-d4ixhz5SKCa1D6SCPrivP7yYVi7nyD6A4vs6HIAul9ujBzcEmZVM3/0NN/yu5nKhmO1wjp5xQ46iRfmDGlOviA==} + /eslint/8.21.0: + resolution: {integrity: sha512-/XJ1+Qurf1T9G2M5IHrsjp+xrGT73RZf23xA1z5wB1ZzzEAWSZKvRwhWxTFp1rvkvCfwcvAUNAP31bhKTTGfDA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: '@eslint/eslintrc': 1.3.0 - '@humanwhocodes/config-array': 0.9.5 + '@humanwhocodes/config-array': 0.10.4 + '@humanwhocodes/gitignore-to-minimatch': 1.0.2 ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 @@ -4913,16 +4922,19 @@ packages: doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.1.1 - eslint-utils: 3.0.0_eslint@8.20.0 + eslint-utils: 3.0.0_eslint@8.21.0 eslint-visitor-keys: 3.3.0 - espree: 9.3.2 + espree: 9.3.3 esquery: 1.4.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 file-entry-cache: 6.0.1 + find-up: 5.0.0 functional-red-black-tree: 1.0.1 glob-parent: 6.0.2 globals: 13.15.0 + globby: 11.1.0 + grapheme-splitter: 1.0.4 ignore: 5.2.0 import-fresh: 3.3.0 imurmurhash: 0.1.4 @@ -4943,12 +4955,12 @@ packages: - supports-color dev: true - /espree/9.3.2: - resolution: {integrity: sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==} + /espree/9.3.3: + resolution: {integrity: sha512-ORs1Rt/uQTqUKjDdGCyrtYxbazf5umATSf/K4qxjmZHORR6HJk+2s/2Pqe+Kk49HHINC/xNIrGfgh8sZcll0ng==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.7.1 - acorn-jsx: 5.3.2_acorn@8.7.1 + acorn: 8.8.0 + acorn-jsx: 5.3.2_acorn@8.8.0 eslint-visitor-keys: 3.3.0 dev: true @@ -5162,6 +5174,14 @@ packages: path-exists: 4.0.0 dev: true + /find-up/5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + dev: true + /flat-cache/3.0.4: resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==} engines: {node: ^10.12.0 || >=12.0.0} @@ -5440,6 +5460,10 @@ packages: resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} dev: true + /grapheme-splitter/1.0.4: + resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} + dev: true + /handlebars/4.7.7: resolution: {integrity: sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==} engines: {node: '>=0.4.7'} @@ -5695,7 +5719,7 @@ packages: dev: true /is-arrayish/0.2.1: - resolution: {integrity: sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=} + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} /is-bigint/1.0.4: resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==} @@ -6048,6 +6072,11 @@ packages: /lilconfig/2.0.5: resolution: {integrity: sha512-xaYmXZtTHPAw5m+xLN8ab9C+3a8YmV3asNSPOATITbtwrfbwaLJj8h66H1WMIpALCkqsIzK3h7oQ+PdX+LQ9Eg==} engines: {node: '>=10'} + dev: true + + /lilconfig/2.0.6: + resolution: {integrity: sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==} + engines: {node: '>=10'} /lines-and-columns/1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} @@ -6129,6 +6158,13 @@ packages: p-locate: 4.1.0 dev: true + /locate-path/6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + dependencies: + p-locate: 5.0.0 + dev: true + /lodash-es/4.17.21: resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} dev: false @@ -6559,6 +6595,10 @@ packages: /node-releases/2.0.4: resolution: {integrity: sha512-gbMzqQtTtDz/00jQzZ21PQzdI9PyLYqUSvD0p3naOhX4odFji0ZxYdnVwPTxmSwkmxhcFImpozceidSG+AgoPQ==} + /node-releases/2.0.6: + resolution: {integrity: sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==} + dev: false + /nopt/5.0.0: resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==} engines: {node: '>=6'} @@ -6591,7 +6631,7 @@ packages: engines: {node: '>=0.10.0'} /normalize-range/0.1.2: - resolution: {integrity: sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=} + resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} engines: {node: '>=0.10.0'} dev: false @@ -6750,6 +6790,13 @@ packages: p-try: 2.2.0 dev: true + /p-limit/3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + dependencies: + yocto-queue: 0.1.0 + dev: true + /p-locate/2.0.0: resolution: {integrity: sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=} engines: {node: '>=4'} @@ -6764,6 +6811,13 @@ packages: p-limit: 2.3.0 dev: true + /p-locate/5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + dependencies: + p-limit: 3.1.0 + dev: true + /p-map/2.1.0: resolution: {integrity: sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==} engines: {node: '>=6'} @@ -6809,7 +6863,7 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.16.7 + '@babel/code-frame': 7.18.6 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -6936,23 +6990,23 @@ packages: pathe: 0.3.2 dev: true - /playwright-chromium/1.24.0: - resolution: {integrity: sha512-m8XhbyiD1AuKzEp/9sghtSWPPF8jKgOPwXzEvcuBWgGCfGRDY56pedEa8QmIonqgxU+GPX3TpK25gIeYjxwNww==} + /playwright-chromium/1.24.2: + resolution: {integrity: sha512-L9U/T7GC0dmuHH1xUdS9tOmpOy2Pg2VF/BwkhXCwNnRJ9P9Ah+N5k659cobXfSj8CjKOHPMNTCpgM4X6ZdiDbw==} engines: {node: '>=14'} hasBin: true requiresBuild: true dependencies: - playwright-core: 1.24.0 + playwright-core: 1.24.2 dev: true - /playwright-core/1.24.0: - resolution: {integrity: sha512-BkDWdVsoEEC8m2glQlfNu1EN2qvjBsLIg5bD0wjrfwv9zVHktIsp80yYFObAcWreLNYhfRP4PlXE04lr5R4DFQ==} + /playwright-core/1.24.2: + resolution: {integrity: sha512-zfAoDoPY/0sDLsgSgLZwWmSCevIg1ym7CppBwllguVBNiHeixZkc1AdMuYUPZC6AdEYc4CxWEyLMBTw2YcmRrA==} engines: {node: '>=14'} hasBin: true dev: true - /pnpm/7.6.0: - resolution: {integrity: sha512-pCFZ4OSM3M7JUHShnmk4Hlt9A8QDxLx+i+9kkK4g60YuYhhhD3oqBfWrHax0/XMDvr7GwK0fqFjA8iD8HlZ8Kw==} + /pnpm/7.8.0: + resolution: {integrity: sha512-jzb9/gto4nwuVA2itTRk0PJhuaZcA1NBRB298UzXhqKZQMjtHCS+KLzh7RWk5n3g+KnMg5FHr6Mwg1L62dBz1A==} engines: {node: '>=14.6'} hasBin: true dev: true @@ -6989,7 +7043,7 @@ packages: ts-node: optional: true dependencies: - lilconfig: 2.0.5 + lilconfig: 2.0.6 postcss: 8.4.14 ts-node: 10.9.1 yaml: 1.10.2 @@ -7007,7 +7061,7 @@ packages: ts-node: optional: true dependencies: - lilconfig: 2.0.5 + lilconfig: 2.0.6 postcss: 8.4.14 yaml: 1.10.2 @@ -7543,6 +7597,7 @@ packages: is-core-module: 2.9.0 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 + dev: true /resolve/1.22.1: resolution: {integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==} @@ -7887,7 +7942,7 @@ packages: dev: true /source-map/0.5.7: - resolution: {integrity: sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=} + resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==} engines: {node: '>=0.10.0'} /source-map/0.6.1: @@ -8133,8 +8188,8 @@ packages: resolution: {integrity: sha512-hqTN6kW+pN6/qro6G9OZ7ceDQOcYno020zBQKpZQLsJhYTDMCMNfXi/Y8duF5iW+4WWZr42ry0MMkcRGpbwG2A==} dev: false - /tailwindcss/3.1.6: - resolution: {integrity: sha512-7skAOY56erZAFQssT1xkpk+kWt2NrO45kORlxFPXUt3CiGsVPhH1smuH5XoDH6sGPXLyBv+zgCKA2HWBsgCytg==} + /tailwindcss/3.1.7: + resolution: {integrity: sha512-r7mgumZ3k0InfVPpGWcX8X/Ut4xBfv+1O/+C73ar/m01LxGVzWvPxF/w6xIUPEztrCoz7axfx0SMdh8FH8ZvRQ==} engines: {node: '>=12.13.0'} hasBin: true dependencies: @@ -8147,7 +8202,7 @@ packages: fast-glob: 3.2.11 glob-parent: 6.0.2 is-glob: 4.0.3 - lilconfig: 2.0.5 + lilconfig: 2.0.6 normalize-path: 3.0.0 object-hash: 3.0.0 picocolors: 1.0.0 @@ -8163,8 +8218,8 @@ packages: transitivePeerDependencies: - ts-node - /tailwindcss/3.1.6_ts-node@10.9.1: - resolution: {integrity: sha512-7skAOY56erZAFQssT1xkpk+kWt2NrO45kORlxFPXUt3CiGsVPhH1smuH5XoDH6sGPXLyBv+zgCKA2HWBsgCytg==} + /tailwindcss/3.1.7_ts-node@10.9.1: + resolution: {integrity: sha512-r7mgumZ3k0InfVPpGWcX8X/Ut4xBfv+1O/+C73ar/m01LxGVzWvPxF/w6xIUPEztrCoz7axfx0SMdh8FH8ZvRQ==} engines: {node: '>=12.13.0'} hasBin: true dependencies: @@ -8177,7 +8232,7 @@ packages: fast-glob: 3.2.11 glob-parent: 6.0.2 is-glob: 4.0.3 - lilconfig: 2.0.5 + lilconfig: 2.0.6 normalize-path: 3.0.0 object-hash: 3.0.0 picocolors: 1.0.0 @@ -8562,6 +8617,17 @@ packages: - supports-color dev: true + /update-browserslist-db/1.0.5_browserslist@4.21.3: + resolution: {integrity: sha512-dteFFpCyvuDdr9S/ff1ISkKt/9YZxKjI9WlRR99c180GaztJtRa/fn18FdxGVKVsnPY7/a/FDN68mcvUmP4U7Q==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + dependencies: + browserslist: 4.21.3 + escalade: 3.1.1 + picocolors: 1.0.0 + dev: false + /uri-js/4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: @@ -8638,8 +8704,8 @@ packages: - react-dom dev: true - /vitest/0.19.0: - resolution: {integrity: sha512-nU80Gm95tMchigHpAMukxv1LoWbBGgknX/1MqrXCOoJoJL7/wfq4h2aow61o2jwf5szQrahoNqBqaGb+fYdYrQ==} + /vitest/0.20.2: + resolution: {integrity: sha512-AFXTHrwG4d2OO6SAL8WP5ZkOwLtgeF4tlrHfXFqrHc+5chNegeR53pge0lv/C4316SqJ2DbYaUBH8vh3CdF+BQ==} engines: {node: '>=v14.16.0'} hasBin: true peerDependencies: @@ -8704,8 +8770,8 @@ packages: vue: 3.2.37 dev: true - /vue-router/4.1.2_vue@3.2.37: - resolution: {integrity: sha512-5BP1qXFncVRwgV/XnqzsKApdMjQPqWIpoUBdL1ynz8HyLxIX/UDAx7Ql2BjmA5CXT/p61JfZvkpiFWFpaqcfag==} + /vue-router/4.1.3_vue@3.2.37: + resolution: {integrity: sha512-XvK81bcYglKiayT7/vYAg/f36ExPC4t90R/HIpzrZ5x+17BOWptXLCrEPufGgZeuq68ww4ekSIMBZY1qdUdfjA==} peerDependencies: vue: ^3.2.0 dependencies: @@ -8911,6 +8977,11 @@ packages: resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} engines: {node: '>=6'} + /yocto-queue/0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + dev: true + /youch/2.2.2: resolution: {integrity: sha512-/FaCeG3GkuJwaMR34GHVg0l8jCbafZLHiFowSjqLlqhC6OMyf2tPJBu8UirF7/NI9X/R5ai4QfEKUCOxMAGxZQ==} dependencies: From 937cecc7d89194d8672ab62beb92827f45764c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Tue, 2 Aug 2022 14:58:53 +0900 Subject: [PATCH 15/36] fix: update dep types (fixes #9475) (#9489) --- packages/vite/types/commonjs.d.ts | 74 ++++++++++++++++++++++++----- packages/vite/types/connect.d.ts | 2 +- packages/vite/types/http-proxy.d.ts | 74 ++++++++++++++++------------- packages/vite/types/terser.d.ts | 43 +++++++++++++++++ 4 files changed, 146 insertions(+), 47 deletions(-) diff --git a/packages/vite/types/commonjs.d.ts b/packages/vite/types/commonjs.d.ts index 5891a7573112a5..01948156deb1cd 100644 --- a/packages/vite/types/commonjs.d.ts +++ b/packages/vite/types/commonjs.d.ts @@ -7,17 +7,17 @@ */ export interface RollupCommonJSOptions { /** - * A picomatch pattern, or array of patterns, which specifies the files in + * A minimatch pattern, or array of patterns, which specifies the files in * the build the plugin should operate on. By default, all files with - * extension `".cjs"` or those in `extensions` are included, but you can narrow - * this list by only including specific files. These files will be analyzed - * and transpiled if either the analysis does not find ES module specific - * statements or `transformMixedEsModules` is `true`. + * extension `".cjs"` or those in `extensions` are included, but you can + * narrow this list by only including specific files. These files will be + * analyzed and transpiled if either the analysis does not find ES module + * specific statements or `transformMixedEsModules` is `true`. * @default undefined */ include?: string | RegExp | readonly (string | RegExp)[] /** - * A picomatch pattern, or array of patterns, which specifies the files in + * A minimatch pattern, or array of patterns, which specifies the files in * the build the plugin should _ignore_. By default, all files with * extensions other than those in `extensions` or `".cjs"` are ignored, but you * can exclude additional files. See also the `include` option. @@ -37,7 +37,8 @@ export interface RollupCommonJSOptions { */ ignoreGlobal?: boolean /** - * If false, skips source map generation for CommonJS modules. This will improve performance. + * If false, skips source map generation for CommonJS modules. This will + * improve performance. * @default true */ sourceMap?: boolean @@ -65,6 +66,39 @@ export interface RollupCommonJSOptions { * @default false */ transformMixedEsModules?: boolean + /** + * By default, this plugin will try to hoist `require` statements as imports + * to the top of each file. While this works well for many code bases and + * allows for very efficient ESM output, it does not perfectly capture + * CommonJS semantics as the order of side effects like log statements may + * change. But it is especially problematic when there are circular `require` + * calls between CommonJS modules as those often rely on the lazy execution of + * nested `require` calls. + * + * Setting this option to `true` will wrap all CommonJS files in functions + * which are executed when they are required for the first time, preserving + * NodeJS semantics. Note that this can have an impact on the size and + * performance of the generated code. + * + * The default value of `"auto"` will only wrap CommonJS files when they are + * part of a CommonJS dependency cycle, e.g. an index file that is required by + * many of its dependencies. All other CommonJS files are hoisted. This is the + * recommended setting for most code bases. + * + * `false` will entirely prevent wrapping and hoist all files. This may still + * work depending on the nature of cyclic dependencies but will often cause + * problems. + * + * You can also provide a minimatch pattern, or array of patterns, to only + * specify a subset of files which should be wrapped in functions for proper + * `require` semantics. + * + * `"debug"` works like `"auto"` but after bundling, it will display a warning + * containing a list of ids that have been wrapped which can be used as + * minimatch pattern for fine-tuning. + * @default "auto" + */ + strictRequires?: boolean | string | RegExp | readonly (string | RegExp)[] /** * Sometimes you have to leave require statements unconverted. Pass an array * containing the IDs or a `id => boolean` function. @@ -75,14 +109,16 @@ export interface RollupCommonJSOptions { * In most cases, where `require` calls are inside a `try-catch` clause, * they should be left unconverted as it requires an optional dependency * that may or may not be installed beside the rolled up package. - * Due to the conversion of `require` to a static `import` - the call is hoisted - * to the top of the file, outside of the `try-catch` clause. + * Due to the conversion of `require` to a static `import` - the call is + * hoisted to the top of the file, outside of the `try-catch` clause. * * - `true`: All `require` calls inside a `try` will be left unconverted. - * - `false`: All `require` calls inside a `try` will be converted as if the `try-catch` clause is not there. + * - `false`: All `require` calls inside a `try` will be converted as if the + * `try-catch` clause is not there. * - `remove`: Remove all `require` calls from inside any `try` block. * - `string[]`: Pass an array containing the IDs to left unconverted. - * - `((id: string) => boolean|'remove')`: Pass a function that control individual IDs. + * - `((id: string) => boolean|'remove')`: Pass a function that control + * individual IDs. * * @default false */ @@ -165,12 +201,17 @@ export interface RollupCommonJSOptions { | 'preferred' | 'namespace' | ((id: string) => boolean | 'auto' | 'preferred' | 'namespace') + + /** + * @default "auto" + */ + defaultIsModuleExports?: boolean | 'auto' | ((id: string) => boolean | 'auto') /** * Some modules contain dynamic `require` calls, or require modules that * contain circular dependencies, which are not handled well by static * imports. Including those modules as `dynamicRequireTargets` will simulate a - * CommonJS (NodeJS-like) environment for them with support for dynamic and - * circular dependencies. + * CommonJS (NodeJS-like) environment for them with support for dynamic + * dependencies. It also enables `strictRequires` for those modules. * * Note: In extreme cases, this feature may result in some paths being * rendered as absolute in the final bundle. The plugin tries to avoid @@ -179,4 +220,11 @@ export interface RollupCommonJSOptions { * replacing strings like `"/Users/John/Desktop/foo-project/"` -\> `"/"`. */ dynamicRequireTargets?: string | ReadonlyArray + /** + * To avoid long paths when using the `dynamicRequireTargets` option, you can use this option to specify a directory + * that is a common parent for all files that use dynamic require statements. Using a directory higher up such as `/` + * may lead to unnecessarily long paths in the generated code and may expose directory names on your machine like your + * home directory name. By default it uses the current working directory. + */ + dynamicRequireRoot?: string } diff --git a/packages/vite/types/connect.d.ts b/packages/vite/types/connect.d.ts index 2fb97ebeb494ab..74c559b6a436f5 100644 --- a/packages/vite/types/connect.d.ts +++ b/packages/vite/types/connect.d.ts @@ -14,7 +14,7 @@ export namespace Connect { export type ServerHandle = HandleFunction | http.Server export class IncomingMessage extends http.IncomingMessage { - originalUrl?: http.IncomingMessage['url'] + originalUrl?: http.IncomingMessage['url'] | undefined } export type NextFunction = (err?: any) => void diff --git a/packages/vite/types/http-proxy.d.ts b/packages/vite/types/http-proxy.d.ts index 81b9226a4db669..5e2717eaa0fcbd 100644 --- a/packages/vite/types/http-proxy.d.ts +++ b/packages/vite/types/http-proxy.d.ts @@ -27,16 +27,16 @@ export namespace HttpProxy { export interface ProxyTargetDetailed { host: string port: number - protocol?: string - hostname?: string - socketPath?: string - key?: string - passphrase?: string - pfx?: Buffer | string - cert?: string - ca?: string - ciphers?: string - secureProtocol?: string + protocol?: string | undefined + hostname?: string | undefined + socketPath?: string | undefined + key?: string | undefined + passphrase?: string | undefined + pfx?: Buffer | string | undefined + cert?: string | undefined + ca?: string | undefined + ciphers?: string | undefined + secureProtocol?: string | undefined } export type ErrorCallback = ( @@ -189,54 +189,62 @@ export namespace HttpProxy { export interface ServerOptions { /** URL string to be parsed with the url module. */ - target?: ProxyTarget + target?: ProxyTarget | undefined /** URL string to be parsed with the url module. */ - forward?: ProxyTargetUrl + forward?: ProxyTargetUrl | undefined /** Object to be passed to http(s).request. */ agent?: any /** Object to be passed to https.createServer(). */ ssl?: any /** If you want to proxy websockets. */ - ws?: boolean + ws?: boolean | undefined /** Adds x- forward headers. */ - xfwd?: boolean + xfwd?: boolean | undefined /** Verify SSL certificate. */ - secure?: boolean + secure?: boolean | undefined /** Explicitly specify if we are proxying to another proxy. */ - toProxy?: boolean + toProxy?: boolean | undefined /** Specify whether you want to prepend the target's path to the proxy path. */ - prependPath?: boolean + prependPath?: boolean | undefined /** Specify whether you want to ignore the proxy path of the incoming request. */ - ignorePath?: boolean + ignorePath?: boolean | undefined /** Local interface string to bind for outgoing connections. */ - localAddress?: string + localAddress?: string | undefined /** Changes the origin of the host header to the target URL. */ - changeOrigin?: boolean + changeOrigin?: boolean | undefined /** specify whether you want to keep letter case of response header key */ - preserveHeaderKeyCase?: boolean + preserveHeaderKeyCase?: boolean | undefined /** Basic authentication i.e. 'user:password' to compute an Authorization header. */ - auth?: string + auth?: string | undefined /** Rewrites the location hostname on (301 / 302 / 307 / 308) redirects, Default: null. */ - hostRewrite?: string + hostRewrite?: string | undefined /** Rewrites the location host/ port on (301 / 302 / 307 / 308) redirects based on requested host/ port.Default: false. */ - autoRewrite?: boolean + autoRewrite?: boolean | undefined /** Rewrites the location protocol on (301 / 302 / 307 / 308) redirects to 'http' or 'https'.Default: null. */ - protocolRewrite?: string + protocolRewrite?: string | undefined /** rewrites domain of set-cookie headers. */ - cookieDomainRewrite?: false | string | { [oldDomain: string]: string } + cookieDomainRewrite?: + | false + | string + | { [oldDomain: string]: string } + | undefined /** rewrites path of set-cookie headers. Default: false */ - cookiePathRewrite?: false | string | { [oldPath: string]: string } + cookiePathRewrite?: + | false + | string + | { [oldPath: string]: string } + | undefined /** object with extra headers to be added to target requests. */ - headers?: { [header: string]: string } + headers?: { [header: string]: string } | undefined /** Timeout (in milliseconds) when proxy receives no response from target. Default: 120000 (2 minutes) */ - proxyTimeout?: number + proxyTimeout?: number | undefined /** Timeout (in milliseconds) for incoming requests */ - timeout?: number + timeout?: number | undefined /** Specify whether you want to follow redirects. Default: false */ - followRedirects?: boolean + followRedirects?: boolean | undefined /** If set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the proxyRes event */ - selfHandleResponse?: boolean + selfHandleResponse?: boolean | undefined /** Buffer */ - buffer?: stream.Stream + buffer?: stream.Stream | undefined } } diff --git a/packages/vite/types/terser.d.ts b/packages/vite/types/terser.d.ts index 5c24660eb98781..a704a20cdc71ae 100644 --- a/packages/vite/types/terser.d.ts +++ b/packages/vite/types/terser.d.ts @@ -39,6 +39,7 @@ export namespace Terser { export interface ParseOptions { bare_returns?: boolean + /** @deprecated legacy option. Currently, all supported EcmaScript is valid to parse. */ ecma?: ECMA html5_comments?: boolean shebang?: boolean @@ -113,22 +114,59 @@ export namespace Terser { keep_classnames?: boolean | RegExp keep_fnames?: boolean | RegExp module?: boolean + nth_identifier?: SimpleIdentifierMangler | WeightedIdentifierMangler properties?: boolean | ManglePropertiesOptions reserved?: string[] safari10?: boolean toplevel?: boolean } + /** + * An identifier mangler for which the output is invariant with respect to the source code. + */ + export interface SimpleIdentifierMangler { + /** + * Obtains the nth most favored (usually shortest) identifier to rename a variable to. + * The mangler will increment n and retry until the return value is not in use in scope, and is not a reserved word. + * This function is expected to be stable; Evaluating get(n) === get(n) should always return true. + * @param n - The ordinal of the identifier. + */ + get(n: number): string + } + + /** + * An identifier mangler that leverages character frequency analysis to determine identifier precedence. + */ + export interface WeightedIdentifierMangler extends SimpleIdentifierMangler { + /** + * Modifies the internal weighting of the input characters by the specified delta. + * Will be invoked on the entire printed AST, and then deduct mangleable identifiers. + * @param chars - The characters to modify the weighting of. + * @param delta - The numeric weight to add to the characters. + */ + consider(chars: string, delta: number): number + /** + * Resets character weights. + */ + reset(): void + /** + * Sorts identifiers by character frequency, in preparation for calls to get(n). + */ + sort(): void + } + export interface ManglePropertiesOptions { builtins?: boolean debug?: boolean keep_quoted?: boolean | 'strict' + nth_identifier?: SimpleIdentifierMangler | WeightedIdentifierMangler regex?: RegExp | string reserved?: string[] } export interface FormatOptions { ascii_only?: boolean + /** @deprecated Not implemented anymore */ beautify?: boolean braces?: boolean comments?: @@ -148,6 +186,7 @@ export namespace Terser { ) => boolean) ecma?: ECMA ie8?: boolean + keep_numbers?: boolean indent_level?: number indent_start?: number inline_script?: boolean @@ -178,6 +217,7 @@ export namespace Terser { export interface MinifyOptions { compress?: boolean | CompressOptions ecma?: ECMA + enclose?: boolean | string ie8?: boolean keep_classnames?: boolean | RegExp keep_fnames?: boolean | RegExp @@ -185,6 +225,8 @@ export namespace Terser { module?: boolean nameCache?: object format?: FormatOptions + /** @deprecated deprecated */ + output?: FormatOptions parse?: ParseOptions safari10?: boolean sourceMap?: boolean | SourceMapOptions @@ -194,6 +236,7 @@ export namespace Terser { export interface MinifyOutput { code?: string map?: object | string + decoded_map?: object | null } export interface SourceMapOptions { From 1983cf43d4da92d40b1f96dff0a44def044f9130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Tue, 2 Aug 2022 15:54:53 +0900 Subject: [PATCH 16/36] docs: override `vite/client` type (#9488) Co-authored-by: Bjorn Lu --- docs/guide/features.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/guide/features.md b/docs/guide/features.md index db1f45b4ddeb99..2d72adb787ce99 100644 --- a/docs/guide/features.md +++ b/docs/guide/features.md @@ -102,6 +102,20 @@ This will provide the following type shims: - Types for the Vite-injected [env variables](./env-and-mode#env-variables) on `import.meta.env` - Types for the [HMR API](./api-hmr) on `import.meta.hot` +::: tip +To override the default typing, declare it before the triple-slash reference. For example, to make the default import of `*.svg` a React component: + +```ts +declare module '*.svg' { + const content: React.FC> + export default content +} + +/// +``` + +::: + ## Vue Vite provides first-class Vue support: From 9e9cd23763c96020cdf1807334368e038f61ad01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Wed, 3 Aug 2022 22:57:50 +0900 Subject: [PATCH 17/36] chore: node prefix lint (#9514) --- .eslintrc.cjs | 5 +++++ packages/vite/bin/vite.js | 2 +- packages/vite/src/node/http.ts | 6 +++--- packages/vite/src/node/logger.ts | 2 +- packages/vite/src/node/plugins/ssrRequireHook.ts | 4 +++- packages/vite/types/ws.d.ts | 2 +- playground/alias/vite.config.js | 2 +- playground/assets/vite.config-runtime-base.js | 2 +- playground/assets/vite.config.js | 2 +- playground/backend-integration/vite.config.js | 2 +- playground/css-codesplit-cjs/vite.config.js | 2 +- playground/css-codesplit/vite.config.js | 2 +- playground/css/postcss.config.js | 4 ++-- playground/css/vite.config.js | 2 +- playground/dynamic-import/vite.config.js | 4 ++-- playground/fs-serve/root/vite.config.js | 2 +- playground/html/vite.config.js | 2 +- playground/json/server.js | 4 ++-- playground/legacy/vite.config.js | 4 ++-- playground/lib/vite.config.js | 4 ++-- playground/lib/vite.dyimport.config.js | 4 ++-- playground/multiple-entrypoints/vite.config.js | 4 ++-- .../optimize-deps/dep-with-builtin-module-cjs/index.js | 2 ++ .../optimize-deps/dep-with-builtin-module-esm/index.js | 2 ++ playground/optimize-deps/vite.config.js | 2 +- playground/optimize-missing-deps/multi-entry-dep/index.js | 2 +- playground/optimize-missing-deps/server.js | 4 ++-- playground/resolve/browser-field/multiple.dot.path.js | 2 +- playground/resolve/browser-field/not-browser.js | 2 +- playground/ssr-deps/import-builtin-cjs/index.js | 2 +- playground/ssr-deps/read-file-content/index.js | 6 +++--- playground/ssr-deps/require-absolute/index.js | 2 +- playground/ssr-deps/server.js | 2 +- playground/ssr-html/server.js | 2 +- playground/ssr-pug/server.js | 2 +- playground/ssr-react/prerender.js | 2 +- playground/ssr-react/server.js | 2 +- playground/ssr-vue/server.js | 2 +- playground/ssr-vue/vite.config.js | 2 +- playground/ssr-webworker/worker.js | 2 +- playground/worker/vite.config-relative-base.js | 2 +- 41 files changed, 61 insertions(+), 50 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 904873b07043cc..12ae8a255406d4 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,4 +1,5 @@ // @ts-check +const { builtinModules } = require('node:module') const { defineConfig } = require('eslint-define-config') module.exports = defineConfig({ @@ -81,6 +82,10 @@ module.exports = defineConfig({ { prefer: 'type-imports' } ], + 'import/no-nodejs-modules': [ + 'error', + { allow: builtinModules.map((mod) => `node:${mod}`) } + ], 'import/no-duplicates': 'error', 'import/order': 'error', 'sort-imports': [ diff --git a/packages/vite/bin/vite.js b/packages/vite/bin/vite.js index 5814f260dc427c..13e9529510e4a3 100755 --- a/packages/vite/bin/vite.js +++ b/packages/vite/bin/vite.js @@ -50,7 +50,7 @@ if (profileIndex > 0) { if (next && !next.startsWith('-')) { process.argv.splice(profileIndex, 1) } - const inspector = await import('inspector').then((r) => r.default) + const inspector = await import('node:inspector').then((r) => r.default) const session = (global.__vite_profile_session = new inspector.Session()) session.connect() session.post('Profiler.enable', () => { diff --git a/packages/vite/src/node/http.ts b/packages/vite/src/node/http.ts index 18ce37f6a327e1..f0f53f1d686fd6 100644 --- a/packages/vite/src/node/http.ts +++ b/packages/vite/src/node/http.ts @@ -95,16 +95,16 @@ export async function resolveHttpServer( httpsOptions?: HttpsServerOptions ): Promise { if (!httpsOptions) { - const { createServer } = await import('http') + const { createServer } = await import('node:http') return createServer(app) } // #484 fallback to http1 when proxy is needed. if (proxy) { - const { createServer } = await import('https') + const { createServer } = await import('node:https') return createServer(httpsOptions, app) } else { - const { createSecureServer } = await import('http2') + const { createSecureServer } = await import('node:http2') return createSecureServer( { // Manually increase the session memory to prevent 502 ENHANCE_YOUR_CALM diff --git a/packages/vite/src/node/logger.ts b/packages/vite/src/node/logger.ts index d0c5d29334c023..326fa0e6dfd778 100644 --- a/packages/vite/src/node/logger.ts +++ b/packages/vite/src/node/logger.ts @@ -1,6 +1,6 @@ /* eslint no-console: 0 */ -import readline from 'readline' +import readline from 'node:readline' import colors from 'picocolors' import type { RollupError } from 'rollup' import type { ResolvedServerUrls } from './server' diff --git a/packages/vite/src/node/plugins/ssrRequireHook.ts b/packages/vite/src/node/plugins/ssrRequireHook.ts index dc51f9114c5ef2..d1173b211ff836 100644 --- a/packages/vite/src/node/plugins/ssrRequireHook.ts +++ b/packages/vite/src/node/plugins/ssrRequireHook.ts @@ -53,7 +53,9 @@ type NodeResolveFilename = ( /** Respect the `resolve.dedupe` option in production SSR. */ function dedupeRequire(dedupe: string[]) { // eslint-disable-next-line no-restricted-globals - const Module = require('module') as { _resolveFilename: NodeResolveFilename } + const Module = require('node:module') as { + _resolveFilename: NodeResolveFilename + } const resolveFilename = Module._resolveFilename Module._resolveFilename = function (request, parent, isMain, options) { if (request[0] !== '.' && request[0] !== '/') { diff --git a/packages/vite/types/ws.d.ts b/packages/vite/types/ws.d.ts index 4a03058d0eeaa2..a06341fca9eeb9 100644 --- a/packages/vite/types/ws.d.ts +++ b/packages/vite/types/ws.d.ts @@ -26,7 +26,7 @@ import type { } from 'node:http' import type { Server as HTTPSServer } from 'node:https' import type { Duplex, DuplexOptions } from 'node:stream' -import type { SecureContextOptions } from 'tls' +import type { SecureContextOptions } from 'node:tls' import type { URL } from 'node:url' import type { ZlibOptions } from 'node:zlib' diff --git a/playground/alias/vite.config.js b/playground/alias/vite.config.js index 634871877a0f56..16c33dd859aa66 100644 --- a/playground/alias/vite.config.js +++ b/playground/alias/vite.config.js @@ -1,4 +1,4 @@ -const path = require('path') +const path = require('node:path') /** * @type {import('vite').UserConfig} diff --git a/playground/assets/vite.config-runtime-base.js b/playground/assets/vite.config-runtime-base.js index 0d643a6cf6058a..1752e974b8abcd 100644 --- a/playground/assets/vite.config-runtime-base.js +++ b/playground/assets/vite.config-runtime-base.js @@ -1,4 +1,4 @@ -const path = require('path') +const path = require('node:path') const dynamicBaseAssetsCode = ` globalThis.__toAssetUrl = url => '/' + url diff --git a/playground/assets/vite.config.js b/playground/assets/vite.config.js index c9d821ae3d73ee..700896cc13d50b 100644 --- a/playground/assets/vite.config.js +++ b/playground/assets/vite.config.js @@ -1,4 +1,4 @@ -const path = require('path') +const path = require('node:path') /** * @type {import('vite').UserConfig} diff --git a/playground/backend-integration/vite.config.js b/playground/backend-integration/vite.config.js index ce3f3361fc70d1..ff5d2c43c3ed04 100644 --- a/playground/backend-integration/vite.config.js +++ b/playground/backend-integration/vite.config.js @@ -1,4 +1,4 @@ -const path = require('path') +const path = require('node:path') const glob = require('fast-glob') const normalizePath = require('vite').normalizePath diff --git a/playground/css-codesplit-cjs/vite.config.js b/playground/css-codesplit-cjs/vite.config.js index 7cd8967121f021..85a7a0f07eff14 100644 --- a/playground/css-codesplit-cjs/vite.config.js +++ b/playground/css-codesplit-cjs/vite.config.js @@ -1,4 +1,4 @@ -const { resolve } = require('path') +const { resolve } = require('node:path') module.exports = { build: { diff --git a/playground/css-codesplit/vite.config.js b/playground/css-codesplit/vite.config.js index 528a3c7d7f19fe..0bc9cab5d025df 100644 --- a/playground/css-codesplit/vite.config.js +++ b/playground/css-codesplit/vite.config.js @@ -1,4 +1,4 @@ -const { resolve } = require('path') +const { resolve } = require('node:path') module.exports = { build: { diff --git a/playground/css/postcss.config.js b/playground/css/postcss.config.js index 48d5dd23d5a8f1..a9bbd0f2b4e09e 100644 --- a/playground/css/postcss.config.js +++ b/playground/css/postcss.config.js @@ -2,8 +2,8 @@ module.exports = { plugins: [require('postcss-nested'), testDirDep, testSourceInput] } -const fs = require('fs') -const path = require('path') +const fs = require('node:fs') +const path = require('node:path') const glob = require('fast-glob') const { normalizePath } = require('vite') diff --git a/playground/css/vite.config.js b/playground/css/vite.config.js index 704eb134e25880..d8333b07fb4d63 100644 --- a/playground/css/vite.config.js +++ b/playground/css/vite.config.js @@ -1,4 +1,4 @@ -const path = require('path') +const path = require('node:path') /** * @type {import('vite').UserConfig} diff --git a/playground/dynamic-import/vite.config.js b/playground/dynamic-import/vite.config.js index 96baaa74798686..f3b7cb1dd049ce 100644 --- a/playground/dynamic-import/vite.config.js +++ b/playground/dynamic-import/vite.config.js @@ -1,5 +1,5 @@ -const fs = require('fs') -const path = require('path') +const fs = require('node:fs') +const path = require('node:path') const vite = require('vite') module.exports = vite.defineConfig({ diff --git a/playground/fs-serve/root/vite.config.js b/playground/fs-serve/root/vite.config.js index 585a91f9d6346d..5712ad5acb3438 100644 --- a/playground/fs-serve/root/vite.config.js +++ b/playground/fs-serve/root/vite.config.js @@ -1,4 +1,4 @@ -const path = require('path') +const path = require('node:path') /** * @type {import('vite').UserConfig} diff --git a/playground/html/vite.config.js b/playground/html/vite.config.js index 31cc1656d2f19e..8c117aaaa663e7 100644 --- a/playground/html/vite.config.js +++ b/playground/html/vite.config.js @@ -1,4 +1,4 @@ -const { resolve } = require('path') +const { resolve } = require('node:path') /** * @type {import('vite').UserConfig} diff --git a/playground/json/server.js b/playground/json/server.js index d78c7f6246d540..01f7e1482aa9e8 100644 --- a/playground/json/server.js +++ b/playground/json/server.js @@ -1,6 +1,6 @@ // @ts-check -const fs = require('fs') -const path = require('path') +const fs = require('node:fs') +const path = require('node:path') const express = require('express') const isTest = process.env.NODE_ENV === 'test' || !!process.env.VITE_TEST_BUILD diff --git a/playground/legacy/vite.config.js b/playground/legacy/vite.config.js index f793980f365887..bdf89639d57e37 100644 --- a/playground/legacy/vite.config.js +++ b/playground/legacy/vite.config.js @@ -1,5 +1,5 @@ -const fs = require('fs') -const path = require('path') +const fs = require('node:fs') +const path = require('node:path') const legacy = require('@vitejs/plugin-legacy').default module.exports = { diff --git a/playground/lib/vite.config.js b/playground/lib/vite.config.js index d9fb932f535ebb..3e5187b68c55ee 100644 --- a/playground/lib/vite.config.js +++ b/playground/lib/vite.config.js @@ -1,5 +1,5 @@ -const fs = require('fs') -const path = require('path') +const fs = require('node:fs') +const path = require('node:path') /** * @type {import('vite').UserConfig} diff --git a/playground/lib/vite.dyimport.config.js b/playground/lib/vite.dyimport.config.js index 54a84dbe76c24a..c621c90fb2ed8a 100644 --- a/playground/lib/vite.dyimport.config.js +++ b/playground/lib/vite.dyimport.config.js @@ -1,5 +1,5 @@ -const fs = require('fs') -const path = require('path') +const fs = require('node:fs') +const path = require('node:path') /** * @type {import('vite').UserConfig} diff --git a/playground/multiple-entrypoints/vite.config.js b/playground/multiple-entrypoints/vite.config.js index c2a44858a3ce6b..e1289dbf5a0078 100644 --- a/playground/multiple-entrypoints/vite.config.js +++ b/playground/multiple-entrypoints/vite.config.js @@ -1,5 +1,5 @@ -const { resolve } = require('path') -const fs = require('fs') +const { resolve } = require('node:path') +const fs = require('node:fs') module.exports = { build: { diff --git a/playground/optimize-deps/dep-with-builtin-module-cjs/index.js b/playground/optimize-deps/dep-with-builtin-module-cjs/index.js index 7cff6a9e9dac8e..82766ff59a3e8c 100644 --- a/playground/optimize-deps/dep-with-builtin-module-cjs/index.js +++ b/playground/optimize-deps/dep-with-builtin-module-cjs/index.js @@ -1,5 +1,7 @@ // no node: protocol intentionally +// eslint-disable-next-line import/no-nodejs-modules const fs = require('fs') +// eslint-disable-next-line import/no-nodejs-modules const path = require('path') // NOTE: require destructure would error immediately because of how esbuild diff --git a/playground/optimize-deps/dep-with-builtin-module-esm/index.js b/playground/optimize-deps/dep-with-builtin-module-esm/index.js index 5b5df60fad9e15..b7b710ffaab58f 100644 --- a/playground/optimize-deps/dep-with-builtin-module-esm/index.js +++ b/playground/optimize-deps/dep-with-builtin-module-esm/index.js @@ -1,5 +1,7 @@ // no node: protocol intentionally +// eslint-disable-next-line import/no-nodejs-modules import { readFileSync } from 'fs' +// eslint-disable-next-line import/no-nodejs-modules import path from 'path' // access from named import diff --git a/playground/optimize-deps/vite.config.js b/playground/optimize-deps/vite.config.js index 091f994e2c6aec..a44ca2ef2449d6 100644 --- a/playground/optimize-deps/vite.config.js +++ b/playground/optimize-deps/vite.config.js @@ -1,4 +1,4 @@ -const fs = require('fs') +const fs = require('node:fs') const vue = require('@vitejs/plugin-vue') // Overriding the NODE_ENV set by vitest diff --git a/playground/optimize-missing-deps/multi-entry-dep/index.js b/playground/optimize-missing-deps/multi-entry-dep/index.js index 0717b87c27c2d8..4b214df5d30765 100644 --- a/playground/optimize-missing-deps/multi-entry-dep/index.js +++ b/playground/optimize-missing-deps/multi-entry-dep/index.js @@ -1,3 +1,3 @@ -const path = require('path') +const path = require('node:path') exports.name = path.normalize('./Server') diff --git a/playground/optimize-missing-deps/server.js b/playground/optimize-missing-deps/server.js index ace9ca52c6f2b3..641c128afbbe26 100644 --- a/playground/optimize-missing-deps/server.js +++ b/playground/optimize-missing-deps/server.js @@ -1,6 +1,6 @@ // @ts-check -const fs = require('fs') -const path = require('path') +const fs = require('node:fs') +const path = require('node:path') const express = require('express') const isTest = process.env.NODE_ENV === 'test' || !!process.env.VITE_TEST_BUILD diff --git a/playground/resolve/browser-field/multiple.dot.path.js b/playground/resolve/browser-field/multiple.dot.path.js index b4022f73daaf6e..37bd1099aecc0e 100644 --- a/playground/resolve/browser-field/multiple.dot.path.js +++ b/playground/resolve/browser-field/multiple.dot.path.js @@ -1,2 +1,2 @@ -const fs = require('fs') +const fs = require('node:fs') console.log('this should not run in the browser') diff --git a/playground/resolve/browser-field/not-browser.js b/playground/resolve/browser-field/not-browser.js index b4022f73daaf6e..37bd1099aecc0e 100644 --- a/playground/resolve/browser-field/not-browser.js +++ b/playground/resolve/browser-field/not-browser.js @@ -1,2 +1,2 @@ -const fs = require('fs') +const fs = require('node:fs') console.log('this should not run in the browser') diff --git a/playground/ssr-deps/import-builtin-cjs/index.js b/playground/ssr-deps/import-builtin-cjs/index.js index 149be9e9ed53b8..f3e8d6a4b9031f 100644 --- a/playground/ssr-deps/import-builtin-cjs/index.js +++ b/playground/ssr-deps/import-builtin-cjs/index.js @@ -1,4 +1,4 @@ -exports.stream = require('stream') +exports.stream = require('node:stream') exports.hello = function () { return 'Hello World!' diff --git a/playground/ssr-deps/read-file-content/index.js b/playground/ssr-deps/read-file-content/index.js index c8761b3b4734c1..4cc6c34972defa 100644 --- a/playground/ssr-deps/read-file-content/index.js +++ b/playground/ssr-deps/read-file-content/index.js @@ -1,9 +1,9 @@ -const path = require('path') +const path = require('node:path') module.exports = async function readFileContent(filePath) { const fs = process.versions.node.split('.')[0] >= '14' - ? require('fs/promises') - : require('fs').promises + ? require('node:fs/promises') + : require('node:fs').promises return await fs.readFile(path.resolve(filePath), 'utf-8') } diff --git a/playground/ssr-deps/require-absolute/index.js b/playground/ssr-deps/require-absolute/index.js index c2f844f3e2f6ed..18b3aa936629dc 100644 --- a/playground/ssr-deps/require-absolute/index.js +++ b/playground/ssr-deps/require-absolute/index.js @@ -1,3 +1,3 @@ -const path = require('path') +const path = require('node:path') module.exports.hello = () => require(path.resolve(__dirname, './foo.js')).hello diff --git a/playground/ssr-deps/server.js b/playground/ssr-deps/server.js index aa47a6055321ac..d82f80c599583b 100644 --- a/playground/ssr-deps/server.js +++ b/playground/ssr-deps/server.js @@ -1,7 +1,7 @@ // @ts-check import fs from 'node:fs' import path from 'node:path' -import { fileURLToPath } from 'url' +import { fileURLToPath } from 'node:url' import express from 'express' const __dirname = path.dirname(fileURLToPath(import.meta.url)) diff --git a/playground/ssr-html/server.js b/playground/ssr-html/server.js index d1f0ad1a3e0a7e..6c6ddca9addc1d 100644 --- a/playground/ssr-html/server.js +++ b/playground/ssr-html/server.js @@ -1,6 +1,6 @@ import fs from 'node:fs' import path from 'node:path' -import { fileURLToPath } from 'url' +import { fileURLToPath } from 'node:url' import express from 'express' const __dirname = path.dirname(fileURLToPath(import.meta.url)) diff --git a/playground/ssr-pug/server.js b/playground/ssr-pug/server.js index d5fe58ee47dbdf..b5d4f340b79b32 100644 --- a/playground/ssr-pug/server.js +++ b/playground/ssr-pug/server.js @@ -1,6 +1,6 @@ // @ts-check import path from 'node:path' -import { fileURLToPath } from 'url' +import { fileURLToPath } from 'node:url' import pug from 'pug' import express from 'express' diff --git a/playground/ssr-react/prerender.js b/playground/ssr-react/prerender.js index 38412028a7fccb..8a18a492ab138c 100644 --- a/playground/ssr-react/prerender.js +++ b/playground/ssr-react/prerender.js @@ -3,7 +3,7 @@ import fs from 'node:fs' import path from 'node:path' -import { fileURLToPath } from 'url' +import { fileURLToPath } from 'node:url' const __dirname = path.dirname(fileURLToPath(import.meta.url)) const toAbsolute = (p) => path.resolve(__dirname, p) diff --git a/playground/ssr-react/server.js b/playground/ssr-react/server.js index 3b7f7045f6c95a..1a8d245f8e2d80 100644 --- a/playground/ssr-react/server.js +++ b/playground/ssr-react/server.js @@ -1,6 +1,6 @@ import fs from 'node:fs' import path from 'node:path' -import { fileURLToPath } from 'url' +import { fileURLToPath } from 'node:url' import express from 'express' const __dirname = path.dirname(fileURLToPath(import.meta.url)) diff --git a/playground/ssr-vue/server.js b/playground/ssr-vue/server.js index 56961faa40769e..55605387c481f9 100644 --- a/playground/ssr-vue/server.js +++ b/playground/ssr-vue/server.js @@ -1,7 +1,7 @@ // @ts-check import fs from 'node:fs' import path from 'node:path' -import { fileURLToPath } from 'url' +import { fileURLToPath } from 'node:url' import express from 'express' const isTest = process.env.NODE_ENV === 'test' || !!process.env.VITE_TEST_BUILD diff --git a/playground/ssr-vue/vite.config.js b/playground/ssr-vue/vite.config.js index a313ea7dd479b2..c8be7320c8a9b0 100644 --- a/playground/ssr-vue/vite.config.js +++ b/playground/ssr-vue/vite.config.js @@ -1,4 +1,4 @@ -import path from 'path' +import path from 'node:path' import { defineConfig } from 'vite' import vuePlugin from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' diff --git a/playground/ssr-webworker/worker.js b/playground/ssr-webworker/worker.js index 9904d5994a1319..d353688b0575eb 100644 --- a/playground/ssr-webworker/worker.js +++ b/playground/ssr-webworker/worker.js @@ -1,4 +1,4 @@ -import { fileURLToPath } from 'url' +import { fileURLToPath } from 'node:url' import path from 'node:path' import { Miniflare } from 'miniflare' diff --git a/playground/worker/vite.config-relative-base.js b/playground/worker/vite.config-relative-base.js index 8002883ca4abf1..4c20940749eacc 100644 --- a/playground/worker/vite.config-relative-base.js +++ b/playground/worker/vite.config-relative-base.js @@ -1,4 +1,4 @@ -const path = require('path') +const path = require('node:path') const vueJsx = require('@vitejs/plugin-vue-jsx') const vite = require('vite') From 145801e715e42b28e896fe8cb2ae454c211a5627 Mon Sep 17 00:00:00 2001 From: OBE Rocks! <33532265+oberocks@users.noreply.github.com> Date: Thu, 4 Aug 2022 23:51:13 -0400 Subject: [PATCH 18/36] docs(env): update copy issues (#9546) --- docs/guide/env-and-mode.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guide/env-and-mode.md b/docs/guide/env-and-mode.md index c91a53dc6f1a2b..c69badcda5db2e 100644 --- a/docs/guide/env-and-mode.md +++ b/docs/guide/env-and-mode.md @@ -46,7 +46,7 @@ In addition, environment variables that already exist when Vite is executed have Loaded env variables are also exposed to your client source code via `import.meta.env` as strings. -To prevent accidentally leaking env variables to the client, only variables prefixed with `VITE_` are exposed to your Vite-processed code. e.g. the following file: +To prevent accidentally leaking env variables to the client, only variables prefixed with `VITE_` are exposed to your Vite-processed code. e.g. for the following env variables: ``` VITE_SOME_KEY=123 @@ -60,7 +60,7 @@ console.log(import.meta.env.VITE_SOME_KEY) // 123 console.log(import.meta.env.DB_PASSWORD) // undefined ``` -If you want to customize env variables prefix, see [envPrefix](/config/shared-options.html#envprefix) option. +If you want to customize the env variables prefix, see the [envPrefix](/config/shared-options.html#envprefix) option. :::warning SECURITY NOTES @@ -71,9 +71,9 @@ If you want to customize env variables prefix, see [envPrefix](/config/shared-op ### IntelliSense for TypeScript -By default, Vite provides type definition for `import.meta.env` in [`vite/client.d.ts`](https://github.com/vitejs/vite/blob/main/packages/vite/client.d.ts). While you can define more custom env variables in `.env.[mode]` files, you may want to get TypeScript IntelliSense for user-defined env variables which prefixed with `VITE_`. +By default, Vite provides type definitions for `import.meta.env` in [`vite/client.d.ts`](https://github.com/vitejs/vite/blob/main/packages/vite/client.d.ts). While you can define more custom env variables in `.env.[mode]` files, you may want to get TypeScript IntelliSense for user-defined env variables that are prefixed with `VITE_`. -To achieve, you can create an `env.d.ts` in `src` directory, then augment `ImportMetaEnv` like this: +To achieve this, you can create an `env.d.ts` in `src` directory, then augment `ImportMetaEnv` like this: ```typescript /// @@ -98,7 +98,7 @@ If your code relies on types from browser environments such as [DOM](https://git ## Modes -By default, the dev server (`dev` command) runs in `development` mode and the `build` command run in `production` mode. +By default, the dev server (`dev` command) runs in `development` mode and the `build` command runs in `production` mode. This means when running `vite build`, it will load the env variables from `.env.production` if there is one: From 89dd31cfe228caee358f4032b31fdf943599c842 Mon Sep 17 00:00:00 2001 From: Matthew Runyon Date: Thu, 4 Aug 2022 23:48:32 -0500 Subject: [PATCH 19/36] docs(preview): replace dev server references (#9540) --- docs/config/preview-options.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config/preview-options.md b/docs/config/preview-options.md index 10ec82f38e3848..32589a5091d12b 100644 --- a/docs/config/preview-options.md +++ b/docs/config/preview-options.md @@ -65,7 +65,7 @@ Automatically open the app in the browser on server start. When the value is a s - **Type:** `Record` - **Default:** [`server.proxy`](./server-options#server-proxy) -Configure custom proxy rules for the dev server. Expects an object of `{ key: options }` pairs. If the key starts with `^`, it will be interpreted as a `RegExp`. The `configure` option can be used to access the proxy instance. +Configure custom proxy rules for the preview server. Expects an object of `{ key: options }` pairs. If the key starts with `^`, it will be interpreted as a `RegExp`. The `configure` option can be used to access the proxy instance. Uses [`http-proxy`](https://github.com/http-party/node-http-proxy). Full options [here](https://github.com/http-party/node-http-proxy#options). @@ -74,4 +74,4 @@ Uses [`http-proxy`](https://github.com/http-party/node-http-proxy). Full options - **Type:** `boolean | CorsOptions` - **Default:** [`server.cors`](./server-options#server-cors) -Configure CORS for the dev 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. +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. From a206f16912c5dfd2c92b5ca35fd641fc4f2506e3 Mon Sep 17 00:00:00 2001 From: Tony Trinh Date: Sat, 6 Aug 2022 03:41:27 -0500 Subject: [PATCH 20/36] docs: set browser meta theme-color (#9556) --- docs/.vitepress/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index e61c9cc00d6262..3578621b2a0331 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -65,7 +65,8 @@ export default defineConfig({ ['meta', { property: 'og:url', content: ogUrl }], ['meta', { property: 'og:description', content: ogDescription }], ['meta', { name: 'twitter:card', content: 'summary_large_image' }], - ['meta', { name: 'twitter:site', content: '@vite_js' }] + ['meta', { name: 'twitter:site', content: '@vite_js' }], + ['meta', { name: 'theme-color', content: '#646cff' }] ], vue: { From 905b8ebbed1f7616d12018ce451920dc57342cef Mon Sep 17 00:00:00 2001 From: yoho Date: Sun, 7 Aug 2022 15:05:44 +0800 Subject: [PATCH 21/36] chore: init imports var before use (#9569) --- packages/vite/src/node/plugins/importAnalysisBuild.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/plugins/importAnalysisBuild.ts b/packages/vite/src/node/plugins/importAnalysisBuild.ts index f392cfda538584..dee652387bff3b 100644 --- a/packages/vite/src/node/plugins/importAnalysisBuild.ts +++ b/packages/vite/src/node/plugins/importAnalysisBuild.ts @@ -380,7 +380,7 @@ export function buildImportAnalysisPlugin(config: ResolvedConfig): Plugin { // dynamic import to constant json may get inlined. if (chunk.type === 'chunk' && chunk.code.indexOf(preloadMarker) > -1) { const code = chunk.code - let imports: ImportSpecifier[] + let imports: ImportSpecifier[] = [] try { imports = parseImports(code)[0].filter((i) => i.d > -1) } catch (e: any) { From c1fa219f7da09d8fca0140c79e62dbce6d54b0e5 Mon Sep 17 00:00:00 2001 From: hemengke <49073282+hemengke1997@users.noreply.github.com> Date: Sun, 7 Aug 2022 20:00:45 +0800 Subject: [PATCH 22/36] fix: log worker plugins in debug mode (#9553) --- packages/vite/src/node/config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index c2a60cb674b5be..ef6f95a487ac14 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -734,7 +734,11 @@ export async function resolveConfig( if (process.env.DEBUG) { debug(`using resolved config: %O`, { ...resolved, - plugins: resolved.plugins.map((p) => p.name) + plugins: resolved.plugins.map((p) => p.name), + worker: { + ...resolved.worker, + plugins: resolved.worker.plugins.map((p) => p.name) + } }) } From d35a1e2b828dfe2ef89bd235b3594b797d9ee7a1 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Mon, 8 Aug 2022 20:15:05 +0800 Subject: [PATCH 23/36] fix(config): try catch unlink after load (#9577) --- packages/vite/src/node/config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/node/config.ts b/packages/vite/src/node/config.ts index ef6f95a487ac14..fa0a25e463b811 100644 --- a/packages/vite/src/node/config.ts +++ b/packages/vite/src/node/config.ts @@ -1039,7 +1039,11 @@ async function loadConfigFromBundledFile( try { return (await dynamicImport(fileUrl)).default } finally { - fs.unlinkSync(fileNameTmp) + try { + fs.unlinkSync(fileNameTmp) + } catch { + // already removed if this function is called twice simultaneously + } } } // for cjs, we can register a custom loader via `_require.extensions` From 65cf7fb70da2cd164bbea4bcc947f07eb2487b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Mon, 8 Aug 2022 22:51:15 +0900 Subject: [PATCH 24/36] docs: miscellaneous fixes (#9560) Co-authored-by: Bjorn Lu --- docs/guide/build.md | 6 +++--- docs/guide/features.md | 4 ++-- docs/guide/ssr.md | 4 ++-- docs/guide/troubleshooting.md | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/guide/build.md b/docs/guide/build.md index 72a4562a25ce2e..bcc840d40cb56a 100644 --- a/docs/guide/build.md +++ b/docs/guide/build.md @@ -208,7 +208,7 @@ A user may choose to deploy in three different paths: A single static [base](#public-base-path) isn't enough in these scenarios. Vite provides experimental support for advanced base options during build, using `experimental.renderBuiltUrl`. -```js +```ts experimental: { renderBuiltUrl: (filename: string, { hostType: 'js' | 'css' | 'html' }) => { if (hostType === 'js') { @@ -220,9 +220,9 @@ experimental: { } ``` -If the hashed assets and public files aren't deployed together, options for each group can be defined independently using asset `type` included in the third `context` param given to the function. +If the hashed assets and public files aren't deployed together, options for each group can be defined independently using asset `type` included in the second `context` param given to the function. -```js +```ts experimental: { renderBuiltUrl(filename: string, { hostType: 'js' | 'css' | 'html', type: 'public' | 'asset' }) { if (type === 'public') { diff --git a/docs/guide/features.md b/docs/guide/features.md index 2d72adb787ce99..0f69035a71dea5 100644 --- a/docs/guide/features.md +++ b/docs/guide/features.md @@ -122,8 +122,8 @@ Vite provides first-class Vue support: - Vue 3 SFC support via [@vitejs/plugin-vue](https://github.com/vitejs/vite/tree/main/packages/plugin-vue) - Vue 3 JSX support via [@vitejs/plugin-vue-jsx](https://github.com/vitejs/vite/tree/main/packages/plugin-vue-jsx) -- Vue 2.7 support via [vitejs/vite-plugin-vue2](https://github.com/vitejs/vite-plugin-vue2) -- Vue <2.7 support via [underfin/vite-plugin-vue2](https://github.com/underfin/vite-plugin-vue2) +- Vue 2.7 support via [@vitejs/plugin-vue2](https://github.com/vitejs/vite-plugin-vue2) +- Vue <2.7 support via [vite-plugin-vue2](https://github.com/underfin/vite-plugin-vue2) ## JSX diff --git a/docs/guide/ssr.md b/docs/guide/ssr.md index 3ff4337aaf4b9f..e0e97ebde0f336 100644 --- a/docs/guide/ssr.md +++ b/docs/guide/ssr.md @@ -211,7 +211,7 @@ If the routes and the data needed for certain routes are known ahead of time, we Dependencies are "externalized" from Vite's SSR transform module system by default when running SSR. This speeds up both dev and build. -If a dependency needs to be transformed by Vite's pipeline, for example, because Vite features are used untranspiled in them, they can be added to [`ssr.noExternal`](../config/ssr-options.md#ssrnoexternal). +If a dependency needs to be transformed by Vite's pipeline, for example, because Vite features are used untranspiled in them, they can be added to [`ssr.noExternal`](../config/ssr-options.md#ssr-noexternal). :::warning Working with Aliases If you have configured aliases that redirects one package to another, you may want to alias the actual `node_modules` packages instead to make it work for SSR externalized dependencies. Both [Yarn](https://classic.yarnpkg.com/en/docs/cli/add/#toc-yarn-add-alias) and [pnpm](https://pnpm.js.org/en/aliases) support aliasing via the `npm:` prefix. @@ -267,4 +267,4 @@ Use a post hook so that your SSR middleware runs _after_ Vite's middlewares. ## SSR Format -By default, Vite generates the SSR bundle in ESM. There is experimental support for configuring `ssr.format`, but it isn't recommended. Future efforts around SSR development will be based on ESM, and commonjs remain available for backward compatibility. If using ESM for SSR isn't possible in your project, you can set `legacy.buildSsrCjsExternalHeuristics: true` to generate a CJS bundle using the same [externalization heuristics of Vite v2](https://v2.vitejs.dev/guide/ssr.html#ssr-externals). +By default, Vite generates the SSR bundle in ESM. There is experimental support for configuring `ssr.format`, but it isn't recommended. Future efforts around SSR development will be based on ESM, and CommonJS remain available for backward compatibility. If using ESM for SSR isn't possible in your project, you can set `legacy.buildSsrCjsExternalHeuristics: true` to generate a CJS bundle using the same [externalization heuristics of Vite v2](https://v2.vitejs.dev/guide/ssr.html#ssr-externals). diff --git a/docs/guide/troubleshooting.md b/docs/guide/troubleshooting.md index 1021d9e41f04b1..d3587c375411b0 100644 --- a/docs/guide/troubleshooting.md +++ b/docs/guide/troubleshooting.md @@ -8,12 +8,12 @@ If the suggestions here don't work, please try posting questions on [GitHub Disc ### `Error: Cannot find module 'C:\foo\bar&baz\vite\bin\vite.js'` -The path to your project folder may include `?`, which doesn't work with `npm` on Windows ([npm/cmd-shim#45](https://github.com/npm/cmd-shim/issues/45)). +The path to your project folder may include `&`, which doesn't work with `npm` on Windows ([npm/cmd-shim#45](https://github.com/npm/cmd-shim/issues/45)). You will need to either: - Switch to another package manager (e.g. `pnpm`, `yarn`) -- Remove `?` from the path to your project +- Remove `&` from the path to your project ## Dev Server From 1f11a70f29de0ca9a88234b4548b73df7e57bc9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Mon, 8 Aug 2022 21:58:12 +0800 Subject: [PATCH 25/36] fix: tree-shake modulepreload polyfill (#9531) --- packages/vite/src/node/plugins/modulePreloadPolyfill.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/vite/src/node/plugins/modulePreloadPolyfill.ts b/packages/vite/src/node/plugins/modulePreloadPolyfill.ts index 4f0b3389fcc2c3..1799db26c8a9d1 100644 --- a/packages/vite/src/node/plugins/modulePreloadPolyfill.ts +++ b/packages/vite/src/node/plugins/modulePreloadPolyfill.ts @@ -22,8 +22,7 @@ export function modulePreloadPolyfillPlugin(config: ResolvedConfig): Plugin { return '' } if (!polyfillString) { - polyfillString = - `const p = ${polyfill.toString()};` + `${isModernFlag}&&p();` + polyfillString = `${isModernFlag}&&(${polyfill.toString()}());` } return polyfillString } From a6b12f8c4608e945ca21811dce6d94c26cb4d7b6 Mon Sep 17 00:00:00 2001 From: ashish <68690233+asrvd@users.noreply.github.com> Date: Tue, 9 Aug 2022 00:50:54 +0530 Subject: [PATCH 26/36] docs: add git option for netlify deployment (#9526) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tony Trinh Co-authored-by: 翠 / green --- docs/guide/static-deploy.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/guide/static-deploy.md b/docs/guide/static-deploy.md index 534e77639c5f29..a4bc93178c0884 100644 --- a/docs/guide/static-deploy.md +++ b/docs/guide/static-deploy.md @@ -131,6 +131,8 @@ You can also run the above script in your CI setup to enable automatic deploymen ## Netlify +### Netlify CLI + 1. Install the [Netlify CLI](https://cli.netlify.com/). 2. Create a new site using `ntl init`. 3. Deploy using `ntl deploy`. @@ -153,6 +155,16 @@ The Netlify CLI will share with you a preview URL to inspect. When you are ready $ ntl deploy --prod ``` +### Netlify with Git + +1. Push your code to a git repository (GitHub, GitLab, BitBucket, Azure DevOps). +2. [Import the project](https://app.netlify.com/start) to Netlify. +3. Choose the branch, output directory, and set up environment variables if applicable. +4. Click on **Deploy**. +5. Your Vite app is deployed! + +After your project has been imported and deployed, all subsequent pushes to branches other than the production branch along with pull requests will generate [Preview Deployments](https://docs.netlify.com/site-deploys/deploy-previews/), and all changes made to the Production Branch (commonly “main”) will result in a [Production Deployment](https://docs.netlify.com/site-deploys/overview/#definitions). + ## Vercel ### Vercel CLI From dfec6ca71a44098337008f93c5bf5c2f678ed03e Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Tue, 9 Aug 2022 03:27:46 +0800 Subject: [PATCH 27/36] fix(ssr): use appendRight for import (#9554) --- .../vite/src/node/ssr/__tests__/ssrTransform.spec.ts | 12 ++++++++++++ packages/vite/src/node/ssr/ssrTransform.ts | 10 ++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/packages/vite/src/node/ssr/__tests__/ssrTransform.spec.ts b/packages/vite/src/node/ssr/__tests__/ssrTransform.spec.ts index cc5b19522ef9a5..a4e74390d3d3c2 100644 --- a/packages/vite/src/node/ssr/__tests__/ssrTransform.spec.ts +++ b/packages/vite/src/node/ssr/__tests__/ssrTransform.spec.ts @@ -125,6 +125,18 @@ test('export default', async () => { ).toMatchInlineSnapshot(`"__vite_ssr_exports__.default = {}"`) }) +test('export then import minified', async () => { + expect( + await ssrTransformSimpleCode( + `export * from 'vue';import {createApp} from 'vue';` + ) + ).toMatchInlineSnapshot(` + "const __vite_ssr_import_1__ = await __vite_ssr_import__(\\"vue\\"); + __vite_ssr_exportAll__(__vite_ssr_import_1__);const __vite_ssr_import_0__ = await __vite_ssr_import__(\\"vue\\"); + " + `) +}) + test('import.meta', async () => { expect( await ssrTransformSimpleCode(`console.log(import.meta.url)`) diff --git a/packages/vite/src/node/ssr/ssrTransform.ts b/packages/vite/src/node/ssr/ssrTransform.ts index 2c38c53e74714e..bf1633395ae992 100644 --- a/packages/vite/src/node/ssr/ssrTransform.ts +++ b/packages/vite/src/node/ssr/ssrTransform.ts @@ -94,7 +94,7 @@ async function ssrTransformScript( function defineImport(node: Node, source: string) { deps.add(source) const importId = `__vite_ssr_import_${uid++}__` - s.appendLeft( + s.appendRight( node.start, `const ${importId} = await ${ssrImportKey}(${JSON.stringify(source)});\n` ) @@ -115,6 +115,7 @@ async function ssrTransformScript( // import { baz } from 'foo' --> baz -> __import_foo__.baz // import * as ok from 'foo' --> ok -> __import_foo__ if (node.type === 'ImportDeclaration') { + s.remove(node.start, node.end) const importId = defineImport(node, node.source.value as string) for (const spec of node.specifiers) { if (spec.type === 'ImportSpecifier') { @@ -129,7 +130,6 @@ async function ssrTransformScript( idToImportMap.set(spec.local.name, importId) } } - s.remove(node.start, node.end) } } @@ -207,13 +207,11 @@ async function ssrTransformScript( // export * from './foo' if (node.type === 'ExportAllDeclaration') { + s.remove(node.start, node.end) + const importId = defineImport(node, node.source.value as string) if (node.exported) { - const importId = defineImport(node, node.source.value as string) - s.remove(node.start, node.end) defineExport(node.end, node.exported.name, `${importId}`) } else { - const importId = defineImport(node, node.source.value as string) - s.remove(node.start, node.end) s.appendLeft(node.end, `${ssrExportAllKey}(${importId});`) } } From 27a20a5fd07c352c2f56b9f1e7a9955f349f0d2f Mon Sep 17 00:00:00 2001 From: metonym Date: Mon, 8 Aug 2022 12:34:47 -0700 Subject: [PATCH 28/36] docs: add Render deployment instructions (#9517) --- docs/guide/static-deploy.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/guide/static-deploy.md b/docs/guide/static-deploy.md index a4bc93178c0884..138a58b0319dec 100644 --- a/docs/guide/static-deploy.md +++ b/docs/guide/static-deploy.md @@ -343,3 +343,26 @@ Install the extension in VS Code and navigate to your app root. Open the Static Follow the wizard started by the extension to give your app a name, choose a framework preset, and designate the app root (usually `/`) and built file location `/dist`. The wizard will run and will create a GitHub action in your repo in a `.github` folder. The action will work to deploy your app (watch its progress in your repo's Actions tab) and, when successfully completed, you can view your app in the address provided in the extension's progress window by clicking the 'Browse Website' button that appears when the GitHub action has run. + +## Render + +You can deploy your Vite app as a Static Site on [Render](https://render.com/). + +1. Create a [Render account](https://dashboard.render.com/register). + +2. In the [Dashboard](https://dashboard.render.com/), click the **New** button and select **Static Site**. + +3. Connect your GitHub/GitLab account or use a public repository. + +4. Specify a project name and branch. + + - **Build Command**: `npm run build` + - **Publish Directory**: `dist` + +5. Click **Create Static Site**. + + Your app should be deployed at `https://.onrender.com/`. + +By default, any new commit pushed to the specified branch will automatically trigger a new deploy. [Auto-Deploy](https://render.com/docs/deploys#toggling-auto-deploy-for-a-service) can be configured in the project settings. + +You can also add a [custom domain](https://render.com/docs/custom-domains) to your project. From 2e309d6dfe742356f434e628f09d9ef8f8c554ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Tue, 9 Aug 2022 05:46:31 +0900 Subject: [PATCH 29/36] fix: allow tree-shake glob eager css in js (#9547) --- .../__snapshots__/fixture.test.ts.snap | 60 +++++++++---------- .../vite/src/node/plugins/importMetaGlob.ts | 4 +- .../glob-import/__tests__/glob-import.spec.ts | 24 +++++++- playground/glob-import/index.html | 11 ++++ playground/glob-import/no-tree-shake.css | 3 + playground/glob-import/tree-shake.css | 3 + 6 files changed, 73 insertions(+), 32 deletions(-) create mode 100644 playground/glob-import/no-tree-shake.css create mode 100644 playground/glob-import/tree-shake.css diff --git a/packages/vite/src/node/__tests__/plugins/importGlob/__snapshots__/fixture.test.ts.snap b/packages/vite/src/node/__tests__/plugins/importGlob/__snapshots__/fixture.test.ts.snap index 3efbb7a0306f86..6eeb763c4117bd 100644 --- a/packages/vite/src/node/__tests__/plugins/importGlob/__snapshots__/fixture.test.ts.snap +++ b/packages/vite/src/node/__tests__/plugins/importGlob/__snapshots__/fixture.test.ts.snap @@ -2,43 +2,43 @@ exports[`fixture > transform 1`] = ` "import * as __vite_glob_1_0 from \\"./modules/a.ts\\";import * as __vite_glob_1_1 from \\"./modules/b.ts\\";import * as __vite_glob_1_2 from \\"./modules/index.ts\\";import { name as __vite_glob_3_0 } from \\"./modules/a.ts\\";import { name as __vite_glob_3_1 } from \\"./modules/b.ts\\";import { name as __vite_glob_3_2 } from \\"./modules/index.ts\\";import { default as __vite_glob_5_0 } from \\"./modules/a.ts?raw\\";import { default as __vite_glob_5_1 } from \\"./modules/b.ts?raw\\";import \\"../../../../../../types/importMeta\\"; -export const basic = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\")}); -export const basicEager = Object.assign({\\"./modules/a.ts\\": __vite_glob_1_0,\\"./modules/b.ts\\": __vite_glob_1_1,\\"./modules/index.ts\\": __vite_glob_1_2}); -export const ignore = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\")}); -export const namedEager = Object.assign({\\"./modules/a.ts\\": __vite_glob_3_0,\\"./modules/b.ts\\": __vite_glob_3_1,\\"./modules/index.ts\\": __vite_glob_3_2}); -export const namedDefault = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\").then(m => m[\\"default\\"]),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\").then(m => m[\\"default\\"]),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\").then(m => m[\\"default\\"])}); -export const eagerAs = Object.assign({\\"./modules/a.ts\\": __vite_glob_5_0,\\"./modules/b.ts\\": __vite_glob_5_1}); -export const rawImportModule = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts?raw\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts?raw\\")}); -export const excludeSelf = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts\\")}); -export const customQueryString = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?custom\\")}); -export const customQueryObject = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?foo=bar&raw=true\\")}); -export const parent = Object.assign({}); -export const rootMixedRelative = Object.assign({\\"/css.spec.ts\\": () => import(\\"../../css.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/define.spec.ts\\": () => import(\\"../../define.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/esbuild.spec.ts\\": () => import(\\"../../esbuild.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/import.spec.ts\\": () => import(\\"../../import.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts?url\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts?url\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/index.ts\\": () => import(\\"../fixture-b/index.ts?url\\").then(m => m[\\"default\\"])}); -export const cleverCwd1 = Object.assign({\\"./node_modules/framework/pages/hello.page.js\\": () => import(\\"./node_modules/framework/pages/hello.page.js\\")}); -export const cleverCwd2 = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"../fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts\\"),\\"../fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts\\")}); +export const basic = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\")}); +export const basicEager = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": __vite_glob_1_0,\\"./modules/b.ts\\": __vite_glob_1_1,\\"./modules/index.ts\\": __vite_glob_1_2}); +export const ignore = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\")}); +export const namedEager = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": __vite_glob_3_0,\\"./modules/b.ts\\": __vite_glob_3_1,\\"./modules/index.ts\\": __vite_glob_3_2}); +export const namedDefault = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\").then(m => m[\\"default\\"]),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\").then(m => m[\\"default\\"]),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\").then(m => m[\\"default\\"])}); +export const eagerAs = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": __vite_glob_5_0,\\"./modules/b.ts\\": __vite_glob_5_1}); +export const rawImportModule = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts?raw\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts?raw\\")}); +export const excludeSelf = /* #__PURE__ */ Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts\\")}); +export const customQueryString = /* #__PURE__ */ Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?custom\\")}); +export const customQueryObject = /* #__PURE__ */ Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?foo=bar&raw=true\\")}); +export const parent = /* #__PURE__ */ Object.assign({}); +export const rootMixedRelative = /* #__PURE__ */ Object.assign({\\"/css.spec.ts\\": () => import(\\"../../css.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/define.spec.ts\\": () => import(\\"../../define.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/esbuild.spec.ts\\": () => import(\\"../../esbuild.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/import.spec.ts\\": () => import(\\"../../import.spec.ts?url\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts?url\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts?url\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/index.ts\\": () => import(\\"../fixture-b/index.ts?url\\").then(m => m[\\"default\\"])}); +export const cleverCwd1 = /* #__PURE__ */ Object.assign({\\"./node_modules/framework/pages/hello.page.js\\": () => import(\\"./node_modules/framework/pages/hello.page.js\\")}); +export const cleverCwd2 = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"../fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts\\"),\\"../fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts\\")}); " `; exports[`fixture > transform with restoreQueryExtension 1`] = ` "import * as __vite_glob_1_0 from \\"./modules/a.ts\\";import * as __vite_glob_1_1 from \\"./modules/b.ts\\";import * as __vite_glob_1_2 from \\"./modules/index.ts\\";import { name as __vite_glob_3_0 } from \\"./modules/a.ts\\";import { name as __vite_glob_3_1 } from \\"./modules/b.ts\\";import { name as __vite_glob_3_2 } from \\"./modules/index.ts\\";import { default as __vite_glob_5_0 } from \\"./modules/a.ts?raw\\";import { default as __vite_glob_5_1 } from \\"./modules/b.ts?raw\\";import \\"../../../../../../types/importMeta\\"; -export const basic = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\")}); -export const basicEager = Object.assign({\\"./modules/a.ts\\": __vite_glob_1_0,\\"./modules/b.ts\\": __vite_glob_1_1,\\"./modules/index.ts\\": __vite_glob_1_2}); -export const ignore = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\")}); -export const namedEager = Object.assign({\\"./modules/a.ts\\": __vite_glob_3_0,\\"./modules/b.ts\\": __vite_glob_3_1,\\"./modules/index.ts\\": __vite_glob_3_2}); -export const namedDefault = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\").then(m => m[\\"default\\"]),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\").then(m => m[\\"default\\"]),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\").then(m => m[\\"default\\"])}); -export const eagerAs = Object.assign({\\"./modules/a.ts\\": __vite_glob_5_0,\\"./modules/b.ts\\": __vite_glob_5_1}); -export const rawImportModule = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts?raw\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts?raw\\")}); -export const excludeSelf = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts\\")}); -export const customQueryString = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?custom&lang.ts\\")}); -export const customQueryObject = Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?foo=bar&raw=true&lang.ts\\")}); -export const parent = Object.assign({}); -export const rootMixedRelative = Object.assign({\\"/css.spec.ts\\": () => import(\\"../../css.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/define.spec.ts\\": () => import(\\"../../define.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/esbuild.spec.ts\\": () => import(\\"../../esbuild.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/import.spec.ts\\": () => import(\\"../../import.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/index.ts\\": () => import(\\"../fixture-b/index.ts?url&lang.ts\\").then(m => m[\\"default\\"])}); -export const cleverCwd1 = Object.assign({\\"./node_modules/framework/pages/hello.page.js\\": () => import(\\"./node_modules/framework/pages/hello.page.js\\")}); -export const cleverCwd2 = Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"../fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts\\"),\\"../fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts\\")}); +export const basic = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\")}); +export const basicEager = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": __vite_glob_1_0,\\"./modules/b.ts\\": __vite_glob_1_1,\\"./modules/index.ts\\": __vite_glob_1_2}); +export const ignore = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\")}); +export const namedEager = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": __vite_glob_3_0,\\"./modules/b.ts\\": __vite_glob_3_1,\\"./modules/index.ts\\": __vite_glob_3_2}); +export const namedDefault = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\").then(m => m[\\"default\\"]),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\").then(m => m[\\"default\\"]),\\"./modules/index.ts\\": () => import(\\"./modules/index.ts\\").then(m => m[\\"default\\"])}); +export const eagerAs = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": __vite_glob_5_0,\\"./modules/b.ts\\": __vite_glob_5_1}); +export const rawImportModule = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts?raw\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts?raw\\")}); +export const excludeSelf = /* #__PURE__ */ Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts\\")}); +export const customQueryString = /* #__PURE__ */ Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?custom&lang.ts\\")}); +export const customQueryObject = /* #__PURE__ */ Object.assign({\\"./sibling.ts\\": () => import(\\"./sibling.ts?foo=bar&raw=true&lang.ts\\")}); +export const parent = /* #__PURE__ */ Object.assign({}); +export const rootMixedRelative = /* #__PURE__ */ Object.assign({\\"/css.spec.ts\\": () => import(\\"../../css.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/define.spec.ts\\": () => import(\\"../../define.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/esbuild.spec.ts\\": () => import(\\"../../esbuild.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/import.spec.ts\\": () => import(\\"../../import.spec.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts?url&lang.ts\\").then(m => m[\\"default\\"]),\\"/importGlob/fixture-b/index.ts\\": () => import(\\"../fixture-b/index.ts?url&lang.ts\\").then(m => m[\\"default\\"])}); +export const cleverCwd1 = /* #__PURE__ */ Object.assign({\\"./node_modules/framework/pages/hello.page.js\\": () => import(\\"./node_modules/framework/pages/hello.page.js\\")}); +export const cleverCwd2 = /* #__PURE__ */ Object.assign({\\"./modules/a.ts\\": () => import(\\"./modules/a.ts\\"),\\"./modules/b.ts\\": () => import(\\"./modules/b.ts\\"),\\"../fixture-b/a.ts\\": () => import(\\"../fixture-b/a.ts\\"),\\"../fixture-b/b.ts\\": () => import(\\"../fixture-b/b.ts\\")}); " `; exports[`fixture > virtual modules 1`] = ` -"Object.assign({\\"/modules/a.ts\\": () => import(\\"/modules/a.ts\\"),\\"/modules/b.ts\\": () => import(\\"/modules/b.ts\\"),\\"/modules/index.ts\\": () => import(\\"/modules/index.ts\\")}) -Object.assign({\\"/../fixture-b/a.ts\\": () => import(\\"/../fixture-b/a.ts\\"),\\"/../fixture-b/b.ts\\": () => import(\\"/../fixture-b/b.ts\\"),\\"/../fixture-b/index.ts\\": () => import(\\"/../fixture-b/index.ts\\")})" +"/* #__PURE__ */ Object.assign({\\"/modules/a.ts\\": () => import(\\"/modules/a.ts\\"),\\"/modules/b.ts\\": () => import(\\"/modules/b.ts\\"),\\"/modules/index.ts\\": () => import(\\"/modules/index.ts\\")}) +/* #__PURE__ */ Object.assign({\\"/../fixture-b/a.ts\\": () => import(\\"/../fixture-b/a.ts\\"),\\"/../fixture-b/b.ts\\": () => import(\\"/../fixture-b/b.ts\\"),\\"/../fixture-b/index.ts\\": () => import(\\"/../fixture-b/index.ts\\")})" `; diff --git a/packages/vite/src/node/plugins/importMetaGlob.ts b/packages/vite/src/node/plugins/importMetaGlob.ts index aef833e3879888..f5b81005e446fa 100644 --- a/packages/vite/src/node/plugins/importMetaGlob.ts +++ b/packages/vite/src/node/plugins/importMetaGlob.ts @@ -438,7 +438,9 @@ export async function transformGlobImport( files.forEach((i) => matchedFiles.add(i)) - const replacement = `Object.assign({${objectProps.join(',')}})` + const replacement = `/* #__PURE__ */ Object.assign({${objectProps.join( + ',' + )}})` s.overwrite(start, end, replacement) return staticImports diff --git a/playground/glob-import/__tests__/glob-import.spec.ts b/playground/glob-import/__tests__/glob-import.spec.ts index 27c8dd716d0358..fb1cb867358549 100644 --- a/playground/glob-import/__tests__/glob-import.spec.ts +++ b/playground/glob-import/__tests__/glob-import.spec.ts @@ -1,4 +1,13 @@ -import { addFile, editFile, isBuild, page, removeFile, withRetry } from '~utils' +import { + addFile, + editFile, + findAssetFile, + getColor, + isBuild, + page, + removeFile, + withRetry +} from '~utils' const filteredResult = { './alias.js': { @@ -158,3 +167,16 @@ if (!isBuild) { }) }) } + +test('tree-shake eager css', async () => { + expect(await getColor('.tree-shake-eager-css')).toBe('orange') + expect(await getColor('.no-tree-shake-eager-css')).toBe('orange') + expect(await page.textContent('.no-tree-shake-eager-css-result')).toMatch( + '.no-tree-shake-eager-css' + ) + + if (isBuild) { + const content = findAssetFile(/index\.\w+\.js/) + expect(content).not.toMatch('.tree-shake-eager-css') + } +}) diff --git a/playground/glob-import/index.html b/playground/glob-import/index.html index a0ac2d866699ae..85e9e98d2c5ae7 100644 --- a/playground/glob-import/index.html +++ b/playground/glob-import/index.html @@ -13,6 +13,10 @@

Relative raw


 

Side effect


+

Tree shake Eager CSS

+

Should be orange

+

Should be orange

+

 
 
 
+
+
diff --git a/playground/glob-import/no-tree-shake.css b/playground/glob-import/no-tree-shake.css
new file mode 100644
index 00000000000000..9075733e138c5a
--- /dev/null
+++ b/playground/glob-import/no-tree-shake.css
@@ -0,0 +1,3 @@
+.no-tree-shake-eager-css {
+  color: orange;
+}
diff --git a/playground/glob-import/tree-shake.css b/playground/glob-import/tree-shake.css
new file mode 100644
index 00000000000000..84f24297e4efce
--- /dev/null
+++ b/playground/glob-import/tree-shake.css
@@ -0,0 +1,3 @@
+.tree-shake-eager-css {
+  color: orange;
+}

From 4e9bdd4fb3654a9d43917e1cb682d3d2bad25115 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=BF=A0=20/=20green?= 
Date: Tue, 9 Aug 2022 06:43:26 +0900
Subject: [PATCH 30/36] test: mix tests refactoring (#9516)

---
 playground/ssr-deps/read-file-content/index.js | 5 +----
 playground/ssr-webworker/package.json          | 3 ++-
 playground/ssr-webworker/src/entry-worker.jsx  | 4 +++-
 pnpm-lock.yaml                                 | 2 ++
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/playground/ssr-deps/read-file-content/index.js b/playground/ssr-deps/read-file-content/index.js
index 4cc6c34972defa..03b2e199b61f52 100644
--- a/playground/ssr-deps/read-file-content/index.js
+++ b/playground/ssr-deps/read-file-content/index.js
@@ -1,9 +1,6 @@
 const path = require('node:path')
 
 module.exports = async function readFileContent(filePath) {
-  const fs =
-    process.versions.node.split('.')[0] >= '14'
-      ? require('node:fs/promises')
-      : require('node:fs').promises
+  const fs = require('node:fs/promises')
   return await fs.readFile(path.resolve(filePath), 'utf-8')
 }
diff --git a/playground/ssr-webworker/package.json b/playground/ssr-webworker/package.json
index 66fdc8b7afaa99..9f6c8c00534eab 100644
--- a/playground/ssr-webworker/package.json
+++ b/playground/ssr-webworker/package.json
@@ -4,13 +4,14 @@
   "version": "0.0.0",
   "type": "module",
   "scripts": {
-    "dev": "DEV=1 node worker",
+    "dev": "cross-env 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/ssr-webworker/src/entry-worker.jsx b/playground/ssr-webworker/src/entry-worker.jsx
index 940d0d2943d632..750926653f9e31 100644
--- a/playground/ssr-webworker/src/entry-worker.jsx
+++ b/playground/ssr-webworker/src/entry-worker.jsx
@@ -1,8 +1,9 @@
 import { msg as linkedMsg } from 'resolve-linked'
 import React from 'react'
 
+let loaded = false
 import('./dynamic').then(({ foo }) => {
-  console.log(foo)
+  loaded = !!foo
 })
 
 addEventListener('fetch', function (event) {
@@ -12,6 +13,7 @@ addEventListener('fetch', function (event) {
     

hello from webworker

${linkedMsg}

${typeof React}

+

dynamic: ${loaded}

`, { headers: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3b00d19680be01..9204c91c20f944 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1090,12 +1090,14 @@ 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 From 2042b91d7c8125ce39e2f140bbf06032272ee072 Mon Sep 17 00:00:00 2001 From: sagargurtu Date: Mon, 8 Aug 2022 20:58:11 -0700 Subject: [PATCH 31/36] refactor(resolve): remove commonjs plugin handling (#9460) --- packages/vite/src/node/plugins/resolve.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/vite/src/node/plugins/resolve.ts b/packages/vite/src/node/plugins/resolve.ts index 5363e6a4c246eb..16601297f85dac 100644 --- a/packages/vite/src/node/plugins/resolve.ts +++ b/packages/vite/src/node/plugins/resolve.ts @@ -115,11 +115,6 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin { return id } - // fast path for commonjs proxy modules - if (/\?commonjs/.test(id) || id === 'commonjsHelpers.js') { - return - } - const targetWeb = !ssr || ssrTarget === 'webworker' // this is passed by @rollup/plugin-commonjs From 80713256d0dd5716e42086fb617e96e9e92c3675 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 07:05:21 +0200 Subject: [PATCH 32/36] fix(deps): update all non-major dependencies (#9575) --- package.json | 16 +- .../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 +- .../create-vite/template-vue-ts/package.json | 2 +- packages/plugin-legacy/package.json | 4 +- packages/plugin-react/package.json | 4 +- packages/plugin-vue-jsx/package.json | 4 +- packages/vite/package.json | 14 +- playground/backend-integration/package.json | 4 +- playground/css-sourcemap/package.json | 2 +- playground/css/package.json | 2 +- playground/multiple-entrypoints/package.json | 2 +- playground/resolve/package.json | 2 +- .../package.json | 2 +- playground/tailwind-sourcemap/package.json | 2 +- playground/tailwind/package.json | 2 +- playground/vue-sourcemap/package.json | 2 +- playground/vue/package.json | 2 +- pnpm-lock.yaml | 765 ++++++++++-------- 21 files changed, 444 insertions(+), 395 deletions(-) diff --git a/package.json b/package.json index d5e656455da117..8c0f9a07e76a9a 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "ci-docs": "run-s build docs-build" }, "devDependencies": { - "@babel/types": "^7.18.9", - "@microsoft/api-extractor": "^7.28.7", + "@babel/types": "^7.18.10", + "@microsoft/api-extractor": "^7.29.0", "@rollup/plugin-typescript": "^8.3.4", "@types/babel__core": "^7.1.19", "@types/babel__standalone": "^7.1.4", @@ -57,8 +57,8 @@ "@types/semver": "^7.3.10", "@types/stylus": "^0.48.38", "@types/ws": "^8.5.3", - "@typescript-eslint/eslint-plugin": "^5.31.0", - "@typescript-eslint/parser": "^5.31.0", + "@typescript-eslint/eslint-plugin": "^5.33.0", + "@typescript-eslint/parser": "^5.33.0", "conventional-changelog-cli": "^2.2.2", "cross-env": "^7.0.3", "esbuild": "^0.14.47", @@ -73,7 +73,7 @@ "npm-run-all": "^4.1.5", "picocolors": "^1.0.0", "playwright-chromium": "^1.24.2", - "pnpm": "^7.8.0", + "pnpm": "^7.9.0", "prettier": "2.7.1", "prompts": "^2.4.2", "rimraf": "^3.0.2", @@ -81,12 +81,12 @@ "semver": "^7.3.7", "simple-git-hooks": "^2.8.0", "tslib": "^2.4.0", - "tsx": "^3.8.0", + "tsx": "^3.8.1", "typescript": "^4.6.4", "unbuild": "^0.7.6", "vite": "workspace:*", "vitepress": "^1.0.0-alpha.4", - "vitest": "^0.20.2", + "vitest": "^0.21.0", "vue": "^3.2.37" }, "simple-git-hooks": { @@ -107,7 +107,7 @@ "eslint --cache --fix" ] }, - "packageManager": "pnpm@7.8.0", + "packageManager": "pnpm@7.9.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 736219910d9c1e..e1ae15f916a043 100644 --- a/packages/create-vite/template-preact-ts/package.json +++ b/packages/create-vite/template-preact-ts/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "preact": "^10.10.0" + "preact": "^10.10.1" }, "devDependencies": { "@preact/preset-vite": "^2.3.0", diff --git a/packages/create-vite/template-preact/package.json b/packages/create-vite/template-preact/package.json index 43d5b2d1b8c6bc..12c3ce5fecf886 100644 --- a/packages/create-vite/template-preact/package.json +++ b/packages/create-vite/template-preact/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "preact": "^10.10.0" + "preact": "^10.10.1" }, "devDependencies": { "@preact/preset-vite": "^2.3.0", diff --git a/packages/create-vite/template-react-ts/package.json b/packages/create-vite/template-react-ts/package.json index 8d421e08a5619a..351b52bf625d6f 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.15", + "@types/react": "^18.0.17", "@types/react-dom": "^18.0.6", "@vitejs/plugin-react": "^2.0.0", "typescript": "^4.6.4", diff --git a/packages/create-vite/template-react/package.json b/packages/create-vite/template-react/package.json index bcdf162cbc9b9b..b7768fa54c5a11 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.15", + "@types/react": "^18.0.17", "@types/react-dom": "^18.0.6", "@vitejs/plugin-react": "^2.0.0", "vite": "^3.0.4" diff --git a/packages/create-vite/template-vue-ts/package.json b/packages/create-vite/template-vue-ts/package.json index ec71916a963033..b3f1796eef7d4f 100644 --- a/packages/create-vite/template-vue-ts/package.json +++ b/packages/create-vite/template-vue-ts/package.json @@ -15,6 +15,6 @@ "@vitejs/plugin-vue": "^3.0.1", "typescript": "^4.6.4", "vite": "^3.0.4", - "vue-tsc": "^0.39.4" + "vue-tsc": "^0.39.5" } } diff --git a/packages/plugin-legacy/package.json b/packages/plugin-legacy/package.json index 145a79e5574e86..c56fa3ff806c93 100644 --- a/packages/plugin-legacy/package.json +++ b/packages/plugin-legacy/package.json @@ -35,7 +35,7 @@ }, "homepage": "https://github.com/vitejs/vite/tree/main/packages/plugin-legacy#readme", "dependencies": { - "@babel/standalone": "^7.18.9", + "@babel/standalone": "^7.18.12", "core-js": "^3.24.1", "magic-string": "^0.26.2", "regenerator-runtime": "^0.13.9", @@ -46,7 +46,7 @@ "vite": "^3.0.0" }, "devDependencies": { - "@babel/core": "^7.18.9", + "@babel/core": "^7.18.10", "vite": "workspace:*" } } diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json index 47a97b5ef612a9..331ad2ee1bdedd 100644 --- a/packages/plugin-react/package.json +++ b/packages/plugin-react/package.json @@ -39,8 +39,8 @@ }, "homepage": "https://github.com/vitejs/vite/tree/main/packages/plugin-react#readme", "dependencies": { - "@babel/core": "^7.18.9", - "@babel/plugin-transform-react-jsx": "^7.18.6", + "@babel/core": "^7.18.10", + "@babel/plugin-transform-react-jsx": "^7.18.10", "@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", diff --git a/packages/plugin-vue-jsx/package.json b/packages/plugin-vue-jsx/package.json index aadc2f5aa25e7c..39eba505c6d54e 100644 --- a/packages/plugin-vue-jsx/package.json +++ b/packages/plugin-vue-jsx/package.json @@ -35,9 +35,9 @@ }, "homepage": "https://github.com/vitejs/vite/tree/main/packages/plugin-vue-jsx#readme", "dependencies": { - "@babel/core": "^7.18.9", + "@babel/core": "^7.18.10", "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-transform-typescript": "^7.18.8", + "@babel/plugin-transform-typescript": "^7.18.12", "@vue/babel-plugin-jsx": "^1.1.1" }, "devDependencies": { diff --git a/packages/vite/package.json b/packages/vite/package.json index 199b53d81ce30a..fa53fc2c44efc0 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -59,7 +59,7 @@ "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!", "dependencies": { "esbuild": "^0.14.47", - "postcss": "^8.4.14", + "postcss": "^8.4.16", "resolve": "^1.22.1", "rollup": "^2.75.6" }, @@ -68,12 +68,12 @@ }, "devDependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/parser": "^7.18.9", - "@babel/types": "^7.18.9", + "@babel/parser": "^7.18.11", + "@babel/types": "^7.18.10", "@jridgewell/trace-mapping": "^0.3.14", "@rollup/plugin-alias": "^3.1.9", - "@rollup/plugin-commonjs": "^22.0.1", - "@rollup/plugin-dynamic-import-vars": "^1.4.3", + "@rollup/plugin-commonjs": "^22.0.2", + "@rollup/plugin-dynamic-import-vars": "^1.4.4", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "13.3.0", "@rollup/plugin-typescript": "^8.3.4", @@ -96,10 +96,10 @@ "fast-glob": "^3.2.11", "http-proxy": "^1.18.1", "json5": "^2.2.1", - "launch-editor-middleware": "^2.4.0", + "launch-editor-middleware": "^2.5.0", "magic-string": "^0.26.2", "micromatch": "^4.0.5", - "mlly": "^0.5.5", + "mlly": "^0.5.7", "mrmime": "^1.0.1", "okie": "^1.0.1", "open": "^8.4.0", diff --git a/playground/backend-integration/package.json b/playground/backend-integration/package.json index cc4a5f4aad5df7..3866167c21d833 100644 --- a/playground/backend-integration/package.json +++ b/playground/backend-integration/package.json @@ -9,8 +9,8 @@ "preview": "vite preview" }, "devDependencies": { - "sass": "^1.54.0", - "tailwindcss": "^3.1.7", + "sass": "^1.54.3", + "tailwindcss": "^3.1.8", "fast-glob": "^3.2.11" } } diff --git a/playground/css-sourcemap/package.json b/playground/css-sourcemap/package.json index 6e348c6e1e1e49..ca7a97598326fd 100644 --- a/playground/css-sourcemap/package.json +++ b/playground/css-sourcemap/package.json @@ -11,7 +11,7 @@ "devDependencies": { "less": "^4.1.3", "magic-string": "^0.26.2", - "sass": "^1.54.0", + "sass": "^1.54.3", "stylus": "^0.58.1" } } diff --git a/playground/css/package.json b/playground/css/package.json index 69314f8867c9c8..ab2a5e119d48f2 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.0", + "sass": "^1.54.3", "stylus": "^0.58.1" } } diff --git a/playground/multiple-entrypoints/package.json b/playground/multiple-entrypoints/package.json index 4167908e596aed..6ff2132e5d4f48 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.0" + "sass": "^1.54.3" } } diff --git a/playground/resolve/package.json b/playground/resolve/package.json index 7e23450bf63ee8..6bdf7544a99c8d 100644 --- a/playground/resolve/package.json +++ b/playground/resolve/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@babel/runtime": "^7.18.9", - "es5-ext": "0.10.61", + "es5-ext": "0.10.62", "normalize.css": "^8.0.1", "require-pkg-with-module-field": "link:./require-pkg-with-module-field", "resolve-browser-field": "link:./browser-field", diff --git a/playground/resolve/require-pkg-with-module-field/package.json b/playground/resolve/require-pkg-with-module-field/package.json index e409343a7567d5..855e5cca61f37d 100644 --- a/playground/resolve/require-pkg-with-module-field/package.json +++ b/playground/resolve/require-pkg-with-module-field/package.json @@ -4,6 +4,6 @@ "version": "1.0.0", "main": "./index.cjs", "dependencies": { - "bignumber.js": "9.0.2" + "bignumber.js": "9.1.0" } } diff --git a/playground/tailwind-sourcemap/package.json b/playground/tailwind-sourcemap/package.json index 648b657482e5d5..5a4ca8bb2ac748 100644 --- a/playground/tailwind-sourcemap/package.json +++ b/playground/tailwind-sourcemap/package.json @@ -9,6 +9,6 @@ "preview": "vite preview" }, "dependencies": { - "tailwindcss": "^3.1.7" + "tailwindcss": "^3.1.8" } } diff --git a/playground/tailwind/package.json b/playground/tailwind/package.json index b3d50a6df45515..6b8de729f2effc 100644 --- a/playground/tailwind/package.json +++ b/playground/tailwind/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "autoprefixer": "^10.4.8", - "tailwindcss": "^3.1.7", + "tailwindcss": "^3.1.8", "vue": "^3.2.37", "vue-router": "^4.1.3" }, diff --git a/playground/vue-sourcemap/package.json b/playground/vue-sourcemap/package.json index 5d5e5b24bfb111..b6d8d451301499 100644 --- a/playground/vue-sourcemap/package.json +++ b/playground/vue-sourcemap/package.json @@ -12,7 +12,7 @@ "@vitejs/plugin-vue": "workspace:*", "less": "^4.1.3", "postcss-nested": "^5.0.6", - "sass": "^1.54.0" + "sass": "^1.54.3" }, "dependencies": { "vue": "^3.2.37" diff --git a/playground/vue/package.json b/playground/vue/package.json index c6c4f5b2b39abc..d3d089b379f295 100644 --- a/playground/vue/package.json +++ b/playground/vue/package.json @@ -17,7 +17,7 @@ "js-yaml": "^4.1.0", "less": "^4.1.3", "pug": "^3.0.2", - "sass": "^1.54.0", + "sass": "^1.54.3", "stylus": "^0.58.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9204c91c20f944..72a73e224d09ed 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,8 +10,8 @@ importers: .: specifiers: - '@babel/types': ^7.18.9 - '@microsoft/api-extractor': ^7.28.7 + '@babel/types': ^7.18.10 + '@microsoft/api-extractor': ^7.29.0 '@rollup/plugin-typescript': ^8.3.4 '@types/babel__core': ^7.1.19 '@types/babel__standalone': ^7.1.4 @@ -31,8 +31,8 @@ importers: '@types/semver': ^7.3.10 '@types/stylus': ^0.48.38 '@types/ws': ^8.5.3 - '@typescript-eslint/eslint-plugin': ^5.31.0 - '@typescript-eslint/parser': ^5.31.0 + '@typescript-eslint/eslint-plugin': ^5.33.0 + '@typescript-eslint/parser': ^5.33.0 conventional-changelog-cli: ^2.2.2 cross-env: ^7.0.3 esbuild: ^0.14.47 @@ -47,7 +47,7 @@ importers: npm-run-all: ^4.1.5 picocolors: ^1.0.0 playwright-chromium: ^1.24.2 - pnpm: ^7.8.0 + pnpm: ^7.9.0 prettier: 2.7.1 prompts: ^2.4.2 rimraf: ^3.0.2 @@ -55,16 +55,16 @@ importers: semver: ^7.3.7 simple-git-hooks: ^2.8.0 tslib: ^2.4.0 - tsx: ^3.8.0 + tsx: ^3.8.1 typescript: ^4.6.4 unbuild: ^0.7.6 vite: workspace:* vitepress: ^1.0.0-alpha.4 - vitest: ^0.20.2 + vitest: ^0.21.0 vue: ^3.2.37 devDependencies: - '@babel/types': 7.18.9 - '@microsoft/api-extractor': 7.28.7 + '@babel/types': 7.18.10 + '@microsoft/api-extractor': 7.29.0 '@rollup/plugin-typescript': 8.3.4_uct5nfewsakxkk4livyn3qaf3e '@types/babel__core': 7.1.19 '@types/babel__standalone': 7.1.4 @@ -84,14 +84,14 @@ importers: '@types/semver': 7.3.10 '@types/stylus': 0.48.38 '@types/ws': 8.5.3 - '@typescript-eslint/eslint-plugin': 5.31.0_47ooyv4whyi5jcher5bzfc7xvi - '@typescript-eslint/parser': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im + '@typescript-eslint/eslint-plugin': 5.33.0_y4zvvqz4rccbgvlojt5544lsha + '@typescript-eslint/parser': 5.33.0_vxmhu3tyr7cxhd2vxjkubkv7im conventional-changelog-cli: 2.2.2 cross-env: 7.0.3 esbuild: 0.14.47 eslint: 8.21.0 eslint-define-config: 1.6.0 - eslint-plugin-import: 2.26.0_eygs4xj346vriqwkjbwjuyviaa + eslint-plugin-import: 2.26.0_qfqnhzzittf54udqwes54xx65q eslint-plugin-node: 11.1.0_eslint@8.21.0 execa: 6.1.0 fs-extra: 10.1.0 @@ -100,7 +100,7 @@ importers: npm-run-all: 4.1.5 picocolors: 1.0.0 playwright-chromium: 1.24.2 - pnpm: 7.8.0 + pnpm: 7.9.0 prettier: 2.7.1 prompts: 2.4.2 rimraf: 3.0.2 @@ -108,12 +108,12 @@ importers: semver: 7.3.7 simple-git-hooks: 2.8.0 tslib: 2.4.0 - tsx: 3.8.0 + tsx: 3.8.1 typescript: 4.6.4 unbuild: 0.7.6 vite: link:packages/vite vitepress: 1.0.0-alpha.4 - vitest: 0.20.2 + vitest: 0.21.0 vue: 3.2.37 packages/create-vite: @@ -128,27 +128,27 @@ importers: packages/plugin-legacy: specifiers: - '@babel/core': ^7.18.9 - '@babel/standalone': ^7.18.9 + '@babel/core': ^7.18.10 + '@babel/standalone': ^7.18.12 core-js: ^3.24.1 magic-string: ^0.26.2 regenerator-runtime: ^0.13.9 systemjs: ^6.12.1 vite: workspace:* dependencies: - '@babel/standalone': 7.18.9 + '@babel/standalone': 7.18.12 core-js: 3.24.1 magic-string: 0.26.2 regenerator-runtime: 0.13.9 systemjs: 6.12.1 devDependencies: - '@babel/core': 7.18.9 + '@babel/core': 7.18.10 vite: link:../vite packages/plugin-react: specifiers: - '@babel/core': ^7.18.9 - '@babel/plugin-transform-react-jsx': ^7.18.6 + '@babel/core': ^7.18.10 + '@babel/plugin-transform-react-jsx': ^7.18.10 '@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 @@ -156,11 +156,11 @@ importers: react-refresh: ^0.14.0 vite: workspace:* dependencies: - '@babel/core': 7.18.9 - '@babel/plugin-transform-react-jsx': 7.18.6_@babel+core@7.18.9 - '@babel/plugin-transform-react-jsx-development': 7.18.6_@babel+core@7.18.9 - '@babel/plugin-transform-react-jsx-self': 7.18.6_@babel+core@7.18.9 - '@babel/plugin-transform-react-jsx-source': 7.18.6_@babel+core@7.18.9 + '@babel/core': 7.18.10 + '@babel/plugin-transform-react-jsx': 7.18.10_@babel+core@7.18.10 + '@babel/plugin-transform-react-jsx-development': 7.18.6_@babel+core@7.18.10 + '@babel/plugin-transform-react-jsx-self': 7.18.6_@babel+core@7.18.10 + '@babel/plugin-transform-react-jsx-source': 7.18.6_@babel+core@7.18.10 magic-string: 0.26.2 react-refresh: 0.14.0 devDependencies: @@ -188,28 +188,28 @@ importers: packages/plugin-vue-jsx: specifiers: - '@babel/core': ^7.18.9 + '@babel/core': ^7.18.10 '@babel/plugin-syntax-import-meta': ^7.10.4 - '@babel/plugin-transform-typescript': ^7.18.8 + '@babel/plugin-transform-typescript': ^7.18.12 '@vue/babel-plugin-jsx': ^1.1.1 vite: workspace:* dependencies: - '@babel/core': 7.18.9 - '@babel/plugin-syntax-import-meta': 7.10.4_@babel+core@7.18.9 - '@babel/plugin-transform-typescript': 7.18.8_@babel+core@7.18.9 - '@vue/babel-plugin-jsx': 1.1.1_@babel+core@7.18.9 + '@babel/core': 7.18.10 + '@babel/plugin-syntax-import-meta': 7.10.4_@babel+core@7.18.10 + '@babel/plugin-transform-typescript': 7.18.12_@babel+core@7.18.10 + '@vue/babel-plugin-jsx': 1.1.1_@babel+core@7.18.10 devDependencies: vite: link:../vite packages/vite: specifiers: '@ampproject/remapping': ^2.2.0 - '@babel/parser': ^7.18.9 - '@babel/types': ^7.18.9 + '@babel/parser': ^7.18.11 + '@babel/types': ^7.18.10 '@jridgewell/trace-mapping': ^0.3.14 '@rollup/plugin-alias': ^3.1.9 - '@rollup/plugin-commonjs': ^22.0.1 - '@rollup/plugin-dynamic-import-vars': ^1.4.3 + '@rollup/plugin-commonjs': ^22.0.2 + '@rollup/plugin-dynamic-import-vars': ^1.4.4 '@rollup/plugin-json': ^4.1.0 '@rollup/plugin-node-resolve': 13.3.0 '@rollup/plugin-typescript': ^8.3.4 @@ -234,16 +234,16 @@ importers: fsevents: ~2.3.2 http-proxy: ^1.18.1 json5: ^2.2.1 - launch-editor-middleware: ^2.4.0 + launch-editor-middleware: ^2.5.0 magic-string: ^0.26.2 micromatch: ^4.0.5 - mlly: ^0.5.5 + mlly: ^0.5.7 mrmime: ^1.0.1 okie: ^1.0.1 open: ^8.4.0 periscopic: ^3.0.4 picocolors: ^1.0.0 - postcss: ^8.4.14 + postcss: ^8.4.16 postcss-import: ^14.1.0 postcss-load-config: ^4.0.1 postcss-modules: ^4.3.1 @@ -263,19 +263,19 @@ importers: ws: ^8.8.1 dependencies: esbuild: 0.14.47 - postcss: 8.4.14 + postcss: 8.4.16 resolve: 1.22.1 rollup: 2.75.6 optionalDependencies: fsevents: 2.3.2 devDependencies: '@ampproject/remapping': 2.2.0 - '@babel/parser': 7.18.9 - '@babel/types': 7.18.9 + '@babel/parser': 7.18.11 + '@babel/types': 7.18.10 '@jridgewell/trace-mapping': 0.3.14 '@rollup/plugin-alias': 3.1.9_rollup@2.75.6 - '@rollup/plugin-commonjs': 22.0.1_rollup@2.75.6 - '@rollup/plugin-dynamic-import-vars': 1.4.3_rollup@2.75.6 + '@rollup/plugin-commonjs': 22.0.2_rollup@2.75.6 + '@rollup/plugin-dynamic-import-vars': 1.4.4_rollup@2.75.6 '@rollup/plugin-json': 4.1.0_rollup@2.75.6 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.75.6 '@rollup/plugin-typescript': 8.3.4_rollup@2.75.6+tslib@2.4.0 @@ -298,18 +298,18 @@ importers: fast-glob: 3.2.11 http-proxy: 1.18.1_debug@4.3.4 json5: 2.2.1 - launch-editor-middleware: 2.4.0 + launch-editor-middleware: 2.5.0 magic-string: 0.26.2 micromatch: 4.0.5 - mlly: 0.5.5 + mlly: 0.5.7 mrmime: 1.0.1 okie: 1.0.1 open: 8.4.0 periscopic: 3.0.4 picocolors: 1.0.0 - postcss-import: 14.1.0_postcss@8.4.14 - postcss-load-config: 4.0.1_postcss@8.4.14 - postcss-modules: 4.3.1_postcss@8.4.14 + postcss-import: 14.1.0_postcss@8.4.16 + postcss-load-config: 4.0.1_postcss@8.4.16 + postcss-modules: 4.3.1_postcss@8.4.16 resolve.exports: 1.1.0 rollup-plugin-license: 2.8.1_rollup@2.75.6 sirv: 2.0.2 @@ -359,12 +359,12 @@ importers: playground/backend-integration: specifiers: fast-glob: ^3.2.11 - sass: ^1.54.0 - tailwindcss: ^3.1.7 + sass: ^1.54.3 + tailwindcss: ^3.1.8 devDependencies: fast-glob: 3.2.11 - sass: 1.54.0 - tailwindcss: 3.1.7 + sass: 1.54.3 + tailwindcss: 3.1.8 playground/build-old: specifiers: {} @@ -382,7 +382,7 @@ importers: fast-glob: ^3.2.11 less: ^4.1.3 postcss-nested: ^5.0.6 - sass: ^1.54.0 + sass: ^1.54.3 stylus: ^0.58.1 devDependencies: css-dep: link:css-dep @@ -390,7 +390,7 @@ importers: fast-glob: 3.2.11 less: 4.1.3 postcss-nested: 5.0.6 - sass: 1.54.0 + sass: 1.54.3 stylus: 0.58.1 playground/css-codesplit: @@ -403,12 +403,12 @@ importers: specifiers: less: ^4.1.3 magic-string: ^0.26.2 - sass: ^1.54.0 + sass: ^1.54.3 stylus: ^0.58.1 devDependencies: less: 4.1.3 magic-string: 0.26.2 - sass: 1.54.0 + sass: 1.54.3 stylus: 0.58.1 playground/css/css-dep: @@ -556,10 +556,10 @@ importers: playground/multiple-entrypoints: specifiers: fast-glob: ^3.2.11 - sass: ^1.54.0 + sass: ^1.54.3 devDependencies: fast-glob: 3.2.11 - sass: 1.54.0 + sass: 1.54.3 playground/nested-deps: specifiers: @@ -841,7 +841,7 @@ importers: playground/resolve: specifiers: '@babel/runtime': ^7.18.9 - es5-ext: 0.10.61 + es5-ext: 0.10.62 normalize.css: ^8.0.1 require-pkg-with-module-field: link:./require-pkg-with-module-field resolve-browser-field: link:./browser-field @@ -852,7 +852,7 @@ importers: resolve-linked: workspace:* dependencies: '@babel/runtime': 7.18.9 - es5-ext: 0.10.61 + es5-ext: 0.10.62 normalize.css: 8.0.1 require-pkg-with-module-field: link:require-pkg-with-module-field resolve-browser-field: link:browser-field @@ -888,9 +888,9 @@ importers: playground/resolve/require-pkg-with-module-field: specifiers: - bignumber.js: 9.0.2 + bignumber.js: 9.1.0 dependencies: - bignumber.js: 9.0.2 + bignumber.js: 9.1.0 playground/ssr-deps: specifiers: @@ -1105,13 +1105,13 @@ importers: specifiers: '@vitejs/plugin-vue': workspace:* autoprefixer: ^10.4.8 - tailwindcss: ^3.1.7 + tailwindcss: ^3.1.8 ts-node: ^10.9.1 vue: ^3.2.37 vue-router: ^4.1.3 dependencies: autoprefixer: 10.4.8 - tailwindcss: 3.1.7_ts-node@10.9.1 + tailwindcss: 3.1.8_ts-node@10.9.1 vue: 3.2.37 vue-router: 4.1.3_vue@3.2.37 devDependencies: @@ -1120,9 +1120,9 @@ importers: playground/tailwind-sourcemap: specifiers: - tailwindcss: ^3.1.7 + tailwindcss: ^3.1.8 dependencies: - tailwindcss: 3.1.7 + tailwindcss: 3.1.8 playground/tsconfig-json: specifiers: {} @@ -1137,7 +1137,7 @@ importers: less: ^4.1.3 lodash-es: ^4.17.21 pug: ^3.0.2 - sass: ^1.54.0 + sass: ^1.54.3 stylus: ^0.58.1 vue: ^3.2.37 dependencies: @@ -1148,7 +1148,7 @@ importers: js-yaml: 4.1.0 less: 4.1.3 pug: 3.0.2 - sass: 1.54.0 + sass: 1.54.3 stylus: 0.58.1 playground/vue-jsx: @@ -1185,7 +1185,7 @@ importers: '@vitejs/plugin-vue': workspace:* less: ^4.1.3 postcss-nested: ^5.0.6 - sass: ^1.54.0 + sass: ^1.54.3 vue: ^3.2.37 dependencies: vue: 3.2.37 @@ -1193,7 +1193,7 @@ importers: '@vitejs/plugin-vue': link:../../packages/plugin-vue less: 4.1.3 postcss-nested: 5.0.6 - sass: 1.54.0 + sass: 1.54.3 playground/wasm: specifiers: {} @@ -1324,6 +1324,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/highlight': 7.17.9 + dev: true /@babel/code-frame/7.18.6: resolution: {integrity: sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==} @@ -1340,6 +1341,28 @@ 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.10 + 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 + /@babel/core/7.18.5: resolution: {integrity: sha512-MGY8vg3DxMnctw0LdvSEojOsumc70g0t18gNyUdAZqB1Rpd1Bqo/svHGvt+UJ6JcGX+DIekGFDxxIWofBxLCnQ==} engines: {node: '>=6.9.0'} @@ -1353,7 +1376,7 @@ packages: '@babel/parser': 7.18.5 '@babel/template': 7.16.7 '@babel/traverse': 7.18.5 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 convert-source-map: 1.8.0 debug: 4.3.4 gensync: 1.0.0-beta.2 @@ -1376,7 +1399,7 @@ packages: '@babel/parser': 7.18.9 '@babel/template': 7.18.6 '@babel/traverse': 7.18.9 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 convert-source-map: 1.8.0 debug: 4.3.4 gensync: 1.0.0-beta.2 @@ -1384,39 +1407,30 @@ packages: semver: 6.3.0 transitivePeerDependencies: - supports-color + dev: true - /@babel/generator/7.17.10: - resolution: {integrity: sha512-46MJZZo9y3o4kmhBVc7zW7i8dtR1oIK/sdO5NcfcZRhTGYi+KKJRtHNgsU6c4VUcJmUNV/LQdebD/9Dlv4K+Tg==} + /@babel/generator/7.18.12: + resolution: {integrity: sha512-dfQ8ebCN98SvyL7IxNMCUtZQSq5R7kxgN+r8qYTGDmmSion1hX2C0zq2yo1bsCDhXixokv1SAWTZUMYbO/V5zg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.8 - '@jridgewell/gen-mapping': 0.1.1 + '@babel/types': 7.18.10 + '@jridgewell/gen-mapping': 0.3.2 jsesc: 2.5.2 - dev: false /@babel/generator/7.18.2: resolution: {integrity: sha512-W1lG5vUwFvfMd8HVXqdfbuG7RuaSrTCCD8cl8fP8wOivdbtbIg2Db3IWUcgvfxKbbn6ZBGYRW/Zk1MIwK49mgw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 '@jridgewell/gen-mapping': 0.3.1 jsesc: 2.5.2 dev: true - /@babel/generator/7.18.7: - resolution: {integrity: sha512-shck+7VLlY72a2w9c3zYWuE1pwOKEiQHV7GTUbSnhyl5eu3i04t30tBY82ZRWrDfo3gkakCFtevExnxbkf2a3A==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.18.7 - '@jridgewell/gen-mapping': 0.3.2 - jsesc: 2.5.2 - dev: false - /@babel/generator/7.18.9: resolution: {integrity: sha512-wt5Naw6lJrL1/SGkipMiFxJjtyczUWTP38deiP1PO60HsBjDeKk08CGC3S8iVuvf0FmTdgKwU1KIXzSKL1G0Ug==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 '@jridgewell/gen-mapping': 0.3.2 jsesc: 2.5.2 @@ -1424,7 +1438,7 @@ packages: resolution: {integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.7 + '@babel/types': 7.18.10 dev: false /@babel/helper-compilation-targets/7.18.2_@babel+core@7.18.5: @@ -1440,6 +1454,18 @@ 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 + /@babel/helper-compilation-targets/7.18.9_@babel+core@7.18.9: resolution: {integrity: sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg==} engines: {node: '>=6.9.0'} @@ -1449,22 +1475,23 @@ packages: '@babel/compat-data': 7.18.8 '@babel/core': 7.18.9 '@babel/helper-validator-option': 7.18.6 - browserslist: 4.20.3 + browserslist: 4.21.3 semver: 6.3.0 + dev: true - /@babel/helper-create-class-features-plugin/7.18.6_@babel+core@7.18.9: - resolution: {integrity: sha512-YfDzdnoxHGV8CzqHGyCbFvXg5QESPFkXlHtvdCkesLjjVMT2Adxe4FGUR5ChIb3DxSaXO12iIOCWoXdsUVwnqw==} + /@babel/helper-create-class-features-plugin/7.18.9_@babel+core@7.18.10: + resolution: {integrity: sha512-WvypNAYaVh23QcjpMR24CwZY2Nz6hqdOcFdPbNpV56hL5H6KiFheO7Xm1aPdlLQ7d5emYZX7VZwPp9x3z+2opw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.18.9 + '@babel/core': 7.18.10 '@babel/helper-annotate-as-pure': 7.18.6 - '@babel/helper-environment-visitor': 7.18.6 - '@babel/helper-function-name': 7.18.6 - '@babel/helper-member-expression-to-functions': 7.18.6 + '@babel/helper-environment-visitor': 7.18.9 + '@babel/helper-function-name': 7.18.9 + '@babel/helper-member-expression-to-functions': 7.18.9 '@babel/helper-optimise-call-expression': 7.18.6 - '@babel/helper-replace-supers': 7.18.6 + '@babel/helper-replace-supers': 7.18.9 '@babel/helper-split-export-declaration': 7.18.6 transitivePeerDependencies: - supports-color @@ -1474,7 +1501,7 @@ packages: resolution: {integrity: sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 dev: true /@babel/helper-environment-visitor/7.18.2: @@ -1482,11 +1509,6 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@babel/helper-environment-visitor/7.18.6: - resolution: {integrity: sha512-8n6gSfn2baOY+qlp+VSzsosjCVGFqWKmDF0cCWOybh52Dw3SEyoWR1KrhMJASjLwIEkkAufZ0xvr+SxLHSpy2Q==} - engines: {node: '>=6.9.0'} - dev: false - /@babel/helper-environment-visitor/7.18.9: resolution: {integrity: sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==} engines: {node: '>=6.9.0'} @@ -1496,54 +1518,47 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.16.7 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 dev: true - /@babel/helper-function-name/7.18.6: - resolution: {integrity: sha512-0mWMxV1aC97dhjCah5U5Ua7668r5ZmSC2DLfH2EZnf9c3/dHZKiFa5pRLMH5tjSl471tY6496ZWk/kjNONBxhw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/template': 7.18.6 - '@babel/types': 7.18.8 - dev: false - /@babel/helper-function-name/7.18.9: resolution: {integrity: sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A==} engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.18.6 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 /@babel/helper-hoist-variables/7.16.7: resolution: {integrity: sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.8 + '@babel/types': 7.18.10 + dev: true /@babel/helper-hoist-variables/7.18.6: resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 - /@babel/helper-member-expression-to-functions/7.18.6: - resolution: {integrity: sha512-CeHxqwwipekotzPDUuJOfIMtcIHBuc7WAzLmTYWctVigqS5RktNMQ5bEwQSuGewzYnCtTWa3BARXeiLxDTv+Ng==} + /@babel/helper-member-expression-to-functions/7.18.9: + resolution: {integrity: sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.8 + '@babel/types': 7.18.10 dev: false /@babel/helper-module-imports/7.16.7: resolution: {integrity: sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.8 + '@babel/types': 7.18.10 /@babel/helper-module-imports/7.18.6: resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 /@babel/helper-module-transforms/7.18.0: resolution: {integrity: sha512-kclUYSUBIjlvnzN2++K9f2qzYKFgjmnmjwL4zlmU5f8ZtzgWe8s0rUPSTGy2HmK4P8T52MQsS+HTQAgZd3dMEA==} @@ -1556,7 +1571,7 @@ packages: '@babel/helper-validator-identifier': 7.16.7 '@babel/template': 7.16.7 '@babel/traverse': 7.18.5 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 transitivePeerDependencies: - supports-color dev: true @@ -1570,9 +1585,9 @@ packages: '@babel/helper-simple-access': 7.18.6 '@babel/helper-split-export-declaration': 7.18.6 '@babel/helper-validator-identifier': 7.18.6 - '@babel/template': 7.18.6 - '@babel/traverse': 7.18.9 - '@babel/types': 7.18.9 + '@babel/template': 7.18.10 + '@babel/traverse': 7.18.11 + '@babel/types': 7.18.10 transitivePeerDependencies: - supports-color @@ -1580,7 +1595,7 @@ packages: resolution: {integrity: sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.8 + '@babel/types': 7.18.10 dev: false /@babel/helper-plugin-utils/7.16.7: @@ -1597,15 +1612,15 @@ packages: resolution: {integrity: sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w==} engines: {node: '>=6.9.0'} - /@babel/helper-replace-supers/7.18.6: - resolution: {integrity: sha512-fTf7zoXnUGl9gF25fXCWE26t7Tvtyn6H4hkLSYhATwJvw2uYxd3aoXplMSe0g9XbwK7bmxNes7+FGO0rB/xC0g==} + /@babel/helper-replace-supers/7.18.9: + resolution: {integrity: sha512-dNsWibVI4lNT6HiuOIBr1oyxo40HvIVmbwPUm3XZ7wMh4k2WxrxTqZwSqw/eEmXDS9np0ey5M2bz9tBmO9c+YQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-environment-visitor': 7.18.6 - '@babel/helper-member-expression-to-functions': 7.18.6 + '@babel/helper-environment-visitor': 7.18.9 + '@babel/helper-member-expression-to-functions': 7.18.9 '@babel/helper-optimise-call-expression': 7.18.6 - '@babel/traverse': 7.18.6 - '@babel/types': 7.18.8 + '@babel/traverse': 7.18.9 + '@babel/types': 7.18.10 transitivePeerDependencies: - supports-color dev: false @@ -1614,27 +1629,31 @@ packages: resolution: {integrity: sha512-txyMCGroZ96i+Pxr3Je3lzEJjqwaRC9buMUgtomcrLe5Nd0+fk1h0LLA+ixUF5OW7AhHuQ7Es1WcQJZmZsz2XA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 dev: true /@babel/helper-simple-access/7.18.6: resolution: {integrity: sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 /@babel/helper-split-export-declaration/7.16.7: resolution: {integrity: sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 dev: true /@babel/helper-split-export-declaration/7.18.6: resolution: {integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 + + /@babel/helper-string-parser/7.18.10: + resolution: {integrity: sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw==} + engines: {node: '>=6.9.0'} /@babel/helper-validator-identifier/7.16.7: resolution: {integrity: sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==} @@ -1659,7 +1678,7 @@ packages: dependencies: '@babel/template': 7.16.7 '@babel/traverse': 7.18.5 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 transitivePeerDependencies: - supports-color dev: true @@ -1668,9 +1687,9 @@ packages: resolution: {integrity: sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': 7.18.6 - '@babel/traverse': 7.18.9 - '@babel/types': 7.18.9 + '@babel/template': 7.18.10 + '@babel/traverse': 7.18.11 + '@babel/types': 7.18.10 transitivePeerDependencies: - supports-color @@ -1681,6 +1700,7 @@ packages: '@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==} @@ -1690,27 +1710,26 @@ packages: chalk: 2.4.2 js-tokens: 4.0.0 - /@babel/parser/7.18.5: - resolution: {integrity: sha512-YZWVaglMiplo7v8f1oMQ5ZPQr0vn7HPeZXxXWsxXJRjGVrzUFn9OxFQl1sb5wzfootjA/yChhW84BV+383FSOw==} + /@babel/parser/7.18.11: + resolution: {integrity: sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.18.4 + '@babel/types': 7.18.10 - /@babel/parser/7.18.6: - resolution: {integrity: sha512-uQVSa9jJUe/G/304lXspfWVpKpK4euFLgGiMQFOCpM/bgcAdeoHwi/OQz23O9GK2osz26ZiXRRV9aV+Yl1O8tw==} + /@babel/parser/7.18.5: + resolution: {integrity: sha512-YZWVaglMiplo7v8f1oMQ5ZPQr0vn7HPeZXxXWsxXJRjGVrzUFn9OxFQl1sb5wzfootjA/yChhW84BV+383FSOw==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.18.7 - dev: false + '@babel/types': 7.18.4 /@babel/parser/7.18.9: resolution: {integrity: sha512-9uJveS9eY9DJ0t64YbIBZICtJy8a5QrDEVdiLCG97fVLpDTpGX7t8mMSb6OWw6Lrnjqj4O8zwjELX3dhoMgiBg==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 /@babel/plugin-proposal-pipeline-operator/7.18.9: resolution: {integrity: sha512-Pc33e6m8f4MJhRXVCUwiKZNtEm+W2CUPHIL0lyJNtkp+w6d75CLw3gsBKQ81VAMUgT9jVPIEU8gwJ5nJgmJ1Ag==} @@ -1722,23 +1741,23 @@ packages: '@babel/plugin-syntax-pipeline-operator': 7.18.6 dev: true - /@babel/plugin-syntax-import-meta/7.10.4_@babel+core@7.18.9: + /@babel/plugin-syntax-import-meta/7.10.4_@babel+core@7.18.10: resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.18.9 + '@babel/core': 7.18.10 '@babel/helper-plugin-utils': 7.16.7 dev: false - /@babel/plugin-syntax-jsx/7.16.7_@babel+core@7.18.9: + /@babel/plugin-syntax-jsx/7.16.7_@babel+core@7.18.10: resolution: {integrity: sha512-Esxmk7YjA8QysKeT3VhTXvF6y77f/a91SIs4pWb4H2eWGQkCKFgQaG6hdoEVZtGsrAcb2K5BW66XsOErD4WU3Q==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/core': 7.18.10 + '@babel/helper-plugin-utils': 7.18.9 dev: false /@babel/plugin-syntax-jsx/7.18.6: @@ -1749,13 +1768,13 @@ packages: dependencies: '@babel/helper-plugin-utils': 7.18.9 - /@babel/plugin-syntax-jsx/7.18.6_@babel+core@7.18.9: + /@babel/plugin-syntax-jsx/7.18.6_@babel+core@7.18.10: resolution: {integrity: sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.18.9 + '@babel/core': 7.18.10 '@babel/helper-plugin-utils': 7.18.9 dev: false @@ -1768,70 +1787,70 @@ packages: '@babel/helper-plugin-utils': 7.18.9 dev: true - /@babel/plugin-syntax-typescript/7.18.6_@babel+core@7.18.9: + /@babel/plugin-syntax-typescript/7.18.6_@babel+core@7.18.10: resolution: {integrity: sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.18.9 - '@babel/helper-plugin-utils': 7.18.6 + '@babel/core': 7.18.10 + '@babel/helper-plugin-utils': 7.18.9 dev: false - /@babel/plugin-transform-react-jsx-development/7.18.6_@babel+core@7.18.9: + /@babel/plugin-transform-react-jsx-development/7.18.6_@babel+core@7.18.10: resolution: {integrity: sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.18.9 - '@babel/plugin-transform-react-jsx': 7.18.6_@babel+core@7.18.9 + '@babel/core': 7.18.10 + '@babel/plugin-transform-react-jsx': 7.18.10_@babel+core@7.18.10 dev: false - /@babel/plugin-transform-react-jsx-self/7.18.6_@babel+core@7.18.9: + /@babel/plugin-transform-react-jsx-self/7.18.6_@babel+core@7.18.10: resolution: {integrity: sha512-A0LQGx4+4Jv7u/tWzoJF7alZwnBDQd6cGLh9P+Ttk4dpiL+J5p7NSNv/9tlEFFJDq3kjxOavWmbm6t0Gk+A3Ig==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.18.9 + '@babel/core': 7.18.10 '@babel/helper-plugin-utils': 7.18.6 dev: false - /@babel/plugin-transform-react-jsx-source/7.18.6_@babel+core@7.18.9: + /@babel/plugin-transform-react-jsx-source/7.18.6_@babel+core@7.18.10: resolution: {integrity: sha512-utZmlASneDfdaMh0m/WausbjUjEdGrQJz0vFK93d7wD3xf5wBtX219+q6IlCNZeguIcxS2f/CvLZrlLSvSHQXw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.18.9 + '@babel/core': 7.18.10 '@babel/helper-plugin-utils': 7.18.6 dev: false - /@babel/plugin-transform-react-jsx/7.18.6_@babel+core@7.18.9: - resolution: {integrity: sha512-Mz7xMPxoy9kPS/JScj6fJs03TZ/fZ1dJPlMjRAgTaxaS0fUBk8FV/A2rRgfPsVCZqALNwMexD+0Uaf5zlcKPpw==} + /@babel/plugin-transform-react-jsx/7.18.10_@babel+core@7.18.10: + resolution: {integrity: sha512-gCy7Iikrpu3IZjYZolFE4M1Sm+nrh1/6za2Ewj77Z+XirT4TsbJcvOFOyF+fRPwU6AKKK136CZxx6L8AbSFG6A==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.18.9 + '@babel/core': 7.18.10 '@babel/helper-annotate-as-pure': 7.18.6 '@babel/helper-module-imports': 7.18.6 - '@babel/helper-plugin-utils': 7.18.6 - '@babel/plugin-syntax-jsx': 7.18.6_@babel+core@7.18.9 - '@babel/types': 7.18.7 + '@babel/helper-plugin-utils': 7.18.9 + '@babel/plugin-syntax-jsx': 7.18.6_@babel+core@7.18.10 + '@babel/types': 7.18.10 dev: false - /@babel/plugin-transform-typescript/7.18.8_@babel+core@7.18.9: - resolution: {integrity: sha512-p2xM8HI83UObjsZGofMV/EdYjamsDm6MoN3hXPYIT0+gxIoopE+B7rPYKAxfrz9K9PK7JafTTjqYC6qipLExYA==} + /@babel/plugin-transform-typescript/7.18.12_@babel+core@7.18.10: + resolution: {integrity: sha512-2vjjam0cum0miPkenUbQswKowuxs/NjMwIKEq0zwegRxXk12C9YOF9STXnaUptITOtOJHKHpzvvWYOjbm6tc0w==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.18.9 - '@babel/helper-create-class-features-plugin': 7.18.6_@babel+core@7.18.9 - '@babel/helper-plugin-utils': 7.18.6 - '@babel/plugin-syntax-typescript': 7.18.6_@babel+core@7.18.9 + '@babel/core': 7.18.10 + '@babel/helper-create-class-features-plugin': 7.18.9_@babel+core@7.18.10 + '@babel/helper-plugin-utils': 7.18.9 + '@babel/plugin-syntax-typescript': 7.18.6_@babel+core@7.18.10 transitivePeerDependencies: - supports-color dev: false @@ -1849,17 +1868,31 @@ packages: dependencies: regenerator-runtime: 0.13.9 + /@babel/standalone/7.18.12: + resolution: {integrity: sha512-wDh3K5IUJiSMAY0MLYBFoCaj2RCZwvDz5BHn2uHat9KOsGWEVDFgFQFIOO+81Js2phFKNppLC45iOCsZVfJniw==} + engines: {node: '>=6.9.0'} + dev: false + /@babel/standalone/7.18.9: resolution: {integrity: sha512-6E+p5azHMHcMkHzGFnA7Pqhtgfwx1cClwjMqomMHhdFupCLZDDpVQUctRGYE7p7nn7cXJZSI/L9en+tt30AP3w==} engines: {node: '>=6.9.0'} + dev: true /@babel/template/7.16.7: resolution: {integrity: sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.16.7 - '@babel/parser': 7.18.5 - '@babel/types': 7.18.8 + '@babel/code-frame': 7.18.6 + '@babel/parser': 7.18.11 + '@babel/types': 7.18.10 + + /@babel/template/7.18.10: + resolution: {integrity: sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.18.6 + '@babel/parser': 7.18.11 + '@babel/types': 7.18.10 /@babel/template/7.18.6: resolution: {integrity: sha512-JoDWzPe+wgBsTTgdnIma3iHNFC7YVJoPssVBDjiHfNlyt4YcunDtcDOUmfVDfCK5MfdsaIoX9PkijPhjH3nYUw==} @@ -1867,26 +1900,43 @@ packages: dependencies: '@babel/code-frame': 7.18.6 '@babel/parser': 7.18.9 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 /@babel/traverse/7.17.10: resolution: {integrity: sha512-VmbrTHQteIdUUQNTb+zE12SHS/xQVIShmBPhlNP12hD5poF2pbITW1Z4172d03HegaQWhLffdkRJYtAzp0AGcw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.16.7 - '@babel/generator': 7.17.10 - '@babel/helper-environment-visitor': 7.18.6 - '@babel/helper-function-name': 7.18.6 - '@babel/helper-hoist-variables': 7.16.7 + '@babel/code-frame': 7.18.6 + '@babel/generator': 7.18.9 + '@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.5 - '@babel/types': 7.18.8 + '@babel/parser': 7.18.11 + '@babel/types': 7.18.10 debug: 4.3.4 globals: 11.12.0 transitivePeerDependencies: - 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.10 + debug: 4.3.4 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + /@babel/traverse/7.18.5: resolution: {integrity: sha512-aKXj1KT66sBj0vVzk6rEeAO6Z9aiiQ68wfDgge3nHhA/my6xMM/7HGQUNumKZaoa2qUPQ5whJG9aAifsxUKfLA==} engines: {node: '>=6.9.0'} @@ -1898,31 +1948,13 @@ packages: '@babel/helper-hoist-variables': 7.16.7 '@babel/helper-split-export-declaration': 7.16.7 '@babel/parser': 7.18.5 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 debug: 4.3.4 globals: 11.12.0 transitivePeerDependencies: - supports-color dev: true - /@babel/traverse/7.18.6: - resolution: {integrity: sha512-zS/OKyqmD7lslOtFqbscH6gMLFYOfG1YPqCKfAW5KrTeolKqvB8UelR49Fpr6y93kYkW2Ik00mT1LOGiAGvizw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/code-frame': 7.18.6 - '@babel/generator': 7.18.7 - '@babel/helper-environment-visitor': 7.18.6 - '@babel/helper-function-name': 7.18.6 - '@babel/helper-hoist-variables': 7.18.6 - '@babel/helper-split-export-declaration': 7.18.6 - '@babel/parser': 7.18.6 - '@babel/types': 7.18.8 - debug: 4.3.4 - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - dev: false - /@babel/traverse/7.18.9: resolution: {integrity: sha512-LcPAnujXGwBgv3/WHv01pHtb2tihcyW1XuL9wd7jqh1Z8AQkTd+QVjMrMijrln0T7ED3UXLIy36P9Ao7W75rYg==} engines: {node: '>=6.9.0'} @@ -1934,7 +1966,7 @@ packages: '@babel/helper-hoist-variables': 7.18.6 '@babel/helper-split-export-declaration': 7.18.6 '@babel/parser': 7.18.9 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 debug: 4.3.4 globals: 11.12.0 transitivePeerDependencies: @@ -1943,37 +1975,23 @@ packages: /@babel/types/7.17.10: resolution: {integrity: sha512-9O26jG0mBYfGkUYCYZRnBwbVLd1UZOICEr2Em6InB6jVfsAv1GKgwXHmrSg+WFWDmeKTA6vyTZiN8tCSM5Oo3A==} engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.16.7 - to-fast-properties: 2.0.0 - - /@babel/types/7.18.4: - resolution: {integrity: sha512-ThN1mBcMq5pG/Vm2IcBmPPfyPXbd8S02rS+OBIDENdufvqC7Z/jHPCv9IcP01277aKtDI8g/2XysBN4hA8niiw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.16.7 - to-fast-properties: 2.0.0 - - /@babel/types/7.18.7: - resolution: {integrity: sha512-QG3yxTcTIBoAcQmkCs+wAPYZhu7Dk9rXKacINfNbdJDNERTbLQbHGyVG8q/YGMPeCJRIhSY0+fTc5+xuh6WPSQ==} - engines: {node: '>=6.9.0'} dependencies: '@babel/helper-validator-identifier': 7.18.6 to-fast-properties: 2.0.0 - dev: false - /@babel/types/7.18.8: - resolution: {integrity: sha512-qwpdsmraq0aJ3osLJRApsc2ouSJCdnMeZwB0DhbtHAtRpZNZCdlbRnHIgcRKzdE1g0iOGg644fzjOBcdOz9cPw==} + /@babel/types/7.18.10: + resolution: {integrity: sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ==} engines: {node: '>=6.9.0'} dependencies: + '@babel/helper-string-parser': 7.18.10 '@babel/helper-validator-identifier': 7.18.6 to-fast-properties: 2.0.0 - /@babel/types/7.18.9: - resolution: {integrity: sha512-WwMLAg2MvJmt/rKEVQBBhIVffMmnilX4oe0sRe7iPOHIGsqpruFHHdrfj4O1CMMtgMtCU4oPafZjDPCRgO57Wg==} + /@babel/types/7.18.4: + resolution: {integrity: sha512-ThN1mBcMq5pG/Vm2IcBmPPfyPXbd8S02rS+OBIDENdufvqC7Z/jHPCv9IcP01277aKtDI8g/2XysBN4hA8niiw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.18.6 + '@babel/helper-validator-identifier': 7.16.7 to-fast-properties: 2.0.0 /@cloudflare/workers-types/2.2.2: @@ -2092,8 +2110,8 @@ packages: resolution: {integrity: sha512-AHPmaAx+RYfZz0eYu6Gviiagpmiyw98ySSlQvCUhVGDRtDFe4DBS0x1bSjdF3gqUDYOczB+yYvBTtEylYSdRhg==} dev: false - /@esbuild-kit/cjs-loader/2.3.1: - resolution: {integrity: sha512-ov6ALYD9xZSPoo5mmGOQtEC/b0xXeUlPy65p8aHMHLF4DfBEe8Y+iquH2lTDsy6Iskc1uMTadF+SVADTSTNJMA==} + /@esbuild-kit/cjs-loader/2.3.3: + resolution: {integrity: sha512-Rt4O1mXlPEDVxvjsHLgbtHVdUXYK9C1/6ThpQnt7FaXIjUOsI6qhHYMgALhNnlIMZffag44lXd6Dqgx3xALbpQ==} dependencies: '@esbuild-kit/core-utils': 2.1.0 get-tsconfig: 4.1.0 @@ -2102,12 +2120,12 @@ packages: /@esbuild-kit/core-utils/2.1.0: resolution: {integrity: sha512-fZirrc2KjeTumVjE4bpleWOk2gD83b7WuGeQqOceKFQL+heNKKkNB5G5pekOUTLzfSBc0hP7hCSBoD9TuR0hLw==} dependencies: - esbuild: 0.14.47 + esbuild: 0.14.50 source-map-support: 0.5.21 dev: true - /@esbuild-kit/esm-loader/2.4.1: - resolution: {integrity: sha512-6x44rygVfNODm27v0RW3wX5y61mqSrXDvB39G0nomgWWqxG3mjiKtPSwrFppdkrA39QIqDgVlD4gJmPOxnleSw==} + /@esbuild-kit/esm-loader/2.4.2: + resolution: {integrity: sha512-N9dPKAj8WOx6djVnStgILWXip4fjDcBk9L7azO0/uQDpu8Ee0eaL78mkN4Acid9BzvNAKWwdYXFJZnsVahNEew==} dependencies: '@esbuild-kit/core-utils': 2.1.0 get-tsconfig: 4.1.0 @@ -2237,30 +2255,30 @@ packages: - supports-color dev: false - /@microsoft/api-extractor-model/7.22.2: - resolution: {integrity: sha512-fqb7std1sRfg7tvXkJwB7zrgIyzty7iIJXxpqA2/bEdct36jhkgIhKpgYr2yoi+Jhqbinjmhyf9tPKJ2E3TdwA==} + /@microsoft/api-extractor-model/7.23.0: + resolution: {integrity: sha512-h+2aVyf8IYidPZp+N+yIc/LY/aBwRZ1Vxlsx7rU31807bba5ScJ94bj7OjsPMje0vRYALf+yjZToYT0HdP6omA==} dependencies: '@microsoft/tsdoc': 0.14.1 '@microsoft/tsdoc-config': 0.16.1 - '@rushstack/node-core-library': 3.50.0 + '@rushstack/node-core-library': 3.50.1 dev: true - /@microsoft/api-extractor/7.28.7: - resolution: {integrity: sha512-hDVYSbqGsY4gioHMi/NkIarAJ2qoE5cKEZ6V5HqLcUl0+hNV0Auk/5VbBmU2UO2le6MFgO69EJsrfszwzC6QBA==} + /@microsoft/api-extractor/7.29.0: + resolution: {integrity: sha512-tGU5DiwQ7/gN9Chi7cuAdspTuVY8hNcq5hBtvwAvb1H85tbiIHuqgoneHI60rkqlud7szkHJLiCkv75kQ0JLjw==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.22.2 + '@microsoft/api-extractor-model': 7.23.0 '@microsoft/tsdoc': 0.14.1 '@microsoft/tsdoc-config': 0.16.1 - '@rushstack/node-core-library': 3.50.0 - '@rushstack/rig-package': 0.3.13 - '@rushstack/ts-command-line': 4.12.1 + '@rushstack/node-core-library': 3.50.1 + '@rushstack/rig-package': 0.3.14 + '@rushstack/ts-command-line': 4.12.2 colors: 1.2.5 lodash: 4.17.21 resolve: 1.17.0 semver: 7.3.7 source-map: 0.6.1 - typescript: 4.6.4 + typescript: 4.7.4 dev: true /@microsoft/tsdoc-config/0.16.1: @@ -2355,40 +2373,40 @@ packages: slash: 3.0.0 dev: true - /@rollup/plugin-commonjs/22.0.1_rollup@2.75.6: + /@rollup/plugin-commonjs/22.0.1_rollup@2.77.0: resolution: {integrity: sha512-dGfEZvdjDHObBiP5IvwTKMVeq/tBZGMBHZFMdIV1ClMM/YoWS34xrHFGfag9SN2ZtMgNZRFruqvxZQEa70O6nQ==} engines: {node: '>= 12.0.0'} peerDependencies: rollup: ^2.68.0 dependencies: - '@rollup/pluginutils': 3.1.0_rollup@2.75.6 + '@rollup/pluginutils': 3.1.0_rollup@2.77.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.75.6 + rollup: 2.77.0 dev: true - /@rollup/plugin-commonjs/22.0.1_rollup@2.77.0: - resolution: {integrity: sha512-dGfEZvdjDHObBiP5IvwTKMVeq/tBZGMBHZFMdIV1ClMM/YoWS34xrHFGfag9SN2ZtMgNZRFruqvxZQEa70O6nQ==} + /@rollup/plugin-commonjs/22.0.2_rollup@2.75.6: + resolution: {integrity: sha512-//NdP6iIwPbMTcazYsiBMbJW7gfmpHom33u1beiIoHDEM0Q9clvtQB1T0efvMqHeKsGohiHo97BCPCkBXdscwg==} engines: {node: '>= 12.0.0'} peerDependencies: rollup: ^2.68.0 dependencies: - '@rollup/pluginutils': 3.1.0_rollup@2.77.0 + '@rollup/pluginutils': 3.1.0_rollup@2.75.6 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.77.0 + rollup: 2.75.6 dev: true - /@rollup/plugin-dynamic-import-vars/1.4.3_rollup@2.75.6: - resolution: {integrity: sha512-VYP9BBVI0pcYpLp/DkFT8YP+EmqmWFMmWXoTObDH6OouERxJyPsIj0tC3HxhjNBOKgcRc7eV75IQItzELt7QSg==} + /@rollup/plugin-dynamic-import-vars/1.4.4_rollup@2.75.6: + resolution: {integrity: sha512-51BcU6ag9EeF09CtEsa5D/IHYo7KI42TR1Jc4doNzV1nHAiH7TvUi5vsLERFMjs9Gzy9K0otbZH/2wb0hpBhRA==} engines: {node: '>= 10.0.0'} peerDependencies: rollup: ^1.20.0||^2.0.0 @@ -2525,8 +2543,8 @@ packages: picomatch: 2.3.1 dev: true - /@rushstack/node-core-library/3.50.0: - resolution: {integrity: sha512-FFEZhgu6iN1MVjpQWmLcz46pSa4r2Oe2JYPo7mtnl3uYfwDaSXUSZuRN3JQgKkXu10TBcffJ7AGKcIt/k+qE/Q==} + /@rushstack/node-core-library/3.50.1: + resolution: {integrity: sha512-9d2xE7E9yQEBS6brTptdP8cslt6iL5+UnkY2lRxQQ4Q/jlXtsrWCCJCxwr56W/eJEe9YT/yHR4mMn5QY64Ps2w==} dependencies: '@types/node': 12.20.24 colors: 1.2.5 @@ -2539,15 +2557,15 @@ packages: z-schema: 5.0.3 dev: true - /@rushstack/rig-package/0.3.13: - resolution: {integrity: sha512-4/2+yyA/uDl7LQvtYtFs1AkhSWuaIGEKhP9/KK2nNARqOVc5eCXmu1vyOqr5mPvNq7sHoIR+sG84vFbaKYGaDA==} + /@rushstack/rig-package/0.3.14: + resolution: {integrity: sha512-Ic9EN3kWJCK6iOxEDtwED9nrM146zCDrQaUxbeGOF+q/VLZ/HNHPw+aLqrqmTl0ZT66Sf75Qk6OG+rySjTorvQ==} dependencies: resolve: 1.17.0 strip-json-comments: 3.1.1 dev: true - /@rushstack/ts-command-line/4.12.1: - resolution: {integrity: sha512-S1Nev6h/kNnamhHeGdp30WgxZTA+B76SJ/P721ctP7DrnC+rrjAc6h/R80I4V0cA2QuEEcMdVOQCtK2BTjsOiQ==} + /@rushstack/ts-command-line/4.12.2: + resolution: {integrity: sha512-poBtnumLuWmwmhCEkVAgynWgtnF9Kygekxyp4qtQUSbBrkuyPQTL85c8Cva1YfoUpOdOXxezMAkUt0n5SNKGqw==} dependencies: '@types/argparse': 1.0.38 argparse: 1.0.10 @@ -2579,7 +2597,7 @@ packages: resolution: {integrity: sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw==} dependencies: '@babel/parser': 7.18.5 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 '@types/babel__generator': 7.6.4 '@types/babel__template': 7.4.1 '@types/babel__traverse': 7.17.1 @@ -2588,7 +2606,7 @@ packages: /@types/babel__generator/7.6.4: resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 dev: true /@types/babel__standalone/7.1.4: @@ -2603,13 +2621,13 @@ packages: resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==} dependencies: '@babel/parser': 7.18.5 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 dev: true /@types/babel__traverse/7.17.1: resolution: {integrity: sha512-kVzjari1s2YVi77D3w1yuvohV2idweYXMCDzqBiVNN63TcDWrIlTVOYpqVrvbbyOE/IyzBoTKF0fdnLPEORFxA==} dependencies: - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 dev: true /@types/braces/3.0.1: @@ -2751,8 +2769,8 @@ packages: '@types/node': 17.0.42 dev: true - /@typescript-eslint/eslint-plugin/5.31.0_47ooyv4whyi5jcher5bzfc7xvi: - resolution: {integrity: sha512-VKW4JPHzG5yhYQrQ1AzXgVgX8ZAJEvCz0QI6mLRX4tf7rnFfh5D8SKm0Pq6w5PyNfAWJk6sv313+nEt3ohWMBQ==} + /@typescript-eslint/eslint-plugin/5.33.0_y4zvvqz4rccbgvlojt5544lsha: + resolution: {integrity: sha512-jHvZNSW2WZ31OPJ3enhLrEKvAZNyAFWZ6rx9tUwaessTc4sx9KmgMNhVcqVAl1ETnT5rU5fpXTLmY9YvC1DCNg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: '@typescript-eslint/parser': ^5.0.0 @@ -2762,10 +2780,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im - '@typescript-eslint/scope-manager': 5.31.0 - '@typescript-eslint/type-utils': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im - '@typescript-eslint/utils': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im + '@typescript-eslint/parser': 5.33.0_vxmhu3tyr7cxhd2vxjkubkv7im + '@typescript-eslint/scope-manager': 5.33.0 + '@typescript-eslint/type-utils': 5.33.0_vxmhu3tyr7cxhd2vxjkubkv7im + '@typescript-eslint/utils': 5.33.0_vxmhu3tyr7cxhd2vxjkubkv7im debug: 4.3.4 eslint: 8.21.0 functional-red-black-tree: 1.0.1 @@ -2778,8 +2796,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser/5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im: - resolution: {integrity: sha512-UStjQiZ9OFTFReTrN+iGrC6O/ko9LVDhreEK5S3edmXgR396JGq7CoX2TWIptqt/ESzU2iRKXAHfSF2WJFcWHw==} + /@typescript-eslint/parser/5.33.0_vxmhu3tyr7cxhd2vxjkubkv7im: + resolution: {integrity: sha512-cgM5cJrWmrDV2KpvlcSkelTBASAs1mgqq+IUGKJvFxWrapHpaRy5EXPQz9YaKF3nZ8KY18ILTiVpUtbIac86/w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -2788,9 +2806,9 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 5.31.0 - '@typescript-eslint/types': 5.31.0 - '@typescript-eslint/typescript-estree': 5.31.0_typescript@4.6.4 + '@typescript-eslint/scope-manager': 5.33.0 + '@typescript-eslint/types': 5.33.0 + '@typescript-eslint/typescript-estree': 5.33.0_typescript@4.6.4 debug: 4.3.4 eslint: 8.21.0 typescript: 4.6.4 @@ -2798,16 +2816,16 @@ packages: - supports-color dev: true - /@typescript-eslint/scope-manager/5.31.0: - resolution: {integrity: sha512-8jfEzBYDBG88rcXFxajdVavGxb5/XKXyvWgvD8Qix3EEJLCFIdVloJw+r9ww0wbyNLOTYyBsR+4ALNGdlalLLg==} + /@typescript-eslint/scope-manager/5.33.0: + resolution: {integrity: sha512-/Jta8yMNpXYpRDl8EwF/M8It2A9sFJTubDo0ATZefGXmOqlaBffEw0ZbkbQ7TNDK6q55NPHFshGBPAZvZkE8Pw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.31.0 - '@typescript-eslint/visitor-keys': 5.31.0 + '@typescript-eslint/types': 5.33.0 + '@typescript-eslint/visitor-keys': 5.33.0 dev: true - /@typescript-eslint/type-utils/5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im: - resolution: {integrity: sha512-7ZYqFbvEvYXFn9ax02GsPcEOmuWNg+14HIf4q+oUuLnMbpJ6eHAivCg7tZMVwzrIuzX3QCeAOqKoyMZCv5xe+w==} + /@typescript-eslint/type-utils/5.33.0_vxmhu3tyr7cxhd2vxjkubkv7im: + resolution: {integrity: sha512-2zB8uEn7hEH2pBeyk3NpzX1p3lF9dKrEbnXq1F7YkpZ6hlyqb2yZujqgRGqXgRBTHWIUG3NGx/WeZk224UKlIA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -2816,7 +2834,7 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/utils': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im + '@typescript-eslint/utils': 5.33.0_vxmhu3tyr7cxhd2vxjkubkv7im debug: 4.3.4 eslint: 8.21.0 tsutils: 3.21.0_typescript@4.6.4 @@ -2825,13 +2843,13 @@ packages: - supports-color dev: true - /@typescript-eslint/types/5.31.0: - resolution: {integrity: sha512-/f/rMaEseux+I4wmR6mfpM2wvtNZb1p9hAV77hWfuKc3pmaANp5dLAZSiE3/8oXTYTt3uV9KW5yZKJsMievp6g==} + /@typescript-eslint/types/5.33.0: + resolution: {integrity: sha512-nIMt96JngB4MYFYXpZ/3ZNU4GWPNdBbcB5w2rDOCpXOVUkhtNlG2mmm8uXhubhidRZdwMaMBap7Uk8SZMU/ppw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/typescript-estree/5.31.0_typescript@4.6.4: - resolution: {integrity: sha512-3S625TMcARX71wBc2qubHaoUwMEn+l9TCsaIzYI/ET31Xm2c9YQ+zhGgpydjorwQO9pLfR/6peTzS/0G3J/hDw==} + /@typescript-eslint/typescript-estree/5.33.0_typescript@4.6.4: + resolution: {integrity: sha512-tqq3MRLlggkJKJUrzM6wltk8NckKyyorCSGMq4eVkyL5sDYzJJcMgZATqmF8fLdsWrW7OjjIZ1m9v81vKcaqwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: typescript: '*' @@ -2839,8 +2857,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.31.0 - '@typescript-eslint/visitor-keys': 5.31.0 + '@typescript-eslint/types': 5.33.0 + '@typescript-eslint/visitor-keys': 5.33.0 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 @@ -2851,16 +2869,16 @@ packages: - supports-color dev: true - /@typescript-eslint/utils/5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im: - resolution: {integrity: sha512-kcVPdQS6VIpVTQ7QnGNKMFtdJdvnStkqS5LeALr4rcwx11G6OWb2HB17NMPnlRHvaZP38hL9iK8DdE9Fne7NYg==} + /@typescript-eslint/utils/5.33.0_vxmhu3tyr7cxhd2vxjkubkv7im: + resolution: {integrity: sha512-JxOAnXt9oZjXLIiXb5ZIcZXiwVHCkqZgof0O8KPgz7C7y0HS42gi75PdPlqh1Tf109M0fyUw45Ao6JLo7S5AHw==} 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.31.0 - '@typescript-eslint/types': 5.31.0 - '@typescript-eslint/typescript-estree': 5.31.0_typescript@4.6.4 + '@typescript-eslint/scope-manager': 5.33.0 + '@typescript-eslint/types': 5.33.0 + '@typescript-eslint/typescript-estree': 5.33.0_typescript@4.6.4 eslint: 8.21.0 eslint-scope: 5.1.1 eslint-utils: 3.0.0_eslint@8.21.0 @@ -2869,11 +2887,11 @@ packages: - typescript dev: true - /@typescript-eslint/visitor-keys/5.31.0: - resolution: {integrity: sha512-ZK0jVxSjS4gnPirpVjXHz7mgdOsZUHzNYSfTw2yPa3agfbt9YfqaBiBZFSSxeBWnpWkzCxTfUpnzA3Vily/CSg==} + /@typescript-eslint/visitor-keys/5.33.0: + resolution: {integrity: sha512-/XsqCzD4t+Y9p5wd9HZiptuGKBlaZO5showwqODii5C0nZawxWLF+Q6k5wYHBrQv96h6GYKyqqMHCSTqta8Kiw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.31.0 + '@typescript-eslint/types': 5.33.0 eslint-visitor-keys: 3.3.0 dev: true @@ -2881,11 +2899,11 @@ packages: resolution: {integrity: sha512-hz4R8tS5jMn8lDq6iD+yWL6XNB699pGIVLk7WSJnn1dbpjaazsjZQkieJoRX6gW5zpYSCFqQ7jUquPNY65tQYA==} dev: false - /@vue/babel-plugin-jsx/1.1.1_@babel+core@7.18.9: + /@vue/babel-plugin-jsx/1.1.1_@babel+core@7.18.10: resolution: {integrity: sha512-j2uVfZjnB5+zkcbc/zsOc0fSNGCMMjaEXP52wdwdIfn0qjFfEYpYZBFKFg+HHnQeJCVrjOeO0YxgaL7DMrym9w==} dependencies: '@babel/helper-module-imports': 7.16.7 - '@babel/plugin-syntax-jsx': 7.16.7_@babel+core@7.18.9 + '@babel/plugin-syntax-jsx': 7.16.7_@babel+core@7.18.10 '@babel/template': 7.16.7 '@babel/traverse': 7.17.10 '@babel/types': 7.17.10 @@ -3329,8 +3347,8 @@ packages: - supports-color dev: false - /bignumber.js/9.0.2: - resolution: {integrity: sha512-GAcQvbpsM0pUb0zw1EI0KhQEZ+lRwR5fYaAp3vPOYuP7aDvGy6cVN6XHLauvF8SOga2y0dcLcjt3iQDTSEliyw==} + /bignumber.js/9.1.0: + resolution: {integrity: sha512-4LwHK4nfDOraBCtst+wOWIHbu1vhvAPJK8g8nROd4iuc3PSEjWif/qwbkh8jwCJz6yDBvtU4KPynETgrfh7y3A==} dev: false /binary-extensions/2.2.0: @@ -3383,6 +3401,7 @@ packages: escalade: 3.1.1 node-releases: 2.0.4 picocolors: 1.0.0 + dev: true /browserslist/4.21.3: resolution: {integrity: sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==} @@ -3393,7 +3412,6 @@ packages: electron-to-chromium: 1.4.206 node-releases: 2.0.6 update-browserslist-db: 1.0.5_browserslist@4.21.3 - dev: false /buffer-from/1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} @@ -3462,10 +3480,10 @@ packages: /caniuse-lite/1.0.30001339: resolution: {integrity: sha512-Es8PiVqCe+uXdms0Gu5xP5PF2bxLR7OBp3wUzUnuO7OHzhOfCyg3hdiGWVPVxhiuniOzng+hTc1u3fEQ0TlkSQ==} + dev: true /caniuse-lite/1.0.30001373: resolution: {integrity: sha512-pJYArGHrPp3TUqQzFYRmP/lwJlj8RCbVe3Gd3eJQkAV8SAC6b19XS9BjMvRdvaS8RMkaTN8ZhoHP6S1y8zzwEQ==} - dev: false /chai/4.3.6: resolution: {integrity: sha512-bbcp3YfHCUzMOvKqsztczerVgBKSsEijCySNlHHbX3VG1nskvqjz5Rfso1gGwD6w6oOV3eI60pKuMOV5MV7p3Q==} @@ -3896,8 +3914,8 @@ packages: engines: {node: '>=10'} hasBin: true dependencies: - is-text-path: 1.0.1 JSONStream: 1.3.5 + is-text-path: 1.0.1 lodash: 4.17.21 meow: 8.1.2 split2: 3.2.2 @@ -4020,7 +4038,7 @@ packages: /d/1.0.1: resolution: {integrity: sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==} dependencies: - es5-ext: 0.10.61 + es5-ext: 0.10.62 type: 1.2.0 dev: false @@ -4240,10 +4258,10 @@ packages: /electron-to-chromium/1.4.137: resolution: {integrity: sha512-0Rcpald12O11BUogJagX3HsCN3FE83DSqWjgXoHo5a72KUKMSfI39XBgJpgNNxS9fuGzytaFjE06kZkiVFy2qA==} + dev: true /electron-to-chromium/1.4.206: resolution: {integrity: sha512-h+Fadt1gIaQ06JaIiyqPsBjJ08fV5Q7md+V8bUvQW/9OvXfL2LRICTz2EcnnCP7QzrFTS6/27MRV6Bl9Yn97zA==} - dev: false /emoji-regex/8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -4328,8 +4346,8 @@ packages: is-symbol: 1.0.4 dev: true - /es5-ext/0.10.61: - resolution: {integrity: sha512-yFhIqQAzu2Ca2I4SE2Au3rxVfmohU9Y7wqGR+s7+H7krk26NXhIRAZDgqd6xqjCEFUomDEA3/Bo/7fKmIkW1kA==} + /es5-ext/0.10.62: + resolution: {integrity: sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==} engines: {node: '>=0.10'} requiresBuild: true dependencies: @@ -4339,10 +4357,10 @@ packages: dev: false /es6-iterator/2.0.3: - resolution: {integrity: sha1-p96IkUGgWpSwhUQDstCg+/qY87c=} + resolution: {integrity: sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==} dependencies: d: 1.0.1 - es5-ext: 0.10.61 + es5-ext: 0.10.62 es6-symbol: 3.1.3 dev: false @@ -4778,7 +4796,7 @@ packages: - supports-color dev: true - /eslint-module-utils/2.7.3_vozeh3qpn3prlhg65r4uuu3jv4: + /eslint-module-utils/2.7.3_oh3tx5uf4prsskzvqzbn7hm6ya: resolution: {integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==} engines: {node: '>=4'} peerDependencies: @@ -4796,7 +4814,7 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im + '@typescript-eslint/parser': 5.33.0_vxmhu3tyr7cxhd2vxjkubkv7im debug: 3.2.7 eslint-import-resolver-node: 0.3.6 find-up: 2.1.0 @@ -4815,7 +4833,7 @@ packages: regexpp: 3.2.0 dev: true - /eslint-plugin-import/2.26.0_eygs4xj346vriqwkjbwjuyviaa: + /eslint-plugin-import/2.26.0_qfqnhzzittf54udqwes54xx65q: resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==} engines: {node: '>=4'} peerDependencies: @@ -4825,14 +4843,14 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 5.31.0_vxmhu3tyr7cxhd2vxjkubkv7im + '@typescript-eslint/parser': 5.33.0_vxmhu3tyr7cxhd2vxjkubkv7im array-includes: 3.1.5 array.prototype.flat: 1.3.0 debug: 2.6.9 doctrine: 2.1.0 eslint: 8.21.0 eslint-import-resolver-node: 0.3.6 - eslint-module-utils: 2.7.3_vozeh3qpn3prlhg65r4uuu3jv4 + eslint-module-utils: 2.7.3_oh3tx5uf4prsskzvqzbn7hm6ya has: 1.0.3 is-core-module: 2.9.0 is-glob: 4.0.3 @@ -5626,13 +5644,13 @@ packages: resolution: {integrity: sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=} dev: true - /icss-utils/5.1.0_postcss@8.4.14: + /icss-utils/5.1.0_postcss@8.4.16: resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: postcss: ^8.1.0 dependencies: - postcss: 8.4.14 + postcss: 8.4.16 dev: true /ignore/5.2.0: @@ -5836,7 +5854,7 @@ packages: /is-reference/1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} dependencies: - '@types/estree': 0.0.51 + '@types/estree': 1.0.0 dev: true /is-reference/3.0.0: @@ -6030,14 +6048,14 @@ packages: resolution: {integrity: sha512-lxpCM3HTvquGxKGzHeknB/sUjuVoUElLlfYnXZT73K8geR9jQbroGlSCFBax9/0mpGoD3kzcMLnOlGQPJJNyqQ==} dev: false - /launch-editor-middleware/2.4.0: - resolution: {integrity: sha512-/M7AX/6xktZY60KE7j71XLrj9U6H5TBoP+mJzhYB3fcdAq8rcazit/K0qWiu1jvytUPXP4lJRd1VJFwvdMQ/uw==} + /launch-editor-middleware/2.5.0: + resolution: {integrity: sha512-kv9MMO81pbYjznk9j/DBu0uBGxIpT6uYhGajq6fxdGEPb+DCRBoS96jGkhe3MJumdY3zZFkuS8CFPTZI9DaBNw==} dependencies: - launch-editor: 2.4.0 + launch-editor: 2.5.0 dev: true - /launch-editor/2.4.0: - resolution: {integrity: sha512-mZ0BHeSn/ohL+Ib+b+JnxC59vcNz6v5IR9d0CuM8f0x8ni8oK3IIG6G0vMkpxc0gFsmvINkztGOHiWTaX4BmAg==} + /launch-editor/2.5.0: + resolution: {integrity: sha512-coRiIMBJ3JF7yX8nZE4Fr+xxUy+3WTRsDSwIzHghU28gjXwkAWsvac3BpZrL/jHtbiqQ4TiRAyTJmsgErNk1jQ==} dependencies: picocolors: 1.0.0 shell-quote: 1.7.3 @@ -6475,6 +6493,14 @@ packages: pkg-types: 0.3.3 dev: true + /mlly/0.5.7: + resolution: {integrity: sha512-rz+n2i9862ymLH+UDlHpsuTVyCIAs+9WejS2De2VUlAKdpq8OJ9x/C2M7nNUMLEW1H+D6n0uZlpz8+tMGxCmyQ==} + dependencies: + acorn: 8.8.0 + pathe: 0.3.3 + pkg-types: 0.3.3 + dev: true + /modify-values/1.0.1: resolution: {integrity: sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==} engines: {node: '>=0.10.0'} @@ -6596,10 +6622,10 @@ packages: /node-releases/2.0.4: resolution: {integrity: sha512-gbMzqQtTtDz/00jQzZ21PQzdI9PyLYqUSvD0p3naOhX4odFji0ZxYdnVwPTxmSwkmxhcFImpozceidSG+AgoPQ==} + dev: true /node-releases/2.0.6: resolution: {integrity: sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==} - dev: false /nopt/5.0.0: resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==} @@ -6935,6 +6961,10 @@ packages: resolution: {integrity: sha512-qhnmX0TOqlCvdWWTkoM83wh5J8fZ2yhbDEc9MlsnAEtEc+JCwxUKEwmd6pkY9hRe6JR1Uecbc14VcAKX2yFSTA==} dev: true + /pathe/0.3.3: + resolution: {integrity: sha512-x3nrPvG0HDSDzUiJ0WqtzhN4MD+h5B+dFJ3/qyxVuARlr4Y3aJv8gri2cZzp9Z8sGs2a+aG9gNbKngh3gme57A==} + dev: true + /pathval/1.1.1: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} dev: true @@ -6988,8 +7018,8 @@ packages: resolution: {integrity: sha512-6AJcCMnjUQPQv/Wk960w0TOmjhdjbeaQJoSKWRQv9N3rgkessCu6J0Ydsog/nw1MbpnxHuPzYbfOn2KmlZO1FA==} dependencies: jsonc-parser: 3.0.0 - mlly: 0.5.5 - pathe: 0.3.2 + mlly: 0.5.7 + pathe: 0.3.3 dev: true /playwright-chromium/1.24.2: @@ -7007,8 +7037,8 @@ packages: hasBin: true dev: true - /pnpm/7.8.0: - resolution: {integrity: sha512-jzb9/gto4nwuVA2itTRk0PJhuaZcA1NBRB298UzXhqKZQMjtHCS+KLzh7RWk5n3g+KnMg5FHr6Mwg1L62dBz1A==} + /pnpm/7.9.0: + resolution: {integrity: sha512-xkIVw73yJm/h5M4VvFIS5Q+gQCRDrp3r92g58PtcCK86aZCa7EQ6q6ivdfTAz0KsAVgloA6Anub28n6wju5v3w==} engines: {node: '>=14.6'} hasBin: true dev: true @@ -7024,6 +7054,18 @@ packages: read-cache: 1.0.0 resolve: 1.22.1 + /postcss-import/14.1.0_postcss@8.4.16: + resolution: {integrity: sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==} + engines: {node: '>=10.0.0'} + peerDependencies: + postcss: ^8.0.0 + dependencies: + postcss: 8.4.16 + postcss-value-parser: 4.2.0 + read-cache: 1.0.0 + resolve: 1.22.1 + dev: true + /postcss-js/4.0.0_postcss@8.4.14: resolution: {integrity: sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==} engines: {node: ^12 || ^14 || >= 16} @@ -7067,7 +7109,7 @@ packages: postcss: 8.4.14 yaml: 1.10.2 - /postcss-load-config/4.0.1_postcss@8.4.14: + /postcss-load-config/4.0.1_postcss@8.4.16: resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==} engines: {node: '>= 14'} peerDependencies: @@ -7080,52 +7122,52 @@ packages: optional: true dependencies: lilconfig: 2.0.5 - postcss: 8.4.14 + postcss: 8.4.16 yaml: 2.1.1 dev: true - /postcss-modules-extract-imports/3.0.0_postcss@8.4.14: + /postcss-modules-extract-imports/3.0.0_postcss@8.4.16: resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: postcss: ^8.1.0 dependencies: - postcss: 8.4.14 + postcss: 8.4.16 dev: true - /postcss-modules-local-by-default/4.0.0_postcss@8.4.14: + /postcss-modules-local-by-default/4.0.0_postcss@8.4.16: resolution: {integrity: sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: postcss: ^8.1.0 dependencies: - icss-utils: 5.1.0_postcss@8.4.14 - postcss: 8.4.14 + icss-utils: 5.1.0_postcss@8.4.16 + postcss: 8.4.16 postcss-selector-parser: 6.0.10 postcss-value-parser: 4.2.0 dev: true - /postcss-modules-scope/3.0.0_postcss@8.4.14: + /postcss-modules-scope/3.0.0_postcss@8.4.16: resolution: {integrity: sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: postcss: ^8.1.0 dependencies: - postcss: 8.4.14 + postcss: 8.4.16 postcss-selector-parser: 6.0.10 dev: true - /postcss-modules-values/4.0.0_postcss@8.4.14: + /postcss-modules-values/4.0.0_postcss@8.4.16: resolution: {integrity: sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==} engines: {node: ^10 || ^12 || >= 14} peerDependencies: postcss: ^8.1.0 dependencies: - icss-utils: 5.1.0_postcss@8.4.14 - postcss: 8.4.14 + icss-utils: 5.1.0_postcss@8.4.16 + postcss: 8.4.16 dev: true - /postcss-modules/4.3.1_postcss@8.4.14: + /postcss-modules/4.3.1_postcss@8.4.16: resolution: {integrity: sha512-ItUhSUxBBdNamkT3KzIZwYNNRFKmkJrofvC2nWab3CPKhYBQ1f27XXh1PAPE27Psx58jeelPsxWB/+og+KEH0Q==} peerDependencies: postcss: ^8.0.0 @@ -7133,11 +7175,11 @@ packages: generic-names: 4.0.0 icss-replace-symbols: 1.1.0 lodash.camelcase: 4.3.0 - postcss: 8.4.14 - postcss-modules-extract-imports: 3.0.0_postcss@8.4.14 - postcss-modules-local-by-default: 4.0.0_postcss@8.4.14 - postcss-modules-scope: 3.0.0_postcss@8.4.14 - postcss-modules-values: 4.0.0_postcss@8.4.14 + postcss: 8.4.16 + postcss-modules-extract-imports: 3.0.0_postcss@8.4.16 + postcss-modules-local-by-default: 4.0.0_postcss@8.4.16 + postcss-modules-scope: 3.0.0_postcss@8.4.16 + postcss-modules-values: 4.0.0_postcss@8.4.16 string-hash: 1.1.3 dev: true @@ -7177,6 +7219,14 @@ packages: picocolors: 1.0.0 source-map-js: 1.0.2 + /postcss/8.4.16: + resolution: {integrity: sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ==} + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: 3.3.4 + picocolors: 1.0.0 + source-map-js: 1.0.2 + /preact/10.7.3: resolution: {integrity: sha512-giqJXP8VbtA1tyGa3f1n9wiN7PrHtONrDyE3T+ifjr/tTkg+2N4d/6sjC9WyJKv8wM7rOYDveqy5ZoFmYlwo4w==} dev: true @@ -7723,8 +7773,8 @@ packages: truncate-utf8-bytes: 1.0.2 dev: true - /sass/1.54.0: - resolution: {integrity: sha512-C4zp79GCXZfK0yoHZg+GxF818/aclhp9F48XBu/+bm9vXEVAYov9iU3FBVRMq3Hx3OA4jfKL+p2K9180mEh0xQ==} + /sass/1.54.3: + resolution: {integrity: sha512-fLodey5Qd41Pxp/Tk7Al97sViYwF/TazRc5t6E65O7JOk4XF8pzwIW7CvCxYVOfJFFI/1x5+elDyBIixrp+zrw==} engines: {node: '>=12.0.0'} hasBin: true dependencies: @@ -8190,8 +8240,8 @@ packages: resolution: {integrity: sha512-hqTN6kW+pN6/qro6G9OZ7ceDQOcYno020zBQKpZQLsJhYTDMCMNfXi/Y8duF5iW+4WWZr42ry0MMkcRGpbwG2A==} dev: false - /tailwindcss/3.1.7: - resolution: {integrity: sha512-r7mgumZ3k0InfVPpGWcX8X/Ut4xBfv+1O/+C73ar/m01LxGVzWvPxF/w6xIUPEztrCoz7axfx0SMdh8FH8ZvRQ==} + /tailwindcss/3.1.8: + resolution: {integrity: sha512-YSneUCZSFDYMwk+TGq8qYFdCA3yfBRdBlS7txSq0LUmzyeqRe3a8fBQzbz9M3WS/iFT4BNf/nmw9mEzrnSaC0g==} engines: {node: '>=12.13.0'} hasBin: true dependencies: @@ -8220,8 +8270,8 @@ packages: transitivePeerDependencies: - ts-node - /tailwindcss/3.1.7_ts-node@10.9.1: - resolution: {integrity: sha512-r7mgumZ3k0InfVPpGWcX8X/Ut4xBfv+1O/+C73ar/m01LxGVzWvPxF/w6xIUPEztrCoz7axfx0SMdh8FH8ZvRQ==} + /tailwindcss/3.1.8_ts-node@10.9.1: + resolution: {integrity: sha512-YSneUCZSFDYMwk+TGq8qYFdCA3yfBRdBlS7txSq0LUmzyeqRe3a8fBQzbz9M3WS/iFT4BNf/nmw9mEzrnSaC0g==} engines: {node: '>=12.13.0'} hasBin: true dependencies: @@ -8332,7 +8382,7 @@ packages: dev: true /to-fast-properties/2.0.0: - resolution: {integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=} + resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} engines: {node: '>=4'} /to-regex-range/5.0.1: @@ -8443,13 +8493,13 @@ packages: typescript: 4.6.4 dev: true - /tsx/3.8.0: - resolution: {integrity: sha512-PcvTwRXTm6hDWfPihA4n5WW/9SmgFNxKaDKqvLLG+FKNEPA4crsipChzC7PVozPtdOaMfR5QctDlkC/hKoIsxw==} + /tsx/3.8.1: + resolution: {integrity: sha512-YA2fDf1V9j/6qX/QSnapMmzulbqlx7FeVL6d9ySHDJoECkslAlZO38UuyFCiNPjam74hbyHbJfUF+n2ZT14KDA==} hasBin: true dependencies: - '@esbuild-kit/cjs-loader': 2.3.1 + '@esbuild-kit/cjs-loader': 2.3.3 '@esbuild-kit/core-utils': 2.1.0 - '@esbuild-kit/esm-loader': 2.4.1 + '@esbuild-kit/esm-loader': 2.4.2 optionalDependencies: fsevents: 2.3.2 dev: true @@ -8613,7 +8663,7 @@ packages: dependencies: '@babel/core': 7.18.9 '@babel/standalone': 7.18.9 - '@babel/types': 7.18.9 + '@babel/types': 7.18.10 scule: 0.2.1 transitivePeerDependencies: - supports-color @@ -8628,7 +8678,6 @@ packages: browserslist: 4.21.3 escalade: 3.1.1 picocolors: 1.0.0 - dev: false /uri-js/4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} @@ -8706,8 +8755,8 @@ packages: - react-dom dev: true - /vitest/0.20.2: - resolution: {integrity: sha512-AFXTHrwG4d2OO6SAL8WP5ZkOwLtgeF4tlrHfXFqrHc+5chNegeR53pge0lv/C4316SqJ2DbYaUBH8vh3CdF+BQ==} + /vitest/0.21.0: + resolution: {integrity: sha512-+BQB2swk4wQdw5loOoL8esIYh/1ifAliuwj2HWHNE2F8SAl/jF7/aoCJBoXGSf/Ws19k3pH4NrWeVtcSwM0j2w==} engines: {node: '>=v14.16.0'} hasBin: true peerDependencies: From 6ad6734ae269cedd08203320d7f914337c67c868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Tue, 9 Aug 2022 13:07:45 +0800 Subject: [PATCH 33/36] docs: fix renderBuiltUrl example (#9558) --- docs/guide/build.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/build.md b/docs/guide/build.md index bcc840d40cb56a..30dadbbb2473df 100644 --- a/docs/guide/build.md +++ b/docs/guide/build.md @@ -210,7 +210,7 @@ A single static [base](#public-base-path) isn't enough in these scenarios. Vite ```ts experimental: { - renderBuiltUrl: (filename: string, { hostType: 'js' | 'css' | 'html' }) => { + renderBuiltUrl(filename: string, { hostType }: { hostType: 'js' | 'css' | 'html' }) { if (hostType === 'js') { return { runtime: `window.__toCdnUrl(${JSON.stringify(filename)})` } } else { @@ -224,11 +224,11 @@ If the hashed assets and public files aren't deployed together, options for each ```ts experimental: { - renderBuiltUrl(filename: string, { hostType: 'js' | 'css' | 'html', type: 'public' | 'asset' }) { + renderBuiltUrl(filename: string, { hostId, hostType, type }: { hostId: string, hostType: 'js' | 'css' | 'html', type: 'public' | 'asset' }) { if (type === 'public') { return 'https://www.domain.com/' + filename } - else if (path.extname(importer) === '.js') { + else if (path.extname(hostId) === '.js') { return { runtime: `window.__assetsPath(${JSON.stringify(filename)})` } } else { From 8bae103236cf2137b1127756141b0e2c1e9c7696 Mon Sep 17 00:00:00 2001 From: haiya6 <38422259+haiya6@users.noreply.github.com> Date: Tue, 9 Aug 2022 16:21:21 +0800 Subject: [PATCH 34/36] fix(build): normalized output log (#9594) --- packages/vite/src/node/plugins/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/plugins/html.ts b/packages/vite/src/node/plugins/html.ts index 188134d4166442..b8cd3713edfeea 100644 --- a/packages/vite/src/node/plugins/html.ts +++ b/packages/vite/src/node/plugins/html.ts @@ -740,7 +740,7 @@ export function buildHtmlPlugin(config: ResolvedConfig): Plugin { delete bundle[chunk.fileName] } - const shortEmitName = path.relative(config.root, id) + const shortEmitName = normalizePath(path.relative(config.root, id)) this.emitFile({ type: 'asset', fileName: shortEmitName, From ff89df5200de2d2a06474353b5b34e04249ad9d3 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Tue, 9 Aug 2022 17:15:12 +0800 Subject: [PATCH 35/36] fix(ssr): check root import extension for external (#9494) --- packages/vite/src/node/plugins/resolve.ts | 16 ++++++++++------ playground/ssr-deps/__tests__/ssr-deps.spec.ts | 7 ++++++- playground/ssr-deps/css-lib/index.css | 3 +++ playground/ssr-deps/css-lib/package.json | 6 ++++++ playground/ssr-deps/index.html | 4 ++++ playground/ssr-deps/package.json | 1 + playground/ssr-deps/src/app.js | 3 +++ pnpm-lock.yaml | 11 +++++++++++ 8 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 playground/ssr-deps/css-lib/index.css create mode 100644 playground/ssr-deps/css-lib/package.json diff --git a/packages/vite/src/node/plugins/resolve.ts b/packages/vite/src/node/plugins/resolve.ts index 16601297f85dac..e0297fea18e782 100644 --- a/packages/vite/src/node/plugins/resolve.ts +++ b/packages/vite/src/node/plugins/resolve.ts @@ -652,18 +652,22 @@ export function tryNodeResolve( if (!externalize) { return resolved } - // dont external symlink packages + // don't external symlink packages if (!allowLinkedExternal && !resolved.id.includes('node_modules')) { return resolved } const resolvedExt = path.extname(resolved.id) + // don't external non-js imports + if ( + resolvedExt && + resolvedExt !== '.js' && + resolvedExt !== '.mjs' && + resolvedExt !== '.cjs' + ) { + return resolved + } let resolvedId = id if (isDeepImport) { - // check ext before externalizing - only externalize - // extension-less imports and explicit .js imports - if (resolvedExt && !resolved.id.match(/(.js|.mjs|.cjs)$/)) { - return resolved - } if (!pkg?.data.exports && path.extname(id) !== resolvedExt) { resolvedId += resolvedExt } diff --git a/playground/ssr-deps/__tests__/ssr-deps.spec.ts b/playground/ssr-deps/__tests__/ssr-deps.spec.ts index f20dca26263f65..26bec1fe2de2c0 100644 --- a/playground/ssr-deps/__tests__/ssr-deps.spec.ts +++ b/playground/ssr-deps/__tests__/ssr-deps.spec.ts @@ -1,5 +1,5 @@ import { port } from './serve' -import { page } from '~utils' +import { getColor, page } from '~utils' const url = `http://localhost:${port}` @@ -108,3 +108,8 @@ test('msg from linked no external', async () => { await page.goto(url) expect(await page.textContent('.dep-virtual')).toMatch('[success]') }) + +test('import css library', async () => { + await page.goto(url) + expect(await getColor('.css-lib')).toBe('blue') +}) diff --git a/playground/ssr-deps/css-lib/index.css b/playground/ssr-deps/css-lib/index.css new file mode 100644 index 00000000000000..d3974e432dc451 --- /dev/null +++ b/playground/ssr-deps/css-lib/index.css @@ -0,0 +1,3 @@ +.css-lib { + color: blue; +} diff --git a/playground/ssr-deps/css-lib/package.json b/playground/ssr-deps/css-lib/package.json new file mode 100644 index 00000000000000..2314aeb4530e3e --- /dev/null +++ b/playground/ssr-deps/css-lib/package.json @@ -0,0 +1,6 @@ +{ + "name": "@vitejs/css-lib", + "private": true, + "version": "0.0.0", + "main": "./index.css" +} diff --git a/playground/ssr-deps/index.html b/playground/ssr-deps/index.html index b1e884efaab01a..bc482a33e118ae 100644 --- a/playground/ssr-deps/index.html +++ b/playground/ssr-deps/index.html @@ -8,5 +8,9 @@

SSR Dependencies

+ diff --git a/playground/ssr-deps/package.json b/playground/ssr-deps/package.json index 13e7c627a2139e..ac82dadbcead63 100644 --- a/playground/ssr-deps/package.json +++ b/playground/ssr-deps/package.json @@ -9,6 +9,7 @@ "debug": "node --inspect-brk server" }, "dependencies": { + "@vitejs/css-lib": "file:./css-lib", "bcrypt": "^5.0.1", "define-properties-exports": "file:./define-properties-exports", "define-property-exports": "file:./define-property-exports", diff --git a/playground/ssr-deps/src/app.js b/playground/ssr-deps/src/app.js index 0b0fe2d9b968ec..3afb1b00caf5ab 100644 --- a/playground/ssr-deps/src/app.js +++ b/playground/ssr-deps/src/app.js @@ -13,6 +13,7 @@ import noExternalCjs from 'no-external-cjs' import importBuiltinCjs from 'import-builtin-cjs' import { hello as linkedNoExternal } from 'linked-no-external' import virtualMessage from 'pkg-exports/virtual' +import '@vitejs/css-lib' // This import will set a 'Hello World!" message in the nested-external non-entry dependency import 'non-optimized-with-nested-external' @@ -82,5 +83,7 @@ export async function render(url, rootDir) { html += `\n

message from dep-virtual: ${virtualMessage}

` + html += `\n

I should be blue

` + return html + '\n' } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 72a73e224d09ed..3954300280e8e2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -894,6 +894,7 @@ importers: playground/ssr-deps: specifiers: + '@vitejs/css-lib': file:./css-lib bcrypt: ^5.0.1 cross-env: ^7.0.3 define-properties-exports: file:./define-properties-exports @@ -917,6 +918,7 @@ importers: require-absolute: file:./require-absolute ts-transpiled-exports: file:./ts-transpiled-exports dependencies: + '@vitejs/css-lib': file:playground/ssr-deps/css-lib bcrypt: 5.0.1 define-properties-exports: file:playground/ssr-deps/define-properties-exports define-property-exports: file:playground/ssr-deps/define-property-exports @@ -941,6 +943,9 @@ importers: cross-env: 7.0.3 express: 4.18.1 + playground/ssr-deps/css-lib: + specifiers: {} + playground/ssr-deps/define-properties-exports: specifiers: {} @@ -9219,6 +9224,12 @@ packages: version: 0.0.0 dev: false + file:playground/ssr-deps/css-lib: + resolution: {directory: playground/ssr-deps/css-lib, type: directory} + name: '@vitejs/css-lib' + version: 0.0.0 + dev: false + file:playground/ssr-deps/define-properties-exports: resolution: {directory: playground/ssr-deps/define-properties-exports, type: directory} name: define-properties-exports From 10757b84009b27744b0645b75e7951bbbac6a928 Mon Sep 17 00:00:00 2001 From: patak-dev Date: Tue, 9 Aug 2022 12:23:53 +0200 Subject: [PATCH 36/36] release: v3.0.5 --- packages/vite/CHANGELOG.md | 23 +++++++++++++++++++++++ packages/vite/package.json | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/packages/vite/CHANGELOG.md b/packages/vite/CHANGELOG.md index dc92ec8e03ca97..facbc465bbab3a 100644 --- a/packages/vite/CHANGELOG.md +++ b/packages/vite/CHANGELOG.md @@ -1,3 +1,26 @@ +## 3.0.5 (2022-08-09) + +* fix: allow tree-shake glob eager css in js (#9547) ([2e309d6](https://github.com/vitejs/vite/commit/2e309d6)), closes [#9547](https://github.com/vitejs/vite/issues/9547) +* fix: ignore tsconfig target when bundling config (#9457) ([c5e7895](https://github.com/vitejs/vite/commit/c5e7895)), closes [#9457](https://github.com/vitejs/vite/issues/9457) +* fix: log worker plugins in debug mode (#9553) ([c1fa219](https://github.com/vitejs/vite/commit/c1fa219)), closes [#9553](https://github.com/vitejs/vite/issues/9553) +* fix: tree-shake modulepreload polyfill (#9531) ([1f11a70](https://github.com/vitejs/vite/commit/1f11a70)), closes [#9531](https://github.com/vitejs/vite/issues/9531) +* fix: update dep types (fixes #9475) (#9489) ([937cecc](https://github.com/vitejs/vite/commit/937cecc)), closes [#9475](https://github.com/vitejs/vite/issues/9475) [#9489](https://github.com/vitejs/vite/issues/9489) +* fix(build): normalized output log (#9594) ([8bae103](https://github.com/vitejs/vite/commit/8bae103)), closes [#9594](https://github.com/vitejs/vite/issues/9594) +* fix(config): try catch unlink after load (#9577) ([d35a1e2](https://github.com/vitejs/vite/commit/d35a1e2)), closes [#9577](https://github.com/vitejs/vite/issues/9577) +* fix(config): use file url for import path (fixes #9471) (#9473) ([22084a6](https://github.com/vitejs/vite/commit/22084a6)), closes [#9471](https://github.com/vitejs/vite/issues/9471) [#9473](https://github.com/vitejs/vite/issues/9473) +* fix(deps): update all non-major dependencies (#9575) ([8071325](https://github.com/vitejs/vite/commit/8071325)), closes [#9575](https://github.com/vitejs/vite/issues/9575) +* fix(ssr): check root import extension for external (#9494) ([ff89df5](https://github.com/vitejs/vite/commit/ff89df5)), closes [#9494](https://github.com/vitejs/vite/issues/9494) +* fix(ssr): use appendRight for import (#9554) ([dfec6ca](https://github.com/vitejs/vite/commit/dfec6ca)), closes [#9554](https://github.com/vitejs/vite/issues/9554) +* refactor(resolve): remove commonjs plugin handling (#9460) ([2042b91](https://github.com/vitejs/vite/commit/2042b91)), closes [#9460](https://github.com/vitejs/vite/issues/9460) +* chore: init imports var before use (#9569) ([905b8eb](https://github.com/vitejs/vite/commit/905b8eb)), closes [#9569](https://github.com/vitejs/vite/issues/9569) +* chore: node prefix lint (#9514) ([9e9cd23](https://github.com/vitejs/vite/commit/9e9cd23)), closes [#9514](https://github.com/vitejs/vite/issues/9514) +* chore: tidy up eslint config (#9468) ([f4addcf](https://github.com/vitejs/vite/commit/f4addcf)), closes [#9468](https://github.com/vitejs/vite/issues/9468) +* chore(deps): update all non-major dependencies (#9478) ([c530d16](https://github.com/vitejs/vite/commit/c530d16)), closes [#9478](https://github.com/vitejs/vite/issues/9478) +* docs: fix incomplete comment (#9466) ([5169c51](https://github.com/vitejs/vite/commit/5169c51)), closes [#9466](https://github.com/vitejs/vite/issues/9466) +* feat(ssr): debug failed node resolve (#9432) ([364aae1](https://github.com/vitejs/vite/commit/364aae1)), closes [#9432](https://github.com/vitejs/vite/issues/9432) + + + ## 3.0.4 (2022-07-29) * fix: __VITE_PUBLIC_ASSET__hash__ in HTML (#9247) ([a2b24ee](https://github.com/vitejs/vite/commit/a2b24ee)), closes [#9247](https://github.com/vitejs/vite/issues/9247) diff --git a/packages/vite/package.json b/packages/vite/package.json index fa53fc2c44efc0..e08659c56f3c35 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -1,6 +1,6 @@ { "name": "vite", - "version": "3.0.4", + "version": "3.0.5", "type": "module", "license": "MIT", "author": "Evan You",