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 01/12] 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 02/12] 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 03/12] 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 04/12] 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 05/12] 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 06/12] 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 07/12] 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 08/12] 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 09/12] 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 10/12] 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 11/12] 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 12/12] 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: