From 3335c3f21e5cadd28503c44181881d65914dfade Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 10 Jul 2024 20:37:34 +0000 Subject: [PATCH 1/2] Update dependency svelte to v4 --- pnpm-lock.yaml | 127 +++++++++++++----- .../image-guide/changelog/renovate-svelte-4.x | 4 + projects/js-packages/image-guide/package.json | 2 +- .../changelog/renovate-svelte-4.x | 4 + .../svelte-data-sync-client/package.json | 2 +- .../inspect/changelog/renovate-svelte-4.x | 4 + projects/plugins/inspect/package.json | 2 +- tools/js-tools/package.json | 2 +- 8 files changed, 110 insertions(+), 37 deletions(-) create mode 100644 projects/js-packages/image-guide/changelog/renovate-svelte-4.x create mode 100644 projects/js-packages/svelte-data-sync-client/changelog/renovate-svelte-4.x create mode 100644 projects/plugins/inspect/changelog/renovate-svelte-4.x diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fb51324b0cd77..30c01acead9e9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -710,19 +710,19 @@ importers: version: 4.0.2(postcss@8.4.31) rollup-plugin-svelte: specifier: 7.2.2 - version: 7.2.2(rollup@2.79.1)(svelte@3.58.0) + version: 7.2.2(rollup@2.79.1)(svelte@4.2.18) rollup-plugin-svelte-svg: specifier: 1.0.0-beta.6 - version: 1.0.0-beta.6(svelte@3.58.0) + version: 1.0.0-beta.6(svelte@4.2.18) sass: specifier: 1.64.1 version: 1.64.1 svelte: - specifier: 3.58.0 - version: 3.58.0 + specifier: 4.2.18 + version: 4.2.18 svelte-preprocess: specifier: 5.0.4 - version: 5.0.4(@babel/core@7.24.7)(postcss@8.4.31)(sass@1.64.1)(svelte@3.58.0)(typescript@5.0.4) + version: 5.0.4(@babel/core@7.24.7)(postcss@8.4.31)(sass@1.64.1)(svelte@4.2.18)(typescript@5.0.4) tslib: specifier: 2.5.0 version: 2.5.0 @@ -1443,8 +1443,8 @@ importers: specifier: 29.7.0 version: 29.7.0 svelte: - specifier: 3.58.0 - version: 3.58.0 + specifier: 4.2.18 + version: 4.2.18 tslib: specifier: 2.5.0 version: 2.5.0 @@ -3579,16 +3579,16 @@ importers: version: 4.0.2(postcss@8.4.31) rollup-plugin-svelte: specifier: 7.2.2 - version: 7.2.2(rollup@2.79.1)(svelte@3.58.0) + version: 7.2.2(rollup@2.79.1)(svelte@4.2.18) sass: specifier: 1.64.1 version: 1.64.1 svelte: - specifier: 3.58.0 - version: 3.58.0 + specifier: 4.2.18 + version: 4.2.18 svelte-preprocess: specifier: 5.0.4 - version: 5.0.4(@babel/core@7.24.7)(postcss@8.4.31)(sass@1.64.1)(svelte@3.58.0)(typescript@5.0.4) + version: 5.0.4(@babel/core@7.24.7)(postcss@8.4.31)(sass@1.64.1)(svelte@4.2.18)(typescript@5.0.4) typescript: specifier: 5.0.4 version: 5.0.4 @@ -4754,7 +4754,7 @@ importers: version: 4.6.2(eslint@8.57.0) eslint-plugin-svelte: specifier: 2.41.0 - version: 2.41.0(eslint@8.57.0)(svelte@3.58.0) + version: 2.41.0(eslint@8.57.0)(svelte@4.2.18) eslint-plugin-testing-library: specifier: 6.2.2 version: 6.2.2(eslint@8.57.0)(typescript@5.0.4) @@ -4784,7 +4784,7 @@ importers: version: wp-prettier@3.0.3 prettier-plugin-svelte: specifier: 3.0.3 - version: 3.0.3(svelte@3.58.0)(wp-prettier@3.0.3) + version: 3.0.3(svelte@4.2.18)(wp-prettier@3.0.3) semver: specifier: 7.5.2 version: 7.5.2 @@ -4792,11 +4792,11 @@ importers: specifier: 1.50.0 version: 1.50.0 svelte: - specifier: 3.58.0 - version: 3.58.0 + specifier: 4.2.18 + version: 4.2.18 svelte-eslint-parser: specifier: 0.39.2 - version: 0.39.2(svelte@3.58.0) + version: 0.39.2(svelte@4.2.18) typescript: specifier: 5.0.4 version: 5.0.4 @@ -8342,6 +8342,9 @@ packages: resolution: {integrity: sha512-aPTElBrbifBU1krmZxGZOlBkslORe7Ll7+BDnI50Wy4LgOt69luMgevkDfTq1O/ZgprooPCtWpjCwKSZw/iZ4A==} engines: {node: '>= 0.4'} + axobject-query@4.0.0: + resolution: {integrity: sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==} + b4a@1.6.6: resolution: {integrity: sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==} @@ -8774,6 +8777,9 @@ packages: resolution: {integrity: sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==} engines: {node: '>=0.10.0'} + code-red@1.0.4: + resolution: {integrity: sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==} + collect-v8-coverage@1.0.2: resolution: {integrity: sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==} @@ -9828,6 +9834,9 @@ packages: estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} @@ -10745,6 +10754,9 @@ packages: is-reference@1.2.1: resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} + is-reference@3.0.2: + resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==} + is-regex@1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} @@ -11274,6 +11286,9 @@ packages: engines: {node: '>=8.3.0'} hasBin: true + locate-character@3.0.0: + resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} + locate-path@3.0.0: resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} engines: {node: '>=6'} @@ -12166,6 +12181,9 @@ packages: pend@1.2.0: resolution: {integrity: sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==} + periscopic@3.1.0: + resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==} + photon@4.0.0: resolution: {integrity: sha512-RD3buB17jW9B+OOPjIqv/cE9imCyR+WJ4ALWtb1Q1mVg8OfYnHAyvdVTxa/+bZFNI2FWaQBKry3i1mItmW3H3A==} @@ -13668,9 +13686,9 @@ packages: typescript: optional: true - svelte@3.58.0: - resolution: {integrity: sha512-brIBNNB76mXFmU/Kerm4wFnkskBbluBDCjx/8TcpYRb298Yh2dztS2kQ6bhtjMcvUhd5ynClfwpz5h2gnzdQ1A==} - engines: {node: '>= 8'} + svelte@4.2.18: + resolution: {integrity: sha512-d0FdzYIiAePqRJEb90WlJDkjUEx42xhivxN8muUBmfZnP+tzUgz12DJ2hRJi8sIHCME7jeK1PTMgKPSfTd8JrA==} + engines: {node: '>=16'} svg-parser@2.0.4: resolution: {integrity: sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==} @@ -20579,6 +20597,10 @@ snapshots: axobject-query@3.2.4: {} + axobject-query@4.0.0: + dependencies: + dequal: 2.0.3 + b4a@1.6.6: {} babel-core@7.0.0-bridge.0(@babel/core@7.24.7): @@ -21137,6 +21159,14 @@ snapshots: code-point-at@1.1.0: {} + code-red@1.0.4: + dependencies: + '@jridgewell/sourcemap-codec': 1.4.15 + '@types/estree': 1.0.5 + acorn: 8.12.1 + estree-walker: 3.0.3 + periscopic: 3.1.0 + collect-v8-coverage@1.0.2: {} color-convert@1.9.3: @@ -22239,7 +22269,7 @@ snapshots: semver: 6.3.1 string.prototype.matchall: 4.0.11 - eslint-plugin-svelte@2.41.0(eslint@8.57.0)(svelte@3.58.0): + eslint-plugin-svelte@2.41.0(eslint@8.57.0)(svelte@4.2.18): dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) '@jridgewell/sourcemap-codec': 1.4.15 @@ -22252,9 +22282,9 @@ snapshots: postcss-safe-parser: 6.0.0(postcss@8.4.39) postcss-selector-parser: 6.1.0 semver: 7.6.2 - svelte-eslint-parser: 0.39.2(svelte@3.58.0) + svelte-eslint-parser: 0.39.2(svelte@4.2.18) optionalDependencies: - svelte: 3.58.0 + svelte: 4.2.18 transitivePeerDependencies: - ts-node @@ -22371,6 +22401,10 @@ snapshots: estree-walker@2.0.2: {} + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.5 + esutils@2.0.3: {} etag@1.8.1: {} @@ -23377,6 +23411,10 @@ snapshots: dependencies: '@types/estree': 1.0.5 + is-reference@3.0.2: + dependencies: + '@types/estree': 1.0.5 + is-regex@1.1.4: dependencies: call-bind: 1.0.7 @@ -24267,6 +24305,8 @@ snapshots: transitivePeerDependencies: - supports-color + locate-character@3.0.0: {} + locate-path@3.0.0: dependencies: p-locate: 3.0.0 @@ -25265,6 +25305,12 @@ snapshots: pend@1.2.0: {} + periscopic@3.1.0: + dependencies: + '@types/estree': 1.0.5 + estree-walker: 3.0.3 + is-reference: 3.0.2 + photon@4.0.0: dependencies: '@babel/runtime': 7.24.7 @@ -25598,10 +25644,10 @@ snapshots: dependencies: fast-diff: 1.3.0 - prettier-plugin-svelte@3.0.3(svelte@3.58.0)(wp-prettier@3.0.3): + prettier-plugin-svelte@3.0.3(svelte@4.2.18)(wp-prettier@3.0.3): dependencies: prettier: wp-prettier@3.0.3 - svelte: 3.58.0 + svelte: 4.2.18 prettier@2.8.8: {} @@ -26327,18 +26373,18 @@ snapshots: transitivePeerDependencies: - ts-node - rollup-plugin-svelte-svg@1.0.0-beta.6(svelte@3.58.0): + rollup-plugin-svelte-svg@1.0.0-beta.6(svelte@4.2.18): dependencies: rollup-pluginutils: 2.8.2 - svelte: 3.58.0 + svelte: 4.2.18 svgo: 3.3.2 - rollup-plugin-svelte@7.2.2(rollup@2.79.1)(svelte@3.58.0): + rollup-plugin-svelte@7.2.2(rollup@2.79.1)(svelte@4.2.18): dependencies: '@rollup/pluginutils': 4.2.1 resolve.exports: 2.0.2 rollup: 2.79.1 - svelte: 3.58.0 + svelte: 4.2.18 rollup-pluginutils@2.8.2: dependencies: @@ -26916,7 +26962,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - svelte-eslint-parser@0.39.2(svelte@3.58.0): + svelte-eslint-parser@0.39.2(svelte@4.2.18): dependencies: eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 @@ -26924,23 +26970,38 @@ snapshots: postcss: 8.4.39 postcss-scss: 4.0.9(postcss@8.4.39) optionalDependencies: - svelte: 3.58.0 + svelte: 4.2.18 - svelte-preprocess@5.0.4(@babel/core@7.24.7)(postcss@8.4.31)(sass@1.64.1)(svelte@3.58.0)(typescript@5.0.4): + svelte-preprocess@5.0.4(@babel/core@7.24.7)(postcss@8.4.31)(sass@1.64.1)(svelte@4.2.18)(typescript@5.0.4): dependencies: '@types/pug': 2.0.10 detect-indent: 6.1.0 magic-string: 0.27.0 sorcery: 0.11.1 strip-indent: 3.0.0 - svelte: 3.58.0 + svelte: 4.2.18 optionalDependencies: '@babel/core': 7.24.7 postcss: 8.4.31 sass: 1.64.1 typescript: 5.0.4 - svelte@3.58.0: {} + svelte@4.2.18: + dependencies: + '@ampproject/remapping': 2.3.0 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.25 + '@types/estree': 1.0.5 + acorn: 8.12.1 + aria-query: 5.3.0 + axobject-query: 4.0.0 + code-red: 1.0.4 + css-tree: 2.3.1 + estree-walker: 3.0.3 + is-reference: 3.0.2 + locate-character: 3.0.0 + magic-string: 0.30.10 + periscopic: 3.1.0 svg-parser@2.0.4: {} diff --git a/projects/js-packages/image-guide/changelog/renovate-svelte-4.x b/projects/js-packages/image-guide/changelog/renovate-svelte-4.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/js-packages/image-guide/changelog/renovate-svelte-4.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/js-packages/image-guide/package.json b/projects/js-packages/image-guide/package.json index 6c355fe5a11a1..0305f70eae978 100644 --- a/projects/js-packages/image-guide/package.json +++ b/projects/js-packages/image-guide/package.json @@ -52,7 +52,7 @@ "rollup-plugin-svelte": "7.2.2", "rollup-plugin-svelte-svg": "1.0.0-beta.6", "sass": "1.64.1", - "svelte": "3.58.0", + "svelte": "4.2.18", "svelte-preprocess": "5.0.4", "tslib": "2.5.0", "typescript": "5.0.4", diff --git a/projects/js-packages/svelte-data-sync-client/changelog/renovate-svelte-4.x b/projects/js-packages/svelte-data-sync-client/changelog/renovate-svelte-4.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/js-packages/svelte-data-sync-client/changelog/renovate-svelte-4.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/js-packages/svelte-data-sync-client/package.json b/projects/js-packages/svelte-data-sync-client/package.json index e8679d28cd08f..2aed4f1ebb874 100644 --- a/projects/js-packages/svelte-data-sync-client/package.json +++ b/projects/js-packages/svelte-data-sync-client/package.json @@ -28,7 +28,7 @@ "@typescript-eslint/parser": "6.21.0", "eslint": "8.57.0", "jest": "29.7.0", - "svelte": "3.58.0", + "svelte": "4.2.18", "tslib": "2.5.0", "typescript": "5.0.4", "webpack": "5.76.0", diff --git a/projects/plugins/inspect/changelog/renovate-svelte-4.x b/projects/plugins/inspect/changelog/renovate-svelte-4.x new file mode 100644 index 0000000000000..c47cb18e82997 --- /dev/null +++ b/projects/plugins/inspect/changelog/renovate-svelte-4.x @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/plugins/inspect/package.json b/projects/plugins/inspect/package.json index 89e7b39b95e85..5a2dba8c62b69 100644 --- a/projects/plugins/inspect/package.json +++ b/projects/plugins/inspect/package.json @@ -38,7 +38,7 @@ "rollup-plugin-postcss": "4.0.2", "rollup-plugin-svelte": "7.2.2", "sass": "1.64.1", - "svelte": "3.58.0", + "svelte": "4.2.18", "svelte-preprocess": "5.0.4", "tslib": "2.5.0", "typescript": "5.0.4", diff --git a/tools/js-tools/package.json b/tools/js-tools/package.json index 557733c1abe0e..d1a610eeecf57 100644 --- a/tools/js-tools/package.json +++ b/tools/js-tools/package.json @@ -56,7 +56,7 @@ "prettier-plugin-svelte": "3.0.3", "semver": "7.5.2", "sort-package-json": "1.50.0", - "svelte": "3.58.0", + "svelte": "4.2.18", "svelte-eslint-parser": "0.39.2", "typescript": "5.0.4", "yaml": "2.2.2" From 4b9fcaffe26a86ee9d34d02499ffbf7d1c0187b1 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Wed, 10 Jul 2024 17:40:56 -0400 Subject: [PATCH 2/2] Fix eslint * Don't use `svelte-eslint-parser` for `import`. * Flag type imports as such. * Ignore some ARIA stuff I have no clue what to do with. --- projects/js-packages/image-guide/src/stores/GuideState.ts | 2 +- .../image-guide/src/stores/MeasurableImageStore.ts | 2 +- projects/js-packages/image-guide/src/ui/Bubble.svelte | 1 + projects/js-packages/image-guide/src/ui/Main.svelte | 1 + projects/js-packages/image-guide/src/ui/Popup.svelte | 1 + .../plugins/inspect/app-ui/src/Dashboard/Log/Summary.svelte | 1 + tools/js-tools/eslintrc/svelte.js | 5 +++++ 7 files changed, 11 insertions(+), 2 deletions(-) diff --git a/projects/js-packages/image-guide/src/stores/GuideState.ts b/projects/js-packages/image-guide/src/stores/GuideState.ts index 77c422ba815cf..5844cd3204e30 100644 --- a/projects/js-packages/image-guide/src/stores/GuideState.ts +++ b/projects/js-packages/image-guide/src/stores/GuideState.ts @@ -1,4 +1,4 @@ -import { derived, Writable, writable } from 'svelte/store'; +import { derived, writable, type Writable } from 'svelte/store'; /** * Guide State is a Svelte Store that keeps track diff --git a/projects/js-packages/image-guide/src/stores/MeasurableImageStore.ts b/projects/js-packages/image-guide/src/stores/MeasurableImageStore.ts index 768cf3f548a5e..3d96607464a90 100644 --- a/projects/js-packages/image-guide/src/stores/MeasurableImageStore.ts +++ b/projects/js-packages/image-guide/src/stores/MeasurableImageStore.ts @@ -1,4 +1,4 @@ -import { Writable, Readable, writable, derived } from 'svelte/store'; +import { writable, derived, type Writable, type Readable } from 'svelte/store'; import { MeasurableImage } from '../MeasurableImage.js'; import type { Dimensions, Weight } from '../MeasurableImage.js'; diff --git a/projects/js-packages/image-guide/src/ui/Bubble.svelte b/projects/js-packages/image-guide/src/ui/Bubble.svelte index 535852059389b..0200122858476 100644 --- a/projects/js-packages/image-guide/src/ui/Bubble.svelte +++ b/projects/js-packages/image-guide/src/ui/Bubble.svelte @@ -35,6 +35,7 @@ } +
{#if $guideState === 'active'} +
+
+
{#if responseCode} diff --git a/tools/js-tools/eslintrc/svelte.js b/tools/js-tools/eslintrc/svelte.js index 6bbc0730afead..daf0944e30be7 100644 --- a/tools/js-tools/eslintrc/svelte.js +++ b/tools/js-tools/eslintrc/svelte.js @@ -11,6 +11,11 @@ module.exports = { parserOptions: { parser: require.resolve( '@typescript-eslint/parser' ), }, + settings: { + 'import/parsers': { + '@typescript-eslint/parser': [ '.js' ], + }, + }, }, ], rules: {