From 8998afa42755cbdb3403cd6c0fe158980da8492c Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 30 Aug 2023 15:06:05 +0800 Subject: [PATCH 01/18] chore: redirect feature requests to rfc discussion --- .github/ISSUE_TEMPLATE/config.yml | 3 ++ .github/ISSUE_TEMPLATE/feature_request.yml | 39 ---------------------- 2 files changed, 3 insertions(+), 39 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index af3782c8422..02f99c6bfbb 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,8 @@ blank_issues_enabled: false contact_links: + - name: Feature Request + url: https://github.com/vuejs/rfcs/discussions + about: Suggest new features for consideration - name: Discord Chat url: https://chat.vuejs.org about: Ask questions and discuss with other Vue users in real time. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml deleted file mode 100644 index 6861fc26d86..00000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: "\U0001F680 New feature proposal" -description: Suggest an idea for this project -labels: [":sparkles: feature request"] -body: - - type: markdown - attributes: - value: | - **Before You Start...** - - This form is only for submitting feature requests. If you have a usage question - or are unsure if this is really a bug, make sure to: - - - Read the [docs](https://vuejs.org/) - - Ask on [Discord Chat](https://chat.vuejs.org/) - - Ask on [GitHub Discussions](https://github.com/vuejs/core/discussions) - - Look for / ask questions on [Stack Overflow](https://stackoverflow.com/questions/ask?tags=vue.js) - - Also try to search for your issue - another user may have already requested something similar! - - - type: textarea - id: problem-description - attributes: - label: What problem does this feature solve? - description: | - Explain your use case, context, and rationale behind this feature request. More importantly, what is the **end user experience** you are trying to build that led to the need for this feature? - - An important design goal of Vue is keeping the API surface small and straightforward. In general, we only consider adding new features that solve a problem that cannot be easily dealt with using existing APIs (i.e. not just an alternative way of doing things that can already be done). The problem should also be common enough to justify the addition. - placeholder: Problem description - validations: - required: true - - type: textarea - id: proposed-API - attributes: - label: What does the proposed API look like? - description: | - Describe how you propose to solve the problem and provide code samples of how the API would work once implemented. Note that you can use [Markdown](https://guides.github.com/features/mastering-markdown/) to format your code blocks. - placeholder: Assumed API - validations: - required: true From 8f311c6f823f6776ca1c49bfbbbf8c7d9dea9cf1 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 5 Sep 2023 08:21:20 +0100 Subject: [PATCH 02/18] fix(runtime-core): swap client/server debug labels (#9089) --- packages/runtime-core/src/hydration.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index 2170a9192cf..963038e3f97 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -134,8 +134,8 @@ export function createHydrationFunctions( __DEV__ && warn( `Hydration text mismatch:` + - `\n- Client: ${JSON.stringify((node as Text).data)}` + - `\n- Server: ${JSON.stringify(vnode.children)}` + `\n- Server rendered: ${JSON.stringify((node as Text).data)}` + + `\n- Client rendered: ${JSON.stringify(vnode.children)}` ) ;(node as Text).data = vnode.children as string } @@ -406,8 +406,8 @@ export function createHydrationFunctions( `Hydration text content mismatch in <${ vnode.type as string }>:\n` + - `- Client: ${el.textContent}\n` + - `- Server: ${vnode.children as string}` + `- Server rendered: ${el.textContent}\n` + + `- Client rendered: ${vnode.children as string}` ) el.textContent = vnode.children as string } From 8adb2ca5370a0e24fb5e79622974645a1366a25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Tue, 5 Sep 2023 02:22:39 -0500 Subject: [PATCH 03/18] ci: add autofix for pr (#9112) --- .github/workflows/autofix.yml | 33 +++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 15 ++++++-------- .github/workflows/size-data.yml | 5 ++++- .github/workflows/size-report.yml | 5 ++++- 4 files changed, 47 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/autofix.yml diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 00000000000..a51b76fc388 --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,33 @@ +name: autofix.ci + +on: + pull_request: +permissions: + contents: read + +jobs: + autofix: + runs-on: ubuntu-latest + env: + PUPPETEER_SKIP_DOWNLOAD: 'true' + steps: + - uses: actions/checkout@v3 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + + - name: Set node version to 18 + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: pnpm + + - run: pnpm install + + - name: Run eslint + run: pnpm run lint --fix + + - name: Run prettier + run: pnpm run format + + - uses: autofix-ci/action@8caa572fd27b0019a65e4c695447089c8d3138b9 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c08c9a935a..b85878c836a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,8 @@ jobs: unit-test: runs-on: ubuntu-latest if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository + env: + PUPPETEER_SKIP_DOWNLOAD: 'true' steps: - uses: actions/checkout@v3 @@ -26,9 +28,6 @@ jobs: node-version: 18 cache: 'pnpm' - - name: Skip Puppeteer download - run: echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $GITHUB_ENV - - run: pnpm install - name: Run unit tests @@ -37,6 +36,8 @@ jobs: unit-test-windows: runs-on: windows-latest if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository + env: + PUPPETEER_SKIP_DOWNLOAD: 'true' steps: - uses: actions/checkout@v3 @@ -49,9 +50,6 @@ jobs: node-version: 18 cache: 'pnpm' - - name: Skip Puppeteer download - run: echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $env:GITHUB_ENV - - run: pnpm install - name: Run compiler unit tests @@ -89,6 +87,8 @@ jobs: lint-and-test-dts: runs-on: ubuntu-latest if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository + env: + PUPPETEER_SKIP_DOWNLOAD: 'true' steps: - uses: actions/checkout@v3 @@ -101,9 +101,6 @@ jobs: node-version: 18 cache: 'pnpm' - - name: Skip Puppeteer download - run: echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $GITHUB_ENV - - run: pnpm install - name: Run eslint diff --git a/.github/workflows/size-data.yml b/.github/workflows/size-data.yml index 647e029c578..a9edfeb6e0a 100644 --- a/.github/workflows/size-data.yml +++ b/.github/workflows/size-data.yml @@ -11,6 +11,9 @@ on: permissions: contents: read +env: + PUPPETEER_SKIP_DOWNLOAD: 'true' + jobs: upload: runs-on: ubuntu-latest @@ -28,7 +31,7 @@ jobs: cache: pnpm - name: Install dependencies - run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install + run: pnpm install - run: pnpm run size diff --git a/.github/workflows/size-report.yml b/.github/workflows/size-report.yml index 75c52f717b3..d0b2e2b40ee 100644 --- a/.github/workflows/size-report.yml +++ b/.github/workflows/size-report.yml @@ -11,6 +11,9 @@ permissions: pull-requests: write issues: write +env: + PUPPETEER_SKIP_DOWNLOAD: 'true' + jobs: size-report: runs-on: ubuntu-latest @@ -30,7 +33,7 @@ jobs: cache: pnpm - name: Install dependencies - run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install + run: pnpm install - name: Download PR number uses: dawidd6/action-download-artifact@v2 From 5c137c9c8f0523687360269caa54f0a67f1e6742 Mon Sep 17 00:00:00 2001 From: Alex <49969959+alexzhang1030@users.noreply.github.com> Date: Tue, 5 Sep 2023 15:23:00 +0800 Subject: [PATCH 04/18] workflow: add lock-closed-issues (#8970) --- .github/workflows/lock-closed-issues.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/lock-closed-issues.yml diff --git a/.github/workflows/lock-closed-issues.yml b/.github/workflows/lock-closed-issues.yml new file mode 100644 index 00000000000..cf01a5f6cdf --- /dev/null +++ b/.github/workflows/lock-closed-issues.yml @@ -0,0 +1,20 @@ +name: Lock Closed Issues + +on: + schedule: + - cron: '0 0 * * *' + +permissions: + issues: write + +jobs: + action: + if: github.repository == 'vuejs/core' + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-inactive-days: '14' + issue-lock-reason: '' + process-only: 'issues' From 5479d1e5bba66010d9d9253ab3119cef8f051705 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 5 Sep 2023 15:24:10 +0800 Subject: [PATCH 05/18] chore: format --- packages/runtime-core/src/hydration.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index 963038e3f97..89a00886332 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -134,7 +134,9 @@ export function createHydrationFunctions( __DEV__ && warn( `Hydration text mismatch:` + - `\n- Server rendered: ${JSON.stringify((node as Text).data)}` + + `\n- Server rendered: ${JSON.stringify( + (node as Text).data + )}` + `\n- Client rendered: ${JSON.stringify(vnode.children)}` ) ;(node as Text).data = vnode.children as string From e33d554cae3824a30fea140ae73852ae47b13e58 Mon Sep 17 00:00:00 2001 From: chenfan <83797583+chenfan0@users.noreply.github.com> Date: Tue, 5 Sep 2023 16:27:54 +0800 Subject: [PATCH 06/18] refactor(reactivity): add instance check for effect (#9055) --- packages/reactivity/__tests__/effect.spec.ts | 8 ++++++++ packages/reactivity/src/effect.ts | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/reactivity/__tests__/effect.spec.ts b/packages/reactivity/__tests__/effect.spec.ts index 69d24a76520..635e6534abe 100644 --- a/packages/reactivity/__tests__/effect.spec.ts +++ b/packages/reactivity/__tests__/effect.spec.ts @@ -585,6 +585,14 @@ describe('reactivity/effect', () => { expect(runner.effect.fn).toBe(otherRunner.effect.fn) }) + it('should wrap if the passed function is a fake effect', () => { + const fakeRunner = () => {} + fakeRunner.effect = {} + const runner = effect(fakeRunner) + expect(fakeRunner).not.toBe(runner) + expect(runner.effect.fn).toBe(fakeRunner) + }) + it('should not run multiple times for a single mutation', () => { let dummy const obj = reactive>({}) diff --git a/packages/reactivity/src/effect.ts b/packages/reactivity/src/effect.ts index d4a34edfef4..bbac96a4b2a 100644 --- a/packages/reactivity/src/effect.ts +++ b/packages/reactivity/src/effect.ts @@ -16,7 +16,7 @@ import { ComputedRefImpl } from './computed' // which maintains a Set of subscribers, but we simply store them as // raw Sets to reduce memory overhead. type KeyToDepMap = Map -const targetMap = new WeakMap() +const targetMap = new WeakMap() // The number of effects currently being tracked recursively. let effectTrackDepth = 0 @@ -181,7 +181,7 @@ export function effect( fn: () => T, options?: ReactiveEffectOptions ): ReactiveEffectRunner { - if ((fn as ReactiveEffectRunner).effect) { + if ((fn as ReactiveEffectRunner).effect instanceof ReactiveEffect) { fn = (fn as ReactiveEffectRunner).effect.fn } From db99b95d160eb3769cfe2e380bee01221146ab18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 6 Sep 2023 04:57:06 -0500 Subject: [PATCH 07/18] chore: configure renovate (#8091) --- .github/dependabot.yml | 70 ------------------------------------------ .github/renovate.json5 | 51 ++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 70 deletions(-) delete mode 100644 .github/dependabot.yml create mode 100644 .github/renovate.json5 diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 206deefc560..00000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,70 +0,0 @@ -version: 2 -updates: -- package-ecosystem: npm - directory: "/" - schedule: - interval: monthly - open-pull-requests-limit: 10 - versioning-strategy: lockfile-only - ignore: - - dependency-name: "@types/node" - versions: - - 14.14.24 - - 14.14.37 - - dependency-name: "@babel/parser" - versions: - - 7.12.11 - - 7.12.13 - - 7.12.14 - - 7.12.15 - - 7.12.16 - - 7.12.17 - - 7.13.0 - - 7.13.10 - - 7.13.11 - - 7.13.13 - - 7.13.4 - - 7.13.9 - - dependency-name: eslint - versions: - - 7.23.0 - - dependency-name: postcss - versions: - - 8.2.4 - - 8.2.5 - - 8.2.7 - - 8.2.8 - - dependency-name: typescript - versions: - - 4.2.2 - - dependency-name: "@babel/types" - versions: - - 7.12.12 - - 7.12.13 - - 7.12.17 - - 7.13.0 - - dependency-name: pug-code-gen - versions: - - 2.0.3 - - dependency-name: estree-walker - versions: - - 2.0.2 - - dependency-name: "@typescript-eslint/parser" - versions: - - 4.14.2 - - 4.15.0 - - dependency-name: "@microsoft/api-extractor" - versions: - - 7.13.1 - - dependency-name: rollup - versions: - - 2.38.5 - - dependency-name: node-notifier - versions: - - 8.0.1 -- package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: monthly - open-pull-requests-limit: 10 - versioning-strategy: lockfile-only diff --git a/.github/renovate.json5 b/.github/renovate.json5 new file mode 100644 index 00000000000..8f8378edf9c --- /dev/null +++ b/.github/renovate.json5 @@ -0,0 +1,51 @@ +{ + $schema: 'https://docs.renovatebot.com/renovate-schema.json', + extends: ['config:base', 'schedule:weekly', 'group:allNonMajor'], + labels: ['dependencies'], + ignorePaths: ['**/__tests__/**'], + rangeStrategy: 'bump', + packageRules: [ + { + depTypeList: ['peerDependencies'], + enabled: false + }, + { + groupName: 'test', + matchPackageNames: ['vitest', 'jsdom', 'puppeteer'], + matchPackagePrefixes: ['@vitest'] + }, + { + groupName: 'playground', + matchFileNames: [ + 'packages/sfc-playground/package.json', + 'packages/template-explorer/package.json' + ] + }, + { + groupName: 'compiler', + matchPackageNames: ['magic-string'], + matchPackagePrefixes: ['@babel', 'postcss'] + }, + { + groupName: 'build', + matchPackageNames: ['vite', 'terser'], + matchPackagePrefixes: ['rollup', 'esbuild', '@rollup', '@vitejs'] + }, + { + groupName: 'lint', + matchPackageNames: ['simple-git-hooks', 'lint-staged'], + matchPackagePrefixes: ['@typescript-eslint', 'eslint', 'prettier'] + } + ], + ignoreDeps: [ + 'vue', + + // manually bumping + 'node', + 'typescript', + + // ESM only + 'chalk', + 'estree-walker' + ] +} From 8cb147cc18ebc72bce9467f6000acc8c2e2df135 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 05:31:10 -0500 Subject: [PATCH 08/18] chore(deps): update dependency serve to v14 (#9146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: 三咲智子 Kevin Deng --- .github/contributing.md | 2 +- package.json | 4 +- pnpm-lock.yaml | 363 ++++++++++++++++++---------------------- 3 files changed, 170 insertions(+), 199 deletions(-) diff --git a/.github/contributing.md b/.github/contributing.md index 0c6771ca0b4..035cfb77a81 100644 --- a/.github/contributing.md +++ b/.github/contributing.md @@ -185,7 +185,7 @@ Builds and watches `vue/dist/vue-runtime.esm-bundler.js` with all deps inlined u ### `nr dev-compiler` -The `dev-compiler` script builds, watches and serves the [Template Explorer](https://github.com/vuejs/core/tree/main/packages/template-explorer) at `http://localhost:5000`. This is useful when working on pure compiler issues. +The `dev-compiler` script builds, watches and serves the [Template Explorer](https://github.com/vuejs/core/tree/main/packages/template-explorer) at `http://localhost:3000`. This is useful when working on pure compiler issues. ### `nr test` diff --git a/package.json b/package.json index b4ee1b00082..8e4dd16617d 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "dev-sfc-serve": "vite packages/sfc-playground --host", "dev-sfc-run": "run-p \"dev compiler-sfc -f esm-browser\" \"dev vue -if esm-bundler-runtime\" \"dev server-renderer -if esm-bundler\" dev-sfc-serve", "serve": "serve", - "open": "open http://localhost:5000/packages/template-explorer/local.html", + "open": "open http://localhost:3000/packages/template-explorer/local.html", "build-sfc-playground": "run-s build-compiler-cjs build-runtime-esm build-ssr-esm build-sfc-playground-self", "build-compiler-cjs": "node scripts/build.js compiler reactivity-transform shared -af cjs", "build-runtime-esm": "node scripts/build.js runtime reactivity shared -af esm-bundler && node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js vue -f esm-browser-runtime", @@ -95,7 +95,7 @@ "rollup-plugin-esbuild": "^5.0.0", "rollup-plugin-polyfill-node": "^0.12.0", "semver": "^7.3.2", - "serve": "^12.0.0", + "serve": "^14.2.1", "simple-git-hooks": "^2.8.1", "terser": "^5.19.2", "todomvc-app-css": "^2.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7c6e2a198c5..33c2ddb09a8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -126,8 +126,8 @@ importers: specifier: ^7.3.2 version: 7.5.3 serve: - specifier: ^12.0.0 - version: 12.0.1 + specifier: ^14.2.1 + version: 14.2.1 simple-git-hooks: specifier: ^2.8.1 version: 2.8.1 @@ -359,7 +359,7 @@ importers: version: 4.2.3(vite@4.4.2)(vue@packages+vue) vite: specifier: ^4.4.2 - version: 4.4.2(@types/node@16.18.38)(terser@5.18.2) + version: 4.4.2(@types/node@16.18.38)(terser@5.19.2) packages/shared: {} @@ -1508,7 +1508,7 @@ packages: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.4.2(@types/node@16.18.38)(terser@5.18.2) + vite: 4.4.2(@types/node@16.18.38)(terser@5.19.2) vue: link:packages/vue dev: true @@ -1577,8 +1577,8 @@ packages: requiresBuild: true dev: false - /@zeit/schemas@2.6.0: - resolution: {integrity: sha512-uUrgZ8AxS+Lio0fZKAipJjAh415JyrOZowliZAzmnJSsf7piVL5w+G0+gFJ0KSu3QRhvui/7zuvpLz03YjXAhg==} + /@zeit/schemas@2.29.0: + resolution: {integrity: sha512-g5QiLIfbg3pLuYUJPlisNKY+epQJTcMDsOnVNkscrDP1oi7vmJnzOANYJI/1pZcVJ6umUkBv3aFtlg1UvUHGzA==} dev: true /JSONStream@1.3.5: @@ -1669,10 +1669,19 @@ packages: uri-js: 4.4.1 dev: true - /ansi-align@2.0.0: - resolution: {integrity: sha512-TdlOggdA/zURfMYa7ABC66j+oqfMew58KpJMbUlH3bcZP1b+cBHIHDDn5uH9INsxrHBPjsqM0tDB4jPTF/vgJA==} + /ajv@8.11.0: + resolution: {integrity: sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==} dependencies: - string-width: 2.1.1 + fast-deep-equal: 3.1.3 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + uri-js: 4.4.1 + dev: true + + /ansi-align@3.0.1: + resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==} + dependencies: + string-width: 4.2.3 dev: true /ansi-colors@4.1.3: @@ -1687,16 +1696,16 @@ packages: type-fest: 0.21.3 dev: true - /ansi-regex@3.0.1: - resolution: {integrity: sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==} - engines: {node: '>=4'} - dev: true - /ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} dev: true + /ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + dev: true + /ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -1716,6 +1725,11 @@ packages: engines: {node: '>=10'} dev: true + /ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + dev: true + /anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -1728,8 +1742,8 @@ packages: resolution: {integrity: sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==} dev: true - /arg@2.0.0: - resolution: {integrity: sha512-XxNTUzKnz1ctK3ZIcI2XUPlD96wbHP2nGqkPKpvk/HNRlPveYrXIVSTk9m3LcqOgDPg3B1nMvdV/K8wZd7PG4w==} + /arg@5.0.2: + resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} dev: true /argparse@2.0.1: @@ -1808,17 +1822,18 @@ packages: resolution: {integrity: sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==} dev: true - /boxen@1.3.0: - resolution: {integrity: sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==} - engines: {node: '>=4'} + /boxen@7.0.0: + resolution: {integrity: sha512-j//dBVuyacJbvW+tvZ9HuH03fZ46QcaKvvhZickZqtB271DxJ7SNRSNxrV/dZX0085m7hISRZWbzWlJvx/rHSg==} + engines: {node: '>=14.16'} dependencies: - ansi-align: 2.0.0 - camelcase: 4.1.0 - chalk: 2.4.2 - cli-boxes: 1.0.0 - string-width: 2.1.1 - term-size: 1.2.0 - widest-line: 2.0.1 + ansi-align: 3.0.1 + camelcase: 7.0.1 + chalk: 5.0.1 + cli-boxes: 3.0.0 + string-width: 5.1.2 + type-fest: 2.19.0 + widest-line: 4.0.1 + wrap-ansi: 8.1.0 dev: true /brace-expansion@1.1.11: @@ -1903,16 +1918,16 @@ packages: quick-lru: 4.0.1 dev: true - /camelcase@4.1.0: - resolution: {integrity: sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw==} - engines: {node: '>=4'} - dev: true - /camelcase@5.3.1: resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} engines: {node: '>=6'} dev: true + /camelcase@7.0.1: + resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==} + engines: {node: '>=14.16'} + dev: true + /caniuse-lite@1.0.30001467: resolution: {integrity: sha512-cEdN/5e+RPikvl9AHm4uuLXxeCNq8rFsQ+lPHTfe/OtypP3WwnVVbjn+6uBV7PaFL6xUFzTh+sSCOz1rKhcO+Q==} dev: true @@ -1930,13 +1945,11 @@ packages: type-detect: 4.0.8 dev: true - /chalk@2.4.1: - resolution: {integrity: sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==} - engines: {node: '>=4'} + /chalk-template@0.4.0: + resolution: {integrity: sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg==} + engines: {node: '>=12'} dependencies: - ansi-styles: 3.2.1 - escape-string-regexp: 1.0.5 - supports-color: 5.5.0 + chalk: 4.1.2 dev: true /chalk@2.4.2: @@ -1956,6 +1969,11 @@ packages: supports-color: 7.2.0 dev: true + /chalk@5.0.1: + resolution: {integrity: sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + dev: true + /character-parser@2.2.0: resolution: {integrity: sha512-+UqJQjFEFaTAs3bNsF2j2kEN1baG/zghZbdqoYEDxGZtJo9LBzl1A+m0D4n3qKx8N2FNv8/Xp6yV9mQmBuptaw==} dependencies: @@ -1990,9 +2008,9 @@ packages: engines: {node: '>=6'} dev: true - /cli-boxes@1.0.0: - resolution: {integrity: sha512-3Fo5wu8Ytle8q9iCzS4D2MWVL2X7JVWRiS1BnXbTFDhS9c/REkM9vd1AmabsoZoY5/dGi5TT9iKL8Kb6DeBRQg==} - engines: {node: '>=0.10.0'} + /cli-boxes@3.0.0: + resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==} + engines: {node: '>=10'} dev: true /cli-cursor@3.1.0: @@ -2010,12 +2028,12 @@ packages: string-width: 4.2.3 dev: true - /clipboardy@2.3.0: - resolution: {integrity: sha512-mKhiIL2DrQIsuXMgBgnfEHOZOryC7kY7YO//TN6c63wlEm3NG5tz+YgY5rVi29KCmq/QQjKYvM7a19+MDOTHOQ==} - engines: {node: '>=8'} + /clipboardy@3.0.0: + resolution: {integrity: sha512-Su+uU5sr1jkUy1sGRpLKjKrvEOVXgSgiSInwa/qeID6aJ07yh+5NWc3h2QfjHjBnfX4LhtFcuAWKUsJ3r+fjbg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: arch: 2.2.0 - execa: 1.0.0 + execa: 5.1.1 is-wsl: 2.2.0 dev: true @@ -2086,8 +2104,8 @@ packages: mime-db: 1.52.0 dev: true - /compression@1.7.3: - resolution: {integrity: sha512-HSjyBG5N1Nnz7tF2+O7A9XUhyjru71/fwgNb7oIsEVHR0WShfs2tIS/EySLgiTe98aOK18YDlMXpzjCXY/n9mg==} + /compression@1.7.4: + resolution: {integrity: sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==} engines: {node: '>= 0.8.0'} dependencies: accepts: 1.3.8 @@ -2325,14 +2343,6 @@ packages: - encoding dev: true - /cross-spawn@5.1.0: - resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==} - dependencies: - lru-cache: 4.1.5 - shebang-command: 1.2.0 - which: 1.3.1 - dev: true - /cross-spawn@6.0.5: resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==} engines: {node: '>=4.8'} @@ -2517,6 +2527,10 @@ packages: is-obj: 2.0.0 dev: true + /eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + dev: true + /electron-to-chromium@1.4.333: resolution: {integrity: sha512-YyE8+GKyGtPEP1/kpvqsdhD6rA/TP1DUFDN4uiU/YI52NzDxmwHkEb3qjId8hLBa5siJvG0sfC3O66501jMruQ==} dev: true @@ -2525,6 +2539,10 @@ packages: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} dev: true + /emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + dev: true + /end-of-stream@1.4.4: resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} dependencies: @@ -2859,32 +2877,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /execa@0.7.0: - resolution: {integrity: sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw==} - engines: {node: '>=4'} - dependencies: - cross-spawn: 5.1.0 - get-stream: 3.0.0 - is-stream: 1.1.0 - npm-run-path: 2.0.2 - p-finally: 1.0.0 - signal-exit: 3.0.7 - strip-eof: 1.0.0 - dev: true - - /execa@1.0.0: - resolution: {integrity: sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==} - engines: {node: '>=6'} - dependencies: - cross-spawn: 6.0.5 - get-stream: 4.1.0 - is-stream: 1.1.0 - npm-run-path: 2.0.2 - p-finally: 1.0.0 - signal-exit: 3.0.7 - strip-eof: 1.0.0 - dev: true - /execa@4.1.0: resolution: {integrity: sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==} engines: {node: '>=10'} @@ -2900,6 +2892,21 @@ packages: strip-final-newline: 2.0.0 dev: true + /execa@5.1.1: + resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} + engines: {node: '>=10'} + dependencies: + cross-spawn: 7.0.3 + get-stream: 6.0.1 + human-signals: 2.1.0 + is-stream: 2.0.1 + merge-stream: 2.0.0 + npm-run-path: 4.0.1 + onetime: 5.1.2 + signal-exit: 3.0.7 + strip-final-newline: 2.0.0 + dev: true + /extract-zip@2.0.1: resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==} engines: {node: '>= 10.17.0'} @@ -2942,7 +2949,7 @@ packages: dev: true /fast-url-parser@1.1.3: - resolution: {integrity: sha1-9K8+qfNNiicc9YrSs3WfQx8LMY0=} + resolution: {integrity: sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==} dependencies: punycode: 1.4.1 dev: true @@ -3104,18 +3111,6 @@ packages: yargs: 16.2.0 dev: true - /get-stream@3.0.0: - resolution: {integrity: sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==} - engines: {node: '>=4'} - dev: true - - /get-stream@4.1.0: - resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==} - engines: {node: '>=6'} - dependencies: - pump: 3.0.0 - dev: true - /get-stream@5.2.0: resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} engines: {node: '>=8'} @@ -3123,6 +3118,11 @@ packages: pump: 3.0.0 dev: true + /get-stream@6.0.1: + resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} + engines: {node: '>=10'} + dev: true + /get-symbol-description@1.0.0: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} @@ -3367,6 +3367,11 @@ packages: engines: {node: '>=8.12.0'} dev: true + /human-signals@2.1.0: + resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} + engines: {node: '>=10.17.0'} + dev: true + /iconv-lite@0.6.3: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} @@ -3525,11 +3530,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /is-fullwidth-code-point@2.0.0: - resolution: {integrity: sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==} - engines: {node: '>=4'} - dev: true - /is-fullwidth-code-point@3.0.0: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} engines: {node: '>=8'} @@ -3583,6 +3583,11 @@ packages: engines: {node: '>=0.10.0'} dev: true + /is-port-reachable@4.0.0: + resolution: {integrity: sha512-9UoipoxYmSk6Xy7QFgRv2HDyaysmgSG75TFQs6S+3pDM7ZhKTF/bskZV+0UlABHzKjNVhPjYCLfeZUEg1wXxig==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dev: true + /is-potential-custom-element-name@1.0.1: resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} dev: true @@ -3616,11 +3621,6 @@ packages: call-bind: 1.0.2 dev: true - /is-stream@1.1.0: - resolution: {integrity: sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==} - engines: {node: '>=0.10.0'} - dev: true - /is-stream@2.0.1: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} engines: {node: '>=8'} @@ -3817,6 +3817,10 @@ packages: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} dev: true + /json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + dev: true + /json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} dev: true @@ -4012,13 +4016,6 @@ packages: get-func-name: 2.0.0 dev: true - /lru-cache@4.1.5: - resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} - dependencies: - pseudomap: 1.0.2 - yallist: 2.1.2 - dev: true - /lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} dependencies: @@ -4158,12 +4155,6 @@ packages: engines: {node: '>=4'} dev: true - /minimatch@3.0.4: - resolution: {integrity: sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==} - dependencies: - brace-expansion: 1.1.11 - dev: true - /minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} dependencies: @@ -4311,13 +4302,6 @@ packages: string.prototype.padend: 3.1.4 dev: true - /npm-run-path@2.0.2: - resolution: {integrity: sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==} - engines: {node: '>=4'} - dependencies: - path-key: 2.0.1 - dev: true - /npm-run-path@4.0.1: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} @@ -4395,11 +4379,6 @@ packages: word-wrap: 1.2.4 dev: true - /p-finally@1.0.0: - resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==} - engines: {node: '>=4'} - dev: true - /p-limit@1.3.0: resolution: {integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==} engines: {node: '>=4'} @@ -4734,10 +4713,6 @@ packages: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} dev: true - /pseudomap@1.0.2: - resolution: {integrity: sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==} - dev: true - /psl@1.9.0: resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} dev: true @@ -5034,6 +5009,11 @@ packages: engines: {node: '>=0.10.0'} dev: true + /require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + dev: true + /requires-port@1.0.0: resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} dev: true @@ -5205,32 +5185,35 @@ packages: randombytes: 2.1.0 dev: true - /serve-handler@6.1.3: - resolution: {integrity: sha512-FosMqFBNrLyeiIDvP1zgO6YoTzFYHxLDEIavhlmQ+knB2Z7l1t+kGLHkZIDN7UVWqQAmKI3D20A6F6jo3nDd4w==} + /serve-handler@6.1.5: + resolution: {integrity: sha512-ijPFle6Hwe8zfmBxJdE+5fta53fdIY0lHISJvuikXB3VYFafRjMRpOffSPvCYsbKyBA7pvy9oYr/BT1O3EArlg==} dependencies: bytes: 3.0.0 content-disposition: 0.5.2 fast-url-parser: 1.1.3 mime-types: 2.1.18 - minimatch: 3.0.4 + minimatch: 3.1.2 path-is-inside: 1.0.2 path-to-regexp: 2.2.1 range-parser: 1.2.0 dev: true - /serve@12.0.1: - resolution: {integrity: sha512-CQ4ikLpxg/wmNM7yivulpS6fhjRiFG6OjmP8ty3/c1SBnSk23fpKmLAV4HboTA2KrZhkUPlDfjDhnRmAjQ5Phw==} + /serve@14.2.1: + resolution: {integrity: sha512-48er5fzHh7GCShLnNyPBRPEjs2I6QBozeGr02gaacROiyS/8ARADlj595j39iZXAqBbJHH/ivJJyPRWY9sQWZA==} + engines: {node: '>= 14'} hasBin: true dependencies: - '@zeit/schemas': 2.6.0 - ajv: 6.12.6 - arg: 2.0.0 - boxen: 1.3.0 - chalk: 2.4.1 - clipboardy: 2.3.0 - compression: 1.7.3 - serve-handler: 6.1.3 - update-check: 1.5.2 + '@zeit/schemas': 2.29.0 + ajv: 8.11.0 + arg: 5.0.2 + boxen: 7.0.0 + chalk: 5.0.1 + chalk-template: 0.4.0 + clipboardy: 3.0.0 + compression: 1.7.4 + is-port-reachable: 4.0.0 + serve-handler: 6.1.5 + update-check: 1.5.4 transitivePeerDependencies: - supports-color dev: true @@ -5388,14 +5371,6 @@ packages: resolution: {integrity: sha512-kJUvRUFK49aub+a7T1nNE66EJbZBMnBgoC1UbCZ5n6bsZKBRga4KgBRTMn/pFkeCZSYtNeSyMxPDM0AXWELk2A==} dev: true - /string-width@2.1.1: - resolution: {integrity: sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==} - engines: {node: '>=4'} - dependencies: - is-fullwidth-code-point: 2.0.0 - strip-ansi: 4.0.0 - dev: true - /string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -5405,6 +5380,15 @@ packages: strip-ansi: 6.0.1 dev: true + /string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + dev: true + /string.prototype.padend@3.1.4: resolution: {integrity: sha512-67otBXoksdjsnXXRUq+KMVTdlVRZ2af422Y0aTyTjVaoQkGr3mxl2Bc5emi7dOQ3OGVVQQskmLEWwFXwommpNw==} engines: {node: '>= 0.4'} @@ -5450,13 +5434,6 @@ packages: is-regexp: 1.0.0 dev: true - /strip-ansi@4.0.0: - resolution: {integrity: sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==} - engines: {node: '>=4'} - dependencies: - ansi-regex: 3.0.1 - dev: true - /strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} @@ -5464,16 +5441,18 @@ packages: ansi-regex: 5.0.1 dev: true + /strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + dependencies: + ansi-regex: 6.0.1 + dev: true + /strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} dev: true - /strip-eof@1.0.0: - resolution: {integrity: sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==} - engines: {node: '>=0.10.0'} - dev: true - /strip-final-newline@2.0.0: resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} engines: {node: '>=6'} @@ -5558,24 +5537,6 @@ packages: uuid: 3.4.0 dev: true - /term-size@1.2.0: - resolution: {integrity: sha512-7dPUZQGy/+m3/wjVz3ZW5dobSoD/02NxJpoXUX0WIyjfVS3l0c+b/+9phIDFA7FHzkYtwtMFgeGZ/Y8jVTeqQQ==} - engines: {node: '>=4'} - dependencies: - execa: 0.7.0 - dev: true - - /terser@5.18.2: - resolution: {integrity: sha512-Ah19JS86ypbJzTzvUCX7KOsEIhDaRONungA4aYBjEP3JZRf4ocuDzTg4QWZnPn9DEMiMYGJPiSOy7aykoCc70w==} - engines: {node: '>=10'} - hasBin: true - dependencies: - '@jridgewell/source-map': 0.3.5 - acorn: 8.8.2 - commander: 2.20.3 - source-map-support: 0.5.21 - dev: true - /terser@5.19.2: resolution: {integrity: sha512-qC5+dmecKJA4cpYxRa5aVkKehYsQKc+AHeKl0Oe62aYjBL8ZA33tTljktDHJSaxxMnbI5ZYw+o/S2DxxLu8OfA==} engines: {node: '>=10'} @@ -5759,6 +5720,11 @@ packages: engines: {node: '>=8'} dev: true + /type-fest@2.19.0: + resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==} + engines: {node: '>=12.20'} + dev: true + /typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} dependencies: @@ -5823,8 +5789,8 @@ packages: picocolors: 1.0.0 dev: true - /update-check@1.5.2: - resolution: {integrity: sha512-1TrmYLuLj/5ZovwUS7fFd1jMH3NnFDN1y1A8dboedIDt7zs/zJMo6TwwlhYKkSeEwzleeiSBV5/3c9ufAQWDaQ==} + /update-check@1.5.4: + resolution: {integrity: sha512-5YHsflzHP4t1G+8WGPlvKbJEbAJGCgw+Em+dGR1KmBUbr1J36SJBqlHLjR7oob7sco5hWHGQVcr9B2poIVDDTQ==} dependencies: registry-auth-token: 3.3.2 registry-url: 3.1.0 @@ -5919,7 +5885,7 @@ packages: fsevents: 2.3.2 dev: true - /vite@4.4.2(@types/node@16.18.38)(terser@5.18.2): + /vite@4.4.2(@types/node@16.18.38)(terser@5.19.2): resolution: {integrity: sha512-zUcsJN+UvdSyHhYa277UHhiJ3iq4hUBwHavOpsNUGsTgjBeoBlK8eDt+iT09pBq0h9/knhG/SPrZiM7cGmg7NA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -5951,7 +5917,7 @@ packages: esbuild: 0.18.11 postcss: 8.4.25 rollup: 3.26.2 - terser: 5.18.2 + terser: 5.19.2 optionalDependencies: fsevents: 2.3.2 dev: true @@ -6122,11 +6088,11 @@ packages: stackback: 0.0.2 dev: true - /widest-line@2.0.1: - resolution: {integrity: sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA==} - engines: {node: '>=4'} + /widest-line@4.0.1: + resolution: {integrity: sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==} + engines: {node: '>=12'} dependencies: - string-width: 2.1.1 + string-width: 5.1.2 dev: true /with@7.0.2: @@ -6166,6 +6132,15 @@ packages: strip-ansi: 6.0.1 dev: true + /wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + dev: true + /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} dev: true @@ -6215,10 +6190,6 @@ packages: engines: {node: '>=10'} dev: true - /yallist@2.1.2: - resolution: {integrity: sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==} - dev: true - /yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} dev: true From 2ac544b138564f2457bf9705e14c35788e3e79e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 6 Sep 2023 18:39:01 +0800 Subject: [PATCH 09/18] chore: upgrade node requirement for dev --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8e4dd16617d..63c9f7641b8 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ ] }, "engines": { - "node": ">=16.11.0" + "node": ">=16.14.0" }, "devDependencies": { "@babel/parser": "^7.21.3", From 25595f593c94f66491251c10ee0ec01458f3c01f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 05:41:24 -0500 Subject: [PATCH 10/18] chore(deps): update lint (major) (#9147) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +- pnpm-lock.yaml | 427 ++++++++++++++++++++++++------------------------- 2 files changed, 207 insertions(+), 224 deletions(-) diff --git a/package.json b/package.json index 63c9f7641b8..fbc5892184a 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "@rollup/plugin-terser": "^0.4.0", "@types/hash-sum": "^1.0.0", "@types/node": "^16.4.7", - "@typescript-eslint/parser": "^5.56.0", + "@typescript-eslint/parser": "^6.6.0", "@vitest/coverage-istanbul": "^0.29.7", "@vue/consolidate": "0.17.3", "chalk": "^4.1.0", @@ -79,7 +79,7 @@ "estree-walker": "^2.0.2", "execa": "^4.0.2", "jsdom": "^21.1.0", - "lint-staged": "^10.2.10", + "lint-staged": "^14.0.1", "lodash": "^4.17.15", "magic-string": "^0.30.0", "markdown-table": "^3.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 33c2ddb09a8..d428aca5eed 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,8 +39,8 @@ importers: specifier: ^16.4.7 version: 16.18.38 '@typescript-eslint/parser': - specifier: ^5.56.0 - version: 5.56.0(eslint@8.33.0)(typescript@5.1.6) + specifier: ^6.6.0 + version: 6.6.0(eslint@8.33.0)(typescript@5.1.6) '@vitest/coverage-istanbul': specifier: ^0.29.7 version: 0.29.7(vitest@0.30.1) @@ -78,8 +78,8 @@ importers: specifier: ^21.1.0 version: 21.1.0 lint-staged: - specifier: ^10.2.10 - version: 10.5.4 + specifier: ^14.0.1 + version: 14.0.1(enquirer@2.3.6) lodash: specifier: ^4.17.15 version: 4.17.21 @@ -1357,10 +1357,6 @@ packages: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} dev: true - /@types/parse-json@4.0.0: - resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==} - dev: true - /@types/resolve@1.20.2: resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} dev: true @@ -1377,19 +1373,20 @@ packages: dev: true optional: true - /@typescript-eslint/parser@5.56.0(eslint@8.33.0)(typescript@5.1.6): - resolution: {integrity: sha512-sn1OZmBxUsgxMmR8a8U5QM/Wl+tyqlH//jTqCg8daTAmhAk26L2PFhcqPLlYBhYUJMZJK276qLXlHN3a83o2cg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + /@typescript-eslint/parser@6.6.0(eslint@8.33.0)(typescript@5.1.6): + resolution: {integrity: sha512-setq5aJgUwtzGrhW177/i+DMLqBaJbdwGj2CPIVFFLE0NCliy5ujIdLHd2D1ysmlmsjdL2GWW+hR85neEfc12w==} + engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + eslint: ^7.0.0 || ^8.0.0 typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 5.56.0 - '@typescript-eslint/types': 5.56.0 - '@typescript-eslint/typescript-estree': 5.56.0(typescript@5.1.6) + '@typescript-eslint/scope-manager': 6.6.0 + '@typescript-eslint/types': 6.6.0 + '@typescript-eslint/typescript-estree': 6.6.0(typescript@5.1.6) + '@typescript-eslint/visitor-keys': 6.6.0 debug: 4.3.4 eslint: 8.33.0 typescript: 5.1.6 @@ -1405,12 +1402,12 @@ packages: '@typescript-eslint/visitor-keys': 5.50.0 dev: true - /@typescript-eslint/scope-manager@5.56.0: - resolution: {integrity: sha512-jGYKyt+iBakD0SA5Ww8vFqGpoV2asSjwt60Gl6YcO8ksQ8s2HlUEyHBMSa38bdLopYqGf7EYQMUIGdT/Luw+sw==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + /@typescript-eslint/scope-manager@6.6.0: + resolution: {integrity: sha512-pT08u5W/GT4KjPUmEtc2kSYvrH8x89cVzkA0Sy2aaOUIw6YxOIjA8ilwLr/1fLjOedX1QAuBpG9XggWqIIfERw==} + engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 5.56.0 - '@typescript-eslint/visitor-keys': 5.56.0 + '@typescript-eslint/types': 6.6.0 + '@typescript-eslint/visitor-keys': 6.6.0 dev: true /@typescript-eslint/types@5.50.0: @@ -1418,9 +1415,9 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/types@5.56.0: - resolution: {integrity: sha512-JyAzbTJcIyhuUhogmiu+t79AkdnqgPUEsxMTMc/dCZczGMJQh1MK2wgrju++yMN6AWroVAy2jxyPcPr3SWCq5w==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + /@typescript-eslint/types@6.6.0: + resolution: {integrity: sha512-CB6QpJQ6BAHlJXdwUmiaXDBmTqIE2bzGTDLADgvqtHWuhfNP3rAOK7kAgRMAET5rDRr9Utt+qAzRBdu3AhR3sg==} + engines: {node: ^16.0.0 || >=18.0.0} dev: true /@typescript-eslint/typescript-estree@5.50.0(typescript@5.1.6): @@ -1437,29 +1434,29 @@ packages: debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 - semver: 7.5.3 + semver: 7.5.4 tsutils: 3.21.0(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/typescript-estree@5.56.0(typescript@5.1.6): - resolution: {integrity: sha512-41CH/GncsLXOJi0jb74SnC7jVPWeVJ0pxQj8bOjH1h2O26jXN3YHKDT1ejkVz5YeTEQPeLCCRY0U2r68tfNOcg==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + /@typescript-eslint/typescript-estree@6.6.0(typescript@5.1.6): + resolution: {integrity: sha512-hMcTQ6Al8MP2E6JKBAaSxSVw5bDhdmbCEhGW/V8QXkb9oNsFkA4SBuOMYVPxD3jbtQ4R/vSODBsr76R6fP3tbA==} + engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.56.0 - '@typescript-eslint/visitor-keys': 5.56.0 + '@typescript-eslint/types': 6.6.0 + '@typescript-eslint/visitor-keys': 6.6.0 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 - semver: 7.5.3 - tsutils: 3.21.0(typescript@5.1.6) + semver: 7.5.4 + ts-api-utils: 1.0.2(typescript@5.1.6) typescript: 5.1.6 transitivePeerDependencies: - supports-color @@ -1490,15 +1487,15 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: '@typescript-eslint/types': 5.50.0 - eslint-visitor-keys: 3.3.0 + eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@5.56.0: - resolution: {integrity: sha512-1mFdED7u5bZpX6Xxf5N9U2c18sb+8EvU3tyOIj6LQZ5OOvnmj8BVeNNP603OFPm5KkS1a7IvCIcwrdHXaEMG/Q==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + /@typescript-eslint/visitor-keys@6.6.0: + resolution: {integrity: sha512-L61uJT26cMOfFQ+lMZKoJNbAEckLe539VhTxiGHrWl5XSKQgA0RTBZJW2HFPy5T0ZvPVSD93QsrTKDkfNwJGyQ==} + engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 5.56.0 - eslint-visitor-keys: 3.3.0 + '@typescript-eslint/types': 6.6.0 + eslint-visitor-keys: 3.4.3 dev: true /@vitejs/plugin-vue@4.2.3(vite@4.4.2)(vue@packages+vue): @@ -1652,14 +1649,6 @@ packages: - supports-color dev: true - /aggregate-error@3.1.0: - resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} - engines: {node: '>=8'} - dependencies: - clean-stack: 2.2.0 - indent-string: 4.0.0 - dev: true - /ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} dependencies: @@ -1689,11 +1678,11 @@ packages: engines: {node: '>=6'} dev: true - /ansi-escapes@4.3.2: - resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} - engines: {node: '>=8'} + /ansi-escapes@5.0.0: + resolution: {integrity: sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA==} + engines: {node: '>=12'} dependencies: - type-fest: 0.21.3 + type-fest: 1.4.0 dev: true /ansi-regex@5.0.1: @@ -1776,11 +1765,6 @@ packages: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} dev: true - /astral-regex@2.0.0: - resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} - engines: {node: '>=8'} - dev: true - /asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} dev: true @@ -1828,7 +1812,7 @@ packages: dependencies: ansi-align: 3.0.1 camelcase: 7.0.1 - chalk: 5.0.1 + chalk: 5.3.0 cli-boxes: 3.0.0 string-width: 5.1.2 type-fest: 2.19.0 @@ -1974,6 +1958,11 @@ packages: engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} dev: true + /chalk@5.3.0: + resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + dev: true + /character-parser@2.2.0: resolution: {integrity: sha512-+UqJQjFEFaTAs3bNsF2j2kEN1baG/zghZbdqoYEDxGZtJo9LBzl1A+m0D4n3qKx8N2FNv8/Xp6yV9mQmBuptaw==} dependencies: @@ -2003,29 +1992,24 @@ packages: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} dev: true - /clean-stack@2.2.0: - resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} - engines: {node: '>=6'} - dev: true - /cli-boxes@3.0.0: resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==} engines: {node: '>=10'} dev: true - /cli-cursor@3.1.0: - resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==} - engines: {node: '>=8'} + /cli-cursor@4.0.0: + resolution: {integrity: sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - restore-cursor: 3.1.0 + restore-cursor: 4.0.0 dev: true - /cli-truncate@2.1.0: - resolution: {integrity: sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==} - engines: {node: '>=8'} + /cli-truncate@3.1.0: + resolution: {integrity: sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - slice-ansi: 3.0.0 - string-width: 4.2.3 + slice-ansi: 5.0.0 + string-width: 5.1.2 dev: true /clipboardy@3.0.0: @@ -2066,8 +2050,8 @@ packages: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} dev: true - /colorette@2.0.19: - resolution: {integrity: sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==} + /colorette@2.0.20: + resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} dev: true /combined-stream@1.0.8: @@ -2077,13 +2061,13 @@ packages: delayed-stream: 1.0.0 dev: true - /commander@2.20.3: - resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + /commander@11.0.0: + resolution: {integrity: sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ==} + engines: {node: '>=16'} dev: true - /commander@6.2.1: - resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==} - engines: {node: '>= 6'} + /commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} dev: true /commondir@1.0.1: @@ -2133,7 +2117,7 @@ packages: js-string-escape: 1.0.1 lodash: 4.17.21 md5-hex: 3.0.1 - semver: 7.5.3 + semver: 7.5.4 well-known-symbols: 2.0.0 dev: true @@ -2314,17 +2298,6 @@ packages: /core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - /cosmiconfig@7.1.0: - resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==} - engines: {node: '>=10'} - dependencies: - '@types/parse-json': 4.0.0 - import-fresh: 3.3.0 - parse-json: 5.2.0 - path-type: 4.0.0 - yaml: 1.10.2 - dev: true - /cosmiconfig@8.0.0: resolution: {integrity: sha512-da1EafcpH6b/TD8vDRaWV7xFINlHlF6zKsGwS1TsuVJTZRkquaS5HTMq7uq6h31619QjbsYl21gVDOm32KM1vQ==} engines: {node: '>=14'} @@ -2453,10 +2426,6 @@ packages: resolution: {integrity: sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==} dev: true - /dedent@0.7.0: - resolution: {integrity: sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==} - dev: true - /deep-eql@4.1.3: resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==} engines: {node: '>=6'} @@ -2782,6 +2751,11 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true + /eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + /eslint@8.33.0: resolution: {integrity: sha512-WjOpFQgKK8VrCnAtl8We0SUOy/oVZ5NHykyMiagV1M9r8IFpIJX7DduK6n1mpfhlG7T1NLWm2SuD8QB7KFySaA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2836,7 +2810,7 @@ packages: dependencies: acorn: 8.8.2 acorn-jsx: 5.3.2(acorn@8.8.2) - eslint-visitor-keys: 3.3.0 + eslint-visitor-keys: 3.4.3 dev: true /esprima@4.0.1: @@ -2877,6 +2851,10 @@ packages: engines: {node: '>=0.10.0'} dev: true + /eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + dev: true + /execa@4.1.0: resolution: {integrity: sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==} engines: {node: '>=10'} @@ -2907,6 +2885,21 @@ packages: strip-final-newline: 2.0.0 dev: true + /execa@7.2.0: + resolution: {integrity: sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==} + engines: {node: ^14.18.0 || ^16.14.0 || >=18.0.0} + dependencies: + cross-spawn: 7.0.3 + get-stream: 6.0.1 + human-signals: 4.3.1 + is-stream: 3.0.0 + merge-stream: 2.0.0 + npm-run-path: 5.1.0 + onetime: 6.0.0 + signal-exit: 3.0.7 + strip-final-newline: 3.0.0 + dev: true + /extract-zip@2.0.1: resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==} engines: {node: '>= 10.17.0'} @@ -3096,10 +3089,6 @@ packages: has-symbols: 1.0.3 dev: true - /get-own-enumerable-property-symbols@3.0.2: - resolution: {integrity: sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==} - dev: true - /get-pkg-repo@4.2.1: resolution: {integrity: sha512-2+QbHjFRfGB74v/pYWjd5OhU3TDIC2Gv/YKUTk/tCvAz0pkn/Mz6P3uByuBimLOcPvN2jYdScl3xGFSrx0jEcA==} engines: {node: '>=6.9.0'} @@ -3372,6 +3361,11 @@ packages: engines: {node: '>=10.17.0'} dev: true + /human-signals@4.3.1: + resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==} + engines: {node: '>=14.18.0'} + dev: true + /iconv-lite@0.6.3: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} @@ -3535,6 +3529,11 @@ packages: engines: {node: '>=8'} dev: true + /is-fullwidth-code-point@4.0.0: + resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==} + engines: {node: '>=12'} + dev: true + /is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -3563,11 +3562,6 @@ packages: engines: {node: '>=0.12.0'} dev: true - /is-obj@1.0.1: - resolution: {integrity: sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==} - engines: {node: '>=0.10.0'} - dev: true - /is-obj@2.0.0: resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} engines: {node: '>=8'} @@ -3610,11 +3604,6 @@ packages: has-tostringtag: 1.0.0 dev: true - /is-regexp@1.0.0: - resolution: {integrity: sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==} - engines: {node: '>=0.10.0'} - dev: true - /is-shared-array-buffer@1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} dependencies: @@ -3626,6 +3615,11 @@ packages: engines: {node: '>=8'} dev: true + /is-stream@3.0.0: + resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dev: true + /is-string@1.0.7: resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} engines: {node: '>= 0.4'} @@ -3658,11 +3652,6 @@ packages: has-tostringtag: 1.0.0 dev: true - /is-unicode-supported@0.1.0: - resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} - engines: {node: '>=10'} - dev: true - /is-weakref@1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: @@ -3887,51 +3876,51 @@ packages: immediate: 3.0.6 dev: false + /lilconfig@2.1.0: + resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} + engines: {node: '>=10'} + dev: true + /lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} dev: true - /lint-staged@10.5.4: - resolution: {integrity: sha512-EechC3DdFic/TdOPgj/RB3FicqE6932LTHCUm0Y2fsD9KGlLB+RwJl2q1IYBIvEsKzDOgn0D4gll+YxG5RsrKg==} + /lint-staged@14.0.1(enquirer@2.3.6): + resolution: {integrity: sha512-Mw0cL6HXnHN1ag0mN/Dg4g6sr8uf8sn98w2Oc1ECtFto9tvRF7nkXGJRbx8gPlHyoR0pLyBr2lQHbWwmUHe1Sw==} + engines: {node: ^16.14.0 || >=18.0.0} hasBin: true dependencies: - chalk: 4.1.2 - cli-truncate: 2.1.0 - commander: 6.2.1 - cosmiconfig: 7.1.0 + chalk: 5.3.0 + commander: 11.0.0 debug: 4.3.4 - dedent: 0.7.0 - enquirer: 2.3.6 - execa: 4.1.0 - listr2: 3.14.0(enquirer@2.3.6) - log-symbols: 4.1.0 + execa: 7.2.0 + lilconfig: 2.1.0 + listr2: 6.6.1(enquirer@2.3.6) micromatch: 4.0.5 - normalize-path: 3.0.0 - please-upgrade-node: 3.2.0 - string-argv: 0.3.1 - stringify-object: 3.3.0 + pidtree: 0.6.0 + string-argv: 0.3.2 + yaml: 2.3.1 transitivePeerDependencies: + - enquirer - supports-color dev: true - /listr2@3.14.0(enquirer@2.3.6): - resolution: {integrity: sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==} - engines: {node: '>=10.0.0'} + /listr2@6.6.1(enquirer@2.3.6): + resolution: {integrity: sha512-+rAXGHh0fkEWdXBmX+L6mmfmXmXvDGEKzkjxO+8mP3+nI/r/CWznVBvsibXdxda9Zz0OW2e2ikphN3OwCT/jSg==} + engines: {node: '>=16.0.0'} peerDependencies: enquirer: '>= 2.3.0 < 3' peerDependenciesMeta: enquirer: optional: true dependencies: - cli-truncate: 2.1.0 - colorette: 2.0.19 + cli-truncate: 3.1.0 + colorette: 2.0.20 enquirer: 2.3.6 - log-update: 4.0.0 - p-map: 4.0.0 + eventemitter3: 5.0.1 + log-update: 5.0.1 rfdc: 1.3.0 - rxjs: 7.8.0 - through: 2.3.8 - wrap-ansi: 7.0.0 + wrap-ansi: 8.1.0 dev: true /load-json-file@4.0.0: @@ -3992,22 +3981,15 @@ packages: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} dev: true - /log-symbols@4.1.0: - resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} - engines: {node: '>=10'} - dependencies: - chalk: 4.1.2 - is-unicode-supported: 0.1.0 - dev: true - - /log-update@4.0.0: - resolution: {integrity: sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==} - engines: {node: '>=10'} + /log-update@5.0.1: + resolution: {integrity: sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - ansi-escapes: 4.3.2 - cli-cursor: 3.1.0 - slice-ansi: 4.0.0 - wrap-ansi: 6.2.0 + ansi-escapes: 5.0.0 + cli-cursor: 4.0.0 + slice-ansi: 5.0.0 + strip-ansi: 7.1.0 + wrap-ansi: 8.1.0 dev: true /loupe@2.3.6: @@ -4150,6 +4132,11 @@ packages: engines: {node: '>=6'} dev: true + /mimic-fn@4.0.0: + resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} + engines: {node: '>=12'} + dev: true + /min-indent@1.0.1: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} @@ -4277,7 +4264,7 @@ packages: dependencies: hosted-git-info: 4.1.0 is-core-module: 2.11.0 - semver: 7.5.3 + semver: 7.5.4 validate-npm-package-license: 3.0.4 dev: true @@ -4309,6 +4296,13 @@ packages: path-key: 3.1.1 dev: true + /npm-run-path@5.1.0: + resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + dependencies: + path-key: 4.0.0 + dev: true + /nwsapi@2.2.2: resolution: {integrity: sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==} dev: true @@ -4355,6 +4349,13 @@ packages: mimic-fn: 2.1.0 dev: true + /onetime@6.0.0: + resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} + engines: {node: '>=12'} + dependencies: + mimic-fn: 4.0.0 + dev: true + /optionator@0.8.3: resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} engines: {node: '>= 0.8.0'} @@ -4428,13 +4429,6 @@ packages: p-limit: 3.1.0 dev: true - /p-map@4.0.0: - resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==} - engines: {node: '>=10'} - dependencies: - aggregate-error: 3.1.0 - dev: true - /p-try@1.0.0: resolution: {integrity: sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==} engines: {node: '>=4'} @@ -4509,6 +4503,11 @@ packages: engines: {node: '>=8'} dev: true + /path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + dev: true + /path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: true @@ -4555,6 +4554,12 @@ packages: hasBin: true dev: true + /pidtree@0.6.0: + resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==} + engines: {node: '>=0.10'} + hasBin: true + dev: true + /pify@2.3.0: resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} engines: {node: '>=0.10.0'} @@ -4573,12 +4578,6 @@ packages: pathe: 1.1.0 dev: true - /please-upgrade-node@3.2.0: - resolution: {integrity: sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==} - dependencies: - semver-compare: 1.0.0 - dev: true - /postcss-modules-extract-imports@3.0.0(postcss@8.4.21): resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==} engines: {node: ^10 || ^12 || >= 14} @@ -5036,9 +5035,9 @@ packages: supports-preserve-symlinks-flag: 1.0.0 dev: true - /restore-cursor@3.1.0: - resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} - engines: {node: '>=8'} + /restore-cursor@4.0.0: + resolution: {integrity: sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: onetime: 5.1.2 signal-exit: 3.0.7 @@ -5115,12 +5114,6 @@ packages: queue-microtask: 1.2.3 dev: true - /rxjs@7.8.0: - resolution: {integrity: sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==} - dependencies: - tslib: 2.6.0 - dev: true - /safe-buffer@5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} @@ -5157,10 +5150,6 @@ packages: xmlchars: 2.2.0 dev: true - /semver-compare@1.0.0: - resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==} - dev: true - /semver@5.7.1: resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} hasBin: true @@ -5179,6 +5168,14 @@ packages: lru-cache: 6.0.0 dev: true + /semver@7.5.4: + resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + /serialize-javascript@6.0.1: resolution: {integrity: sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==} dependencies: @@ -5282,22 +5279,12 @@ packages: engines: {node: '>=12'} dev: true - /slice-ansi@3.0.0: - resolution: {integrity: sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==} - engines: {node: '>=8'} - dependencies: - ansi-styles: 4.3.0 - astral-regex: 2.0.0 - is-fullwidth-code-point: 3.0.0 - dev: true - - /slice-ansi@4.0.0: - resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==} - engines: {node: '>=10'} + /slice-ansi@5.0.0: + resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==} + engines: {node: '>=12'} dependencies: - ansi-styles: 4.3.0 - astral-regex: 2.0.0 - is-fullwidth-code-point: 3.0.0 + ansi-styles: 6.2.1 + is-fullwidth-code-point: 4.0.0 dev: true /smob@0.0.6: @@ -5362,8 +5349,8 @@ packages: resolution: {integrity: sha512-uUZI65yrV2Qva5gqE0+A7uVAvO40iPo6jGhs7s8keRfHCmtg+uB2X6EiLGCI9IgL1J17xGhvoOqSz79lzICPTA==} dev: true - /string-argv@0.3.1: - resolution: {integrity: sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==} + /string-argv@0.3.2: + resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} engines: {node: '>=0.6.19'} dev: true @@ -5425,15 +5412,6 @@ packages: safe-buffer: 5.2.1 dev: true - /stringify-object@3.3.0: - resolution: {integrity: sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==} - engines: {node: '>=4'} - dependencies: - get-own-enumerable-property-symbols: 3.0.2 - is-obj: 1.0.1 - is-regexp: 1.0.0 - dev: true - /strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} @@ -5458,6 +5436,11 @@ packages: engines: {node: '>=6'} dev: true + /strip-final-newline@3.0.0: + resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} + engines: {node: '>=12'} + dev: true + /strip-indent@3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -5647,6 +5630,15 @@ packages: engines: {node: '>=8'} dev: true + /ts-api-utils@1.0.2(typescript@5.1.6): + resolution: {integrity: sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==} + engines: {node: '>=16.13.0'} + peerDependencies: + typescript: '>=4.2.0' + dependencies: + typescript: 5.1.6 + dev: true + /tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} dev: true @@ -5705,11 +5697,6 @@ packages: engines: {node: '>=10'} dev: true - /type-fest@0.21.3: - resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} - engines: {node: '>=10'} - dev: true - /type-fest@0.6.0: resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==} engines: {node: '>=8'} @@ -5720,6 +5707,11 @@ packages: engines: {node: '>=8'} dev: true + /type-fest@1.4.0: + resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==} + engines: {node: '>=10'} + dev: true + /type-fest@2.19.0: resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==} engines: {node: '>=12.20'} @@ -6114,15 +6106,6 @@ packages: resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} dev: true - /wrap-ansi@6.2.0: - resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} - engines: {node: '>=8'} - dependencies: - ansi-styles: 4.3.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - dev: true - /wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -6198,9 +6181,9 @@ packages: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: true - /yaml@1.10.2: - resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} - engines: {node: '>= 6'} + /yaml@2.3.1: + resolution: {integrity: sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==} + engines: {node: '>= 14'} dev: true /yargs-parser@20.2.9: From ca00cf245efe9e0541852f5bb9fb3b59a80a9871 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 12:12:48 -0500 Subject: [PATCH 11/18] chore(deps): update test (major) (#9148) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: 三咲智子 Kevin Deng --- .github/workflows/ci.yml | 3 +- package.json | 4 +- packages/vue/__tests__/e2e/Transition.spec.ts | 72 +-- .../vue/__tests__/e2e/TransitionGroup.spec.ts | 18 +- packages/vue/__tests__/e2e/e2eUtils.ts | 14 +- pnpm-lock.yaml | 473 ++++++++++++------ 6 files changed, 377 insertions(+), 207 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b85878c836a..d17e1cbe842 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,7 +67,7 @@ jobs: - name: Setup cache for Chromium binary uses: actions/cache@v3 with: - path: ~/.cache/puppeteer/chrome + path: ~/.cache/puppeteer key: chromium-${{ hashFiles('pnpm-lock.yaml') }} - name: Install pnpm @@ -80,6 +80,7 @@ jobs: cache: 'pnpm' - run: pnpm install + - run: node node_modules/puppeteer/install.js - name: Run e2e tests run: pnpm run test-e2e diff --git a/package.json b/package.json index fbc5892184a..ab5d8b10b1e 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "eslint-plugin-jest": "^27.2.1", "estree-walker": "^2.0.2", "execa": "^4.0.2", - "jsdom": "^21.1.0", + "jsdom": "^22.1.0", "lint-staged": "^14.0.1", "lodash": "^4.17.15", "magic-string": "^0.30.0", @@ -89,7 +89,7 @@ "prettier": "^3.0.1", "pretty-bytes": "^6.1.1", "pug": "^3.0.1", - "puppeteer": "~19.6.0", + "puppeteer": "~21.1.1", "rollup": "^3.26.0", "rollup-plugin-dts": "^5.3.0", "rollup-plugin-esbuild": "^5.0.0", diff --git a/packages/vue/__tests__/e2e/Transition.spec.ts b/packages/vue/__tests__/e2e/Transition.spec.ts index 50b3524fdb7..326eaa57e3d 100644 --- a/packages/vue/__tests__/e2e/Transition.spec.ts +++ b/packages/vue/__tests__/e2e/Transition.spec.ts @@ -295,12 +295,12 @@ describe('e2e: Transition', () => {
+ @before-enter="beforeEnterSpy()" + @enter="onEnterSpy()" + @after-enter="afterEnterSpy()" + @before-leave="beforeLeaveSpy()" + @leave="onLeaveSpy()" + @after-leave="afterLeaveSpy()">
content
@@ -496,7 +496,7 @@ describe('e2e: Transition', () => {
+ @enter-cancelled="enterCancelledSpy()">
content
@@ -666,15 +666,15 @@ describe('e2e: Transition', () => { appear-from-class="test-appear-from" appear-to-class="test-appear-to" appear-active-class="test-appear-active" - @before-enter="beforeEnterSpy" - @enter="onEnterSpy" - @after-enter="afterEnterSpy" - @before-leave="beforeLeaveSpy" - @leave="onLeaveSpy" - @after-leave="afterLeaveSpy" - @before-appear="beforeAppearSpy" - @appear="onAppearSpy" - @after-appear="afterAppearSpy"> + @before-enter="beforeEnterSpy()" + @enter="onEnterSpy()" + @after-enter="afterEnterSpy()" + @before-leave="beforeLeaveSpy()" + @leave="onLeaveSpy()" + @after-leave="afterLeaveSpy()" + @before-appear="beforeAppearSpy()" + @appear="onAppearSpy()" + @after-appear="afterAppearSpy()">
content
@@ -802,12 +802,12 @@ describe('e2e: Transition', () => { + @before-enter="onBeforeEnterSpy()" + @enter="onEnterSpy()" + @after-enter="onAfterEnterSpy()" + @before-leave="onBeforeLeaveSpy()" + @leave="onLeaveSpy()" + @after-leave="onAfterLeaveSpy()">
content
@@ -1233,7 +1233,7 @@ describe('e2e: Transition', () => { createApp({ template: `
- + content @@ -1592,12 +1592,12 @@ describe('e2e: Transition', () => {
+ @before-enter="beforeEnterSpy()" + @enter="onEnterSpy()" + @after-enter="afterEnterSpy()" + @before-leave="beforeLeaveSpy()" + @leave="onLeaveSpy()" + @after-leave="afterLeaveSpy()">
content
@@ -1678,7 +1678,7 @@ describe('e2e: Transition', () => { createApp({ template: `
- +
content
@@ -1750,9 +1750,9 @@ describe('e2e: Transition', () => { appear-from-class="test-appear-from" appear-to-class="test-appear-to" appear-active-class="test-appear-active" - @before-enter="beforeEnterSpy" - @enter="onEnterSpy" - @after-enter="afterEnterSpy"> + @before-enter="beforeEnterSpy()" + @enter="onEnterSpy()" + @after-enter="afterEnterSpy()">
content
@@ -1854,9 +1854,9 @@ describe('e2e: Transition', () => { + @before-enter="beforeEnterSpy()" + @enter="onEnterSpy()" + @after-enter="afterEnterSpy()">
content
diff --git a/packages/vue/__tests__/e2e/TransitionGroup.spec.ts b/packages/vue/__tests__/e2e/TransitionGroup.spec.ts index 434735b5e9e..1a61c23a44e 100644 --- a/packages/vue/__tests__/e2e/TransitionGroup.spec.ts +++ b/packages/vue/__tests__/e2e/TransitionGroup.spec.ts @@ -400,15 +400,15 @@ describe('e2e: TransitionGroup', () => { appear-from-class="test-appear-from" appear-to-class="test-appear-to" appear-active-class="test-appear-active" - @before-enter="beforeEnterSpy" - @enter="onEnterSpy" - @after-enter="afterEnterSpy" - @before-leave="beforeLeaveSpy" - @leave="onLeaveSpy" - @after-leave="afterLeaveSpy" - @before-appear="beforeAppearSpy" - @appear="onAppearSpy" - @after-appear="afterAppearSpy"> + @before-enter="beforeEnterSpy()" + @enter="onEnterSpy()" + @after-enter="afterEnterSpy()" + @before-leave="beforeLeaveSpy()" + @leave="onLeaveSpy()" + @after-leave="afterLeaveSpy()" + @before-appear="beforeAppearSpy()" + @appear="onAppearSpy()" + @after-appear="afterAppearSpy()">
{{item}}
diff --git a/packages/vue/__tests__/e2e/e2eUtils.ts b/packages/vue/__tests__/e2e/e2eUtils.ts index 182cf021f17..4d840a690e4 100644 --- a/packages/vue/__tests__/e2e/e2eUtils.ts +++ b/packages/vue/__tests__/e2e/e2eUtils.ts @@ -1,10 +1,16 @@ -import puppeteer, { Browser, Page, ClickOptions } from 'puppeteer' +import puppeteer, { + Browser, + Page, + ClickOptions, + PuppeteerLaunchOptions +} from 'puppeteer' export const E2E_TIMEOUT = 30 * 1000 -const puppeteerOptions = process.env.CI - ? { args: ['--no-sandbox', '--disable-setuid-sandbox'] } - : {} +const puppeteerOptions: PuppeteerLaunchOptions = { + args: process.env.CI ? ['--no-sandbox', '--disable-setuid-sandbox'] : [], + headless: 'new' +} const maxTries = 30 export const timeout = (n: number) => new Promise(r => setTimeout(r, n)) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d428aca5eed..0348ae61282 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -75,8 +75,8 @@ importers: specifier: ^4.0.2 version: 4.1.0 jsdom: - specifier: ^21.1.0 - version: 21.1.0 + specifier: ^22.1.0 + version: 22.1.0 lint-staged: specifier: ^14.0.1 version: 14.0.1(enquirer@2.3.6) @@ -108,8 +108,8 @@ importers: specifier: ^3.0.1 version: 3.0.2 puppeteer: - specifier: ~19.6.0 - version: 19.6.3 + specifier: ~21.1.1 + version: 21.1.1 rollup: specifier: ^3.26.0 version: 3.26.2 @@ -151,7 +151,7 @@ importers: version: 4.3.1(@types/node@16.18.38)(terser@5.19.2) vitest: specifier: ^0.30.1 - version: 0.30.1(jsdom@21.1.0)(terser@5.19.2) + version: 0.30.1(jsdom@22.1.0)(terser@5.19.2) packages/compiler-core: dependencies: @@ -1189,6 +1189,22 @@ packages: fastq: 1.15.0 dev: true + /@puppeteer/browsers@1.7.0: + resolution: {integrity: sha512-sl7zI0IkbQGak/+IE3VEEZab5SSOlI5F6558WvzWGC1n3+C722rfewC1ZIkcF9dsoGSsxhsONoseVlNQG4wWvQ==} + engines: {node: '>=16.3.0'} + hasBin: true + dependencies: + debug: 4.3.4 + extract-zip: 2.0.1 + progress: 2.0.3 + proxy-agent: 6.3.0 + tar-fs: 3.0.4 + unbzip2-stream: 1.4.3 + yargs: 17.7.1 + transitivePeerDependencies: + - supports-color + dev: true + /@rollup/plugin-alias@4.0.4(rollup@3.26.2): resolution: {integrity: sha512-0CaAY238SMtYAWEXXptWSR8iz8NYZnH7zNBKuJ14xFJSGwLtPgjvXYsoApAHfzYXXH1ejxpVw7WlHss3zhh9SQ==} engines: {node: '>=14.0.0'} @@ -1315,6 +1331,10 @@ packages: engines: {node: '>= 10'} dev: true + /@tootallnate/quickjs-emscripten@0.23.0: + resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} + dev: true + /@types/chai-subset@1.3.3: resolution: {integrity: sha512-frBecisrNGz+F4T6bcc+NLeolfiojh5FxW2klu669+8BARtyQv2C/GkNW6FUodVe4BroGMP/wER/YDGc7rEllw==} dependencies: @@ -1520,7 +1540,7 @@ packages: istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.5 test-exclude: 6.0.0 - vitest: 0.30.1(jsdom@21.1.0)(terser@5.19.2) + vitest: 0.30.1(jsdom@22.1.0)(terser@5.19.2) transitivePeerDependencies: - supports-color dev: true @@ -1598,13 +1618,6 @@ packages: negotiator: 0.6.3 dev: true - /acorn-globals@7.0.1: - resolution: {integrity: sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==} - dependencies: - acorn: 8.8.2 - acorn-walk: 8.2.0 - dev: true - /acorn-jsx@5.3.2(acorn@8.8.2): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -1649,6 +1662,15 @@ packages: - supports-color dev: true + /agent-base@7.1.0: + resolution: {integrity: sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==} + engines: {node: '>= 14'} + dependencies: + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + /ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} dependencies: @@ -1765,6 +1787,13 @@ packages: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} dev: true + /ast-types@0.13.4: + resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==} + engines: {node: '>=4'} + dependencies: + tslib: 2.6.0 + dev: true + /asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} dev: true @@ -1774,6 +1803,10 @@ packages: engines: {node: '>= 0.4'} dev: true + /b4a@1.6.4: + resolution: {integrity: sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==} + dev: true + /babel-walk@3.0.0-canary-5: resolution: {integrity: sha512-GAwkz0AihzY5bkwIY5QDR+LvsRQgB/B+1foMPvi0FZPMl5fjD7ICiznUiBdLYMH1QYe6vqu4gWYytZOccLouFw==} engines: {node: '>= 10.0.0'} @@ -1789,19 +1822,16 @@ packages: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} dev: true + /basic-ftp@5.0.3: + resolution: {integrity: sha512-QHX8HLlncOLpy54mh+k/sWIFd0ThmRqwe9ZjELybGZK+tZ8rUb9VO0saKJUROTbE+KhzDUT7xziGpGrW8Kmd+g==} + engines: {node: '>=10.0.0'} + dev: true + /binary-extensions@2.2.0: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} dev: true - /bl@4.1.0: - resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} - dependencies: - buffer: 5.7.1 - inherits: 2.0.4 - readable-stream: 3.6.0 - dev: true - /blueimp-md5@2.19.0: resolution: {integrity: sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==} dev: true @@ -1988,8 +2018,13 @@ packages: fsevents: 2.3.2 dev: true - /chownr@1.1.4: - resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} + /chromium-bidi@0.4.22(devtools-protocol@0.0.1159816): + resolution: {integrity: sha512-wR7Y9Ioez+cNXT4ZP7VNM1HRTljpNnMSLw4/RnwhhZUP4yCU7kIQND00YiktuHekch68jklGPK1q9Jkb29+fQg==} + peerDependencies: + devtools-protocol: '*' + dependencies: + devtools-protocol: 0.0.1159816 + mitt: 3.0.1 dev: true /cli-boxes@3.0.0: @@ -2029,6 +2064,15 @@ packages: wrap-ansi: 7.0.0 dev: true + /cliui@8.0.1: + resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} + engines: {node: '>=12'} + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + dev: true + /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} dependencies: @@ -2298,8 +2342,8 @@ packages: /core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} - /cosmiconfig@8.0.0: - resolution: {integrity: sha512-da1EafcpH6b/TD8vDRaWV7xFINlHlF6zKsGwS1TsuVJTZRkquaS5HTMq7uq6h31619QjbsYl21gVDOm32KM1vQ==} + /cosmiconfig@8.2.0: + resolution: {integrity: sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==} engines: {node: '>=14'} dependencies: import-fresh: 3.3.0 @@ -2308,10 +2352,10 @@ packages: path-type: 4.0.0 dev: true - /cross-fetch@3.1.5: - resolution: {integrity: sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==} + /cross-fetch@4.0.0: + resolution: {integrity: sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==} dependencies: - node-fetch: 2.6.7 + node-fetch: 2.7.0 transitivePeerDependencies: - encoding dev: true @@ -2342,19 +2386,11 @@ packages: hasBin: true dev: true - /cssom@0.3.8: - resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==} - dev: true - - /cssom@0.5.0: - resolution: {integrity: sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==} - dev: true - - /cssstyle@2.3.0: - resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==} - engines: {node: '>=8'} + /cssstyle@3.0.0: + resolution: {integrity: sha512-N4u2ABATi3Qplzf0hWbVCdjenim8F3ojEXpBDF5hBpjzW182MjNGLqfmQ0SkSPeQ+V86ZXgeH8aXj6kayd4jgg==} + engines: {node: '>=14'} dependencies: - cssom: 0.3.8 + rrweb-cssom: 0.6.0 dev: true /csstype@3.1.1: @@ -2366,13 +2402,18 @@ packages: engines: {node: '>=8'} dev: true - /data-urls@3.0.2: - resolution: {integrity: sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==} - engines: {node: '>=12'} + /data-uri-to-buffer@5.0.1: + resolution: {integrity: sha512-a9l6T1qqDogvvnw0nKlfZzqsyikEBZBClF39V3TFoKhDtGBqHu2HkuomJc02j5zft8zrUaXEuoicLeW54RkzPg==} + engines: {node: '>= 14'} + dev: true + + /data-urls@4.0.0: + resolution: {integrity: sha512-/mMTei/JXPqvFqQtfyTowxmJVwr2PVAeCcDxyFf6LhoOu/09TX2OX3kb2wzi4DMXcfj4OItwDOnhl5oziPnT6g==} + engines: {node: '>=14'} dependencies: abab: 2.0.6 whatwg-mimetype: 3.0.0 - whatwg-url: 11.0.0 + whatwg-url: 12.0.1 dev: true /date-time@3.1.0: @@ -2455,13 +2496,22 @@ packages: object-keys: 1.1.1 dev: true + /degenerator@5.0.1: + resolution: {integrity: sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==} + engines: {node: '>= 14'} + dependencies: + ast-types: 0.13.4 + escodegen: 2.1.0 + esprima: 4.0.1 + dev: true + /delayed-stream@1.0.0: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} dev: true - /devtools-protocol@0.0.1082910: - resolution: {integrity: sha512-RqoZ2GmqaNxyx+99L/RemY5CkwG9D0WEfOKxekwCRXOGrDCep62ngezEJUVMq6rISYQ+085fJnWDQqGHlxVNww==} + /devtools-protocol@0.0.1159816: + resolution: {integrity: sha512-2cZlHxC5IlgkIWe2pSDmCrDiTzbSJWywjbDDnupOImEBcG31CQgBLV8wWE+5t+C4rimcjHsbzy7CBzf9oFjboA==} dev: true /dir-glob@3.0.1: @@ -2682,15 +2732,14 @@ packages: engines: {node: '>=10'} dev: true - /escodegen@2.0.0: - resolution: {integrity: sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==} + /escodegen@2.1.0: + resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} engines: {node: '>=6.0'} hasBin: true dependencies: esprima: 4.0.1 estraverse: 5.3.0 esutils: 2.0.3 - optionator: 0.8.3 optionalDependencies: source-map: 0.6.1 dev: true @@ -2922,6 +2971,10 @@ packages: resolution: {integrity: sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==} dev: true + /fast-fifo@1.3.2: + resolution: {integrity: sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==} + dev: true + /fast-glob@3.2.12: resolution: {integrity: sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==} engines: {node: '>=8.6.0'} @@ -3027,8 +3080,13 @@ packages: mime-types: 2.1.35 dev: true - /fs-constants@1.0.0: - resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} + /fs-extra@8.1.0: + resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} + engines: {node: '>=6 <7 || >=8'} + dependencies: + graceful-fs: 4.2.10 + jsonfile: 4.0.0 + universalify: 0.1.2 dev: true /fs.realpath@1.0.0: @@ -3126,6 +3184,18 @@ packages: resolve-pkg-maps: 1.0.0 dev: true + /get-uri@6.0.1: + resolution: {integrity: sha512-7ZqONUVqaabogsYNWlYj0t3YZaL6dhuEueZXGF+/YVmf6dHmaFg8/6psJKqhx9QykIDKzpGcy2cn4oV4YC7V/Q==} + engines: {node: '>= 14'} + dependencies: + basic-ftp: 5.0.3 + data-uri-to-buffer: 5.0.1 + debug: 4.3.4 + fs-extra: 8.1.0 + transitivePeerDependencies: + - supports-color + dev: true + /git-raw-commits@2.0.11: resolution: {integrity: sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A==} engines: {node: '>=10'} @@ -3341,6 +3411,16 @@ packages: - supports-color dev: true + /http-proxy-agent@7.0.0: + resolution: {integrity: sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==} + engines: {node: '>= 14'} + dependencies: + agent-base: 7.1.0 + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + /https-proxy-agent@5.0.1: resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} engines: {node: '>= 6'} @@ -3351,6 +3431,16 @@ packages: - supports-color dev: true + /https-proxy-agent@7.0.2: + resolution: {integrity: sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==} + engines: {node: '>= 14'} + dependencies: + agent-base: 7.1.0 + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + /human-signals@1.1.1: resolution: {integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==} engines: {node: '>=8.12.0'} @@ -3448,6 +3538,14 @@ packages: side-channel: 1.0.4 dev: true + /ip@1.1.8: + resolution: {integrity: sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==} + dev: true + + /ip@2.0.0: + resolution: {integrity: sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==} + dev: true + /is-array-buffer@3.0.1: resolution: {integrity: sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==} dependencies: @@ -3747,9 +3845,9 @@ packages: argparse: 2.0.1 dev: true - /jsdom@21.1.0: - resolution: {integrity: sha512-m0lzlP7qOtthD918nenK3hdItSd2I+V3W9IrBcB36sqDwG+KnUs66IF5GY7laGWUnlM9vTsD0W1QwSEBYWWcJg==} - engines: {node: '>=14'} + /jsdom@22.1.0: + resolution: {integrity: sha512-/9AVW7xNbsBv6GfWho4TTNjEo9fe6Zhf9O7s0Fhhr3u+awPwAJMKwAMXnkk5vBxflqLW9hTHX/0cs+P3gW+cQw==} + engines: {node: '>=16'} peerDependencies: canvas: ^2.5.0 peerDependenciesMeta: @@ -3757,21 +3855,18 @@ packages: optional: true dependencies: abab: 2.0.6 - acorn: 8.8.2 - acorn-globals: 7.0.1 - cssom: 0.5.0 - cssstyle: 2.3.0 - data-urls: 3.0.2 + cssstyle: 3.0.0 + data-urls: 4.0.0 decimal.js: 10.4.3 domexception: 4.0.0 - escodegen: 2.0.0 form-data: 4.0.0 html-encoding-sniffer: 3.0.0 http-proxy-agent: 5.0.0 https-proxy-agent: 5.0.1 is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.2 + nwsapi: 2.2.7 parse5: 7.1.2 + rrweb-cssom: 0.6.0 saxes: 6.0.0 symbol-tree: 3.2.4 tough-cookie: 4.1.2 @@ -3779,8 +3874,8 @@ packages: webidl-conversions: 7.0.0 whatwg-encoding: 2.0.0 whatwg-mimetype: 3.0.0 - whatwg-url: 11.0.0 - ws: 8.12.0 + whatwg-url: 12.0.1 + ws: 8.13.0 xml-name-validator: 4.0.0 transitivePeerDependencies: - bufferutil @@ -3828,6 +3923,12 @@ packages: resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==} dev: true + /jsonfile@4.0.0: + resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} + optionalDependencies: + graceful-fs: 4.2.10 + dev: true + /jsonparse@1.3.1: resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} engines: {'0': node >= 0.2.0} @@ -3854,14 +3955,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /levn@0.3.0: - resolution: {integrity: sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.1.2 - type-check: 0.3.2 - dev: true - /levn@0.4.1: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} @@ -4011,6 +4104,11 @@ packages: yallist: 4.0.0 dev: true + /lru-cache@7.18.3: + resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} + engines: {node: '>=12'} + dev: true + /magic-string@0.27.0: resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} engines: {node: '>=12'} @@ -4175,6 +4273,10 @@ packages: resolution: {integrity: sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==} dev: true + /mitt@3.0.1: + resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} + dev: true + /mkdirp-classic@0.5.3: resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} dev: true @@ -4229,12 +4331,17 @@ packages: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} dev: true + /netmask@2.0.2: + resolution: {integrity: sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==} + engines: {node: '>= 0.4.0'} + dev: true + /nice-try@1.0.5: resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} dev: true - /node-fetch@2.6.7: - resolution: {integrity: sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==} + /node-fetch@2.7.0: + resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} peerDependencies: encoding: ^0.1.0 @@ -4303,8 +4410,8 @@ packages: path-key: 4.0.0 dev: true - /nwsapi@2.2.2: - resolution: {integrity: sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==} + /nwsapi@2.2.7: + resolution: {integrity: sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==} dev: true /object-assign@4.1.1: @@ -4356,18 +4463,6 @@ packages: mimic-fn: 4.0.0 dev: true - /optionator@0.8.3: - resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} - engines: {node: '>= 0.8.0'} - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.3.0 - prelude-ls: 1.1.2 - type-check: 0.3.2 - word-wrap: 1.2.4 - dev: true - /optionator@0.9.1: resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} engines: {node: '>= 0.8.0'} @@ -4439,6 +4534,31 @@ packages: engines: {node: '>=6'} dev: true + /pac-proxy-agent@7.0.1: + resolution: {integrity: sha512-ASV8yU4LLKBAjqIPMbrgtaKIvxQri/yh2OpI+S6hVa9JRkUI3Y3NPFbfngDtY7oFtSMD3w31Xns89mDa3Feo5A==} + engines: {node: '>= 14'} + dependencies: + '@tootallnate/quickjs-emscripten': 0.23.0 + agent-base: 7.1.0 + debug: 4.3.4 + get-uri: 6.0.1 + http-proxy-agent: 7.0.0 + https-proxy-agent: 7.0.2 + pac-resolver: 7.0.0 + socks-proxy-agent: 8.0.2 + transitivePeerDependencies: + - supports-color + dev: true + + /pac-resolver@7.0.0: + resolution: {integrity: sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==} + engines: {node: '>= 14'} + dependencies: + degenerator: 5.0.1 + ip: 1.1.8 + netmask: 2.0.2 + dev: true + /pako@1.0.11: resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} dev: false @@ -4664,11 +4784,6 @@ packages: source-map-js: 1.0.2 dev: true - /prelude-ls@1.1.2: - resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==} - engines: {node: '>= 0.8.0'} - dev: true - /prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -4708,6 +4823,22 @@ packages: asap: 2.0.6 dev: true + /proxy-agent@6.3.0: + resolution: {integrity: sha512-0LdR757eTj/JfuU7TL2YCuAZnxWXu3tkJbg4Oq3geW/qFNT/32T0sp2HnZ9O0lMR4q3vwAt0+xCA8SR0WAD0og==} + engines: {node: '>= 14'} + dependencies: + agent-base: 7.1.0 + debug: 4.3.4 + http-proxy-agent: 7.0.0 + https-proxy-agent: 7.0.2 + lru-cache: 7.18.3 + pac-proxy-agent: 7.0.1 + proxy-from-env: 1.1.0 + socks-proxy-agent: 8.0.2 + transitivePeerDependencies: + - supports-color + dev: true + /proxy-from-env@1.1.0: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} dev: true @@ -4823,20 +4954,16 @@ packages: engines: {node: '>=6'} dev: true - /puppeteer-core@19.6.3: - resolution: {integrity: sha512-8MbhioSlkDaHkmolpQf9Z7ui7jplFfOFTnN8d5kPsCazRRTNIH6/bVxPskn0v5Gh9oqOBlknw0eHH0/OBQAxpQ==} - engines: {node: '>=14.1.0'} + /puppeteer-core@21.1.1: + resolution: {integrity: sha512-Tlcajcf44zwfa9Sbwv3T8BtaNMJ69wtpHIxwl2NOBTyTK3D1wppQovXTjfw0TDOm3a16eCfQ+5BMi3vRQ4kuAQ==} + engines: {node: '>=16.3.0'} dependencies: - cross-fetch: 3.1.5 + '@puppeteer/browsers': 1.7.0 + chromium-bidi: 0.4.22(devtools-protocol@0.0.1159816) + cross-fetch: 4.0.0 debug: 4.3.4 - devtools-protocol: 0.0.1082910 - extract-zip: 2.0.1 - https-proxy-agent: 5.0.1 - proxy-from-env: 1.1.0 - rimraf: 3.0.2 - tar-fs: 2.1.1 - unbzip2-stream: 1.4.3 - ws: 8.11.0 + devtools-protocol: 0.0.1159816 + ws: 8.13.0 transitivePeerDependencies: - bufferutil - encoding @@ -4844,16 +4971,14 @@ packages: - utf-8-validate dev: true - /puppeteer@19.6.3: - resolution: {integrity: sha512-K03xTtGDwS6cBXX/EoqoZxglCUKcX2SLIl92fMnGMRjYpPGXoAV2yKEh3QXmXzKqfZXd8TxjjFww+tEttWv8kw==} - engines: {node: '>=14.1.0'} + /puppeteer@21.1.1: + resolution: {integrity: sha512-2TLntjGA4qLrI9/8N0UK/5OoZJ2Ue7QgphN2SD+RsaHiha12AEiVyMGsB+i6LY1IoPAtEgYIjblQ7lw3kWDNRw==} + engines: {node: '>=16.3.0'} requiresBuild: true dependencies: - cosmiconfig: 8.0.0 - https-proxy-agent: 5.0.1 - progress: 2.0.3 - proxy-from-env: 1.1.0 - puppeteer-core: 19.6.3 + '@puppeteer/browsers': 1.7.0 + cosmiconfig: 8.2.0 + puppeteer-core: 21.1.1 transitivePeerDependencies: - bufferutil - encoding @@ -4874,6 +4999,10 @@ packages: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} dev: true + /queue-tick@1.0.1: + resolution: {integrity: sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==} + dev: true + /quick-lru@4.0.1: resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} engines: {node: '>=8'} @@ -5108,6 +5237,10 @@ packages: fsevents: 2.3.2 dev: true + /rrweb-cssom@0.6.0: + resolution: {integrity: sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==} + dev: true + /run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} dependencies: @@ -5287,10 +5420,34 @@ packages: is-fullwidth-code-point: 4.0.0 dev: true + /smart-buffer@4.2.0: + resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} + engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} + dev: true + /smob@0.0.6: resolution: {integrity: sha512-V21+XeNni+tTyiST1MHsa84AQhT1aFZipzPpOFAVB8DkHzwJyjjAmt9bgwnuZiZWnIbMo2duE29wybxv/7HWUw==} dev: true + /socks-proxy-agent@8.0.2: + resolution: {integrity: sha512-8zuqoLv1aP/66PHF5TqwJ7Czm3Yv32urJQHrVyhD7mmA6d61Zv8cIXQYPTWwmg6qlupnPvs/QKDmfa4P/qct2g==} + engines: {node: '>= 14'} + dependencies: + agent-base: 7.1.0 + debug: 4.3.4 + socks: 2.7.1 + transitivePeerDependencies: + - supports-color + dev: true + + /socks@2.7.1: + resolution: {integrity: sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==} + engines: {node: '>= 10.13.0', npm: '>= 3.0.0'} + dependencies: + ip: 2.0.0 + smart-buffer: 4.2.0 + dev: true + /source-map-js@1.0.2: resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} engines: {node: '>=0.10.0'} @@ -5349,6 +5506,13 @@ packages: resolution: {integrity: sha512-uUZI65yrV2Qva5gqE0+A7uVAvO40iPo6jGhs7s8keRfHCmtg+uB2X6EiLGCI9IgL1J17xGhvoOqSz79lzICPTA==} dev: true + /streamx@2.15.1: + resolution: {integrity: sha512-fQMzy2O/Q47rgwErk/eGeLu/roaFWV0jVsogDmrszM9uIw8L5OA+t+V93MgYlufNptfjmYR1tOMWhei/Eh7TQA==} + dependencies: + fast-fifo: 1.3.2 + queue-tick: 1.0.1 + dev: true + /string-argv@0.3.2: resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} engines: {node: '>=0.6.19'} @@ -5487,24 +5651,20 @@ packages: resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} dev: true - /tar-fs@2.1.1: - resolution: {integrity: sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==} + /tar-fs@3.0.4: + resolution: {integrity: sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==} dependencies: - chownr: 1.1.4 mkdirp-classic: 0.5.3 pump: 3.0.0 - tar-stream: 2.2.0 + tar-stream: 3.1.6 dev: true - /tar-stream@2.2.0: - resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} - engines: {node: '>=6'} + /tar-stream@3.1.6: + resolution: {integrity: sha512-B/UyjYwPpMBv+PaFSWAmtYjwdrlEaZQEhMIBFNC5oEG8lpiW8XjcSdmEaClj28ArfKScKHs2nshz3k2le6crsg==} dependencies: - bl: 4.1.0 - end-of-stream: 1.4.4 - fs-constants: 1.0.0 - inherits: 2.0.4 - readable-stream: 3.6.0 + b4a: 1.6.4 + fast-fifo: 1.3.2 + streamx: 2.15.1 dev: true /temp-dir@2.0.0: @@ -5618,9 +5778,9 @@ packages: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} dev: true - /tr46@3.0.0: - resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==} - engines: {node: '>=12'} + /tr46@4.1.1: + resolution: {integrity: sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==} + engines: {node: '>=14'} dependencies: punycode: 2.3.0 dev: true @@ -5668,13 +5828,6 @@ packages: fsevents: 2.3.2 dev: true - /type-check@0.3.2: - resolution: {integrity: sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==} - engines: {node: '>= 0.8.0'} - dependencies: - prelude-ls: 1.1.2 - dev: true - /type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -5765,6 +5918,11 @@ packages: through: 2.3.8 dev: true + /universalify@0.1.2: + resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} + engines: {node: '>= 4.0.0'} + dev: true + /universalify@0.2.0: resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} engines: {node: '>= 4.0.0'} @@ -5914,7 +6072,7 @@ packages: fsevents: 2.3.2 dev: true - /vitest@0.30.1(jsdom@21.1.0)(terser@5.19.2): + /vitest@0.30.1(jsdom@22.1.0)(terser@5.19.2): resolution: {integrity: sha512-y35WTrSTlTxfMLttgQk4rHcaDkbHQwDP++SNwPb+7H8yb13Q3cu2EixrtHzF27iZ8v0XCciSsLg00RkPAzB/aA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -5959,7 +6117,7 @@ packages: chai: 4.3.7 concordance: 5.0.4 debug: 4.3.4 - jsdom: 21.1.0 + jsdom: 22.1.0 local-pkg: 0.4.3 magic-string: 0.30.0 pathe: 1.1.0 @@ -6019,11 +6177,11 @@ packages: engines: {node: '>=12'} dev: true - /whatwg-url@11.0.0: - resolution: {integrity: sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==} - engines: {node: '>=12'} + /whatwg-url@12.0.1: + resolution: {integrity: sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==} + engines: {node: '>=14'} dependencies: - tr46: 3.0.0 + tr46: 4.1.1 webidl-conversions: 7.0.0 dev: true @@ -6128,21 +6286,8 @@ packages: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} dev: true - /ws@8.11.0: - resolution: {integrity: sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - dev: true - - /ws@8.12.0: - resolution: {integrity: sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig==} + /ws@8.13.0: + resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -6191,6 +6336,11 @@ packages: engines: {node: '>=10'} dev: true + /yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + dev: true + /yargs@16.2.0: resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} engines: {node: '>=10'} @@ -6204,6 +6354,19 @@ packages: yargs-parser: 20.2.9 dev: true + /yargs@17.7.1: + resolution: {integrity: sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==} + engines: {node: '>=12'} + dependencies: + cliui: 8.0.1 + escalade: 3.1.1 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 21.1.1 + dev: true + /yauzl@2.10.0: resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==} dependencies: From 323d2cebba816831b32a5b5180985b68911a41fb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:05:19 -0500 Subject: [PATCH 12/18] chore(deps): update actions/upload-artifact action to v3 (#9153) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/size-data.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/size-data.yml b/.github/workflows/size-data.yml index a9edfeb6e0a..b96c71b9714 100644 --- a/.github/workflows/size-data.yml +++ b/.github/workflows/size-data.yml @@ -45,7 +45,7 @@ jobs: if: ${{github.event_name == 'pull_request'}} run: echo ${{ github.event.number }} > ./pr.txt - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{github.event_name == 'pull_request'}} with: name: pr-number From 8238d106ec5288975d80260e0282ad109bf5a848 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:05:43 -0500 Subject: [PATCH 13/18] chore(deps): update lint (#9152) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 8 +-- pnpm-lock.yaml | 168 +++++++++++++++++++++++++------------------------ 2 files changed, 90 insertions(+), 86 deletions(-) diff --git a/package.json b/package.json index ab5d8b10b1e..0e67bb4f00d 100644 --- a/package.json +++ b/package.json @@ -74,8 +74,8 @@ "enquirer": "^2.3.2", "esbuild": "^0.17.4", "esbuild-plugin-polyfill-node": "^0.2.0", - "eslint": "^8.33.0", - "eslint-plugin-jest": "^27.2.1", + "eslint": "^8.48.0", + "eslint-plugin-jest": "^27.2.3", "estree-walker": "^2.0.2", "execa": "^4.0.2", "jsdom": "^22.1.0", @@ -86,7 +86,7 @@ "marked": "^4.0.10", "minimist": "^1.2.0", "npm-run-all": "^4.1.5", - "prettier": "^3.0.1", + "prettier": "^3.0.3", "pretty-bytes": "^6.1.1", "pug": "^3.0.1", "puppeteer": "~21.1.1", @@ -96,7 +96,7 @@ "rollup-plugin-polyfill-node": "^0.12.0", "semver": "^7.3.2", "serve": "^14.2.1", - "simple-git-hooks": "^2.8.1", + "simple-git-hooks": "^2.9.0", "terser": "^5.19.2", "todomvc-app-css": "^2.3.0", "tslib": "^2.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0348ae61282..d9948030df3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,7 +40,7 @@ importers: version: 16.18.38 '@typescript-eslint/parser': specifier: ^6.6.0 - version: 6.6.0(eslint@8.33.0)(typescript@5.1.6) + version: 6.6.0(eslint@8.48.0)(typescript@5.1.6) '@vitest/coverage-istanbul': specifier: ^0.29.7 version: 0.29.7(vitest@0.30.1) @@ -63,11 +63,11 @@ importers: specifier: ^0.2.0 version: 0.2.0(esbuild@0.17.19) eslint: - specifier: ^8.33.0 - version: 8.33.0 + specifier: ^8.48.0 + version: 8.48.0 eslint-plugin-jest: - specifier: ^27.2.1 - version: 27.2.2(eslint@8.33.0)(typescript@5.1.6) + specifier: ^27.2.3 + version: 27.2.3(eslint@8.48.0)(typescript@5.1.6) estree-walker: specifier: ^2.0.2 version: 2.0.2 @@ -99,8 +99,8 @@ importers: specifier: ^4.1.5 version: 4.1.5 prettier: - specifier: ^3.0.1 - version: 3.0.1 + specifier: ^3.0.3 + version: 3.0.3 pretty-bytes: specifier: ^6.1.1 version: 6.1.1 @@ -129,8 +129,8 @@ importers: specifier: ^14.2.1 version: 14.2.1 simple-git-hooks: - specifier: ^2.8.1 - version: 2.8.1 + specifier: ^2.9.0 + version: 2.9.0 terser: specifier: ^5.19.2 version: 5.19.2 @@ -410,6 +410,11 @@ importers: packages: + /@aashutoshrathi/word-wrap@1.2.6: + resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} + engines: {node: '>=0.10.0'} + dev: true + /@ampproject/remapping@2.2.0: resolution: {integrity: sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==} engines: {node: '>=6.0.0'} @@ -1048,13 +1053,28 @@ packages: dev: true optional: true - /@eslint/eslintrc@1.4.1: - resolution: {integrity: sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==} + /@eslint-community/eslint-utils@4.4.0(eslint@8.48.0): + resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + dependencies: + eslint: 8.48.0 + eslint-visitor-keys: 3.4.3 + dev: true + + /@eslint-community/regexpp@4.8.0: + resolution: {integrity: sha512-JylOEEzDiOryeUnFbQz+oViCXS0KsvR1mvHkoMiu5+UiBvy+RYX7tzlIIIEstF/gVa2tj9AQXk3dgnxv6KxhFg==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + dev: true + + /@eslint/eslintrc@2.1.2: + resolution: {integrity: sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 debug: 4.3.4 - espree: 9.4.1 + espree: 9.6.1 globals: 13.20.0 ignore: 5.2.4 import-fresh: 3.3.0 @@ -1065,8 +1085,13 @@ packages: - supports-color dev: true - /@humanwhocodes/config-array@0.11.8: - resolution: {integrity: sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==} + /@eslint/js@8.48.0: + resolution: {integrity: sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /@humanwhocodes/config-array@0.11.11: + resolution: {integrity: sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==} engines: {node: '>=10.10.0'} dependencies: '@humanwhocodes/object-schema': 1.2.1 @@ -1393,7 +1418,7 @@ packages: dev: true optional: true - /@typescript-eslint/parser@6.6.0(eslint@8.33.0)(typescript@5.1.6): + /@typescript-eslint/parser@6.6.0(eslint@8.48.0)(typescript@5.1.6): resolution: {integrity: sha512-setq5aJgUwtzGrhW177/i+DMLqBaJbdwGj2CPIVFFLE0NCliy5ujIdLHd2D1ysmlmsjdL2GWW+hR85neEfc12w==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: @@ -1408,7 +1433,7 @@ packages: '@typescript-eslint/typescript-estree': 6.6.0(typescript@5.1.6) '@typescript-eslint/visitor-keys': 6.6.0 debug: 4.3.4 - eslint: 8.33.0 + eslint: 8.48.0 typescript: 5.1.6 transitivePeerDependencies: - supports-color @@ -1482,7 +1507,7 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@5.50.0(eslint@8.33.0)(typescript@5.1.6): + /@typescript-eslint/utils@5.50.0(eslint@8.48.0)(typescript@5.1.6): resolution: {integrity: sha512-v/AnUFImmh8G4PH0NDkf6wA8hujNNcrwtecqW4vtQ1UOSNBaZl49zP1SHoZ/06e+UiwzHpgb5zP5+hwlYYWYAw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -1493,10 +1518,10 @@ packages: '@typescript-eslint/scope-manager': 5.50.0 '@typescript-eslint/types': 5.50.0 '@typescript-eslint/typescript-estree': 5.50.0(typescript@5.1.6) - eslint: 8.33.0 + eslint: 8.48.0 eslint-scope: 5.1.1 - eslint-utils: 3.0.0(eslint@8.33.0) - semver: 7.5.3 + eslint-utils: 3.0.0(eslint@8.48.0) + semver: 7.5.4 transitivePeerDependencies: - supports-color - typescript @@ -1618,12 +1643,12 @@ packages: negotiator: 0.6.3 dev: true - /acorn-jsx@5.3.2(acorn@8.8.2): + /acorn-jsx@5.3.2(acorn@8.10.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.8.2 + acorn: 8.10.0 dev: true /acorn-walk@8.2.0: @@ -2744,11 +2769,11 @@ packages: source-map: 0.6.1 dev: true - /eslint-plugin-jest@27.2.2(eslint@8.33.0)(typescript@5.1.6): - resolution: {integrity: sha512-euzbp06F934Z7UDl5ZUaRPLAc9MKjh0rMPERrHT7UhlCEwgb25kBj37TvMgWeHZVkR5I9CayswrpoaqZU1RImw==} + /eslint-plugin-jest@27.2.3(eslint@8.48.0)(typescript@5.1.6): + resolution: {integrity: sha512-sRLlSCpICzWuje66Gl9zvdF6mwD5X86I4u55hJyFBsxYOsBCmT5+kSUjf+fkFWVMMgpzNEupjW8WzUqi83hJAQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: - '@typescript-eslint/eslint-plugin': ^5.0.0 + '@typescript-eslint/eslint-plugin': ^5.0.0 || ^6.0.0 eslint: ^7.0.0 || ^8.0.0 jest: '*' peerDependenciesMeta: @@ -2757,8 +2782,8 @@ packages: jest: optional: true dependencies: - '@typescript-eslint/utils': 5.50.0(eslint@8.33.0)(typescript@5.1.6) - eslint: 8.33.0 + '@typescript-eslint/utils': 5.50.0(eslint@8.48.0)(typescript@5.1.6) + eslint: 8.48.0 transitivePeerDependencies: - supports-color - typescript @@ -2772,21 +2797,21 @@ packages: estraverse: 4.3.0 dev: true - /eslint-scope@7.1.1: - resolution: {integrity: sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==} + /eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: esrecurse: 4.3.0 estraverse: 5.3.0 dev: true - /eslint-utils@3.0.0(eslint@8.33.0): + /eslint-utils@3.0.0(eslint@8.48.0): resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==} engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0} peerDependencies: eslint: '>=5' dependencies: - eslint: 8.33.0 + eslint: 8.48.0 eslint-visitor-keys: 2.1.0 dev: true @@ -2795,23 +2820,21 @@ packages: engines: {node: '>=10'} dev: true - /eslint-visitor-keys@3.3.0: - resolution: {integrity: sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - dev: true - /eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.33.0: - resolution: {integrity: sha512-WjOpFQgKK8VrCnAtl8We0SUOy/oVZ5NHykyMiagV1M9r8IFpIJX7DduK6n1mpfhlG7T1NLWm2SuD8QB7KFySaA==} + /eslint@8.48.0: + resolution: {integrity: sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint/eslintrc': 1.4.1 - '@humanwhocodes/config-array': 0.11.8 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.48.0) + '@eslint-community/regexpp': 4.8.0 + '@eslint/eslintrc': 2.1.2 + '@eslint/js': 8.48.0 + '@humanwhocodes/config-array': 0.11.11 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 ajv: 6.12.6 @@ -2820,45 +2843,40 @@ packages: debug: 4.3.4 doctrine: 3.0.0 escape-string-regexp: 4.0.0 - eslint-scope: 7.1.1 - eslint-utils: 3.0.0(eslint@8.33.0) - eslint-visitor-keys: 3.3.0 - espree: 9.4.1 - esquery: 1.4.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.5.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 file-entry-cache: 6.0.1 find-up: 5.0.0 glob-parent: 6.0.2 globals: 13.20.0 - grapheme-splitter: 1.0.4 + graphemer: 1.4.0 ignore: 5.2.4 - import-fresh: 3.3.0 imurmurhash: 0.1.4 is-glob: 4.0.3 is-path-inside: 3.0.3 - js-sdsl: 4.3.0 js-yaml: 4.1.0 json-stable-stringify-without-jsonify: 1.0.1 levn: 0.4.1 lodash.merge: 4.6.2 minimatch: 3.1.2 natural-compare: 1.4.0 - optionator: 0.9.1 - regexpp: 3.2.0 + optionator: 0.9.3 strip-ansi: 6.0.1 - strip-json-comments: 3.1.1 text-table: 0.2.0 transitivePeerDependencies: - supports-color dev: true - /espree@9.4.1: - resolution: {integrity: sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==} + /espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.8.2 - acorn-jsx: 5.3.2(acorn@8.8.2) + acorn: 8.10.0 + acorn-jsx: 5.3.2(acorn@8.10.0) eslint-visitor-keys: 3.4.3 dev: true @@ -2868,8 +2886,8 @@ packages: hasBin: true dev: true - /esquery@1.4.0: - resolution: {integrity: sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==} + /esquery@1.5.0: + resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} engines: {node: '>=0.10'} dependencies: estraverse: 5.3.0 @@ -3308,8 +3326,8 @@ packages: resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} dev: true - /grapheme-splitter@1.0.4: - resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} + /graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} dev: true /handlebars@4.7.7: @@ -3821,10 +3839,6 @@ packages: engines: {node: '>=10'} dev: true - /js-sdsl@4.3.0: - resolution: {integrity: sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==} - dev: true - /js-string-escape@1.0.1: resolution: {integrity: sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==} engines: {node: '>= 0.8'} @@ -4284,7 +4298,7 @@ packages: /mlly@1.2.0: resolution: {integrity: sha512-+c7A3CV0KGdKcylsI6khWyts/CYrGTrRVo4R/I7u/cUsy0Conxa6LUhiEzVKIw14lc2L5aiO4+SeVe4TeGRKww==} dependencies: - acorn: 8.8.2 + acorn: 8.10.0 pathe: 1.1.0 pkg-types: 1.0.2 ufo: 1.1.1 @@ -4463,16 +4477,16 @@ packages: mimic-fn: 4.0.0 dev: true - /optionator@0.9.1: - resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} + /optionator@0.9.3: + resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} engines: {node: '>= 0.8.0'} dependencies: + '@aashutoshrathi/word-wrap': 1.2.6 deep-is: 0.1.4 fast-levenshtein: 2.0.6 levn: 0.4.1 prelude-ls: 1.2.1 type-check: 0.4.0 - word-wrap: 1.2.4 dev: true /p-limit@1.3.0: @@ -4789,8 +4803,8 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /prettier@3.0.1: - resolution: {integrity: sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==} + /prettier@3.0.3: + resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} engines: {node: '>=14'} hasBin: true dev: true @@ -5113,11 +5127,6 @@ packages: functions-have-names: 1.2.3 dev: true - /regexpp@3.2.0: - resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==} - engines: {node: '>=8'} - dev: true - /registry-auth-token@3.3.2: resolution: {integrity: sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==} dependencies: @@ -5396,8 +5405,8 @@ packages: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} dev: true - /simple-git-hooks@2.8.1: - resolution: {integrity: sha512-DYpcVR1AGtSfFUNzlBdHrQGPsOhuuEJ/FkmPOOlFysP60AHd3nsEpkGq/QEOdtUyT1Qhk7w9oLmFoMG+75BDog==} + /simple-git-hooks@2.9.0: + resolution: {integrity: sha512-waSQ5paUQtyGC0ZxlHmcMmD9I1rRXauikBwX31bX58l5vTOhCEcBC5Bi+ZDkPXTjDnZAF8TbCqKBY+9+sVPScw==} hasBin: true requiresBuild: true dev: true @@ -5625,7 +5634,7 @@ packages: /strip-literal@1.0.1: resolution: {integrity: sha512-QZTsipNpa2Ppr6v1AmJHESqJ3Uz247MUS0OjrnnZjFAvEoWqxuyFuXn2xLgMtRnijJShAa1HL0gtJyUs7u7n3Q==} dependencies: - acorn: 8.8.2 + acorn: 8.10.0 dev: true /supports-color@5.5.0: @@ -6255,11 +6264,6 @@ packages: babel-walk: 3.0.0-canary-5 dev: true - /word-wrap@1.2.4: - resolution: {integrity: sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==} - engines: {node: '>=0.10.0'} - dev: true - /wordwrap@1.0.0: resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} dev: true From 9944b50456ed9b05c051936ba3af2f373c361ef2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:08:44 -0500 Subject: [PATCH 14/18] chore(deps): update actions/checkout action to v4 (#9156) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/autofix.yml | 2 +- .github/workflows/canary.yml | 2 +- .github/workflows/ci.yml | 8 ++++---- .github/workflows/size-data.yml | 2 +- .github/workflows/size-report.yml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index a51b76fc388..48df8f7a277 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -11,7 +11,7 @@ jobs: env: PUPPETEER_SKIP_DOWNLOAD: 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index cabd601a8ef..e2f411c8e09 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest environment: Release steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d17e1cbe842..8fd0389f41c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: env: PUPPETEER_SKIP_DOWNLOAD: 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 @@ -39,7 +39,7 @@ jobs: env: PUPPETEER_SKIP_DOWNLOAD: 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 @@ -62,7 +62,7 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup cache for Chromium binary uses: actions/cache@v3 @@ -91,7 +91,7 @@ jobs: env: PUPPETEER_SKIP_DOWNLOAD: 'true' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 diff --git a/.github/workflows/size-data.yml b/.github/workflows/size-data.yml index b96c71b9714..8068b8645b6 100644 --- a/.github/workflows/size-data.yml +++ b/.github/workflows/size-data.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 diff --git a/.github/workflows/size-report.yml b/.github/workflows/size-report.yml index d0b2e2b40ee..8acf464ae37 100644 --- a/.github/workflows/size-report.yml +++ b/.github/workflows/size-report.yml @@ -21,7 +21,7 @@ jobs: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v2 From c8566a22b7cf37e6aefab7bad7b97ce2db9fae4c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:10:50 -0500 Subject: [PATCH 15/18] fix(deps): update playground (#9154) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/sfc-playground/package.json | 4 ++-- packages/template-explorer/package.json | 2 +- pnpm-lock.yaml | 19 +++++++++---------- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/packages/sfc-playground/package.json b/packages/sfc-playground/package.json index 04752e39123..3005519b50c 100644 --- a/packages/sfc-playground/package.json +++ b/packages/sfc-playground/package.json @@ -12,9 +12,9 @@ "vite": "^4.4.2" }, "dependencies": { - "@vue/repl": "^2.5.4", + "@vue/repl": "^2.5.8", "file-saver": "^2.0.5", - "jszip": "^3.6.0", + "jszip": "^3.10.1", "vue": "workspace:*" } } diff --git a/packages/template-explorer/package.json b/packages/template-explorer/package.json index 320b4c05ed3..601b8bce66d 100644 --- a/packages/template-explorer/package.json +++ b/packages/template-explorer/package.json @@ -11,7 +11,7 @@ "enableNonBrowserBranches": true }, "dependencies": { - "monaco-editor": "^0.20.0", + "monaco-editor": "^0.41.0", "source-map-js": "^1.0.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d9948030df3..923399a5164 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -342,13 +342,13 @@ importers: packages/sfc-playground: dependencies: '@vue/repl': - specifier: ^2.5.4 - version: 2.5.4 + specifier: ^2.5.8 + version: 2.5.8 file-saver: specifier: ^2.0.5 version: 2.0.5 jszip: - specifier: ^3.6.0 + specifier: ^3.10.1 version: 3.10.1 vue: specifier: workspace:* @@ -366,8 +366,8 @@ importers: packages/template-explorer: dependencies: monaco-editor: - specifier: ^0.20.0 - version: 0.20.0 + specifier: ^0.41.0 + version: 0.41.0 source-map-js: specifier: ^1.0.2 version: 1.0.2 @@ -1614,9 +1614,8 @@ packages: engines: {node: '>= 0.12.0'} dev: true - /@vue/repl@2.5.4: - resolution: {integrity: sha512-rUcoebQQDG/T0oXkj+QGGuVHtWdvmT76CuPjZKgYMhXQiRkydnxPsW8iBdsZ5hHFuLRukuO83Crh5itByDOe5w==} - requiresBuild: true + /@vue/repl@2.5.8: + resolution: {integrity: sha512-IvOlNhka4VKDQZS9FIceFFWyPibzqAUHyjHOoe8cMZmeP7H3H7mfMqvzQ0l1wjMAqqeEcgpFhSzMWsTEL4XZeA==} dev: false /@zeit/schemas@2.29.0: @@ -4309,8 +4308,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /monaco-editor@0.20.0: - resolution: {integrity: sha512-hkvf4EtPJRMQlPC3UbMoRs0vTAFAYdzFQ+gpMb8A+9znae1c43q8Mab9iVsgTcg/4PNiLGGn3SlDIa8uvK1FIQ==} + /monaco-editor@0.41.0: + resolution: {integrity: sha512-1o4olnZJsiLmv5pwLEAmzHTE/5geLKQ07BrGxlF4Ri/AXAc2yyDGZwHjiTqD8D/ROKUZmwMA28A+yEowLNOEcA==} dev: false /ms@2.0.0: From b775b71c788499ec7ee58bc2cf4cd04ed388e072 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:19:44 -0500 Subject: [PATCH 16/18] chore(deps): update vitest to ^0.34.3 (#9155) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 4 +- pnpm-lock.yaml | 279 +++++++++++++++++++++---------------------------- 2 files changed, 124 insertions(+), 159 deletions(-) diff --git a/package.json b/package.json index 0e67bb4f00d..8b7e644a6be 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "@types/hash-sum": "^1.0.0", "@types/node": "^16.4.7", "@typescript-eslint/parser": "^6.6.0", - "@vitest/coverage-istanbul": "^0.29.7", + "@vitest/coverage-istanbul": "^0.34.3", "@vue/consolidate": "0.17.3", "chalk": "^4.1.0", "conventional-changelog-cli": "^2.0.31", @@ -103,6 +103,6 @@ "tsx": "^3.12.7", "typescript": "^5.1.6", "vite": "^4.3.0", - "vitest": "^0.30.1" + "vitest": "^0.34.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 923399a5164..a2f09700fc0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,8 +42,8 @@ importers: specifier: ^6.6.0 version: 6.6.0(eslint@8.48.0)(typescript@5.1.6) '@vitest/coverage-istanbul': - specifier: ^0.29.7 - version: 0.29.7(vitest@0.30.1) + specifier: ^0.34.3 + version: 0.34.3(vitest@0.34.3) '@vue/consolidate': specifier: 0.17.3 version: 0.17.3 @@ -150,8 +150,8 @@ importers: specifier: ^4.3.0 version: 4.3.1(@types/node@16.18.38)(terser@5.19.2) vitest: - specifier: ^0.30.1 - version: 0.30.1(jsdom@22.1.0)(terser@5.19.2) + specifier: ^0.34.3 + version: 0.34.3(jsdom@22.1.0)(terser@5.19.2) packages/compiler-core: dependencies: @@ -1120,6 +1120,13 @@ packages: engines: {node: '>=8'} dev: true + /@jest/schemas@29.6.3: + resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@sinclair/typebox': 0.27.8 + dev: true + /@jridgewell/gen-mapping@0.1.1: resolution: {integrity: sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==} engines: {node: '>=6.0.0'} @@ -1133,8 +1140,8 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.14 - '@jridgewell/trace-mapping': 0.3.17 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.19 dev: true /@jridgewell/gen-mapping@0.3.3: @@ -1351,6 +1358,10 @@ packages: rollup: 3.26.2 dev: true + /@sinclair/typebox@0.27.8: + resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} + dev: true + /@tootallnate/once@2.0.0: resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} engines: {node: '>= 10'} @@ -1363,11 +1374,11 @@ packages: /@types/chai-subset@1.3.3: resolution: {integrity: sha512-frBecisrNGz+F4T6bcc+NLeolfiojh5FxW2klu669+8BARtyQv2C/GkNW6FUodVe4BroGMP/wER/YDGc7rEllw==} dependencies: - '@types/chai': 4.3.4 + '@types/chai': 4.3.6 dev: true - /@types/chai@4.3.4: - resolution: {integrity: sha512-KnRanxnpfpjUTqTCXslZSEdLfXExwgNxYPdiO2WGUj8+HDjFi8R3k5RVKPeSCzLjCcshCAtVO2QBbVuAV4kTnw==} + /@types/chai@4.3.6: + resolution: {integrity: sha512-VOVRLM1mBxIRxydiViqPcKn6MIxZytrbMpd6RJLIWKxUNr3zux8no0Oc7kJx0WAPIitgZ0gkrDS+btlqQpubpw==} dev: true /@types/estree@0.0.48: @@ -1554,59 +1565,58 @@ packages: vue: link:packages/vue dev: true - /@vitest/coverage-istanbul@0.29.7(vitest@0.30.1): - resolution: {integrity: sha512-PPnvqEkwSSgjJ1cOgkm5g49/3UiPGPLC5qmWvrx2ITF9AfN2NejnjaEKxoYrX7oQQyBFgf/ph/BraxsqOOo+Kg==} + /@vitest/coverage-istanbul@0.34.3(vitest@0.34.3): + resolution: {integrity: sha512-RdEGzydbbalyDLmmJ5Qm+T3Lrubw/U9iCnhzM2B1V57t4cVa1t6uyfIHdv68d1au4PRzkLhY7Xouwuhb7BeG+Q==} peerDependencies: - vitest: '>=0.28.0 <1' + vitest: '>=0.32.0 <1' dependencies: istanbul-lib-coverage: 3.2.0 - istanbul-lib-instrument: 5.2.1 - istanbul-lib-report: 3.0.0 + istanbul-lib-instrument: 6.0.0 + istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.5 test-exclude: 6.0.0 - vitest: 0.30.1(jsdom@22.1.0)(terser@5.19.2) + vitest: 0.34.3(jsdom@22.1.0)(terser@5.19.2) transitivePeerDependencies: - supports-color dev: true - /@vitest/expect@0.30.1: - resolution: {integrity: sha512-c3kbEtN8XXJSeN81iDGq29bUzSjQhjES2WR3aColsS4lPGbivwLtas4DNUe0jD9gg/FYGIteqOenfU95EFituw==} + /@vitest/expect@0.34.3: + resolution: {integrity: sha512-F8MTXZUYRBVsYL1uoIft1HHWhwDbSzwAU9Zgh8S6WFC3YgVb4AnFV2GXO3P5Em8FjEYaZtTnQYoNwwBrlOMXgg==} dependencies: - '@vitest/spy': 0.30.1 - '@vitest/utils': 0.30.1 + '@vitest/spy': 0.34.3 + '@vitest/utils': 0.34.3 chai: 4.3.7 dev: true - /@vitest/runner@0.30.1: - resolution: {integrity: sha512-W62kT/8i0TF1UBCNMRtRMOBWJKRnNyv9RrjIgdUryEe0wNpGZvvwPDLuzYdxvgSckzjp54DSpv1xUbv4BQ0qVA==} + /@vitest/runner@0.34.3: + resolution: {integrity: sha512-lYNq7N3vR57VMKMPLVvmJoiN4bqwzZ1euTW+XXYH5kzr3W/+xQG3b41xJn9ChJ3AhYOSoweu974S1V3qDcFESA==} dependencies: - '@vitest/utils': 0.30.1 - concordance: 5.0.4 + '@vitest/utils': 0.34.3 p-limit: 4.0.0 - pathe: 1.1.0 + pathe: 1.1.1 dev: true - /@vitest/snapshot@0.30.1: - resolution: {integrity: sha512-fJZqKrE99zo27uoZA/azgWyWbFvM1rw2APS05yB0JaLwUIg9aUtvvnBf4q7JWhEcAHmSwbrxKFgyBUga6tq9Tw==} + /@vitest/snapshot@0.34.3: + resolution: {integrity: sha512-QyPaE15DQwbnIBp/yNJ8lbvXTZxS00kRly0kfFgAD5EYmCbYcA+1EEyRalc93M0gosL/xHeg3lKAClIXYpmUiQ==} dependencies: - magic-string: 0.30.0 - pathe: 1.1.0 - pretty-format: 27.5.1 + magic-string: 0.30.3 + pathe: 1.1.1 + pretty-format: 29.6.3 dev: true - /@vitest/spy@0.30.1: - resolution: {integrity: sha512-YfJeIf37GvTZe04ZKxzJfnNNuNSmTEGnla2OdL60C8od16f3zOfv9q9K0nNii0NfjDJRt/CVN/POuY5/zTS+BA==} + /@vitest/spy@0.34.3: + resolution: {integrity: sha512-N1V0RFQ6AI7CPgzBq9kzjRdPIgThC340DGjdKdPSE8r86aUSmeliTUgkTqLSgtEwWWsGfBQ+UetZWhK0BgJmkQ==} dependencies: - tinyspy: 2.1.0 + tinyspy: 2.1.1 dev: true - /@vitest/utils@0.30.1: - resolution: {integrity: sha512-/c8Xv2zUVc+rnNt84QF0Y0zkfxnaGhp87K2dYJMLtLOIckPzuxLVzAtFCicGFdB4NeBHNzTRr1tNn7rCtQcWFA==} + /@vitest/utils@0.34.3: + resolution: {integrity: sha512-kiSnzLG6m/tiT0XEl4U2H8JDBjFtwVlaE8I3QfGiMFR0QvnRDfYfdP3YvTBWM/6iJDAyaPY6yVQiCTUc7ZzTHA==} dependencies: - concordance: 5.0.4 + diff-sequences: 29.6.3 loupe: 2.3.6 - pretty-format: 27.5.1 + pretty-format: 29.6.3 dev: true /@vue/consolidate@0.17.3: @@ -1667,12 +1677,6 @@ packages: hasBin: true dev: true - /acorn@8.8.2: - resolution: {integrity: sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==} - engines: {node: '>=0.4.0'} - hasBin: true - dev: true - /add-stream@1.0.0: resolution: {integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==} dev: true @@ -1856,10 +1860,6 @@ packages: engines: {node: '>=8'} dev: true - /blueimp-md5@2.19.0: - resolution: {integrity: sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==} - dev: true - /boxen@7.0.0: resolution: {integrity: sha512-j//dBVuyacJbvW+tvZ9HuH03fZ46QcaKvvhZickZqtB271DxJ7SNRSNxrV/dZX0085m7hISRZWbzWlJvx/rHSg==} engines: {node: '>=14.16'} @@ -2175,20 +2175,6 @@ packages: resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} dev: true - /concordance@5.0.4: - resolution: {integrity: sha512-OAcsnTEYu1ARJqWVGwf4zh4JDfHZEaSNlNccFmt8YjB2l/n19/PF2viLINHc57vO4FKIAFl2FWASIGZZWZ2Kxw==} - engines: {node: '>=10.18.0 <11 || >=12.14.0 <13 || >=14'} - dependencies: - date-time: 3.1.0 - esutils: 2.0.3 - fast-diff: 1.2.0 - js-string-escape: 1.0.1 - lodash: 4.17.21 - md5-hex: 3.0.1 - semver: 7.5.4 - well-known-symbols: 2.0.0 - dev: true - /constantinople@4.0.1: resolution: {integrity: sha512-vCrqcSIq4//Gx74TXXCGnHpulY1dskqLTFGDmhrGxzeXL8lF8kvXv6mpNWlJj1uD4DW23D4ljAqbY4RRaaUZIw==} dependencies: @@ -2440,13 +2426,6 @@ packages: whatwg-url: 12.0.1 dev: true - /date-time@3.1.0: - resolution: {integrity: sha512-uqCUKXE5q1PNBXjPqvwhwJf9SwMoAHBgWJ6DcrnS5o+W2JOiIILl0JEdVD8SGujrNS02GGxgwAg2PN2zONgtjg==} - engines: {node: '>=6'} - dependencies: - time-zone: 1.0.0 - dev: true - /dateformat@3.0.3: resolution: {integrity: sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==} dev: true @@ -2538,6 +2517,11 @@ packages: resolution: {integrity: sha512-2cZlHxC5IlgkIWe2pSDmCrDiTzbSJWywjbDDnupOImEBcG31CQgBLV8wWE+5t+C4rimcjHsbzy7CBzf9oFjboA==} dev: true + /diff-sequences@29.6.3: + resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dev: true + /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -2984,10 +2968,6 @@ packages: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} dev: true - /fast-diff@1.2.0: - resolution: {integrity: sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==} - dev: true - /fast-fifo@1.3.2: resolution: {integrity: sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==} dev: true @@ -3792,25 +3772,25 @@ packages: engines: {node: '>=8'} dev: true - /istanbul-lib-instrument@5.2.1: - resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} - engines: {node: '>=8'} + /istanbul-lib-instrument@6.0.0: + resolution: {integrity: sha512-x58orMzEVfzPUKqlbLd1hXCnySCxKdDKa6Rjg97CwuLLRI4g3FHTdnExu1OqffVFay6zeMW+T6/DowFLndWnIw==} + engines: {node: '>=10'} dependencies: '@babel/core': 7.21.3 '@babel/parser': 7.21.3 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 - semver: 6.3.0 + semver: 7.5.4 transitivePeerDependencies: - supports-color dev: true - /istanbul-lib-report@3.0.0: - resolution: {integrity: sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==} - engines: {node: '>=8'} + /istanbul-lib-report@3.0.1: + resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} + engines: {node: '>=10'} dependencies: istanbul-lib-coverage: 3.2.0 - make-dir: 3.1.0 + make-dir: 4.0.0 supports-color: 7.2.0 dev: true @@ -3830,7 +3810,7 @@ packages: engines: {node: '>=8'} dependencies: html-escaper: 2.0.2 - istanbul-lib-report: 3.0.0 + istanbul-lib-report: 3.0.1 dev: true /joycon@3.1.1: @@ -3838,11 +3818,6 @@ packages: engines: {node: '>=10'} dev: true - /js-string-escape@1.0.1: - resolution: {integrity: sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==} - engines: {node: '>= 0.8'} - dev: true - /js-stringify@1.0.2: resolution: {integrity: sha512-rtS5ATOo2Q5k1G+DADISilDA6lv79zIiwFd6CcjuIxGKLFm5C+RLImRscVap9k55i+MOZwgliw+NejvkLuGD5g==} dev: true @@ -4135,11 +4110,18 @@ packages: dependencies: '@jridgewell/sourcemap-codec': 1.4.14 - /make-dir@3.1.0: - resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} - engines: {node: '>=8'} + /magic-string@0.30.3: + resolution: {integrity: sha512-B7xGbll2fG/VjP+SWg4sX3JynwIU0mjoTc6MPpKNuIvftk6u6vqhDnk1R80b8C2GBR6ywqy+1DcKBrevBg+bmw==} + engines: {node: '>=12'} dependencies: - semver: 6.3.0 + '@jridgewell/sourcemap-codec': 1.4.15 + dev: true + + /make-dir@4.0.0: + resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} + engines: {node: '>=10'} + dependencies: + semver: 7.5.4 dev: true /map-obj@1.0.1: @@ -4162,13 +4144,6 @@ packages: hasBin: true dev: true - /md5-hex@3.0.1: - resolution: {integrity: sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==} - engines: {node: '>=8'} - dependencies: - blueimp-md5: 2.19.0 - dev: true - /memorystream@0.3.1: resolution: {integrity: sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==} engines: {node: '>= 0.10.0'} @@ -4294,13 +4269,13 @@ packages: resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} dev: true - /mlly@1.2.0: - resolution: {integrity: sha512-+c7A3CV0KGdKcylsI6khWyts/CYrGTrRVo4R/I7u/cUsy0Conxa6LUhiEzVKIw14lc2L5aiO4+SeVe4TeGRKww==} + /mlly@1.4.2: + resolution: {integrity: sha512-i/Ykufi2t1EZ6NaPLdfnZk2AX8cs0d+mTzVKuPfqPKPatxLApaBoxJQ9x1/uckXtrS/U5oisPMDkNs0yQTaBRg==} dependencies: acorn: 8.10.0 - pathe: 1.1.0 - pkg-types: 1.0.2 - ufo: 1.1.1 + pathe: 1.1.1 + pkg-types: 1.0.3 + ufo: 1.3.0 dev: true /modify-values@1.0.1: @@ -4661,8 +4636,8 @@ packages: engines: {node: '>=8'} dev: true - /pathe@1.1.0: - resolution: {integrity: sha512-ODbEPR0KKHqECXW1GoxdDb+AZvULmXjVPy4rt+pGo2+TnjJTIPJQSVS6N63n8T2Ip+syHhbn52OewKicV0373w==} + /pathe@1.1.1: + resolution: {integrity: sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==} dev: true /pathval@1.1.1: @@ -4703,12 +4678,12 @@ packages: engines: {node: '>=4'} dev: true - /pkg-types@1.0.2: - resolution: {integrity: sha512-hM58GKXOcj8WTqUXnsQyJYXdeAPbythQgEF3nTcEo+nkD49chjQ9IKm/QJy9xf6JakXptz86h7ecP2024rrLaQ==} + /pkg-types@1.0.3: + resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==} dependencies: jsonc-parser: 3.2.0 - mlly: 1.2.0 - pathe: 1.1.0 + mlly: 1.4.2 + pathe: 1.1.1 dev: true /postcss-modules-extract-imports@3.0.0(postcss@8.4.21): @@ -4813,13 +4788,13 @@ packages: engines: {node: ^14.13.1 || >=16.0.0} dev: true - /pretty-format@27.5.1: - resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /pretty-format@29.6.3: + resolution: {integrity: sha512-ZsBgjVhFAj5KeK+nHfF1305/By3lechHQSMWCTl8iHSbfOm2TN5nHEtFc/+W7fAyUeCs2n5iow72gld4gW0xDw==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - ansi-regex: 5.0.1 + '@jest/schemas': 29.6.3 ansi-styles: 5.2.0 - react-is: 17.0.2 + react-is: 18.2.0 dev: true /process-nextick-args@2.0.1: @@ -5042,8 +5017,8 @@ packages: strip-json-comments: 2.0.1 dev: true - /react-is@17.0.2: - resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + /react-is@18.2.0: + resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} dev: true /read-pkg-up@3.0.0: @@ -5510,8 +5485,8 @@ packages: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} dev: true - /std-env@3.3.2: - resolution: {integrity: sha512-uUZI65yrV2Qva5gqE0+A7uVAvO40iPo6jGhs7s8keRfHCmtg+uB2X6EiLGCI9IgL1J17xGhvoOqSz79lzICPTA==} + /std-env@3.4.3: + resolution: {integrity: sha512-f9aPhy8fYBuMN+sNfakZV18U39PbalgjXG3lLB9WkaYTxijru61wb57V9wxxNthXM5Sd88ETBWi29qLAsHO52Q==} dev: true /streamx@2.15.1: @@ -5734,22 +5709,17 @@ packages: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: true - /time-zone@1.0.0: - resolution: {integrity: sha512-TIsDdtKo6+XrPtiTm1ssmMngN1sAhyKnTO2kunQWqNPWIVvCm15Wmw4SWInwTVgJ5u/Tr04+8Ei9TNcw4x4ONA==} - engines: {node: '>=4'} - dev: true - - /tinybench@2.4.0: - resolution: {integrity: sha512-iyziEiyFxX4kyxSp+MtY1oCH/lvjH3PxFN8PGCDeqcZWAJ/i+9y+nL85w99PxVzrIvew/GSkSbDYtiGVa85Afg==} + /tinybench@2.5.0: + resolution: {integrity: sha512-kRwSG8Zx4tjF9ZiyH4bhaebu+EDz1BOx9hOigYHlUW4xxI/wKIUQUqo018UlU4ar6ATPBsaMrdbKZ+tmPdohFA==} dev: true - /tinypool@0.4.0: - resolution: {integrity: sha512-2ksntHOKf893wSAH4z/+JbPpi92esw8Gn9N2deXX+B0EO92hexAVI9GIZZPx7P5aYo5KULfeOSt3kMOmSOy6uA==} + /tinypool@0.7.0: + resolution: {integrity: sha512-zSYNUlYSMhJ6Zdou4cJwo/p7w5nmAH17GRfU/ui3ctvjXFErXXkruT4MWW6poDeXgCaIBlGLrfU6TbTXxyGMww==} engines: {node: '>=14.0.0'} dev: true - /tinyspy@2.1.0: - resolution: {integrity: sha512-7eORpyqImoOvkQJCSkL0d0mB4NHHIFAy4b1u8PHdDa7SjGS2njzl6/lyGoZLm+eyYEtlUmFGE0rFj66SWxZgQQ==} + /tinyspy@2.1.1: + resolution: {integrity: sha512-XPJL2uSzcOyBMky6OFrusqWlzfFrXtE0hPuMgW8A2HmaqrPo4ZQHRN/V0QXN3FSjKxpsbRrFc5LI7KOwBsT1/w==} engines: {node: '>=14.0.0'} dev: true @@ -5898,8 +5868,8 @@ packages: hasBin: true dev: true - /ufo@1.1.1: - resolution: {integrity: sha512-MvlCc4GHrmZdAllBc0iUDowff36Q9Ndw/UzqmEKyrfSzokTd9ZCy1i+IIk5hrYKkjoYVQyNbrw7/F8XJ2rEwTg==} + /ufo@1.3.0: + resolution: {integrity: sha512-bRn3CsoojyNStCZe0BG0Mt4Nr/4KF+rhFlnNXybgqt5pXHNFRlqinSoQaTrGyzE4X8aHplSb+TorH+COin9Yxw==} dev: true /uglify-js@3.17.4: @@ -5988,20 +5958,21 @@ packages: engines: {node: '>= 0.8'} dev: true - /vite-node@0.30.1(@types/node@16.18.38)(terser@5.19.2): - resolution: {integrity: sha512-vTikpU/J7e6LU/8iM3dzBo8ZhEiKZEKRznEMm+mJh95XhWaPrJQraT/QsT2NWmuEf+zgAoMe64PKT7hfZ1Njmg==} + /vite-node@0.34.3(@types/node@16.18.38)(terser@5.19.2): + resolution: {integrity: sha512-+0TzJf1g0tYXj6tR2vEyiA42OPq68QkRZCu/ERSo2PtsDJfBpDyEfuKbRvLmZqi/CgC7SCBtyC+WjTGNMRIaig==} engines: {node: '>=v14.18.0'} hasBin: true dependencies: cac: 6.7.14 debug: 4.3.4 - mlly: 1.2.0 - pathe: 1.1.0 + mlly: 1.4.2 + pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.3.1(@types/node@16.18.38)(terser@5.19.2) + vite: 4.4.2(@types/node@16.18.38)(terser@5.19.2) transitivePeerDependencies: - '@types/node' - less + - lightningcss - sass - stylus - sugarss @@ -6080,8 +6051,8 @@ packages: fsevents: 2.3.2 dev: true - /vitest@0.30.1(jsdom@22.1.0)(terser@5.19.2): - resolution: {integrity: sha512-y35WTrSTlTxfMLttgQk4rHcaDkbHQwDP++SNwPb+7H8yb13Q3cu2EixrtHzF27iZ8v0XCciSsLg00RkPAzB/aA==} + /vitest@0.34.3(jsdom@22.1.0)(terser@5.19.2): + resolution: {integrity: sha512-7+VA5Iw4S3USYk+qwPxHl8plCMhA5rtfwMjgoQXMT7rO5ldWcdsdo3U1QD289JgglGK4WeOzgoLTsGFu6VISyQ==} engines: {node: '>=v14.18.0'} hasBin: true peerDependencies: @@ -6111,35 +6082,34 @@ packages: webdriverio: optional: true dependencies: - '@types/chai': 4.3.4 + '@types/chai': 4.3.6 '@types/chai-subset': 1.3.3 '@types/node': 16.18.38 - '@vitest/expect': 0.30.1 - '@vitest/runner': 0.30.1 - '@vitest/snapshot': 0.30.1 - '@vitest/spy': 0.30.1 - '@vitest/utils': 0.30.1 - acorn: 8.8.2 + '@vitest/expect': 0.34.3 + '@vitest/runner': 0.34.3 + '@vitest/snapshot': 0.34.3 + '@vitest/spy': 0.34.3 + '@vitest/utils': 0.34.3 + acorn: 8.10.0 acorn-walk: 8.2.0 cac: 6.7.14 chai: 4.3.7 - concordance: 5.0.4 debug: 4.3.4 jsdom: 22.1.0 local-pkg: 0.4.3 - magic-string: 0.30.0 - pathe: 1.1.0 + magic-string: 0.30.3 + pathe: 1.1.1 picocolors: 1.0.0 - source-map: 0.6.1 - std-env: 3.3.2 + std-env: 3.4.3 strip-literal: 1.0.1 - tinybench: 2.4.0 - tinypool: 0.4.0 - vite: 4.3.1(@types/node@16.18.38)(terser@5.19.2) - vite-node: 0.30.1(@types/node@16.18.38)(terser@5.19.2) + tinybench: 2.5.0 + tinypool: 0.7.0 + vite: 4.4.2(@types/node@16.18.38)(terser@5.19.2) + vite-node: 0.34.3(@types/node@16.18.38)(terser@5.19.2) why-is-node-running: 2.2.2 transitivePeerDependencies: - less + - lightningcss - sass - stylus - sugarss @@ -6168,11 +6138,6 @@ packages: engines: {node: '>=12'} dev: true - /well-known-symbols@2.0.0: - resolution: {integrity: sha512-ZMjC3ho+KXo0BfJb7JgtQ5IBuvnShdlACNkKkdsqBmYw3bPAaJfPeYUo6tLUaT5tG/Gkh7xkpBhKRQ9e7pyg9Q==} - engines: {node: '>=6'} - dev: true - /whatwg-encoding@2.0.0: resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==} engines: {node: '>=12'} From 26424b8e082c55b6504163129368f372dc892013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Thu, 7 Sep 2023 15:52:15 +0800 Subject: [PATCH 17/18] style: add trailing comma --- .prettierrc | 12 +- .../compiler-core/__tests__/codegen.spec.ts | 250 ++-- .../compiler-core/__tests__/compile.spec.ts | 106 +- .../compiler-core/__tests__/parse.spec.ts | 1244 ++++++++--------- .../compiler-core/__tests__/scopeId.spec.ts | 20 +- packages/compiler-core/__tests__/testUtils.ts | 20 +- .../compiler-core/__tests__/transform.spec.ts | 86 +- .../__tests__/transforms/hoistStatic.spec.ts | 238 ++-- .../transforms/noopDirectiveTransform.spec.ts | 6 +- .../transforms/transformElement.spec.ts | 526 +++---- .../transforms/transformExpressions.spec.ts | 206 +-- .../transforms/transformSlotOutlet.spec.ts | 180 +-- .../transforms/transformText.spec.ts | 80 +- .../__tests__/transforms/vBind.spec.ts | 146 +- .../__tests__/transforms/vFor.spec.ts | 318 ++--- .../__tests__/transforms/vIf.spec.ts | 231 +-- .../__tests__/transforms/vMemo.spec.ts | 18 +- .../__tests__/transforms/vModel.spec.ts | 245 ++-- .../__tests__/transforms/vOn.spec.ts | 318 ++--- .../__tests__/transforms/vOnce.spec.ts | 40 +- .../__tests__/transforms/vSlot.spec.ts | 440 +++--- .../compiler-core/__tests__/utils.spec.ts | 6 +- packages/compiler-core/src/ast.ts | 88 +- packages/compiler-core/src/babelUtils.ts | 24 +- packages/compiler-core/src/codegen.ts | 80 +- .../compiler-core/src/compat/compatConfig.ts | 26 +- .../src/compat/transformFilter.ts | 8 +- packages/compiler-core/src/compile.ts | 26 +- packages/compiler-core/src/errors.ts | 6 +- packages/compiler-core/src/index.ts | 14 +- packages/compiler-core/src/options.ts | 8 +- packages/compiler-core/src/parse.ts | 137 +- packages/compiler-core/src/runtimeHelpers.ts | 4 +- packages/compiler-core/src/transform.ts | 30 +- .../src/transforms/hoistStatic.ts | 24 +- .../src/transforms/transformElement.ts | 98 +- .../src/transforms/transformExpression.ts | 34 +- .../src/transforms/transformSlotOutlet.ts | 16 +- .../src/transforms/transformText.ts | 12 +- .../compiler-core/src/transforms/vBind.ts | 6 +- packages/compiler-core/src/transforms/vFor.ts | 80 +- packages/compiler-core/src/transforms/vIf.ts | 48 +- .../compiler-core/src/transforms/vMemo.ts | 4 +- .../compiler-core/src/transforms/vModel.ts | 24 +- packages/compiler-core/src/transforms/vOn.ts | 20 +- .../compiler-core/src/transforms/vSlot.ts | 71 +- packages/compiler-core/src/utils.ts | 50 +- .../compiler-core/src/validateExpression.ts | 10 +- .../__tests__/decoderHtmlBrowser.spec.ts | 8 +- packages/compiler-dom/__tests__/parse.spec.ts | 114 +- .../__tests__/transforms/Transition.spec.ts | 28 +- .../transforms/ignoreSideEffectTags.spec.ts | 4 +- .../transforms/stringifyStatic.spec.ts | 226 +-- .../transforms/transformStyle.spec.ts | 28 +- .../__tests__/transforms/vHtml.spec.ts | 24 +- .../__tests__/transforms/vModel.spec.ts | 26 +- .../__tests__/transforms/vOn.spec.ts | 138 +- .../__tests__/transforms/vShow.spec.ts | 10 +- .../__tests__/transforms/vText.spec.ts | 28 +- packages/compiler-dom/src/decodeHtml.ts | 6 +- packages/compiler-dom/src/errors.ts | 12 +- packages/compiler-dom/src/index.ts | 16 +- packages/compiler-dom/src/parserOptions.ts | 10 +- packages/compiler-dom/src/runtimeHelpers.ts | 2 +- .../compiler-dom/src/transforms/Transition.ts | 12 +- .../src/transforms/ignoreSideEffectTags.ts | 4 +- .../src/transforms/stringifyStatic.ts | 22 +- .../src/transforms/transformStyle.ts | 8 +- packages/compiler-dom/src/transforms/vHtml.ts | 12 +- .../compiler-dom/src/transforms/vModel.ts | 22 +- packages/compiler-dom/src/transforms/vOn.ts | 20 +- packages/compiler-dom/src/transforms/vShow.ts | 4 +- packages/compiler-dom/src/transforms/vText.ts | 14 +- .../__tests__/compileScript.spec.ts | 180 +-- .../compileScript/defineEmits.spec.ts | 8 +- .../compileScript/defineModel.spec.ts | 36 +- .../compileScript/defineOptions.spec.ts | 44 +- .../compileScript/defineProps.spec.ts | 76 +- .../definePropsDestructure.spec.ts | 92 +- .../compileScript/hoistStatic.spec.ts | 24 +- .../compileScript/reactivityTransform.spec.ts | 18 +- .../compileScript/resolveType.spec.ts | 268 ++-- .../__tests__/compileStyle.spec.ts | 56 +- .../__tests__/compileTemplate.spec.ts | 38 +- .../compiler-sfc/__tests__/cssVars.spec.ts | 44 +- packages/compiler-sfc/__tests__/parse.spec.ts | 82 +- .../__tests__/rewriteDefault.spec.ts | 79 +- .../templateTransformAssetUrl.spec.ts | 38 +- .../__tests__/templateTransformSrcset.spec.ts | 28 +- .../__tests__/templateUtils.spec.ts | 2 +- packages/compiler-sfc/__tests__/utils.ts | 8 +- packages/compiler-sfc/src/compileScript.ts | 125 +- packages/compiler-sfc/src/compileStyle.ts | 44 +- packages/compiler-sfc/src/compileTemplate.ts | 48 +- packages/compiler-sfc/src/index.ts | 16 +- packages/compiler-sfc/src/parse.ts | 64 +- packages/compiler-sfc/src/rewriteDefault.ts | 14 +- .../src/script/analyzeScriptBindings.ts | 4 +- packages/compiler-sfc/src/script/context.ts | 14 +- .../compiler-sfc/src/script/defineEmits.ts | 8 +- .../compiler-sfc/src/script/defineExpose.ts | 2 +- .../compiler-sfc/src/script/defineModel.ts | 17 +- .../compiler-sfc/src/script/defineOptions.ts | 10 +- .../compiler-sfc/src/script/defineProps.ts | 44 +- .../src/script/definePropsDestructure.ts | 28 +- .../compiler-sfc/src/script/defineSlots.ts | 4 +- .../src/script/importUsageCheck.ts | 14 +- .../compiler-sfc/src/script/normalScript.ts | 10 +- .../compiler-sfc/src/script/resolveType.ts | 194 +-- .../compiler-sfc/src/script/topLevelAwait.ts | 10 +- packages/compiler-sfc/src/script/utils.ts | 9 +- packages/compiler-sfc/src/style/cssVars.ts | 18 +- .../compiler-sfc/src/style/pluginScoped.ts | 16 +- packages/compiler-sfc/src/style/pluginTrim.ts | 2 +- .../compiler-sfc/src/style/preprocessors.ts | 22 +- .../src/template/transformAssetUrl.ts | 28 +- .../src/template/transformSrcset.ts | 18 +- packages/compiler-sfc/src/warn.ts | 2 +- .../__tests__/ssrComponent.spec.ts | 10 +- .../compiler-ssr/__tests__/ssrElement.spec.ts | 30 +- .../__tests__/ssrInjectCssVars.spec.ts | 24 +- .../compiler-ssr/__tests__/ssrPortal.spec.ts | 2 +- .../compiler-ssr/__tests__/ssrScopeId.spec.ts | 16 +- .../__tests__/ssrSlotOutlet.spec.ts | 12 +- .../__tests__/ssrSuspense.spec.ts | 2 +- .../compiler-ssr/__tests__/ssrText.spec.ts | 14 +- .../__tests__/ssrTransitionGroup.spec.ts | 18 +- .../compiler-ssr/__tests__/ssrVFor.spec.ts | 12 +- .../compiler-ssr/__tests__/ssrVIf.spec.ts | 9 +- .../compiler-ssr/__tests__/ssrVModel.spec.ts | 26 +- .../compiler-ssr/__tests__/ssrVShow.spec.ts | 10 +- packages/compiler-ssr/__tests__/utils.ts | 2 +- packages/compiler-ssr/src/errors.ts | 10 +- packages/compiler-ssr/src/index.ts | 14 +- packages/compiler-ssr/src/runtimeHelpers.ts | 2 +- .../compiler-ssr/src/ssrCodegenTransform.ts | 34 +- .../src/transforms/ssrInjectCssVars.ts | 4 +- .../transforms/ssrInjectFallthroughAttrs.ts | 4 +- .../src/transforms/ssrTransformComponent.ts | 48 +- .../src/transforms/ssrTransformElement.ts | 80 +- .../src/transforms/ssrTransformSlotOutlet.ts | 8 +- .../src/transforms/ssrTransformSuspense.ts | 18 +- .../src/transforms/ssrTransformTeleport.ts | 18 +- .../transforms/ssrTransformTransitionGroup.ts | 14 +- .../compiler-ssr/src/transforms/ssrVFor.ts | 16 +- .../compiler-ssr/src/transforms/ssrVIf.ts | 18 +- .../compiler-ssr/src/transforms/ssrVModel.ts | 54 +- .../compiler-ssr/src/transforms/ssrVShow.ts | 16 +- packages/dts-test/appUse.test-d.ts | 14 +- packages/dts-test/compiler.test-d.ts | 2 +- packages/dts-test/component.test-d.ts | 78 +- .../componentTypeExtensions.test-d.tsx | 8 +- packages/dts-test/defineComponent.test-d.tsx | 328 ++--- .../dts-test/defineCustomElement.test-d.ts | 18 +- packages/dts-test/extractProps.test-d.ts | 6 +- .../dts-test/functionalComponent.test-d.tsx | 4 +- packages/dts-test/h.test-d.ts | 48 +- packages/dts-test/reactivity.test-d.ts | 8 +- packages/dts-test/reactivityMacros.test-d.ts | 18 +- packages/dts-test/ref.test-d.ts | 60 +- packages/dts-test/setupHelpers.test-d.ts | 34 +- packages/dts-test/tsx.test-d.tsx | 6 +- packages/dts-test/watch.test-d.ts | 14 +- packages/global.d.ts | 2 +- .../__tests__/reactivityTransform.spec.ts | 42 +- .../src/reactivityTransform.ts | 78 +- .../__tests__/collections/Map.spec.ts | 2 +- .../__tests__/collections/Set.spec.ts | 2 +- .../collections/shallowReadonly.spec.ts | 22 +- .../reactivity/__tests__/computed.spec.ts | 24 +- packages/reactivity/__tests__/effect.spec.ts | 36 +- .../reactivity/__tests__/effectScope.spec.ts | 4 +- .../reactivity/__tests__/reactive.spec.ts | 14 +- .../reactivity/__tests__/readonly.spec.ts | 44 +- packages/reactivity/__tests__/ref.spec.ts | 24 +- .../__tests__/shallowReactive.spec.ts | 14 +- .../__tests__/shallowReadonly.spec.ts | 26 +- packages/reactivity/src/baseHandlers.ts | 20 +- packages/reactivity/src/collectionHandlers.ts | 50 +- packages/reactivity/src/computed.ts | 8 +- packages/reactivity/src/effect.ts | 20 +- packages/reactivity/src/effectScope.ts | 6 +- packages/reactivity/src/index.ts | 12 +- packages/reactivity/src/operations.ts | 4 +- packages/reactivity/src/reactive.ts | 24 +- packages/reactivity/src/ref.ts | 32 +- .../__tests__/apiAsyncComponent.spec.ts | 114 +- .../__tests__/apiCreateApp.spec.ts | 122 +- .../runtime-core/__tests__/apiExpose.spec.ts | 72 +- .../runtime-core/__tests__/apiInject.spec.ts | 78 +- .../__tests__/apiLifecycle.spec.ts | 58 +- .../runtime-core/__tests__/apiOptions.spec.ts | 492 +++---- .../__tests__/apiSetupContext.spec.ts | 44 +- .../__tests__/apiSetupHelpers.spec.ts | 84 +- .../runtime-core/__tests__/apiWatch.spec.ts | 130 +- .../__tests__/componentEmits.spec.ts | 110 +- .../__tests__/componentProps.spec.ts | 146 +- .../__tests__/componentPublicInstance.spec.ts | 82 +- .../__tests__/componentSlots.spec.ts | 58 +- .../components/BaseTransition.spec.ts | 122 +- .../__tests__/components/KeepAlive.spec.ts | 118 +- .../__tests__/components/Suspense.spec.ts | 280 ++-- .../__tests__/components/Teleport.spec.ts | 166 +-- .../runtime-core/__tests__/directives.spec.ts | 54 +- .../__tests__/errorHandling.spec.ts | 92 +- packages/runtime-core/__tests__/h.spec.ts | 20 +- .../__tests__/helpers/createSlots.spec.ts | 10 +- .../__tests__/helpers/renderList.spec.ts | 16 +- .../__tests__/helpers/renderSlot.spec.ts | 10 +- .../__tests__/helpers/resolveAssets.spec.ts | 38 +- .../__tests__/helpers/toHandlers.spec.ts | 4 +- .../__tests__/helpers/withMemo.spec.ts | 32 +- packages/runtime-core/__tests__/hmr.spec.ts | 106 +- .../runtime-core/__tests__/hydration.spec.ts | 211 +-- packages/runtime-core/__tests__/misc.spec.ts | 2 +- .../rendererAttrsFallthrough.spec.ts | 130 +- .../__tests__/rendererChildren.spec.ts | 102 +- .../__tests__/rendererComponent.spec.ts | 66 +- .../__tests__/rendererElement.spec.ts | 2 +- .../__tests__/rendererFragment.spec.ts | 110 +- .../__tests__/rendererOptimizedMode.spec.ts | 252 ++-- .../__tests__/rendererTemplateRef.spec.ts | 96 +- .../runtime-core/__tests__/scheduler.spec.ts | 4 +- .../runtime-core/__tests__/scopeId.spec.ts | 72 +- packages/runtime-core/__tests__/vnode.spec.ts | 140 +- .../runtime-core/__tests__/vnodeHooks.spec.ts | 20 +- .../runtime-core/src/apiAsyncComponent.ts | 22 +- packages/runtime-core/src/apiComputed.ts | 2 +- packages/runtime-core/src/apiCreateApp.ts | 40 +- .../runtime-core/src/apiDefineComponent.ts | 36 +- packages/runtime-core/src/apiInject.ts | 8 +- packages/runtime-core/src/apiLifecycle.ts | 14 +- packages/runtime-core/src/apiSetupHelpers.ts | 68 +- packages/runtime-core/src/apiWatch.ts | 56 +- .../src/compat/attrsFallthrough.ts | 2 +- .../runtime-core/src/compat/compatConfig.ts | 108 +- packages/runtime-core/src/compat/component.ts | 6 +- .../runtime-core/src/compat/componentAsync.ts | 4 +- .../src/compat/componentFunctional.ts | 6 +- .../src/compat/componentVModel.ts | 8 +- .../src/compat/customDirective.ts | 8 +- packages/runtime-core/src/compat/global.ts | 48 +- .../runtime-core/src/compat/globalConfig.ts | 10 +- packages/runtime-core/src/compat/instance.ts | 14 +- .../src/compat/instanceChildren.ts | 2 +- .../src/compat/instanceEventEmitter.ts | 14 +- packages/runtime-core/src/compat/props.ts | 6 +- packages/runtime-core/src/compat/renderFn.ts | 44 +- .../runtime-core/src/compat/renderHelpers.ts | 14 +- packages/runtime-core/src/component.ts | 93 +- packages/runtime-core/src/componentEmits.ts | 28 +- packages/runtime-core/src/componentOptions.ts | 102 +- packages/runtime-core/src/componentProps.ts | 46 +- .../src/componentPublicInstance.ts | 72 +- .../src/componentRenderContext.ts | 4 +- .../runtime-core/src/componentRenderUtils.ts | 42 +- packages/runtime-core/src/componentSlots.ts | 26 +- .../src/components/BaseTransition.ts | 40 +- .../runtime-core/src/components/KeepAlive.ts | 34 +- .../runtime-core/src/components/Suspense.ts | 84 +- .../runtime-core/src/components/Teleport.ts | 52 +- packages/runtime-core/src/customFormatter.ts | 28 +- packages/runtime-core/src/devtools.ts | 20 +- packages/runtime-core/src/directives.ts | 14 +- packages/runtime-core/src/enums.ts | 2 +- packages/runtime-core/src/errorHandling.ts | 14 +- packages/runtime-core/src/featureFlags.ts | 2 +- packages/runtime-core/src/h.ts | 32 +- .../runtime-core/src/helpers/createSlots.ts | 2 +- .../runtime-core/src/helpers/renderList.ts | 16 +- .../runtime-core/src/helpers/renderSlot.ts | 12 +- .../runtime-core/src/helpers/resolveAssets.ts | 14 +- .../runtime-core/src/helpers/toHandlers.ts | 2 +- .../runtime-core/src/helpers/useSsrContext.ts | 2 +- packages/runtime-core/src/helpers/withMemo.ts | 2 +- packages/runtime-core/src/hmr.ts | 14 +- packages/runtime-core/src/hydration.ts | 64 +- packages/runtime-core/src/index.ts | 52 +- packages/runtime-core/src/profiling.ts | 4 +- packages/runtime-core/src/renderer.ts | 236 ++-- .../runtime-core/src/rendererTemplateRef.ts | 10 +- packages/runtime-core/src/scheduler.ts | 10 +- packages/runtime-core/src/vnode.ts | 54 +- packages/runtime-core/src/warning.ts | 12 +- .../runtime-dom/__tests__/createApp.spec.ts | 6 +- .../__tests__/customElement.spec.ts | 124 +- .../__tests__/customizedBuiltIn.spec.ts | 2 +- .../__tests__/directives/vCloak.spec.ts | 2 +- .../__tests__/directives/vModel.spec.ts | 232 +-- .../__tests__/directives/vOn.spec.ts | 6 +- .../__tests__/directives/vShow.spec.ts | 20 +- .../__tests__/helpers/useCssModule.spec.ts | 12 +- .../__tests__/helpers/useCssVars.spec.ts | 36 +- .../runtime-dom/__tests__/nodeOps.spec.ts | 8 +- .../runtime-dom/__tests__/patchEvents.spec.ts | 2 +- .../runtime-dom/__tests__/patchProps.spec.ts | 18 +- .../runtime-dom/__tests__/patchStyle.spec.ts | 20 +- packages/runtime-dom/src/apiCustomElement.ts | 32 +- .../runtime-dom/src/components/Transition.ts | 34 +- .../src/components/TransitionGroup.ts | 18 +- packages/runtime-dom/src/directives/vModel.ts | 30 +- packages/runtime-dom/src/directives/vOn.ts | 10 +- packages/runtime-dom/src/directives/vShow.ts | 2 +- .../runtime-dom/src/helpers/useCssVars.ts | 4 +- packages/runtime-dom/src/index.ts | 26 +- packages/runtime-dom/src/modules/attrs.ts | 12 +- packages/runtime-dom/src/modules/events.ts | 14 +- packages/runtime-dom/src/modules/props.ts | 8 +- packages/runtime-dom/src/modules/style.ts | 6 +- packages/runtime-dom/src/nodeOps.ts | 4 +- packages/runtime-dom/src/patchProp.ts | 6 +- .../__tests__/testRuntime.spec.ts | 48 +- packages/runtime-test/src/index.ts | 4 +- packages/runtime-test/src/nodeOps.ts | 30 +- packages/runtime-test/src/patchProp.ts | 4 +- packages/runtime-test/src/serialize.ts | 10 +- packages/runtime-test/src/triggerEvent.ts | 2 +- .../server-renderer/__tests__/render.spec.ts | 380 ++--- .../__tests__/ssrAttrFallthrough.spec.ts | 30 +- .../__tests__/ssrCompilerOptions.spec.ts | 68 +- .../__tests__/ssrComputed.spec.ts | 2 +- .../__tests__/ssrDirectives.spec.ts | 314 ++--- .../__tests__/ssrDynamicComponent.spec.ts | 34 +- .../__tests__/ssrInterpolate.spec.ts | 14 +- .../__tests__/ssrRenderAttrs.spec.ts | 74 +- .../__tests__/ssrRenderList.spec.ts | 10 +- .../__tests__/ssrScopeId.spec.ts | 58 +- .../server-renderer/__tests__/ssrSlot.spec.ts | 86 +- .../__tests__/ssrSuspense.spec.ts | 44 +- .../__tests__/ssrTeleport.spec.ts | 62 +- .../__tests__/ssrVModelHelpers.spec.ts | 62 +- .../__tests__/ssrWatch.spec.ts | 2 +- .../__tests__/webStream.spec.ts | 12 +- .../server-renderer/src/helpers/ssrCompile.ts | 20 +- .../src/helpers/ssrGetDirectiveProps.ts | 6 +- .../src/helpers/ssrRenderAttrs.ts | 10 +- .../src/helpers/ssrRenderComponent.ts | 4 +- .../src/helpers/ssrRenderList.ts | 2 +- .../src/helpers/ssrRenderSlot.ts | 10 +- .../src/helpers/ssrRenderSuspense.ts | 2 +- .../src/helpers/ssrRenderTeleport.ts | 2 +- .../src/helpers/ssrVModelHelpers.ts | 4 +- packages/server-renderer/src/index.ts | 2 +- packages/server-renderer/src/internal.ts | 4 +- packages/server-renderer/src/render.ts | 48 +- .../server-renderer/src/renderToStream.ts | 32 +- .../server-renderer/src/renderToString.ts | 6 +- .../src/download/template/vite.config.js | 2 +- packages/sfc-playground/src/main.ts | 2 +- packages/sfc-playground/vite.config.ts | 20 +- packages/shared/__tests__/codeframe.spec.ts | 4 +- packages/shared/__tests__/looseEqual.spec.ts | 14 +- .../shared/__tests__/normalizeProp.spec.ts | 6 +- .../shared/__tests__/toDisplayString.spec.ts | 20 +- packages/shared/src/codeframe.ts | 6 +- packages/shared/src/domAttrConfig.ts | 8 +- packages/shared/src/general.ts | 10 +- packages/shared/src/makeMap.ts | 2 +- packages/shared/src/normalizeProp.ts | 4 +- packages/shared/src/patchFlags.ts | 4 +- packages/shared/src/shapeFlags.ts | 2 +- packages/shared/src/slotFlags.ts | 4 +- packages/shared/src/toDisplayString.ts | 6 +- packages/template-explorer/src/index.ts | 56 +- packages/template-explorer/src/options.ts | 62 +- packages/template-explorer/src/theme.ts | 118 +- .../vue-compat/__tests__/compiler.spec.ts | 46 +- .../__tests__/componentAsync.spec.ts | 24 +- .../__tests__/componentFunctional.spec.ts | 32 +- .../__tests__/componentVModel.spec.ts | 18 +- packages/vue-compat/__tests__/filters.spec.ts | 70 +- packages/vue-compat/__tests__/global.spec.ts | 114 +- .../vue-compat/__tests__/globalConfig.spec.ts | 12 +- .../vue-compat/__tests__/instance.spec.ts | 84 +- packages/vue-compat/__tests__/misc.spec.ts | 82 +- packages/vue-compat/__tests__/options.spec.ts | 50 +- .../vue-compat/__tests__/renderFn.spec.ts | 108 +- packages/vue-compat/__tests__/utils.ts | 4 +- packages/vue-compat/src/createCompatVue.ts | 2 +- packages/vue-compat/src/dev.ts | 2 +- packages/vue-compat/src/index.ts | 12 +- packages/vue-compat/src/runtime.ts | 2 +- .../vue/__tests__/customElementCasing.spec.ts | 6 +- packages/vue/__tests__/e2e/Transition.spec.ts | 442 +++--- .../vue/__tests__/e2e/TransitionGroup.spec.ts | 96 +- packages/vue/__tests__/e2e/commits.mock.ts | 126 +- packages/vue/__tests__/e2e/commits.spec.ts | 8 +- packages/vue/__tests__/e2e/e2eUtils.ts | 16 +- packages/vue/__tests__/e2e/grid.spec.ts | 20 +- packages/vue/__tests__/e2e/markdown.spec.ts | 8 +- packages/vue/__tests__/e2e/svg.spec.ts | 16 +- packages/vue/__tests__/e2e/todomvc.spec.ts | 8 +- packages/vue/__tests__/e2e/tree.spec.ts | 38 +- packages/vue/__tests__/index.spec.ts | 64 +- .../__tests__/runtimeCompilerOptions.spec.ts | 24 +- packages/vue/__tests__/svgNamespace.spec.ts | 4 +- packages/vue/macros-global.d.ts | 2 +- packages/vue/macros.d.ts | 16 +- packages/vue/src/dev.ts | 2 +- packages/vue/src/index.ts | 8 +- packages/vue/src/runtime.ts | 2 +- rollup.config.js | 56 +- rollup.dts.config.js | 26 +- scripts/aliases.js | 4 +- scripts/build.js | 22 +- scripts/const-enum.js | 22 +- scripts/dev.js | 22 +- scripts/pre-dev-sfc.js | 4 +- scripts/release.js | 38 +- scripts/setupVitest.ts | 18 +- scripts/size-report.ts | 8 +- scripts/usage-size.ts | 22 +- scripts/utils.js | 4 +- scripts/verifyCommit.js | 8 +- vitest.config.ts | 16 +- vitest.e2e.config.ts | 4 +- vitest.unit.config.ts | 4 +- 417 files changed, 10095 insertions(+), 10032 deletions(-) diff --git a/.prettierrc b/.prettierrc index ef93d94821a..600fbaf079f 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,7 @@ -semi: false -singleQuote: true -printWidth: 80 -trailingComma: 'none' -arrowParens: 'avoid' +{ + "semi": false, + "singleQuote": true, + "printWidth": 80, + "trailingComma": "all", + "arrowParens": "avoid" +} diff --git a/packages/compiler-core/__tests__/codegen.spec.ts b/packages/compiler-core/__tests__/codegen.spec.ts index 802df84b35b..19a91c8f8c5 100644 --- a/packages/compiler-core/__tests__/codegen.spec.ts +++ b/packages/compiler-core/__tests__/codegen.spec.ts @@ -21,7 +21,7 @@ import { createVNodeCall, VNodeCall, DirectiveArguments, - ConstantTypes + ConstantTypes, } from '../src' import { CREATE_VNODE, @@ -32,7 +32,7 @@ import { CREATE_COMMENT, FRAGMENT, RENDER_LIST, - CREATE_ELEMENT_VNODE + CREATE_ELEMENT_VNODE, } from '../src/runtimeHelpers' import { createElementWithCodegen, genFlagText } from './testUtils' import { PatchFlags } from '@vue/shared' @@ -50,59 +50,59 @@ function createRoot(options: Partial = {}): RootNode { temps: 0, codegenNode: createSimpleExpression(`null`, false), loc: locStub, - ...options + ...options, } } describe('compiler: codegen', () => { test('module mode preamble', () => { const root = createRoot({ - helpers: new Set([CREATE_VNODE, RESOLVE_DIRECTIVE]) + helpers: new Set([CREATE_VNODE, RESOLVE_DIRECTIVE]), }) const { code } = generate(root, { mode: 'module' }) expect(code).toMatch( - `import { ${helperNameMap[CREATE_VNODE]} as _${helperNameMap[CREATE_VNODE]}, ${helperNameMap[RESOLVE_DIRECTIVE]} as _${helperNameMap[RESOLVE_DIRECTIVE]} } from "vue"` + `import { ${helperNameMap[CREATE_VNODE]} as _${helperNameMap[CREATE_VNODE]}, ${helperNameMap[RESOLVE_DIRECTIVE]} as _${helperNameMap[RESOLVE_DIRECTIVE]} } from "vue"`, ) expect(code).toMatchSnapshot() }) test('module mode preamble w/ optimizeImports: true', () => { const root = createRoot({ - helpers: new Set([CREATE_VNODE, RESOLVE_DIRECTIVE]) + helpers: new Set([CREATE_VNODE, RESOLVE_DIRECTIVE]), }) const { code } = generate(root, { mode: 'module', optimizeImports: true }) expect(code).toMatch( - `import { ${helperNameMap[CREATE_VNODE]}, ${helperNameMap[RESOLVE_DIRECTIVE]} } from "vue"` + `import { ${helperNameMap[CREATE_VNODE]}, ${helperNameMap[RESOLVE_DIRECTIVE]} } from "vue"`, ) expect(code).toMatch( - `const _${helperNameMap[CREATE_VNODE]} = ${helperNameMap[CREATE_VNODE]}, _${helperNameMap[RESOLVE_DIRECTIVE]} = ${helperNameMap[RESOLVE_DIRECTIVE]}` + `const _${helperNameMap[CREATE_VNODE]} = ${helperNameMap[CREATE_VNODE]}, _${helperNameMap[RESOLVE_DIRECTIVE]} = ${helperNameMap[RESOLVE_DIRECTIVE]}`, ) expect(code).toMatchSnapshot() }) test('function mode preamble', () => { const root = createRoot({ - helpers: new Set([CREATE_VNODE, RESOLVE_DIRECTIVE]) + helpers: new Set([CREATE_VNODE, RESOLVE_DIRECTIVE]), }) const { code } = generate(root, { mode: 'function' }) expect(code).toMatch(`const _Vue = Vue`) expect(code).toMatch( - `const { ${helperNameMap[CREATE_VNODE]}: _${helperNameMap[CREATE_VNODE]}, ${helperNameMap[RESOLVE_DIRECTIVE]}: _${helperNameMap[RESOLVE_DIRECTIVE]} } = _Vue` + `const { ${helperNameMap[CREATE_VNODE]}: _${helperNameMap[CREATE_VNODE]}, ${helperNameMap[RESOLVE_DIRECTIVE]}: _${helperNameMap[RESOLVE_DIRECTIVE]} } = _Vue`, ) expect(code).toMatchSnapshot() }) test('function mode preamble w/ prefixIdentifiers: true', () => { const root = createRoot({ - helpers: new Set([CREATE_VNODE, RESOLVE_DIRECTIVE]) + helpers: new Set([CREATE_VNODE, RESOLVE_DIRECTIVE]), }) const { code } = generate(root, { mode: 'function', - prefixIdentifiers: true + prefixIdentifiers: true, }) expect(code).not.toMatch(`const _Vue = Vue`) expect(code).toMatch( - `const { ${helperNameMap[CREATE_VNODE]}: _${helperNameMap[CREATE_VNODE]}, ${helperNameMap[RESOLVE_DIRECTIVE]}: _${helperNameMap[RESOLVE_DIRECTIVE]} } = Vue` + `const { ${helperNameMap[CREATE_VNODE]}: _${helperNameMap[CREATE_VNODE]}, ${helperNameMap[RESOLVE_DIRECTIVE]}: _${helperNameMap[RESOLVE_DIRECTIVE]} } = Vue`, ) expect(code).toMatchSnapshot() }) @@ -111,27 +111,27 @@ describe('compiler: codegen', () => { const root = createRoot({ components: [`Foo`, `bar-baz`, `barbaz`, `Qux__self`], directives: [`my_dir_0`, `my_dir_1`], - temps: 3 + temps: 3, }) const { code } = generate(root, { mode: 'function' }) expect(code).toMatch( - `const _component_Foo = _${helperNameMap[RESOLVE_COMPONENT]}("Foo")\n` + `const _component_Foo = _${helperNameMap[RESOLVE_COMPONENT]}("Foo")\n`, ) expect(code).toMatch( - `const _component_bar_baz = _${helperNameMap[RESOLVE_COMPONENT]}("bar-baz")\n` + `const _component_bar_baz = _${helperNameMap[RESOLVE_COMPONENT]}("bar-baz")\n`, ) expect(code).toMatch( - `const _component_barbaz = _${helperNameMap[RESOLVE_COMPONENT]}("barbaz")\n` + `const _component_barbaz = _${helperNameMap[RESOLVE_COMPONENT]}("barbaz")\n`, ) // implicit self reference from SFC filename expect(code).toMatch( - `const _component_Qux = _${helperNameMap[RESOLVE_COMPONENT]}("Qux", true)\n` + `const _component_Qux = _${helperNameMap[RESOLVE_COMPONENT]}("Qux", true)\n`, ) expect(code).toMatch( - `const _directive_my_dir_0 = _${helperNameMap[RESOLVE_DIRECTIVE]}("my_dir_0")\n` + `const _directive_my_dir_0 = _${helperNameMap[RESOLVE_DIRECTIVE]}("my_dir_0")\n`, ) expect(code).toMatch( - `const _directive_my_dir_1 = _${helperNameMap[RESOLVE_DIRECTIVE]}("my_dir_1")\n` + `const _directive_my_dir_1 = _${helperNameMap[RESOLVE_DIRECTIVE]}("my_dir_1")\n`, ) expect(code).toMatch(`let _temp0, _temp1, _temp2`) expect(code).toMatchSnapshot() @@ -145,12 +145,12 @@ describe('compiler: codegen', () => { [ createObjectProperty( createSimpleExpression(`id`, true, locStub), - createSimpleExpression(`foo`, true, locStub) - ) + createSimpleExpression(`foo`, true, locStub), + ), ], - locStub - ) - ] + locStub, + ), + ], }) const { code } = generate(root) expect(code).toMatch(`const _hoisted_1 = hello`) @@ -160,7 +160,7 @@ describe('compiler: codegen', () => { test('temps', () => { const root = createRoot({ - temps: 3 + temps: 3, }) const { code } = generate(root) expect(code).toMatch(`let _temp0, _temp1, _temp2`) @@ -173,9 +173,9 @@ describe('compiler: codegen', () => { codegenNode: { type: NodeTypes.TEXT, content: 'hello', - loc: locStub - } - }) + loc: locStub, + }, + }), ) expect(code).toMatch(`return "hello"`) expect(code).toMatchSnapshot() @@ -184,8 +184,8 @@ describe('compiler: codegen', () => { test('interpolation', () => { const { code } = generate( createRoot({ - codegenNode: createInterpolation(`hello`, locStub) - }) + codegenNode: createInterpolation(`hello`, locStub), + }), ) expect(code).toMatch(`return _${helperNameMap[TO_DISPLAY_STRING]}(hello)`) expect(code).toMatchSnapshot() @@ -197,9 +197,9 @@ describe('compiler: codegen', () => { codegenNode: { type: NodeTypes.COMMENT, content: 'foo', - loc: locStub - } - }) + loc: locStub, + }, + }), ) expect(code).toMatch(`return _${helperNameMap[CREATE_COMMENT]}("foo")`) expect(code).toMatchSnapshot() @@ -215,15 +215,15 @@ describe('compiler: codegen', () => { { type: NodeTypes.INTERPOLATION, loc: locStub, - content: createSimpleExpression(`bar`, false, locStub) + content: createSimpleExpression(`bar`, false, locStub), }, // nested compound - createCompoundExpression([` + `, `nested`]) - ]) - }) + createCompoundExpression([` + `, `nested`]), + ]), + }), ) expect(code).toMatch( - `return _ctx.foo + _${helperNameMap[TO_DISPLAY_STRING]}(bar) + nested` + `return _ctx.foo + _${helperNameMap[TO_DISPLAY_STRING]}(bar) + nested`, ) expect(code).toMatchSnapshot() }) @@ -238,10 +238,10 @@ describe('compiler: codegen', () => { codegenNode: createConditionalExpression( createSimpleExpression('foo', false), createSimpleExpression('bar', false), - createSimpleExpression('baz', false) - ) as IfConditionalExpression - } - }) + createSimpleExpression('baz', false), + ) as IfConditionalExpression, + }, + }), ) expect(code).toMatch(/return foo\s+\? bar\s+: baz/) expect(code).toMatchSnapshot() @@ -269,10 +269,10 @@ describe('compiler: codegen', () => { patchFlag: '1', dynamicProps: undefined, directives: undefined, - loc: locStub - } as ForCodegenNode - } - }) + loc: locStub, + } as ForCodegenNode, + }, + }), ) expect(code).toMatch(`openBlock(true)`) expect(code).toMatchSnapshot() @@ -288,7 +288,7 @@ describe('compiler: codegen', () => { '1 + 2', false, locStub, - ConstantTypes.CAN_STRINGIFY + ConstantTypes.CAN_STRINGIFY, ), valueAlias: undefined, keyAlias: undefined, @@ -305,10 +305,10 @@ describe('compiler: codegen', () => { patchFlag: genFlagText(PatchFlags.STABLE_FRAGMENT), dynamicProps: undefined, directives: undefined, - loc: locStub - } as ForCodegenNode - } - }) + loc: locStub, + } as ForCodegenNode, + }, + }), ) expect(code).toMatch(`openBlock()`) expect(code).toMatchSnapshot() @@ -325,11 +325,11 @@ describe('compiler: codegen', () => { [ createObjectProperty( createSimpleExpression(`id`, true, locStub), - createSimpleExpression(`foo`, true, locStub) + createSimpleExpression(`foo`, true, locStub), ), createObjectProperty( createSimpleExpression(`prop`, false, locStub), - createSimpleExpression(`bar`, false, locStub) + createSimpleExpression(`bar`, false, locStub), ), // compound expression as computed key createObjectProperty( @@ -338,13 +338,13 @@ describe('compiler: codegen', () => { loc: locStub, children: [ `foo + `, - createSimpleExpression(`bar`, false, locStub) - ] + createSimpleExpression(`bar`, false, locStub), + ], }, - createSimpleExpression(`bar`, false, locStub) - ) + createSimpleExpression(`bar`, false, locStub), + ), ], - locStub + locStub, ), // ChildNode[] [ @@ -355,17 +355,17 @@ describe('compiler: codegen', () => { createObjectProperty( // should quote the key! createSimpleExpression(`some-key`, true, locStub), - createSimpleExpression(`foo`, true, locStub) - ) + createSimpleExpression(`foo`, true, locStub), + ), ], - locStub - ) - ) + locStub, + ), + ), ], // flag - PatchFlags.FULL_PROPS + '' - ) - }) + PatchFlags.FULL_PROPS + '', + ), + }), ) expect(code).toMatch(` return _${helperNameMap[CREATE_ELEMENT_VNODE]}("div", { @@ -383,9 +383,9 @@ describe('compiler: codegen', () => { createRoot({ codegenNode: createArrayExpression([ createSimpleExpression(`foo`, false), - createCallExpression(`bar`, [`baz`]) - ]) - }) + createCallExpression(`bar`, [`baz`]), + ]), + }), ) expect(code).toMatch(`return [ foo, @@ -403,17 +403,17 @@ describe('compiler: codegen', () => { createConditionalExpression( createSimpleExpression(`orNot`, false), createCallExpression(`bar`), - createCallExpression(`baz`) - ) - ) - }) + createCallExpression(`baz`), + ), + ), + }), ) expect(code).toMatch( `return ok ? foo() : orNot ? bar() - : baz()` + : baz()`, ) expect(code).toMatchSnapshot() }) @@ -424,13 +424,13 @@ describe('compiler: codegen', () => { cached: 1, codegenNode: createCacheExpression( 1, - createSimpleExpression(`foo`, false) - ) + createSimpleExpression(`foo`, false), + ), }), { mode: 'module', - prefixIdentifiers: true - } + prefixIdentifiers: true, + }, ) expect(code).toMatch(`_cache[1] || (_cache[1] = foo)`) expect(code).toMatchSnapshot() @@ -443,13 +443,13 @@ describe('compiler: codegen', () => { codegenNode: createCacheExpression( 1, createSimpleExpression(`foo`, false), - true - ) + true, + ), }), { mode: 'module', - prefixIdentifiers: true - } + prefixIdentifiers: true, + }, ) expect(code).toMatch( ` @@ -459,7 +459,7 @@ describe('compiler: codegen', () => { _setBlockTracking(1), _cache[1] ) - `.trim() + `.trim(), ) expect(code).toMatchSnapshot() }) @@ -471,11 +471,11 @@ describe('compiler: codegen', () => { createTemplateLiteral([ `foo`, createCallExpression(`_renderAttr`, ['id', 'foo']), - `bar` - ]) - ]) + `bar`, + ]), + ]), }), - { ssr: true, mode: 'module' } + { ssr: true, mode: 'module' }, ) expect(code).toMatchInlineSnapshot(` " @@ -492,11 +492,11 @@ describe('compiler: codegen', () => { codegenNode: createBlockStatement([ createIfStatement( createSimpleExpression('foo', false), - createBlockStatement([createCallExpression(`ok`)]) - ) - ]) + createBlockStatement([createCallExpression(`ok`)]), + ), + ]), }), - { ssr: true, mode: 'module' } + { ssr: true, mode: 'module' }, ) expect(code).toMatchInlineSnapshot(` " @@ -515,11 +515,11 @@ describe('compiler: codegen', () => { createIfStatement( createSimpleExpression('foo', false), createBlockStatement([createCallExpression(`foo`)]), - createBlockStatement([createCallExpression('bar')]) - ) - ]) + createBlockStatement([createCallExpression('bar')]), + ), + ]), }), - { ssr: true, mode: 'module' } + { ssr: true, mode: 'module' }, ) expect(code).toMatchInlineSnapshot(` " @@ -542,12 +542,12 @@ describe('compiler: codegen', () => { createBlockStatement([createCallExpression(`foo`)]), createIfStatement( createSimpleExpression('bar', false), - createBlockStatement([createCallExpression(`bar`)]) - ) - ) - ]) + createBlockStatement([createCallExpression(`bar`)]), + ), + ), + ]), }), - { ssr: true, mode: 'module' } + { ssr: true, mode: 'module' }, ) expect(code).toMatchInlineSnapshot(` " @@ -571,12 +571,12 @@ describe('compiler: codegen', () => { createIfStatement( createSimpleExpression('bar', false), createBlockStatement([createCallExpression(`bar`)]), - createBlockStatement([createCallExpression('baz')]) - ) - ) - ]) + createBlockStatement([createCallExpression('baz')]), + ), + ), + ]), }), - { ssr: true, mode: 'module' } + { ssr: true, mode: 'module' }, ) expect(code).toMatchInlineSnapshot(` " @@ -598,9 +598,9 @@ describe('compiler: codegen', () => { createRoot({ codegenNode: createAssignmentExpression( createSimpleExpression(`foo`, false), - createSimpleExpression(`bar`, false) - ) - }) + createSimpleExpression(`bar`, false), + ), + }), ) expect(code).toMatchInlineSnapshot(` " @@ -616,17 +616,17 @@ describe('compiler: codegen', () => { function genCode(node: VNodeCall) { return generate( createRoot({ - codegenNode: node - }) + codegenNode: node, + }), ).code.match(/with \(_ctx\) \{\s+([^]+)\s+\}\s+\}$/)![1] } const mockProps = createObjectExpression([ - createObjectProperty(`foo`, createSimpleExpression(`bar`, true)) + createObjectProperty(`foo`, createSimpleExpression(`bar`, true)), ]) const mockChildren = createCompoundExpression(['children']) const mockDirs = createArrayExpression([ - createArrayExpression([`foo`, createSimpleExpression(`bar`, false)]) + createArrayExpression([`foo`, createSimpleExpression(`bar`, false)]), ]) as DirectiveArguments test('tag only', () => { @@ -683,9 +683,9 @@ describe('compiler: codegen', () => { undefined, undefined, undefined, - true - ) - ) + true, + ), + ), ).toMatchInlineSnapshot(` "return (_openBlock(), _createElementBlock(\\"div\\", { foo: \\"bar\\" }, children)) " @@ -704,9 +704,9 @@ describe('compiler: codegen', () => { undefined, undefined, true, - true - ) - ) + true, + ), + ), ).toMatchInlineSnapshot(` "return (_openBlock(true), _createElementBlock(\\"div\\", { foo: \\"bar\\" }, children)) " @@ -723,9 +723,9 @@ describe('compiler: codegen', () => { mockChildren, undefined, undefined, - mockDirs - ) - ) + mockDirs, + ), + ), ).toMatchInlineSnapshot(` "return _withDirectives(_createElementVNode(\\"div\\", { foo: \\"bar\\" }, children), [ [foo, bar] @@ -745,9 +745,9 @@ describe('compiler: codegen', () => { undefined, undefined, mockDirs, - true - ) - ) + true, + ), + ), ).toMatchInlineSnapshot(` "return _withDirectives((_openBlock(), _createElementBlock(\\"div\\", { foo: \\"bar\\" }, children)), [ [foo, bar] diff --git a/packages/compiler-core/__tests__/compile.spec.ts b/packages/compiler-core/__tests__/compile.spec.ts index dc4f57ad3d2..75bb8b73e6b 100644 --- a/packages/compiler-core/__tests__/compile.spec.ts +++ b/packages/compiler-core/__tests__/compile.spec.ts @@ -20,7 +20,7 @@ describe('compiler: integration tests', () => { function getPositionInCode( code: string, token: string, - expectName: string | boolean = false + expectName: string | boolean = false, ): Pos { const generatedOffset = code.indexOf(token) let line = 1 @@ -36,7 +36,7 @@ describe('compiler: integration tests', () => { column: lastNewLinePos === -1 ? generatedOffset - : generatedOffset - lastNewLinePos - 1 + : generatedOffset - lastNewLinePos - 1, } if (expectName) { res.name = typeof expectName === 'string' ? expectName : token @@ -47,7 +47,7 @@ describe('compiler: integration tests', () => { test('function mode', () => { const { code, map } = compile(source, { sourceMap: true, - filename: `foo.vue` + filename: `foo.vue`, }) expect(code).toMatchSnapshot() @@ -57,55 +57,55 @@ describe('compiler: integration tests', () => { const consumer = new SourceMapConsumer(map as RawSourceMap) expect( - consumer.originalPositionFor(getPositionInCode(code, `id`)) + consumer.originalPositionFor(getPositionInCode(code, `id`)), ).toMatchObject(getPositionInCode(source, `id`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `"foo"`)) + consumer.originalPositionFor(getPositionInCode(code, `"foo"`)), ).toMatchObject(getPositionInCode(source, `"foo"`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `class:`)) + consumer.originalPositionFor(getPositionInCode(code, `class:`)), ).toMatchObject(getPositionInCode(source, `class=`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `bar`)) + consumer.originalPositionFor(getPositionInCode(code, `bar`)), ).toMatchObject(getPositionInCode(source, `bar`)) // without prefixIdentifiers: true, identifiers inside compound expressions // are mapped to closest parent expression. expect( - consumer.originalPositionFor(getPositionInCode(code, `baz`)) + consumer.originalPositionFor(getPositionInCode(code, `baz`)), ).toMatchObject(getPositionInCode(source, `bar`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `world`)) + consumer.originalPositionFor(getPositionInCode(code, `world`)), ).toMatchObject(getPositionInCode(source, `world`)) // without prefixIdentifiers: true, identifiers inside compound expressions // are mapped to closest parent expression. expect( - consumer.originalPositionFor(getPositionInCode(code, `burn()`)) + consumer.originalPositionFor(getPositionInCode(code, `burn()`)), ).toMatchObject(getPositionInCode(source, `world`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `ok`)) + consumer.originalPositionFor(getPositionInCode(code, `ok`)), ).toMatchObject(getPositionInCode(source, `ok`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `list`)) + consumer.originalPositionFor(getPositionInCode(code, `list`)), ).toMatchObject(getPositionInCode(source, `list`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `value`)) + consumer.originalPositionFor(getPositionInCode(code, `value`)), ).toMatchObject(getPositionInCode(source, `value`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `index`)) + consumer.originalPositionFor(getPositionInCode(code, `index`)), ).toMatchObject(getPositionInCode(source, `index`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `value + index`)) + consumer.originalPositionFor(getPositionInCode(code, `value + index`)), ).toMatchObject(getPositionInCode(source, `value + index`)) }) @@ -113,7 +113,7 @@ describe('compiler: integration tests', () => { const { code, map } = compile(source, { sourceMap: true, filename: `foo.vue`, - prefixIdentifiers: true + prefixIdentifiers: true, }) expect(code).toMatchSnapshot() @@ -123,64 +123,66 @@ describe('compiler: integration tests', () => { const consumer = new SourceMapConsumer(map as RawSourceMap) expect( - consumer.originalPositionFor(getPositionInCode(code, `id`)) + consumer.originalPositionFor(getPositionInCode(code, `id`)), ).toMatchObject(getPositionInCode(source, `id`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `"foo"`)) + consumer.originalPositionFor(getPositionInCode(code, `"foo"`)), ).toMatchObject(getPositionInCode(source, `"foo"`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `class:`)) + consumer.originalPositionFor(getPositionInCode(code, `class:`)), ).toMatchObject(getPositionInCode(source, `class=`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `bar`)) + consumer.originalPositionFor(getPositionInCode(code, `bar`)), ).toMatchObject(getPositionInCode(source, `bar`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `_ctx.bar`, `bar`)) + consumer.originalPositionFor(getPositionInCode(code, `_ctx.bar`, `bar`)), ).toMatchObject(getPositionInCode(source, `bar`, true)) expect( - consumer.originalPositionFor(getPositionInCode(code, `baz`)) + consumer.originalPositionFor(getPositionInCode(code, `baz`)), ).toMatchObject(getPositionInCode(source, `baz`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `world`, true)) + consumer.originalPositionFor(getPositionInCode(code, `world`, true)), ).toMatchObject(getPositionInCode(source, `world`, `world`)) expect( consumer.originalPositionFor( - getPositionInCode(code, `_ctx.world`, `world`) - ) + getPositionInCode(code, `_ctx.world`, `world`), + ), ).toMatchObject(getPositionInCode(source, `world`, `world`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `burn()`)) + consumer.originalPositionFor(getPositionInCode(code, `burn()`)), ).toMatchObject(getPositionInCode(source, `burn()`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `ok`)) + consumer.originalPositionFor(getPositionInCode(code, `ok`)), ).toMatchObject(getPositionInCode(source, `ok`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `_ctx.ok`, `ok`)) + consumer.originalPositionFor(getPositionInCode(code, `_ctx.ok`, `ok`)), ).toMatchObject(getPositionInCode(source, `ok`, true)) expect( - consumer.originalPositionFor(getPositionInCode(code, `list`)) + consumer.originalPositionFor(getPositionInCode(code, `list`)), ).toMatchObject(getPositionInCode(source, `list`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `_ctx.list`, `list`)) + consumer.originalPositionFor( + getPositionInCode(code, `_ctx.list`, `list`), + ), ).toMatchObject(getPositionInCode(source, `list`, true)) expect( - consumer.originalPositionFor(getPositionInCode(code, `value`)) + consumer.originalPositionFor(getPositionInCode(code, `value`)), ).toMatchObject(getPositionInCode(source, `value`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `index`)) + consumer.originalPositionFor(getPositionInCode(code, `index`)), ).toMatchObject(getPositionInCode(source, `index`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `value + index`)) + consumer.originalPositionFor(getPositionInCode(code, `value + index`)), ).toMatchObject(getPositionInCode(source, `value + index`)) }) @@ -188,7 +190,7 @@ describe('compiler: integration tests', () => { const { code, map } = compile(source, { mode: 'module', sourceMap: true, - filename: `foo.vue` + filename: `foo.vue`, }) expect(code).toMatchSnapshot() @@ -198,64 +200,66 @@ describe('compiler: integration tests', () => { const consumer = new SourceMapConsumer(map as RawSourceMap) expect( - consumer.originalPositionFor(getPositionInCode(code, `id`)) + consumer.originalPositionFor(getPositionInCode(code, `id`)), ).toMatchObject(getPositionInCode(source, `id`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `"foo"`)) + consumer.originalPositionFor(getPositionInCode(code, `"foo"`)), ).toMatchObject(getPositionInCode(source, `"foo"`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `class:`)) + consumer.originalPositionFor(getPositionInCode(code, `class:`)), ).toMatchObject(getPositionInCode(source, `class=`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `bar`)) + consumer.originalPositionFor(getPositionInCode(code, `bar`)), ).toMatchObject(getPositionInCode(source, `bar`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `_ctx.bar`, `bar`)) + consumer.originalPositionFor(getPositionInCode(code, `_ctx.bar`, `bar`)), ).toMatchObject(getPositionInCode(source, `bar`, true)) expect( - consumer.originalPositionFor(getPositionInCode(code, `baz`)) + consumer.originalPositionFor(getPositionInCode(code, `baz`)), ).toMatchObject(getPositionInCode(source, `baz`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `world`, true)) + consumer.originalPositionFor(getPositionInCode(code, `world`, true)), ).toMatchObject(getPositionInCode(source, `world`, `world`)) expect( consumer.originalPositionFor( - getPositionInCode(code, `_ctx.world`, `world`) - ) + getPositionInCode(code, `_ctx.world`, `world`), + ), ).toMatchObject(getPositionInCode(source, `world`, `world`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `burn()`)) + consumer.originalPositionFor(getPositionInCode(code, `burn()`)), ).toMatchObject(getPositionInCode(source, `burn()`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `ok`)) + consumer.originalPositionFor(getPositionInCode(code, `ok`)), ).toMatchObject(getPositionInCode(source, `ok`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `_ctx.ok`, `ok`)) + consumer.originalPositionFor(getPositionInCode(code, `_ctx.ok`, `ok`)), ).toMatchObject(getPositionInCode(source, `ok`, true)) expect( - consumer.originalPositionFor(getPositionInCode(code, `list`)) + consumer.originalPositionFor(getPositionInCode(code, `list`)), ).toMatchObject(getPositionInCode(source, `list`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `_ctx.list`, `list`)) + consumer.originalPositionFor( + getPositionInCode(code, `_ctx.list`, `list`), + ), ).toMatchObject(getPositionInCode(source, `list`, true)) expect( - consumer.originalPositionFor(getPositionInCode(code, `value`)) + consumer.originalPositionFor(getPositionInCode(code, `value`)), ).toMatchObject(getPositionInCode(source, `value`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `index`)) + consumer.originalPositionFor(getPositionInCode(code, `index`)), ).toMatchObject(getPositionInCode(source, `index`)) expect( - consumer.originalPositionFor(getPositionInCode(code, `value + index`)) + consumer.originalPositionFor(getPositionInCode(code, `value + index`)), ).toMatchObject(getPositionInCode(source, `value + index`)) }) }) diff --git a/packages/compiler-core/__tests__/parse.spec.ts b/packages/compiler-core/__tests__/parse.spec.ts index 8db4eeb8acb..df24ea47b1e 100644 --- a/packages/compiler-core/__tests__/parse.spec.ts +++ b/packages/compiler-core/__tests__/parse.spec.ts @@ -11,7 +11,7 @@ import { TextNode, InterpolationNode, ConstantTypes, - DirectiveNode + DirectiveNode, } from '../src/ast' describe('compiler: parse', () => { @@ -26,15 +26,15 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 9, line: 1, column: 10 }, - source: 'some text' - } + source: 'some text', + }, }) }) test('simple text with invalid end tag', () => { const onError = vi.fn() const ast = baseParse('some text', { - onError + onError, }) const text = ast.children[0] as TextNode @@ -45,8 +45,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 9, line: 1, column: 10 }, - source: 'some text' - } + source: 'some text', + }, }) }) @@ -61,8 +61,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 5, line: 1, column: 6 }, - source: 'some ' - } + source: 'some ', + }, }) expect(text2).toStrictEqual({ type: NodeTypes.TEXT, @@ -70,8 +70,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 20, line: 1, column: 21 }, end: { offset: 25, line: 1, column: 26 }, - source: ' text' - } + source: ' text', + }, }) }) @@ -86,8 +86,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 5, line: 1, column: 6 }, - source: 'some ' - } + source: 'some ', + }, }) expect(text2).toStrictEqual({ type: NodeTypes.TEXT, @@ -95,8 +95,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 21, line: 1, column: 22 }, end: { offset: 26, line: 1, column: 27 }, - source: ' text' - } + source: ' text', + }, }) }) @@ -111,8 +111,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 5, line: 1, column: 6 }, - source: 'some ' - } + source: 'some ', + }, }) expect(text2).toStrictEqual({ type: NodeTypes.TEXT, @@ -120,8 +120,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 32, line: 1, column: 33 }, end: { offset: 37, line: 1, column: 38 }, - source: ' text' - } + source: ' text', + }, }) }) @@ -131,7 +131,7 @@ describe('compiler: parse', () => { if (err.code !== ErrorCodes.INVALID_FIRST_CHARACTER_OF_TAG_NAME) { throw err } - } + }, }) const text = ast.children[0] as TextNode @@ -141,8 +141,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 5, line: 1, column: 6 }, - source: 'a < b' - } + source: 'a < b', + }, }) }) @@ -152,7 +152,7 @@ describe('compiler: parse', () => { if (error.code !== ErrorCodes.X_MISSING_INTERPOLATION_END) { throw error } - } + }, }) const text = ast.children[0] as TextNode @@ -162,8 +162,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 6, line: 1, column: 7 }, - source: 'a {{ b' - } + source: 'a {{ b', + }, }) }) }) @@ -183,14 +183,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 2, line: 1, column: 3 }, end: { offset: 9, line: 1, column: 10 }, - source: `message` - } + source: `message`, + }, }, loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 11, line: 1, column: 12 }, - source: '{{message}}' - } + source: '{{message}}', + }, }) }) @@ -208,14 +208,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 3, line: 1, column: 4 }, end: { offset: 6, line: 1, column: 7 }, - source: 'a { loc: { start: { offset: 3, line: 1, column: 4 }, end: { offset: 6, line: 1, column: 7 }, - source: 'a { loc: { start: { offset: 12, line: 1, column: 13 }, end: { offset: 15, line: 1, column: 16 }, - source: 'c>d' - } + source: 'c>d', + }, }, loc: { start: { offset: 9, line: 1, column: 10 }, end: { offset: 18, line: 1, column: 19 }, - source: '{{ c>d }}' - } + source: '{{ c>d }}', + }, }) }) @@ -281,20 +281,20 @@ describe('compiler: parse', () => { loc: { start: { offset: 8, line: 1, column: 9 }, end: { offset: 16, line: 1, column: 17 }, - source: '""' - } + source: '""', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 19, line: 1, column: 20 }, - source: '{{ "" }}' - } + source: '{{ "" }}', + }, }) }) test('custom delimiters', () => { const ast = baseParse('

{msg}

', { - delimiters: ['{', '}'] + delimiters: ['{', '}'], }) const element = ast.children[0] as ElementNode const interpolation = element.children[0] as InterpolationNode @@ -309,14 +309,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 4, line: 1, column: 5 }, end: { offset: 7, line: 1, column: 8 }, - source: 'msg' - } + source: 'msg', + }, }, loc: { start: { offset: 3, line: 1, column: 4 }, end: { offset: 8, line: 1, column: 9 }, - source: '{msg}' - } + source: '{msg}', + }, }) }) }) @@ -332,8 +332,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 7, line: 1, column: 8 }, - source: '' - } + source: '', + }, }) }) @@ -347,8 +347,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 10, line: 1, column: 11 }, - source: '' - } + source: '', + }, }) }) @@ -363,8 +363,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 10, line: 1, column: 11 }, - source: '' - } + source: '', + }, }) expect(comment2).toStrictEqual({ type: NodeTypes.COMMENT, @@ -372,8 +372,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 10, line: 1, column: 11 }, end: { offset: 20, line: 1, column: 21 }, - source: '' - } + source: '', + }, }) }) @@ -390,38 +390,38 @@ describe('compiler: parse', () => { const rawText = `

` const astWithComments = baseParse(`

${rawText}
`, { - comments: true + comments: true, }) expect( - (astWithComments.children[0] as ElementNode).children + (astWithComments.children[0] as ElementNode).children, ).toMatchObject([ { type: NodeTypes.ELEMENT, - tag: 'p' + tag: 'p', }, { - type: NodeTypes.COMMENT + type: NodeTypes.COMMENT, }, { type: NodeTypes.ELEMENT, - tag: 'p' - } + tag: 'p', + }, ]) const astWithoutComments = baseParse(`
${rawText}
`, { - comments: false + comments: false, }) expect( - (astWithoutComments.children[0] as ElementNode).children + (astWithoutComments.children[0] as ElementNode).children, ).toMatchObject([ { type: NodeTypes.ELEMENT, - tag: 'p' + tag: 'p', }, { type: NodeTypes.ELEMENT, - tag: 'p' - } + tag: 'p', + }, ]) }) }) @@ -446,15 +446,15 @@ describe('compiler: parse', () => { loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 10, line: 1, column: 11 }, - source: 'hello' - } - } + source: 'hello', + }, + }, ], loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 16, line: 1, column: 17 }, - source: '
hello
' - } + source: '
hello
', + }, }) }) @@ -474,8 +474,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 11, line: 1, column: 12 }, - source: '
' - } + source: '
', + }, }) }) @@ -496,14 +496,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 6, line: 1, column: 7 }, - source: '
' - } + source: '
', + }, }) }) test('void element', () => { const ast = baseParse('after', { - isVoidTag: tag => tag === 'img' + isVoidTag: tag => tag === 'img', }) const element = ast.children[0] as ElementNode @@ -520,8 +520,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 5, line: 1, column: 6 }, - source: '' - } + source: '', + }, }) }) @@ -530,7 +530,7 @@ describe('compiler: parse', () => { const element = ast.children[0] expect(element).toMatchObject({ type: NodeTypes.ELEMENT, - tagType: ElementTypes.TEMPLATE + tagType: ElementTypes.TEMPLATE, }) }) @@ -539,31 +539,31 @@ describe('compiler: parse', () => { const element = ast.children[0] expect(element).toMatchObject({ type: NodeTypes.ELEMENT, - tagType: ElementTypes.ELEMENT + tagType: ElementTypes.ELEMENT, }) }) test('native element with `isNativeTag`', () => { const ast = baseParse('
', { - isNativeTag: tag => tag === 'div' + isNativeTag: tag => tag === 'div', }) expect(ast.children[0]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'div', - tagType: ElementTypes.ELEMENT + tagType: ElementTypes.ELEMENT, }) expect(ast.children[1]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'comp', - tagType: ElementTypes.COMPONENT + tagType: ElementTypes.COMPONENT, }) expect(ast.children[2]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'Comp', - tagType: ElementTypes.COMPONENT + tagType: ElementTypes.COMPONENT, }) }) @@ -573,19 +573,19 @@ describe('compiler: parse', () => { expect(ast.children[0]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'div', - tagType: ElementTypes.ELEMENT + tagType: ElementTypes.ELEMENT, }) expect(ast.children[1]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'comp', - tagType: ElementTypes.ELEMENT + tagType: ElementTypes.ELEMENT, }) expect(ast.children[2]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'Comp', - tagType: ElementTypes.COMPONENT + tagType: ElementTypes.COMPONENT, }) }) @@ -593,26 +593,26 @@ describe('compiler: parse', () => { const ast = baseParse( `
`, { - isNativeTag: tag => tag === 'div' - } + isNativeTag: tag => tag === 'div', + }, ) expect(ast.children[0]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'div', - tagType: ElementTypes.ELEMENT + tagType: ElementTypes.ELEMENT, }) expect(ast.children[1]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'div', - tagType: ElementTypes.COMPONENT + tagType: ElementTypes.COMPONENT, }) expect(ast.children[2]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'Comp', - tagType: ElementTypes.COMPONENT + tagType: ElementTypes.COMPONENT, }) }) @@ -622,56 +622,56 @@ describe('compiler: parse', () => { expect(ast.children[0]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'div', - tagType: ElementTypes.ELEMENT + tagType: ElementTypes.ELEMENT, }) expect(ast.children[1]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'div', - tagType: ElementTypes.COMPONENT + tagType: ElementTypes.COMPONENT, }) expect(ast.children[2]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'Comp', - tagType: ElementTypes.COMPONENT + tagType: ElementTypes.COMPONENT, }) }) test('custom element', () => { const ast = baseParse('
', { isNativeTag: tag => tag === 'div', - isCustomElement: tag => tag === 'comp' + isCustomElement: tag => tag === 'comp', }) expect(ast.children[0]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'div', - tagType: ElementTypes.ELEMENT + tagType: ElementTypes.ELEMENT, }) expect(ast.children[1]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'comp', - tagType: ElementTypes.ELEMENT + tagType: ElementTypes.ELEMENT, }) }) test('built-in component', () => { const ast = baseParse('
', { - isBuiltInComponent: tag => (tag === 'comp' ? Symbol() : void 0) + isBuiltInComponent: tag => (tag === 'comp' ? Symbol() : void 0), }) expect(ast.children[0]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'div', - tagType: ElementTypes.ELEMENT + tagType: ElementTypes.ELEMENT, }) expect(ast.children[1]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'comp', - tagType: ElementTypes.COMPONENT + tagType: ElementTypes.COMPONENT, }) }) @@ -681,13 +681,13 @@ describe('compiler: parse', () => { expect(ast.children[0]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'slot', - tagType: ElementTypes.SLOT + tagType: ElementTypes.SLOT, }) expect(ast.children[1]).toMatchObject({ type: NodeTypes.ELEMENT, tag: 'Comp', - tagType: ElementTypes.COMPONENT + tagType: ElementTypes.COMPONENT, }) }) @@ -709,9 +709,9 @@ describe('compiler: parse', () => { loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 7, line: 1, column: 8 }, - source: 'id' - } - } + source: 'id', + }, + }, ], isSelfClosing: false, @@ -719,8 +719,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 14, line: 1, column: 15 }, - source: '
' - } + source: '
', + }, }) }) @@ -744,15 +744,15 @@ describe('compiler: parse', () => { loc: { start: { offset: 8, line: 1, column: 9 }, end: { offset: 10, line: 1, column: 11 }, - source: '""' - } + source: '""', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 10, line: 1, column: 11 }, - source: 'id=""' - } - } + source: 'id=""', + }, + }, ], isSelfClosing: false, @@ -760,8 +760,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 17, line: 1, column: 18 }, - source: '
' - } + source: '
', + }, }) }) @@ -785,15 +785,15 @@ describe('compiler: parse', () => { loc: { start: { offset: 8, line: 1, column: 9 }, end: { offset: 10, line: 1, column: 11 }, - source: "''" - } + source: "''", + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 10, line: 1, column: 11 }, - source: "id=''" - } - } + source: "id=''", + }, + }, ], isSelfClosing: false, @@ -801,8 +801,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 17, line: 1, column: 18 }, - source: "
" - } + source: "
", + }, }) }) @@ -826,15 +826,15 @@ describe('compiler: parse', () => { loc: { start: { offset: 8, line: 1, column: 9 }, end: { offset: 12, line: 1, column: 13 }, - source: '">\'"' - } + source: '">\'"', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 12, line: 1, column: 13 }, - source: 'id=">\'"' - } - } + source: 'id=">\'"', + }, + }, ], isSelfClosing: false, @@ -842,8 +842,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 19, line: 1, column: 20 }, - source: '
' - } + source: '
', + }, }) }) @@ -867,15 +867,15 @@ describe('compiler: parse', () => { loc: { start: { offset: 8, line: 1, column: 9 }, end: { offset: 12, line: 1, column: 13 }, - source: "'>\"'" - } + source: "'>\"'", + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 12, line: 1, column: 13 }, - source: "id='>\"'" - } - } + source: "id='>\"'", + }, + }, ], isSelfClosing: false, @@ -883,8 +883,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 19, line: 1, column: 20 }, - source: "
" - } + source: "
", + }, }) }) @@ -908,15 +908,15 @@ describe('compiler: parse', () => { loc: { start: { offset: 8, line: 1, column: 9 }, end: { offset: 10, line: 1, column: 11 }, - source: 'a/' - } + source: 'a/', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 10, line: 1, column: 11 }, - source: 'id=a/' - } - } + source: 'id=a/', + }, + }, ], isSelfClosing: false, @@ -924,8 +924,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 17, line: 1, column: 18 }, - source: '
' - } + source: '
', + }, }) }) @@ -949,14 +949,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 8, line: 1, column: 9 }, end: { offset: 9, line: 1, column: 10 }, - source: 'a' - } + source: 'a', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 9, line: 1, column: 10 }, - source: 'id=a' - } + source: 'id=a', + }, }, { type: NodeTypes.ATTRIBUTE, @@ -967,14 +967,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 16, line: 1, column: 17 }, end: { offset: 19, line: 1, column: 20 }, - source: '"c"' - } + source: '"c"', + }, }, loc: { start: { offset: 10, line: 1, column: 11 }, end: { offset: 19, line: 1, column: 20 }, - source: 'class="c"' - } + source: 'class="c"', + }, }, { type: NodeTypes.ATTRIBUTE, @@ -983,8 +983,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 20, line: 1, column: 21 }, end: { offset: 25, line: 1, column: 26 }, - source: 'inert' - } + source: 'inert', + }, }, { type: NodeTypes.ATTRIBUTE, @@ -995,15 +995,15 @@ describe('compiler: parse', () => { loc: { start: { offset: 32, line: 1, column: 33 }, end: { offset: 34, line: 1, column: 35 }, - source: "''" - } + source: "''", + }, }, loc: { start: { offset: 26, line: 1, column: 27 }, end: { offset: 34, line: 1, column: 35 }, - source: "style=''" - } - } + source: "style=''", + }, + }, ], isSelfClosing: false, @@ -1011,8 +1011,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 0, line: 1, column: 1 }, end: { offset: 41, line: 1, column: 42 }, - source: '
' - } + source: '
', + }, }) }) @@ -1029,14 +1029,14 @@ describe('compiler: parse', () => { end: { column: 10, line: 3, - offset: 29 + offset: 29, }, source: '
', start: { column: 1, line: 1, - offset: 0 - } + offset: 0, + }, }, ns: Namespaces.HTML, props: [ @@ -1045,14 +1045,14 @@ describe('compiler: parse', () => { end: { column: 3, line: 3, - offset: 22 + offset: 22, }, source: 'class=" \n\t c \t\n "', start: { column: 6, line: 1, - offset: 5 - } + offset: 5, + }, }, name: 'class', type: NodeTypes.ATTRIBUTE, @@ -1062,22 +1062,22 @@ describe('compiler: parse', () => { end: { column: 3, line: 3, - offset: 22 + offset: 22, }, source: '" \n\t c \t\n "', start: { column: 12, line: 1, - offset: 11 - } + offset: 11, + }, }, - type: NodeTypes.TEXT - } - } + type: NodeTypes.TEXT, + }, + }, ], tag: 'div', tagType: ElementTypes.ELEMENT, - type: NodeTypes.ELEMENT + type: NodeTypes.ELEMENT, }) }) @@ -1094,8 +1094,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 9, line: 1, column: 10 }, - source: 'v-if' - } + source: 'v-if', + }, }) }) @@ -1116,14 +1116,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 11, line: 1, column: 12 }, end: { offset: 12, line: 1, column: 13 }, - source: 'a' - } + source: 'a', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 13, line: 1, column: 14 }, - source: 'v-if="a"' - } + source: 'v-if="a"', + }, }) }) @@ -1145,22 +1145,22 @@ describe('compiler: parse', () => { start: { column: 11, line: 1, - offset: 10 + offset: 10, }, end: { column: 16, line: 1, - offset: 15 - } - } + offset: 15, + }, + }, }, modifiers: [], exp: undefined, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 15, line: 1, column: 16 }, - source: 'v-on:click' - } + source: 'v-on:click', + }, }) }) @@ -1173,8 +1173,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 12, line: 1, column: 13 }, end: { offset: 16, line: 1, column: 17 }, - source: 'slot' - } + source: 'slot', + }, }) }) @@ -1187,8 +1187,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 6, line: 1, column: 7 }, end: { offset: 15, line: 1, column: 16 }, - source: 'item.item' - } + source: 'item.item', + }, }) }) @@ -1210,22 +1210,22 @@ describe('compiler: parse', () => { start: { column: 11, line: 1, - offset: 10 + offset: 10, }, end: { column: 18, line: 1, - offset: 17 - } - } + offset: 17, + }, + }, }, modifiers: [], exp: undefined, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 17, line: 1, column: 18 }, - source: 'v-on:[event]' - } + source: 'v-on:[event]', + }, }) }) @@ -1242,8 +1242,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 15, line: 1, column: 16 }, - source: 'v-on.enter' - } + source: 'v-on.enter', + }, }) }) @@ -1260,8 +1260,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 21, line: 1, column: 22 }, - source: 'v-on.enter.exact' - } + source: 'v-on.enter.exact', + }, }) }) @@ -1283,22 +1283,22 @@ describe('compiler: parse', () => { start: { column: 11, line: 1, - offset: 10 + offset: 10, }, end: { column: 16, line: 1, - offset: 15 - } - } + offset: 15, + }, + }, }, modifiers: ['enter', 'exact'], exp: undefined, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 27, line: 1, column: 28 }, - source: 'v-on:click.enter.exact' - } + source: 'v-on:click.enter.exact', + }, }) }) @@ -1320,22 +1320,22 @@ describe('compiler: parse', () => { start: { column: 11, line: 1, - offset: 10 + offset: 10, }, end: { column: 16, line: 1, - offset: 15 - } - } + offset: 15, + }, + }, }, modifiers: ['camel'], exp: undefined, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 21, line: 1, column: 22 }, - source: 'v-on:[a.b].camel' - } + source: 'v-on:[a.b].camel', + }, }) }) test('directive with no name', () => { @@ -1343,7 +1343,7 @@ describe('compiler: parse', () => { const ast = baseParse('
', { onError: err => { errorCode = err.code as number - } + }, }) const directive = (ast.children[0] as ElementNode).props[0] @@ -1355,8 +1355,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 7, line: 1, column: 8 }, - source: 'v-' - } + source: 'v-', + }, }) }) @@ -1378,14 +1378,14 @@ describe('compiler: parse', () => { start: { column: 7, line: 1, - offset: 6 + offset: 6, }, end: { column: 8, line: 1, - offset: 7 - } - } + offset: 7, + }, + }, }, modifiers: [], exp: { @@ -1397,14 +1397,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 8, line: 1, column: 9 }, end: { offset: 9, line: 1, column: 10 }, - source: 'b' - } + source: 'b', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 9, line: 1, column: 10 }, - source: ':a=b' - } + source: ':a=b', + }, }) }) @@ -1426,14 +1426,14 @@ describe('compiler: parse', () => { start: { column: 7, line: 1, - offset: 6 + offset: 6, }, end: { column: 8, line: 1, - offset: 7 - } - } + offset: 7, + }, + }, }, modifiers: ['prop'], exp: { @@ -1445,14 +1445,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 8, line: 1, column: 9 }, end: { offset: 9, line: 1, column: 10 }, - source: 'b' - } + source: 'b', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 9, line: 1, column: 10 }, - source: '.a=b' - } + source: '.a=b', + }, }) }) @@ -1474,14 +1474,14 @@ describe('compiler: parse', () => { start: { column: 7, line: 1, - offset: 6 + offset: 6, }, end: { column: 8, line: 1, - offset: 7 - } - } + offset: 7, + }, + }, }, modifiers: ['sync'], exp: { @@ -1493,14 +1493,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 13, line: 1, column: 14 }, end: { offset: 14, line: 1, column: 15 }, - source: 'b' - } + source: 'b', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 14, line: 1, column: 15 }, - source: ':a.sync=b' - } + source: ':a.sync=b', + }, }) }) @@ -1522,14 +1522,14 @@ describe('compiler: parse', () => { start: { column: 7, line: 1, - offset: 6 + offset: 6, }, end: { column: 8, line: 1, - offset: 7 - } - } + offset: 7, + }, + }, }, modifiers: [], exp: { @@ -1541,14 +1541,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 8, line: 1, column: 9 }, end: { offset: 9, line: 1, column: 10 }, - source: 'b' - } + source: 'b', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 9, line: 1, column: 10 }, - source: '@a=b' - } + source: '@a=b', + }, }) }) @@ -1570,14 +1570,14 @@ describe('compiler: parse', () => { start: { column: 7, line: 1, - offset: 6 + offset: 6, }, end: { column: 8, line: 1, - offset: 7 - } - } + offset: 7, + }, + }, }, modifiers: ['enter'], exp: { @@ -1589,14 +1589,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 14, line: 1, column: 15 }, end: { offset: 15, line: 1, column: 16 }, - source: 'b' - } + source: 'b', + }, }, loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 15, line: 1, column: 16 }, - source: '@a.enter=b' - } + source: '@a.enter=b', + }, }) }) @@ -1617,14 +1617,14 @@ describe('compiler: parse', () => { start: { column: 8, line: 1, - offset: 7 + offset: 7, }, end: { column: 9, line: 1, - offset: 8 - } - } + offset: 8, + }, + }, }, modifiers: [], exp: { @@ -1636,14 +1636,14 @@ describe('compiler: parse', () => { loc: { start: { offset: 10, line: 1, column: 11 }, end: { offset: 15, line: 1, column: 16 }, - source: '{ b }' - } + source: '{ b }', + }, }, loc: { start: { offset: 6, line: 1, column: 7 }, end: { offset: 16, line: 1, column: 17 }, - source: '#a="{ b }"' - } + source: '#a="{ b }"', + }, }) }) @@ -1665,22 +1665,22 @@ describe('compiler: parse', () => { start: { column: 14, line: 1, - offset: 13 + offset: 13, }, end: { column: 21, line: 1, - offset: 20 - } - } - } + offset: 20, + }, + }, + }, }) }) test('v-pre', () => { const ast = baseParse( `
{{ bar }}
\n` + - `
{{ bar }}
` + `
{{ bar }}
`, ) const divWithPre = ast.children[0] as ElementNode @@ -1690,29 +1690,29 @@ describe('compiler: parse', () => { name: `:id`, value: { type: NodeTypes.TEXT, - content: `foo` + content: `foo`, }, loc: { source: `:id="foo"`, start: { line: 1, - column: 12 + column: 12, }, end: { line: 1, - column: 21 - } - } - } + column: 21, + }, + }, + }, ]) expect(divWithPre.children[0]).toMatchObject({ type: NodeTypes.ELEMENT, tagType: ElementTypes.ELEMENT, - tag: `Comp` + tag: `Comp`, }) expect(divWithPre.children[1]).toMatchObject({ type: NodeTypes.TEXT, - content: `{{ bar }}` + content: `{{ bar }}`, }) // should not affect siblings after it @@ -1724,44 +1724,44 @@ describe('compiler: parse', () => { arg: { type: NodeTypes.SIMPLE_EXPRESSION, isStatic: true, - content: `id` + content: `id`, }, exp: { type: NodeTypes.SIMPLE_EXPRESSION, isStatic: false, - content: `foo` + content: `foo`, }, loc: { source: `:id="foo"`, start: { line: 2, - column: 6 + column: 6, }, end: { line: 2, - column: 15 - } - } - } + column: 15, + }, + }, + }, ]) expect(divWithoutPre.children[0]).toMatchObject({ type: NodeTypes.ELEMENT, tagType: ElementTypes.COMPONENT, - tag: `Comp` + tag: `Comp`, }) expect(divWithoutPre.children[1]).toMatchObject({ type: NodeTypes.INTERPOLATION, content: { type: NodeTypes.SIMPLE_EXPRESSION, content: `bar`, - isStatic: false - } + isStatic: false, + }, }) }) test('self-closing v-pre', () => { const ast = baseParse( - `
\n
{{ bar }}
` + `
\n
{{ bar }}
`, ) // should not affect siblings after it const divWithoutPre = ast.children[1] as ElementNode @@ -1772,38 +1772,38 @@ describe('compiler: parse', () => { arg: { type: NodeTypes.SIMPLE_EXPRESSION, isStatic: true, - content: `id` + content: `id`, }, exp: { type: NodeTypes.SIMPLE_EXPRESSION, isStatic: false, - content: `foo` + content: `foo`, }, loc: { source: `:id="foo"`, start: { line: 2, - column: 6 + column: 6, }, end: { line: 2, - column: 15 - } - } - } + column: 15, + }, + }, + }, ]) expect(divWithoutPre.children[0]).toMatchObject({ type: NodeTypes.ELEMENT, tagType: ElementTypes.COMPONENT, - tag: `Comp` + tag: `Comp`, }) expect(divWithoutPre.children[1]).toMatchObject({ type: NodeTypes.INTERPOLATION, content: { type: NodeTypes.SIMPLE_EXPRESSION, content: `bar`, - isStatic: false - } + isStatic: false, + }, }) }) @@ -1818,8 +1818,8 @@ describe('compiler: parse', () => { loc: { start: { offset: 5, line: 1, column: 6 }, end: { offset: 10, line: 1, column: 11 }, - source: 'hello' - } + source: 'hello', + }, }) }) }) @@ -1834,7 +1834,7 @@ describe('compiler: parse', () => { test('self closing multiple tag', () => { const ast = baseParse( `
\n` + - `

` + `

`, ) expect(ast).toMatchSnapshot() @@ -1849,7 +1849,7 @@ describe('compiler: parse', () => { `

\n` + `

\n` + ` \n` + - `

` + `
`, ) expect(ast).toMatchSnapshot() @@ -1857,14 +1857,14 @@ describe('compiler: parse', () => { expect(ast.children).toHaveLength(1) const el = ast.children[0] as any expect(el).toMatchObject({ - tag: 'div' + tag: 'div', }) expect(el.children).toHaveLength(2) expect(el.children[0]).toMatchObject({ - tag: 'p' + tag: 'p', }) expect(el.children[1]).toMatchObject({ - type: NodeTypes.COMMENT + type: NodeTypes.COMMENT, }) }) @@ -1875,7 +1875,7 @@ describe('compiler: parse', () => { const spy = vi.fn() const ast = baseParse(`
\n\n
\n`, { - onError: spy + onError: spy, }) expect(spy.mock.calls).toMatchObject([ @@ -1886,10 +1886,10 @@ describe('compiler: parse', () => { start: { offset: 6, line: 2, - column: 1 - } - } - } + column: 1, + }, + }, + }, ], [ { @@ -1898,11 +1898,11 @@ describe('compiler: parse', () => { start: { offset: 20, line: 4, - column: 1 - } - } - } - ] + column: 1, + }, + }, + }, + ], ]) expect(ast).toMatchSnapshot() @@ -1912,7 +1912,7 @@ describe('compiler: parse', () => { const [foo, bar, but, baz] = baseParse( ` foo - is {{ bar }} but {{ baz }}`.trim() + is {{ bar }} but {{ baz }}`.trim(), ).children let offset = 0 @@ -1955,7 +1955,7 @@ foo test('use the given map', () => { const ast: any = baseParse('&∪︀', { decodeEntities: text => text.replace('∪︀', '\u222A\uFE00'), - onError: () => {} // Ignore errors + onError: () => {}, // Ignore errors }) expect(ast.children.length).toBe(1) @@ -1968,7 +1968,7 @@ foo const parse = (content: string, options?: ParserOptions) => baseParse(content, { whitespace: 'condense', - ...options + ...options, }) it('should remove whitespaces at start/end inside an element', () => { @@ -2004,7 +2004,7 @@ foo expect(ast.children[0].type).toBe(NodeTypes.INTERPOLATION) expect(ast.children[1]).toMatchObject({ type: NodeTypes.TEXT, - content: ' ' + content: ' ', }) expect(ast.children[2].type).toBe(NodeTypes.INTERPOLATION) }) @@ -2015,7 +2015,7 @@ foo expect(ast.children[0].type).toBe(NodeTypes.COMMENT) expect(ast.children[1]).toMatchObject({ type: NodeTypes.TEXT, - content: ' ' + content: ' ', }) expect(ast.children[2].type).toBe(NodeTypes.INTERPOLATION) }) @@ -2028,7 +2028,7 @@ foo NodeTypes.TEXT, NodeTypes.ELEMENT, NodeTypes.TEXT, - NodeTypes.ELEMENT + NodeTypes.ELEMENT, ]) }) @@ -2039,7 +2039,7 @@ foo it('should remove leading newline character immediately following the pre element start tag', () => { const ast = baseParse(`
\n  foo  bar  
`, { - isPreTag: tag => tag === 'pre' + isPreTag: tag => tag === 'pre', }) expect(ast.children).toHaveLength(1) const preElement = ast.children[0] as ElementNode @@ -2049,18 +2049,18 @@ foo it('should NOT remove leading newline character immediately following child-tag of pre element', () => { const ast = baseParse(`
\n  foo  bar  
`, { - isPreTag: tag => tag === 'pre' + isPreTag: tag => tag === 'pre', }) const preElement = ast.children[0] as ElementNode expect(preElement.children).toHaveLength(2) expect((preElement.children[1] as TextNode).content).toBe( - `\n foo bar ` + `\n foo bar `, ) }) it('self-closing pre tag', () => { const ast = baseParse(`
\n  foo   bar`, {
-        isPreTag: tag => tag === 'pre'
+        isPreTag: tag => tag === 'pre',
       })
       const elementAfterPre = ast.children[1] as ElementNode
       // should not affect the  and condense its whitespace inside
@@ -2070,7 +2070,7 @@ foo
     it('should NOT condense whitespaces in RCDATA text mode', () => {
       const ast = baseParse(``, {
         getTextMode: ({ tag }) =>
-          tag === 'textarea' ? TextModes.RCDATA : TextModes.DATA
+          tag === 'textarea' ? TextModes.RCDATA : TextModes.DATA,
       })
       const preElement = ast.children[0] as ElementNode
       expect(preElement.children).toHaveLength(1)
@@ -2082,7 +2082,7 @@ foo
     const parse = (content: string, options?: ParserOptions) =>
       baseParse(content, {
         whitespace: 'preserve',
-        ...options
+        ...options,
       })
 
     it('should still remove whitespaces at start/end inside an element', () => {
@@ -2098,7 +2098,7 @@ foo
         NodeTypes.TEXT,
         NodeTypes.ELEMENT,
         NodeTypes.TEXT,
-        NodeTypes.ELEMENT
+        NodeTypes.ELEMENT,
       ])
     })
 
@@ -2110,7 +2110,7 @@ foo
         NodeTypes.TEXT,
         NodeTypes.COMMENT,
         NodeTypes.TEXT,
-        NodeTypes.ELEMENT
+        NodeTypes.ELEMENT,
       ])
     })
 
@@ -2122,7 +2122,7 @@ foo
         NodeTypes.TEXT,
         NodeTypes.COMMENT,
         NodeTypes.TEXT,
-        NodeTypes.ELEMENT
+        NodeTypes.ELEMENT,
       ])
     })
 
@@ -2132,7 +2132,7 @@ foo
       expect(ast.children[0].type).toBe(NodeTypes.INTERPOLATION)
       expect(ast.children[1]).toMatchObject({
         type: NodeTypes.TEXT,
-        content: ' '
+        content: ' ',
       })
       expect(ast.children[2].type).toBe(NodeTypes.INTERPOLATION)
     })
@@ -2145,7 +2145,7 @@ foo
         NodeTypes.TEXT,
         NodeTypes.ELEMENT,
         NodeTypes.TEXT,
-        NodeTypes.ELEMENT
+        NodeTypes.ELEMENT,
       ])
     })
 
@@ -2170,23 +2170,23 @@ foo
           errors: [
             {
               type: ErrorCodes.ABRUPT_CLOSING_OF_EMPTY_COMMENT,
-              loc: { offset: 10, line: 1, column: 11 }
-            }
-          ]
+              loc: { offset: 10, line: 1, column: 11 },
+            },
+          ],
         },
         {
           code: '',
           errors: [
             {
               type: ErrorCodes.ABRUPT_CLOSING_OF_EMPTY_COMMENT,
-              loc: { offset: 10, line: 1, column: 11 }
-            }
-          ]
+              loc: { offset: 10, line: 1, column: 11 },
+            },
+          ],
         },
         {
           code: '',
-          errors: []
-        }
+          errors: [],
+        },
       ],
       CDATA_IN_HTML_CONTENT: [
         {
@@ -2194,14 +2194,14 @@ foo
           errors: [
             {
               type: ErrorCodes.CDATA_IN_HTML_CONTENT,
-              loc: { offset: 10, line: 1, column: 11 }
-            }
-          ]
+              loc: { offset: 10, line: 1, column: 11 },
+            },
+          ],
         },
         {
           code: '',
-          errors: []
-        }
+          errors: [],
+        },
       ],
       DUPLICATE_ATTRIBUTE: [
         {
@@ -2209,10 +2209,10 @@ foo
           errors: [
             {
               type: ErrorCodes.DUPLICATE_ATTRIBUTE,
-              loc: { offset: 21, line: 1, column: 22 }
-            }
-          ]
-        }
+              loc: { offset: 21, line: 1, column: 22 },
+            },
+          ],
+        },
       ],
       END_TAG_WITH_ATTRIBUTES: [
         {
@@ -2220,10 +2220,10 @@ foo
           errors: [
             {
               type: ErrorCodes.END_TAG_WITH_ATTRIBUTES,
-              loc: { offset: 21, line: 1, column: 22 }
-            }
-          ]
-        }
+              loc: { offset: 21, line: 1, column: 22 },
+            },
+          ],
+        },
       ],
       END_TAG_WITH_TRAILING_SOLIDUS: [
         {
@@ -2231,10 +2231,10 @@ foo
           errors: [
             {
               type: ErrorCodes.END_TAG_WITH_TRAILING_SOLIDUS,
-              loc: { offset: 20, line: 1, column: 21 }
-            }
-          ]
-        }
+              loc: { offset: 20, line: 1, column: 21 },
+            },
+          ],
+        },
       ],
       EOF_BEFORE_TAG_NAME: [
         {
@@ -2242,27 +2242,27 @@ foo
           errors: [
             {
               type: ErrorCodes.EOF_BEFORE_TAG_NAME,
-              loc: { offset: 11, line: 1, column: 12 }
+              loc: { offset: 11, line: 1, column: 12 },
             },
             {
               type: ErrorCodes.X_MISSING_END_TAG,
-              loc: { offset: 0, line: 1, column: 1 }
-            }
-          ]
+              loc: { offset: 0, line: 1, column: 1 },
+            },
+          ],
         },
         {
           code: '
       `,
-      { prefixIdentifiers: true }
+      { prefixIdentifiers: true },
     )
     expect(slots).toMatchObject(
       createSlotMatcher({
@@ -389,7 +389,7 @@ describe('compiler: transform component slots', () => {
           type: NodeTypes.JS_FUNCTION_EXPRESSION,
           params: {
             type: NodeTypes.COMPOUND_EXPRESSION,
-            children: [`{ `, { content: `foo` }, ` }`]
+            children: [`{ `, { content: `foo` }, ` }`],
           },
           returns: [
             {
@@ -404,63 +404,63 @@ describe('compiler: transform component slots', () => {
                       type: NodeTypes.JS_FUNCTION_EXPRESSION,
                       params: {
                         type: NodeTypes.COMPOUND_EXPRESSION,
-                        children: [`{ `, { content: `bar` }, ` }`]
+                        children: [`{ `, { content: `bar` }, ` }`],
                       },
                       returns: [
                         {
                           type: NodeTypes.INTERPOLATION,
                           content: {
-                            content: `foo`
-                          }
+                            content: `foo`,
+                          },
                         },
                         {
                           type: NodeTypes.INTERPOLATION,
                           content: {
-                            content: `bar`
-                          }
+                            content: `bar`,
+                          },
                         },
                         {
                           type: NodeTypes.INTERPOLATION,
                           content: {
-                            content: `_ctx.baz`
-                          }
-                        }
-                      ]
-                    }
+                            content: `_ctx.baz`,
+                          },
+                        },
+                      ],
+                    },
                   },
-                  true
+                  true,
                 ),
                 // nested slot should be forced dynamic, since scope variables
                 // are not tracked as dependencies of the slot.
-                patchFlag: genFlagText(PatchFlags.DYNAMIC_SLOTS)
-              }
+                patchFlag: genFlagText(PatchFlags.DYNAMIC_SLOTS),
+              },
             },
             // test scope
             {
               type: NodeTypes.TEXT,
-              content: ` `
+              content: ` `,
             },
             {
               type: NodeTypes.INTERPOLATION,
               content: {
-                content: `foo`
-              }
+                content: `foo`,
+              },
             },
             {
               type: NodeTypes.INTERPOLATION,
               content: {
-                content: `_ctx.bar`
-              }
+                content: `_ctx.bar`,
+              },
             },
             {
               type: NodeTypes.INTERPOLATION,
               content: {
-                content: `_ctx.baz`
-              }
-            }
-          ]
-        }
-      })
+                content: `_ctx.baz`,
+              },
+            },
+          ],
+        },
+      }),
     )
     expect(generate(root, { prefixIdentifiers: true }).code).toMatchSnapshot()
   })
@@ -469,13 +469,13 @@ describe('compiler: transform component slots', () => {
     const { root } = parseWithSlots(
       `
foo -
` +
`, ) const div = ((root.children[0] as ForNode).children[0] as ElementNode) .codegenNode as any const comp = div.children[0] expect(comp.codegenNode.patchFlag).toBe( - genFlagText(PatchFlags.DYNAMIC_SLOTS) + genFlagText(PatchFlags.DYNAMIC_SLOTS), ) }) @@ -504,14 +504,14 @@ describe('compiler: transform component slots', () => { `
foo
`, - false + false, ) assertDynamicSlots( `
{{ i }}
`, - true + true, ) // reference the component's own slot variable should not force dynamic slots @@ -519,14 +519,14 @@ describe('compiler: transform component slots', () => { ` {{ bar }} `, - false + false, ) assertDynamicSlots( ` {{ foo }} `, - true + true, ) // #2564 @@ -534,14 +534,14 @@ describe('compiler: transform component slots', () => { `
`, - true + true, ) assertDynamicSlots( `
`, - false + false, ) }) @@ -549,14 +549,14 @@ describe('compiler: transform component slots', () => { const { root, slots } = parseWithSlots( ` - ` + `, ) expect(slots).toMatchObject({ type: NodeTypes.JS_CALL_EXPRESSION, callee: CREATE_SLOTS, arguments: [ createObjectMatcher({ - _: `[2 /* DYNAMIC */]` + _: `[2 /* DYNAMIC */]`, }), { type: NodeTypes.JS_ARRAY_EXPRESSION, @@ -568,21 +568,21 @@ describe('compiler: transform component slots', () => { name: `one`, fn: { type: NodeTypes.JS_FUNCTION_EXPRESSION, - returns: [{ type: NodeTypes.TEXT, content: `hello` }] + returns: [{ type: NodeTypes.TEXT, content: `hello` }], }, - key: `0` + key: `0`, }), alternate: { content: `undefined`, - isStatic: false - } - } - ] - } - ] + isStatic: false, + }, + }, + ], + }, + ], }) expect((root as any).children[0].codegenNode.patchFlag).toMatch( - PatchFlags.DYNAMIC_SLOTS + '' + PatchFlags.DYNAMIC_SLOTS + '', ) expect(generate(root).code).toMatchSnapshot() }) @@ -592,14 +592,14 @@ describe('compiler: transform component slots', () => { ` `, - { prefixIdentifiers: true } + { prefixIdentifiers: true }, ) expect(slots).toMatchObject({ type: NodeTypes.JS_CALL_EXPRESSION, callee: CREATE_SLOTS, arguments: [ createObjectMatcher({ - _: `[2 /* DYNAMIC */]` + _: `[2 /* DYNAMIC */]`, }), { type: NodeTypes.JS_ARRAY_EXPRESSION, @@ -615,23 +615,23 @@ describe('compiler: transform component slots', () => { returns: [ { type: NodeTypes.INTERPOLATION, - content: { content: `props` } - } - ] + content: { content: `props` }, + }, + ], }, - key: `0` + key: `0`, }), alternate: { content: `undefined`, - isStatic: false - } - } - ] - } - ] + isStatic: false, + }, + }, + ], + }, + ], }) expect((root as any).children[0].codegenNode.patchFlag).toMatch( - PatchFlags.DYNAMIC_SLOTS + '' + PatchFlags.DYNAMIC_SLOTS + '', ) expect(generate(root, { prefixIdentifiers: true }).code).toMatchSnapshot() }) @@ -642,14 +642,14 @@ describe('compiler: transform component slots', () => { - ` + `, ) expect(slots).toMatchObject({ type: NodeTypes.JS_CALL_EXPRESSION, callee: CREATE_SLOTS, arguments: [ createObjectMatcher({ - _: `[2 /* DYNAMIC */]` + _: `[2 /* DYNAMIC */]`, }), { type: NodeTypes.JS_ARRAY_EXPRESSION, @@ -662,9 +662,9 @@ describe('compiler: transform component slots', () => { fn: { type: NodeTypes.JS_FUNCTION_EXPRESSION, params: undefined, - returns: [{ type: NodeTypes.TEXT, content: `foo` }] + returns: [{ type: NodeTypes.TEXT, content: `foo` }], }, - key: `0` + key: `0`, }), alternate: { type: NodeTypes.JS_CONDITIONAL_EXPRESSION, @@ -674,27 +674,27 @@ describe('compiler: transform component slots', () => { fn: { type: NodeTypes.JS_FUNCTION_EXPRESSION, params: { content: `props` }, - returns: [{ type: NodeTypes.TEXT, content: `bar` }] + returns: [{ type: NodeTypes.TEXT, content: `bar` }], }, - key: `1` + key: `1`, }), alternate: createObjectMatcher({ name: `one`, fn: { type: NodeTypes.JS_FUNCTION_EXPRESSION, params: undefined, - returns: [{ type: NodeTypes.TEXT, content: `baz` }] + returns: [{ type: NodeTypes.TEXT, content: `baz` }], }, - key: `2` - }) - } - } - ] - } - ] + key: `2`, + }), + }, + }, + ], + }, + ], }) expect((root as any).children[0].codegenNode.patchFlag).toMatch( - PatchFlags.DYNAMIC_SLOTS + '' + PatchFlags.DYNAMIC_SLOTS + '', ) expect(generate(root).code).toMatchSnapshot() }) @@ -704,14 +704,14 @@ describe('compiler: transform component slots', () => { ` `, - { prefixIdentifiers: true } + { prefixIdentifiers: true }, ) expect(slots).toMatchObject({ type: NodeTypes.JS_CALL_EXPRESSION, callee: CREATE_SLOTS, arguments: [ createObjectMatcher({ - _: `[2 /* DYNAMIC */]` + _: `[2 /* DYNAMIC */]`, }), { type: NodeTypes.JS_ARRAY_EXPRESSION, @@ -731,20 +731,20 @@ describe('compiler: transform component slots', () => { returns: [ { type: NodeTypes.INTERPOLATION, - content: { content: `name`, isStatic: false } - } - ] - } - }) - } - ] - } - ] - } - ] + content: { content: `name`, isStatic: false }, + }, + ], + }, + }), + }, + ], + }, + ], + }, + ], }) expect((root as any).children[0].codegenNode.patchFlag).toMatch( - PatchFlags.DYNAMIC_SLOTS + '' + PatchFlags.DYNAMIC_SLOTS + '', ) expect(generate(root, { prefixIdentifiers: true }).code).toMatchSnapshot() }) @@ -755,13 +755,13 @@ describe('compiler: transform component slots', () => { properties: [ { key: { content: `default` }, - value: { type: NodeTypes.JS_FUNCTION_EXPRESSION } + value: { type: NodeTypes.JS_FUNCTION_EXPRESSION }, }, { key: { content: `_` }, - value: { content: `3 /* FORWARDED */` } - } - ] + value: { content: `3 /* FORWARDED */` }, + }, + ], } test(' tag only', () => { const { slots } = parseWithSlots(``) @@ -780,7 +780,7 @@ describe('compiler: transform component slots', () => { test(' tag w/ template', () => { const { slots } = parseWithSlots( - `` + ``, ) expect(slots).toMatchObject(toMatch) }) @@ -793,7 +793,7 @@ describe('compiler: transform component slots', () => { // # fix: #6900 test('consistent behavior of @xxx:modelValue and @xxx:model-value', () => { const { root: rootUpper } = parseWithSlots( - `
` + `
`, ) const slotNodeUpper = (rootUpper.codegenNode! as VNodeCall) .children as ElementNode[] @@ -805,19 +805,19 @@ describe('compiler: transform component slots', () => { { key: { type: NodeTypes.SIMPLE_EXPRESSION, - content: 'onFoo:modelValue' + content: 'onFoo:modelValue', }, value: { type: NodeTypes.SIMPLE_EXPRESSION, content: `handler`, - isStatic: false - } - } - ] + isStatic: false, + }, + }, + ], }) const { root } = parseWithSlots( - `
` + `
`, ) const slotNode = (root.codegenNode! as VNodeCall) .children as ElementNode[] @@ -828,15 +828,15 @@ describe('compiler: transform component slots', () => { { key: { type: NodeTypes.SIMPLE_EXPRESSION, - content: 'onFoo:modelValue' + content: 'onFoo:modelValue', }, value: { type: NodeTypes.SIMPLE_EXPRESSION, content: `handler`, - isStatic: false - } - } - ] + isStatic: false, + }, + }, + ], }) }) }) @@ -854,14 +854,14 @@ describe('compiler: transform component slots', () => { start: { offset: index, line: 1, - column: index + 1 + column: index + 1, }, end: { offset: index + 3, line: 1, - column: index + 4 - } - } + column: index + 4, + }, + }, }) }) @@ -877,14 +877,14 @@ describe('compiler: transform component slots', () => { start: { offset: index, line: 1, - column: index + 1 + column: index + 1, }, end: { offset: index + 4, line: 1, - column: index + 5 - } - } + column: index + 5, + }, + }, }) }) @@ -900,14 +900,14 @@ describe('compiler: transform component slots', () => { start: { offset: index, line: 1, - column: index + 1 + column: index + 1, }, end: { offset: index + 4, line: 1, - column: index + 5 - } - } + column: index + 5, + }, + }, }) }) @@ -923,14 +923,14 @@ describe('compiler: transform component slots', () => { start: { offset: index, line: 1, - column: index + 1 + column: index + 1, }, end: { offset: index + 6, line: 1, - column: index + 7 - } - } + column: index + 7, + }, + }, }) }) }) @@ -944,11 +944,11 @@ describe('compiler: transform component slots', () => { ` const { root } = parseWithSlots(source, { - whitespace: 'preserve' + whitespace: 'preserve', }) expect( - `Extraneous children found when component already has explicitly named default slot.` + `Extraneous children found when component already has explicitly named default slot.`, ).not.toHaveBeenWarned() expect(generate(root, { prefixIdentifiers: true }).code).toMatchSnapshot() }) @@ -961,11 +961,11 @@ describe('compiler: transform component slots', () => { ` const { root } = parseWithSlots(source, { - whitespace: 'preserve' + whitespace: 'preserve', }) expect( - `Extraneous children found when component already has explicitly named default slot.` + `Extraneous children found when component already has explicitly named default slot.`, ).not.toHaveBeenWarned() expect(generate(root, { prefixIdentifiers: true }).code).toMatchSnapshot() }) @@ -978,7 +978,7 @@ describe('compiler: transform component slots', () => { ` const { root } = parseWithSlots(source, { - whitespace: 'preserve' + whitespace: 'preserve', }) // slots is vnodeCall's children as an ObjectExpression @@ -988,7 +988,7 @@ describe('compiler: transform component slots', () => { // should be: header, footer, _ (no default) expect(slots.length).toBe(3) expect( - slots.some(p => (p.key as SimpleExpressionNode).content === 'default') + slots.some(p => (p.key as SimpleExpressionNode).content === 'default'), ).toBe(false) expect(generate(root, { prefixIdentifiers: true }).code).toMatchSnapshot() diff --git a/packages/compiler-core/__tests__/utils.spec.ts b/packages/compiler-core/__tests__/utils.spec.ts index 45fa46fea7a..b88e7f9a19b 100644 --- a/packages/compiler-core/__tests__/utils.spec.ts +++ b/packages/compiler-core/__tests__/utils.spec.ts @@ -5,7 +5,7 @@ import { advancePositionWithClone, isMemberExpressionNode, isMemberExpressionBrowser, - toValidAssetId + toValidAssetId, } from '../src/utils' function p(line: number, column: number, offset: number): Position { @@ -45,7 +45,7 @@ describe('getInnerRange', () => { const loc1 = { source: 'foo\nbar\nbaz', start: p(1, 1, 0), - end: p(3, 3, 11) + end: p(3, 3, 11), } test('at start', () => { @@ -131,6 +131,6 @@ test('toValidAssetId', () => { expect(toValidAssetId('div', 'filter')).toBe('_filter_div') expect(toValidAssetId('foo-bar', 'component')).toBe('_component_foo_bar') expect(toValidAssetId('test-测试-1', 'component')).toBe( - '_component_test_2797935797_1' + '_component_test_2797935797_1', ) }) diff --git a/packages/compiler-core/src/ast.ts b/packages/compiler-core/src/ast.ts index 515083c336a..3b931f11e3b 100644 --- a/packages/compiler-core/src/ast.ts +++ b/packages/compiler-core/src/ast.ts @@ -11,7 +11,7 @@ import { CREATE_VNODE, CREATE_ELEMENT_VNODE, CREATE_BLOCK, - CREATE_ELEMENT_BLOCK + CREATE_ELEMENT_BLOCK, } from './runtimeHelpers' import { PropsExpression } from './transforms/transformElement' import { ImportItem, TransformContext } from './transform' @@ -22,7 +22,7 @@ import { ImportItem, TransformContext } from './transform' export type Namespace = number export const enum Namespaces { - HTML + HTML, } export const enum NodeTypes { @@ -56,14 +56,14 @@ export const enum NodeTypes { JS_IF_STATEMENT, JS_ASSIGNMENT_EXPRESSION, JS_SEQUENCE_EXPRESSION, - JS_RETURN_STATEMENT + JS_RETURN_STATEMENT, } export const enum ElementTypes { ELEMENT, COMPONENT, SLOT, - TEMPLATE + TEMPLATE, } export interface Node { @@ -206,7 +206,7 @@ export const enum ConstantTypes { NOT_CONSTANT = 0, CAN_SKIP_PATCH, CAN_HOIST, - CAN_STRINGIFY + CAN_STRINGIFY, } export interface SimpleExpressionNode extends Node { @@ -462,7 +462,7 @@ export interface RenderSlotCall extends CallExpression { string, string | ExpressionNode, PropsExpression | '{}', - TemplateChildNode[] + TemplateChildNode[], ] } @@ -549,12 +549,12 @@ export interface ForIteratorExpression extends FunctionExpression { export const locStub: SourceLocation = { source: '', start: { line: 1, column: 1, offset: 0 }, - end: { line: 1, column: 1, offset: 0 } + end: { line: 1, column: 1, offset: 0 }, } export function createRoot( children: TemplateChildNode[], - loc = locStub + loc = locStub, ): RootNode { return { type: NodeTypes.ROOT, @@ -567,7 +567,7 @@ export function createRoot( cached: 0, temps: 0, codegenNode: undefined, - loc + loc, } } @@ -582,7 +582,7 @@ export function createVNodeCall( isBlock: VNodeCall['isBlock'] = false, disableTracking: VNodeCall['disableTracking'] = false, isComponent: VNodeCall['isComponent'] = false, - loc = locStub + loc = locStub, ): VNodeCall { if (context) { if (isBlock) { @@ -607,41 +607,41 @@ export function createVNodeCall( isBlock, disableTracking, isComponent, - loc + loc, } } export function createArrayExpression( elements: ArrayExpression['elements'], - loc: SourceLocation = locStub + loc: SourceLocation = locStub, ): ArrayExpression { return { type: NodeTypes.JS_ARRAY_EXPRESSION, loc, - elements + elements, } } export function createObjectExpression( properties: ObjectExpression['properties'], - loc: SourceLocation = locStub + loc: SourceLocation = locStub, ): ObjectExpression { return { type: NodeTypes.JS_OBJECT_EXPRESSION, loc, - properties + properties, } } export function createObjectProperty( key: Property['key'] | string, - value: Property['value'] + value: Property['value'], ): Property { return { type: NodeTypes.JS_PROPERTY, loc: locStub, key: isString(key) ? createSimpleExpression(key, true) : key, - value + value, } } @@ -649,38 +649,38 @@ export function createSimpleExpression( content: SimpleExpressionNode['content'], isStatic: SimpleExpressionNode['isStatic'] = false, loc: SourceLocation = locStub, - constType: ConstantTypes = ConstantTypes.NOT_CONSTANT + constType: ConstantTypes = ConstantTypes.NOT_CONSTANT, ): SimpleExpressionNode { return { type: NodeTypes.SIMPLE_EXPRESSION, loc, content, isStatic, - constType: isStatic ? ConstantTypes.CAN_STRINGIFY : constType + constType: isStatic ? ConstantTypes.CAN_STRINGIFY : constType, } } export function createInterpolation( content: InterpolationNode['content'] | string, - loc: SourceLocation + loc: SourceLocation, ): InterpolationNode { return { type: NodeTypes.INTERPOLATION, loc, content: isString(content) ? createSimpleExpression(content, false, loc) - : content + : content, } } export function createCompoundExpression( children: CompoundExpressionNode['children'], - loc: SourceLocation = locStub + loc: SourceLocation = locStub, ): CompoundExpressionNode { return { type: NodeTypes.COMPOUND_EXPRESSION, loc, - children + children, } } @@ -691,13 +691,13 @@ type InferCodegenNodeType = T extends typeof RENDER_SLOT export function createCallExpression( callee: T, args: CallExpression['arguments'] = [], - loc: SourceLocation = locStub + loc: SourceLocation = locStub, ): InferCodegenNodeType { return { type: NodeTypes.JS_CALL_EXPRESSION, loc, callee, - arguments: args + arguments: args, } as InferCodegenNodeType } @@ -706,7 +706,7 @@ export function createFunctionExpression( returns: FunctionExpression['returns'] = undefined, newline: boolean = false, isSlot: boolean = false, - loc: SourceLocation = locStub + loc: SourceLocation = locStub, ): FunctionExpression { return { type: NodeTypes.JS_FUNCTION_EXPRESSION, @@ -714,7 +714,7 @@ export function createFunctionExpression( returns, newline, isSlot, - loc + loc, } } @@ -722,7 +722,7 @@ export function createConditionalExpression( test: ConditionalExpression['test'], consequent: ConditionalExpression['consequent'], alternate: ConditionalExpression['alternate'], - newline = true + newline = true, ): ConditionalExpression { return { type: NodeTypes.JS_CONDITIONAL_EXPRESSION, @@ -730,87 +730,87 @@ export function createConditionalExpression( consequent, alternate, newline, - loc: locStub + loc: locStub, } } export function createCacheExpression( index: number, value: JSChildNode, - isVNode: boolean = false + isVNode: boolean = false, ): CacheExpression { return { type: NodeTypes.JS_CACHE_EXPRESSION, index, value, isVNode, - loc: locStub + loc: locStub, } } export function createBlockStatement( - body: BlockStatement['body'] + body: BlockStatement['body'], ): BlockStatement { return { type: NodeTypes.JS_BLOCK_STATEMENT, body, - loc: locStub + loc: locStub, } } export function createTemplateLiteral( - elements: TemplateLiteral['elements'] + elements: TemplateLiteral['elements'], ): TemplateLiteral { return { type: NodeTypes.JS_TEMPLATE_LITERAL, elements, - loc: locStub + loc: locStub, } } export function createIfStatement( test: IfStatement['test'], consequent: IfStatement['consequent'], - alternate?: IfStatement['alternate'] + alternate?: IfStatement['alternate'], ): IfStatement { return { type: NodeTypes.JS_IF_STATEMENT, test, consequent, alternate, - loc: locStub + loc: locStub, } } export function createAssignmentExpression( left: AssignmentExpression['left'], - right: AssignmentExpression['right'] + right: AssignmentExpression['right'], ): AssignmentExpression { return { type: NodeTypes.JS_ASSIGNMENT_EXPRESSION, left, right, - loc: locStub + loc: locStub, } } export function createSequenceExpression( - expressions: SequenceExpression['expressions'] + expressions: SequenceExpression['expressions'], ): SequenceExpression { return { type: NodeTypes.JS_SEQUENCE_EXPRESSION, expressions, - loc: locStub + loc: locStub, } } export function createReturnStatement( - returns: ReturnStatement['returns'] + returns: ReturnStatement['returns'], ): ReturnStatement { return { type: NodeTypes.JS_RETURN_STATEMENT, returns, - loc: locStub + loc: locStub, } } @@ -824,7 +824,7 @@ export function getVNodeBlockHelper(ssr: boolean, isComponent: boolean) { export function convertToBlock( node: VNodeCall, - { helper, removeHelper, inSSR }: TransformContext + { helper, removeHelper, inSSR }: TransformContext, ) { if (!node.isBlock) { node.isBlock = true diff --git a/packages/compiler-core/src/babelUtils.ts b/packages/compiler-core/src/babelUtils.ts index b52ce28990a..a16eab536b5 100644 --- a/packages/compiler-core/src/babelUtils.ts +++ b/packages/compiler-core/src/babelUtils.ts @@ -6,7 +6,7 @@ import type { Function, ObjectProperty, BlockStatement, - Program + Program, } from '@babel/types' import { walk } from 'estree-walker' @@ -17,11 +17,11 @@ export function walkIdentifiers( parent: Node, parentStack: Node[], isReference: boolean, - isLocal: boolean + isLocal: boolean, ) => void, includeAll = false, parentStack: Node[] = [], - knownIds: Record = Object.create(null) + knownIds: Record = Object.create(null), ) { if (__BROWSER__) { return @@ -61,7 +61,7 @@ export function walkIdentifiers( } else if (node.type === 'BlockStatement') { // #3445 record block-level local variables walkBlockDeclarations(node, id => - markScopeIdentifier(node, id, knownIds) + markScopeIdentifier(node, id, knownIds), ) } }, @@ -75,14 +75,14 @@ export function walkIdentifiers( } } } - } + }, }) } export function isReferencedIdentifier( id: Identifier, parent: Node | null, - parentStack: Node[] + parentStack: Node[], ) { if (__BROWSER__) { return false @@ -117,7 +117,7 @@ export function isReferencedIdentifier( export function isInDestructureAssignment( parent: Node, - parentStack: Node[] + parentStack: Node[], ): boolean { if ( parent && @@ -138,7 +138,7 @@ export function isInDestructureAssignment( export function walkFunctionParams( node: Function, - onIdent: (id: Identifier) => void + onIdent: (id: Identifier) => void, ) { for (const p of node.params) { for (const id of extractIdentifiers(p)) { @@ -149,7 +149,7 @@ export function walkFunctionParams( export function walkBlockDeclarations( block: BlockStatement | Program, - onIdent: (node: Identifier) => void + onIdent: (node: Identifier) => void, ) { for (const stmt of block.body) { if (stmt.type === 'VariableDeclaration') { @@ -171,7 +171,7 @@ export function walkBlockDeclarations( export function extractIdentifiers( param: Node, - nodes: Identifier[] = [] + nodes: Identifier[] = [], ): Identifier[] { switch (param.type) { case 'Identifier': @@ -217,7 +217,7 @@ export function extractIdentifiers( function markScopeIdentifier( node: Node & { scopeIds?: Set }, child: Identifier, - knownIds: Record + knownIds: Record, ) { const { name } = child if (node.scopeIds && node.scopeIds.has(name)) { @@ -426,5 +426,5 @@ export const TS_NODE_TYPES = [ 'TSTypeAssertion', // (foo) 'TSNonNullExpression', // foo! 'TSInstantiationExpression', // foo - 'TSSatisfiesExpression' // foo satisfies T + 'TSSatisfiesExpression', // foo satisfies T ] diff --git a/packages/compiler-core/src/codegen.ts b/packages/compiler-core/src/codegen.ts index 2b88ab0cfbd..3208f8b1949 100644 --- a/packages/compiler-core/src/codegen.ts +++ b/packages/compiler-core/src/codegen.ts @@ -26,14 +26,14 @@ import { VNodeCall, SequenceExpression, getVNodeBlockHelper, - getVNodeHelper + getVNodeHelper, } from './ast' import { SourceMapGenerator, RawSourceMap } from 'source-map-js' import { advancePositionWithMutation, assert, isSimpleIdentifier, - toValidAssetId + toValidAssetId, } from './utils' import { isString, isArray, isSymbol } from '@vue/shared' import { @@ -52,7 +52,7 @@ import { OPEN_BLOCK, CREATE_STATIC, WITH_CTX, - RESOLVE_FILTER + RESOLVE_FILTER, } from './runtimeHelpers' import { ImportItem } from './transform' @@ -100,8 +100,8 @@ function createCodegenContext( ssrRuntimeModuleName = 'vue/server-renderer', ssr = false, isTS = false, - inSSR = false - }: CodegenOptions + inSSR = false, + }: CodegenOptions, ): CodegenContext { const context: CodegenContext = { mode, @@ -158,7 +158,7 @@ function createCodegenContext( }, newline() { newline(context.indentLevel) - } + }, } function newline(n: number) { @@ -171,12 +171,12 @@ function createCodegenContext( source: context.filename, original: { line: loc.line, - column: loc.column - 1 // source-map column is 0 based + column: loc.column - 1, // source-map column is 0 based }, generated: { line: context.line, - column: context.column - 1 - } + column: context.column - 1, + }, }) } @@ -193,7 +193,7 @@ export function generate( ast: RootNode, options: CodegenOptions & { onContextCreated?: (context: CodegenContext) => void - } = {} + } = {}, ): CodegenResult { const context = createCodegenContext(ast, options) if (options.onContextCreated) options.onContextCreated(context) @@ -205,7 +205,7 @@ export function generate( deindent, newline, scopeId, - ssr + ssr, } = context const helpers = Array.from(ast.helpers) @@ -309,7 +309,7 @@ export function generate( code: context.code, preamble: isSetupInlined ? preambleContext.code : ``, // SourceMapGenerator does have toJSON() method but it's not in the types - map: context.map ? (context.map as any).toJSON() : undefined + map: context.map ? (context.map as any).toJSON() : undefined, } } @@ -321,7 +321,7 @@ function genFunctionPreamble(ast: RootNode, context: CodegenContext) { newline, runtimeModuleName, runtimeGlobalName, - ssrRuntimeModuleName + ssrRuntimeModuleName, } = context const VueBinding = !__BROWSER__ && ssr @@ -348,7 +348,7 @@ function genFunctionPreamble(ast: RootNode, context: CodegenContext) { CREATE_ELEMENT_VNODE, CREATE_COMMENT, CREATE_TEXT, - CREATE_STATIC + CREATE_STATIC, ] .filter(helper => helpers.includes(helper)) .map(aliasHelper) @@ -363,7 +363,7 @@ function genFunctionPreamble(ast: RootNode, context: CodegenContext) { push( `const { ${ast.ssrHelpers .map(aliasHelper) - .join(', ')} } = require("${ssrRuntimeModuleName}")\n` + .join(', ')} } = require("${ssrRuntimeModuleName}")\n`, ) } genHoists(ast.hoists, context) @@ -375,14 +375,14 @@ function genModulePreamble( ast: RootNode, context: CodegenContext, genScopeId: boolean, - inline?: boolean + inline?: boolean, ) { const { push, newline, optimizeImports, runtimeModuleName, - ssrRuntimeModuleName + ssrRuntimeModuleName, } = context if (genScopeId && ast.hoists.length) { @@ -402,18 +402,18 @@ function genModulePreamble( push( `import { ${helpers .map(s => helperNameMap[s]) - .join(', ')} } from ${JSON.stringify(runtimeModuleName)}\n` + .join(', ')} } from ${JSON.stringify(runtimeModuleName)}\n`, ) push( `\n// Binding optimization for webpack code-split\nconst ${helpers .map(s => `_${helperNameMap[s]} = ${helperNameMap[s]}`) - .join(', ')}\n` + .join(', ')}\n`, ) } else { push( `import { ${helpers .map(s => `${helperNameMap[s]} as _${helperNameMap[s]}`) - .join(', ')} } from ${JSON.stringify(runtimeModuleName)}\n` + .join(', ')} } from ${JSON.stringify(runtimeModuleName)}\n`, ) } } @@ -422,7 +422,7 @@ function genModulePreamble( push( `import { ${ast.ssrHelpers .map(s => `${helperNameMap[s]} as _${helperNameMap[s]}`) - .join(', ')} } from "${ssrRuntimeModuleName}"\n` + .join(', ')} } from "${ssrRuntimeModuleName}"\n`, ) } @@ -442,14 +442,14 @@ function genModulePreamble( function genAssets( assets: string[], type: 'component' | 'directive' | 'filter', - { helper, push, newline, isTS }: CodegenContext + { helper, push, newline, isTS }: CodegenContext, ) { const resolver = helper( __COMPAT__ && type === 'filter' ? RESOLVE_FILTER : type === 'component' ? RESOLVE_COMPONENT - : RESOLVE_DIRECTIVE + : RESOLVE_DIRECTIVE, ) for (let i = 0; i < assets.length; i++) { let id = assets[i] @@ -461,7 +461,7 @@ function genAssets( push( `const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${ maybeSelfReference ? `, true` : `` - })${isTS ? `!` : ``}` + })${isTS ? `!` : ``}`, ) if (i < assets.length - 1) { newline() @@ -482,8 +482,8 @@ function genHoists(hoists: (JSChildNode | null)[], context: CodegenContext) { if (genScopeId) { push( `const _withScopeId = n => (${helper( - PUSH_SCOPE_ID - )}("${scopeId}"),n=n(),${helper(POP_SCOPE_ID)}(),n)` + PUSH_SCOPE_ID, + )}("${scopeId}"),n=n(),${helper(POP_SCOPE_ID)}(),n)`, ) newline() } @@ -495,7 +495,7 @@ function genHoists(hoists: (JSChildNode | null)[], context: CodegenContext) { push( `const _hoisted_${i + 1} = ${ needScopeIdWrapper ? `${PURE_ANNOTATION} _withScopeId(() => ` : `` - }` + }`, ) genNode(exp, context) if (needScopeIdWrapper) { @@ -532,7 +532,7 @@ function isText(n: string | CodegenNode) { function genNodeListAsArray( nodes: (string | CodegenNode | TemplateChildNode[])[], - context: CodegenContext + context: CodegenContext, ) { const multilines = nodes.length > 3 || @@ -548,7 +548,7 @@ function genNodeList( nodes: (string | symbol | CodegenNode | TemplateChildNode[])[], context: CodegenContext, multilines: boolean = false, - comma: boolean = true + comma: boolean = true, ) { const { push, newline } = context for (let i = 0; i < nodes.length; i++) { @@ -588,7 +588,7 @@ function genNode(node: CodegenNode | symbol | string, context: CodegenContext) { assert( node.codegenNode != null, `Codegen node is missing for element/if/for node. ` + - `Apply appropriate transforms first.` + `Apply appropriate transforms first.`, ) genNode(node.codegenNode!, context) break @@ -669,7 +669,7 @@ function genNode(node: CodegenNode | symbol | string, context: CodegenContext) { function genText( node: TextNode | SimpleExpressionNode, - context: CodegenContext + context: CodegenContext, ) { context.push(JSON.stringify(node.content), node) } @@ -689,7 +689,7 @@ function genInterpolation(node: InterpolationNode, context: CodegenContext) { function genCompoundExpression( node: CompoundExpressionNode, - context: CodegenContext + context: CodegenContext, ) { for (let i = 0; i < node.children!.length; i++) { const child = node.children![i] @@ -703,7 +703,7 @@ function genCompoundExpression( function genExpressionAsPropertyKey( node: ExpressionNode, - context: CodegenContext + context: CodegenContext, ) { const { push } = context if (node.type === NodeTypes.COMPOUND_EXPRESSION) { @@ -740,7 +740,7 @@ function genVNodeCall(node: VNodeCall, context: CodegenContext) { directives, isBlock, disableTracking, - isComponent + isComponent, } = node if (directives) { push(helper(WITH_DIRECTIVES) + `(`) @@ -757,7 +757,7 @@ function genVNodeCall(node: VNodeCall, context: CodegenContext) { push(helper(callHelper) + `(`, node) genNodeList( genNullableArgs([tag, props, children, patchFlag, dynamicProps]), - context + context, ) push(`)`) if (isBlock) { @@ -826,7 +826,7 @@ function genArrayExpression(node: ArrayExpression, context: CodegenContext) { function genFunctionExpression( node: FunctionExpression, - context: CodegenContext + context: CodegenContext, ) { const { push, indent, deindent } = context const { params, returns, body, newline, isSlot } = node @@ -871,7 +871,7 @@ function genFunctionExpression( function genConditionalExpression( node: ConditionalExpression, - context: CodegenContext + context: CodegenContext, ) { const { test, consequent, alternate, newline: needNewline } = node const { push, indent, deindent, newline } = context @@ -972,7 +972,7 @@ function genIfStatement(node: IfStatement, context: CodegenContext) { function genAssignmentExpression( node: AssignmentExpression, - context: CodegenContext + context: CodegenContext, ) { genNode(node.left, context) context.push(` = `) @@ -981,7 +981,7 @@ function genAssignmentExpression( function genSequenceExpression( node: SequenceExpression, - context: CodegenContext + context: CodegenContext, ) { context.push(`(`) genNodeList(node.expressions, context) @@ -990,7 +990,7 @@ function genSequenceExpression( function genReturnStatement( { returns }: ReturnStatement, - context: CodegenContext + context: CodegenContext, ) { context.push(`return `) if (isArray(returns)) { diff --git a/packages/compiler-core/src/compat/compatConfig.ts b/packages/compiler-core/src/compat/compatConfig.ts index dcb304263b4..6ff9b47c596 100644 --- a/packages/compiler-core/src/compat/compatConfig.ts +++ b/packages/compiler-core/src/compat/compatConfig.ts @@ -22,7 +22,7 @@ export const enum CompilerDeprecationTypes { COMPILER_V_IF_V_FOR_PRECEDENCE = 'COMPILER_V_IF_V_FOR_PRECEDENCE', COMPILER_NATIVE_TEMPLATE = 'COMPILER_NATIVE_TEMPLATE', COMPILER_INLINE_TEMPLATE = 'COMPILER_INLINE_TEMPLATE', - COMPILER_FILTERS = 'COMPILER_FILTER' + COMPILER_FILTERS = 'COMPILER_FILTER', } type DeprecationData = { @@ -36,7 +36,7 @@ const deprecationData: Record = { `Platform-native elements with "is" prop will no longer be ` + `treated as components in Vue 3 unless the "is" value is explicitly ` + `prefixed with "vue:".`, - link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html` + link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`, }, [CompilerDeprecationTypes.COMPILER_V_BIND_SYNC]: { @@ -44,13 +44,13 @@ const deprecationData: Record = { `.sync modifier for v-bind has been removed. Use v-model with ` + `argument instead. \`v-bind:${key}.sync\` should be changed to ` + `\`v-model:${key}\`.`, - link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html` + link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html`, }, [CompilerDeprecationTypes.COMPILER_V_BIND_PROP]: { message: `.prop modifier for v-bind has been removed and no longer necessary. ` + - `Vue 3 will automatically set a binding as DOM property when appropriate.` + `Vue 3 will automatically set a binding as DOM property when appropriate.`, }, [CompilerDeprecationTypes.COMPILER_V_BIND_OBJECT_ORDER]: { @@ -60,12 +60,12 @@ const deprecationData: Record = { `that appears before v-bind in the case of conflict. ` + `To retain 2.x behavior, move v-bind to make it the first attribute. ` + `You can also suppress this warning if the usage is intended.`, - link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html` + link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html`, }, [CompilerDeprecationTypes.COMPILER_V_ON_NATIVE]: { message: `.native modifier for v-on has been removed as is no longer necessary.`, - link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html` + link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`, }, [CompilerDeprecationTypes.COMPILER_V_IF_V_FOR_PRECEDENCE]: { @@ -75,18 +75,18 @@ const deprecationData: Record = { `access to v-for scope variables. It is best to avoid the ambiguity ` + `with `, - { filename: 'example.vue', sourceMap: true } + { filename: 'example.vue', sourceMap: true }, ).descriptor.template as SFCTemplateBlock const result = compile({ filename: 'example.vue', source: template.content, - preprocessLang: template.lang + preprocessLang: template.lang, }) expect(result.errors.length).toBe(0) @@ -63,13 +63,13 @@ body test('warn missing preprocessor', () => { const template = parse(`\n`, { filename: 'example.vue', - sourceMap: true + sourceMap: true, }).descriptor.template as SFCTemplateBlock const result = compile({ filename: 'example.vue', source: template.content, - preprocessLang: template.lang + preprocessLang: template.lang, }) expect(result.errors.length).toBe(1) @@ -81,8 +81,8 @@ test('transform asset url options', () => { const { code: code1 } = compile({ ...input, transformAssetUrls: { - tags: { foo: ['bar'] } - } + tags: { foo: ['bar'] }, + }, }) expect(code1).toMatch(`import _imports_0 from 'baz'\n`) @@ -90,15 +90,15 @@ test('transform asset url options', () => { const { code: code2 } = compile({ ...input, transformAssetUrls: { - foo: ['bar'] - } + foo: ['bar'], + }, }) expect(code2).toMatch(`import _imports_0 from 'baz'\n`) // false option const { code: code3 } = compile({ ...input, - transformAssetUrls: false + transformAssetUrls: false, }) expect(code3).not.toMatch(`import _imports_0 from 'baz'\n`) }) @@ -110,12 +110,12 @@ test('source map', () => {

{{ render }}

`, - { filename: 'example.vue', sourceMap: true } + { filename: 'example.vue', sourceMap: true }, ).descriptor.template as SFCTemplateBlock const result = compile({ filename: 'example.vue', - source: template.content + source: template.content, }) expect(result.map).toMatchSnapshot() @@ -125,7 +125,7 @@ test('template errors', () => { const result = compile({ filename: 'example.vue', source: `
` + :bar="a[" v-model="baz"/>`, }) expect(result.errors).toMatchSnapshot() }) @@ -137,20 +137,20 @@ test('preprocessor errors', () => { div(class='class) `, - { filename: 'example.vue', sourceMap: true } + { filename: 'example.vue', sourceMap: true }, ).descriptor.template as SFCTemplateBlock const result = compile({ filename: 'example.vue', source: template.content, - preprocessLang: template.lang + preprocessLang: template.lang, }) expect(result.errors.length).toBe(1) const message = result.errors[0].toString() expect(message).toMatch(`Error: example.vue:3:1`) expect(message).toMatch( - `The end of the string reached with no closing bracket ) found.` + `The end of the string reached with no closing bracket ) found.`, ) }) @@ -164,7 +164,7 @@ test('should generate the correct imports expression', () => { `, - ssr: true + ssr: true, }) expect(code).toMatch(`_ssrRenderAttr(\"src\", _imports_1)`) expect(code).toMatch(`_createVNode(\"img\", { src: _imports_1 })`) @@ -186,7 +186,7 @@ test('should not hoist srcset URLs in SSR mode', () => { `, - ssr: true + ssr: true, }) expect(code).toMatchSnapshot() }) diff --git a/packages/compiler-sfc/__tests__/cssVars.spec.ts b/packages/compiler-sfc/__tests__/cssVars.spec.ts index 5b01d73d772..64a4a3b8a9e 100644 --- a/packages/compiler-sfc/__tests__/cssVars.spec.ts +++ b/packages/compiler-sfc/__tests__/cssVars.spec.ts @@ -8,7 +8,7 @@ describe('CSS vars injection', () => { `` + }`, ) expect(content).toMatch(`_useCssVars(_ctx => ({ "${mockId}-color": (_ctx.color), @@ -32,7 +32,7 @@ describe('CSS vars injection', () => { div { font-size: v-bind(size); } - ` + `, ) expect(content).toMatch(`_useCssVars(_ctx => ({ "${mockId}-size": (_ctx.size) @@ -57,7 +57,7 @@ describe('CSS vars injection', () => { font-size: v-bind(size); border: v-bind(foo); } - ` + `, ) // should handle: // 1. local const bindings @@ -69,7 +69,7 @@ describe('CSS vars injection', () => { "${mockId}-foo": (__props.foo) })`) expect(content).toMatch( - `import { useCssVars as _useCssVars, unref as _unref } from 'vue'` + `import { useCssVars as _useCssVars, unref as _unref } from 'vue'`, ) assertCode(content) }) @@ -85,7 +85,7 @@ describe('CSS vars injection', () => { font-family: v-bind(フォント); }`, filename: 'test.css', - id: 'data-v-test' + id: 'data-v-test', }) expect(code).toMatchInlineSnapshot(` ".foo { @@ -106,7 +106,7 @@ describe('CSS vars injection', () => { color: v-bind(color); font-size: v-bind('font.size'); }`, - { isProd: true } + { isProd: true }, ) expect(content).toMatch(`_useCssVars(_ctx => ({ "4003f1a6": (_ctx.color), @@ -120,7 +120,7 @@ describe('CSS vars injection', () => { }`, filename: 'test.css', id: mockId, - isProd: true + isProd: true, }) expect(code).toMatchInlineSnapshot(` ".foo { @@ -135,8 +135,8 @@ describe('CSS vars injection', () => { assertCode( compileSFCScript( `\n` + - `` - ).content + ``, + ).content, ) }) @@ -144,8 +144,8 @@ describe('CSS vars injection', () => { assertCode( compileSFCScript( `\n` + - `` - ).content + ``, + ).content, ) }) @@ -155,8 +155,8 @@ describe('CSS vars injection', () => { `\n` + `` - ).content + \n` + ``, + ).content, ) }) @@ -164,8 +164,8 @@ describe('CSS vars injection', () => { assertCode( compileSFCScript( `\n` + - `` - ).content + ``, + ).content, ) }) @@ -178,7 +178,7 @@ describe('CSS vars injection', () => { div{ /* color: v-bind(color); */ width:20; } div{ width: v-bind(width); } /* comment */ - ` + `, ) expect(content).not.toMatch(`"${mockId}-color": (color)`) @@ -198,7 +198,7 @@ describe('CSS vars injection', () => { p { color: v-bind(color); } - ` + `, ) // color should only be injected once, even if it is twice in style expect(content).toMatch(`_useCssVars(_ctx => ({ @@ -229,7 +229,7 @@ describe('CSS vars injection', () => { p { color: v-bind(((a + b)) / (2 * a)); } - ` + `, ) expect(content).toMatch(`_useCssVars(_ctx => ({ "${mockId}-foo": (_unref(foo)), @@ -243,7 +243,7 @@ describe('CSS vars injection', () => { // #6022 test('should be able to parse incomplete expressions', () => { const { - descriptor: { cssVars } + descriptor: { cssVars }, } = parse( ` ` + `, ) expect(cssVars).toMatchObject([`count.toString(`, `xxx`]) }) @@ -266,10 +266,10 @@ describe('CSS vars injection', () => { label { background: v-bind(background); } - ` + `, ) expect(content).toMatch( - `export default {\n setup(__props, { expose: __expose }) {\n __expose();\n\n_useCssVars(_ctx => ({\n "xxxxxxxx-background": (_unref(background))\n}))` + `export default {\n setup(__props, { expose: __expose }) {\n __expose();\n\n_useCssVars(_ctx => ({\n "xxxxxxxx-background": (_unref(background))\n}))`, ) }) }) diff --git a/packages/compiler-sfc/__tests__/parse.spec.ts b/packages/compiler-sfc/__tests__/parse.spec.ts index c7a17ab1739..ce309415d8f 100644 --- a/packages/compiler-sfc/__tests__/parse.spec.ts +++ b/packages/compiler-sfc/__tests__/parse.spec.ts @@ -8,7 +8,9 @@ describe('compiler:sfc', () => { // Padding determines how many blank lines will there be before the style block const padding = Math.round(Math.random() * 10) const style = parse( - `${'\n'.repeat(padding)}\n` + `${'\n'.repeat( + padding, + )}\n`, ).descriptor.styles[0] expect(style.map).not.toBeUndefined() @@ -23,7 +25,7 @@ describe('compiler:sfc', () => { // Padding determines how many blank lines will there be before the style block const padding = Math.round(Math.random() * 10) const script = parse( - `${'\n'.repeat(padding)}\n` + `${'\n'.repeat(padding)}\n`, ).descriptor.script expect(script!.map).not.toBeUndefined() @@ -37,7 +39,7 @@ describe('compiler:sfc', () => { test('custom block', () => { const padding = Math.round(Math.random() * 10) const custom = parse( - `${'\n'.repeat(padding)}\n{\n "greeting": "hello"\n}\n\n` + `${'\n'.repeat(padding)}\n{\n "greeting": "hello"\n}\n\n`, ).descriptor.customBlocks[0] expect(custom!.map).not.toBeUndefined() @@ -72,42 +74,42 @@ h1 { color: red } const padTrue = parse(content.trim(), { pad: true }).descriptor expect(padTrue.script!.content).toBe( - Array(3 + 1).join('//\n') + '\nexport default {}\n' + Array(3 + 1).join('//\n') + '\nexport default {}\n', ) expect(padTrue.styles[0].content).toBe( - Array(6 + 1).join('\n') + '\nh1 { color: red }\n' + Array(6 + 1).join('\n') + '\nh1 { color: red }\n', ) expect(padTrue.customBlocks[0].content).toBe( - Array(9 + 1).join('\n') + '\n{ "greeting": "hello" }\n' + Array(9 + 1).join('\n') + '\n{ "greeting": "hello" }\n', ) const padLine = parse(content.trim(), { pad: 'line' }).descriptor expect(padLine.script!.content).toBe( - Array(3 + 1).join('//\n') + '\nexport default {}\n' + Array(3 + 1).join('//\n') + '\nexport default {}\n', ) expect(padLine.styles[0].content).toBe( - Array(6 + 1).join('\n') + '\nh1 { color: red }\n' + Array(6 + 1).join('\n') + '\nh1 { color: red }\n', ) expect(padLine.customBlocks[0].content).toBe( - Array(9 + 1).join('\n') + '\n{ "greeting": "hello" }\n' + Array(9 + 1).join('\n') + '\n{ "greeting": "hello" }\n', ) const padSpace = parse(content.trim(), { pad: 'space' }).descriptor expect(padSpace.script!.content).toBe( `\n\n\n`.replace( /./g, - ' ' - ) + '\n{ "greeting": "hello" }\n' + ' ', + ) + '\n{ "greeting": "hello" }\n', ) }) @@ -121,9 +123,9 @@ h1 { color: red } end: { line: 3, column: 1, - offset: 10 + content.length + offset: 10 + content.length, }, - source: content + source: content, }) }) @@ -134,7 +136,7 @@ h1 { color: red } expect(descriptor.template!.loc).toMatchObject({ start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 1, offset: 0 }, - source: '' + source: '', }) }) @@ -145,7 +147,7 @@ h1 { color: red } expect(descriptor.template!.loc).toMatchObject({ start: { line: 1, column: 11, offset: 10 }, end: { line: 1, column: 11, offset: 10 }, - source: '' + source: '', }) }) @@ -156,7 +158,7 @@ h1 { color: red } expect(parse(``).descriptor.styles.length).toBe(0) expect(parse(``).descriptor.customBlocks.length).toBe(0) expect( - parse(` \n\t `).descriptor.customBlocks.length + parse(` \n\t `).descriptor.customBlocks.length, ).toBe(0) }) @@ -171,21 +173,21 @@ h1 { color: red } const { descriptor } = parse( `\n`, { - ignoreEmpty: false - } + ignoreEmpty: false, + }, ) expect(descriptor.script).toBeTruthy() expect(descriptor.script!.loc).toMatchObject({ source: '', start: { line: 1, column: 9, offset: 8 }, - end: { line: 1, column: 9, offset: 8 } + end: { line: 1, column: 9, offset: 8 }, }) expect(descriptor.scriptSetup).toBeTruthy() expect(descriptor.scriptSetup!.loc).toMatchObject({ source: '\n', start: { line: 2, column: 15, offset: 32 }, - end: { line: 3, column: 1, offset: 33 } + end: { line: 3, column: 1, offset: 33 }, }) }) @@ -201,7 +203,7 @@ h1 { color: red } test('treat empty lang attribute as the html', () => { const content = `
` const { descriptor, errors } = parse( - `` + ``, ) expect(descriptor.template!.content).toBe(content) expect(errors.length).toBe(0) @@ -211,7 +213,7 @@ h1 { color: red } test('alternative template lang should be treated as plain text', () => { const content = `p(v-if="1 < 2") test` const { descriptor, errors } = parse( - `` + ``, ) expect(errors.length).toBe(0) expect(descriptor.template!.content).toBe(content) @@ -233,17 +235,17 @@ h1 { color: red } expect(parse(``).descriptor.slotted).toBe(false) expect( parse(``).descriptor - .slotted + .slotted, ).toBe(false) expect( parse( - `` - ).descriptor.slotted + ``, + ).descriptor.slotted, ).toBe(true) expect( parse( - `` - ).descriptor.slotted + ``, + ).descriptor.slotted, ).toBe(true) }) @@ -261,15 +263,15 @@ h1 { color: red } const { errors } = parse(``, { compiler: { parse: baseParse, - compile: baseCompile - } + compile: baseCompile, + }, }) expect(errors.length).toBe(1) }) test('treat custom blocks as raw text', () => { const { errors, descriptor } = parse( - ` <-& ` + ` <-& `, ) expect(errors.length).toBe(0) expect(descriptor.customBlocks[0].content).toBe(` <-& `) @@ -283,7 +285,7 @@ h1 { color: red } test('should only allow single template element', () => { assertWarning( parse(``).errors, - `Single file component can contain only one