From f2b1cf28a28c3d60a51c995a771e67652e621c70 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 9 Nov 2024 00:29:12 +1100 Subject: [PATCH] fix(deps): update dependency @sveltejs/vite-plugin-svelte to v4 (#2793) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@sveltejs/vite-plugin-svelte](https://redirect.github.com/sveltejs/vite-plugin-svelte) ([source](https://redirect.github.com/sveltejs/vite-plugin-svelte/tree/HEAD/packages/vite-plugin-svelte)) | [`^3.1.2` -> `^4.0.0`](https://renovatebot.com/diffs/npm/@sveltejs%2fvite-plugin-svelte/3.1.2/4.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@sveltejs%2fvite-plugin-svelte/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@sveltejs%2fvite-plugin-svelte/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@sveltejs%2fvite-plugin-svelte/3.1.2/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@sveltejs%2fvite-plugin-svelte/3.1.2/4.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sveltejs/vite-plugin-svelte (@​sveltejs/vite-plugin-svelte) ### [`v4.0.0`](https://redirect.github.com/sveltejs/vite-plugin-svelte/blob/HEAD/packages/vite-plugin-svelte/CHANGELOG.md#400) [Compare Source](https://redirect.github.com/sveltejs/vite-plugin-svelte/compare/@sveltejs/vite-plugin-svelte@3.1.2...@sveltejs/vite-plugin-svelte@4.0.0) ##### Major Changes - only prebundle files with default filenames (.svelte for components, .svelte.(js|ts) for modules) ([#​901](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/901)) - remove support for Svelte 4 ([#​892](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/892)) - breaking(types): some types that have been unintentionally public are now private ([#​934](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/934)) - disable script preprocessing in vitePreprocess() by default because Svelte 5 supports lang=ts out of the box ([#​892](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/892)) - replaced svelte-hmr with Svelte 5 compiler hmr integration ([#​892](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/892)) ##### Minor Changes - allow infix notation for svelte modules ([#​901](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/901)) Previously, only suffix notation `.svelte.js` was allowed, now you can also use `.svelte.test.js` or `.svelte.stories.js`. This helps when writing testcases or other auxillary code where you may want to use runes too. - feat(config): dynamically extract list of svelte exports from peer dependency so that new exports work automatically" ([#​941](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/941)) - feat(warnings): change default loglevel of warnings originating from files in node_modules to debug. To see them call `DEBUG:vite-plugin-svelte:node-modules-onwarn pnpm build`. ([#​989](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/989)) ##### Patch Changes - fix: make defaultHandler a required argument for onwarn in plugin options ([#​895](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/895)) - prebundle with dev: true by default ([#​901](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/901)) - fix(dev): compile with hmr: false for prebundled deps as hmr does not work with that ([#​950](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/950)) - fix: ensure svelte modules correctly run in DEV mode ([#​906](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/906)) - ensure consistent use of compileOptions.hmr also for prebundling ([#​956](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/956)) - fix(optimizeDeps): avoid to optimise server only entrypoints of svelte that are never used on the client ([#​941](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/941)) - update peer on workspace packages to avoid packages bumping each other ([#​916](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/916)) - export PluginOptions interface ([#​976](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/976)) - Remove log about experimental status of Svelte 5. Note that breaking changes can still occur while vite-plugin-svelte 4 is in prerelease mode ([#​894](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/894)) - fix: ensure vite config is only resolved once during lazy init of vitePreprocess ([#​912](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/912)) - fix(vitePreprocess): default to build config so that svelte-check does not trigger dev-only plugins ([#​931](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/931)) - fix: only apply infix filter to basename ([#​920](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/920)) - fix: disable hmr when vite config server.hmr is false ([#​913](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/913)) - fix(dev): make sure custom cssHash is applied consistently even for prebundled components to avoid hash mismatches during hydration ([#​950](https://redirect.github.com/sveltejs/vite-plugin-svelte/pull/950)) - Updated dependencies \[[`22baa25`](https://redirect.github.com/sveltejs/vite-plugin-svelte/commit/22baa25b5e98ddc92715bfc430dc9d0cfad99bb0), [`49324db`](https://redirect.github.com/sveltejs/vite-plugin-svelte/commit/49324dbf747a46ae75b405a29fc7feac2db966dd), [`e9f048c`](https://redirect.github.com/sveltejs/vite-plugin-svelte/commit/e9f048c362a0769b3d5afa87da6f8398f46fe1a9), [`213fedd`](https://redirect.github.com/sveltejs/vite-plugin-svelte/commit/213fedd68ec2c5fcb41752e05dcded4abfa8d0c0)]: - [@​sveltejs/vite-plugin-svelte-inspector](https://redirect.github.com/sveltejs/vite-plugin-svelte-inspector)[@​3](https://redirect.github.com/3).0.0
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/fwouts/previewjs). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- framework-plugins/svelte/package.json | 2 +- pnpm-lock.yaml | 61 ++++++++++++++------------- 2 files changed, 32 insertions(+), 31 deletions(-) diff --git a/framework-plugins/svelte/package.json b/framework-plugins/svelte/package.json index 8dfa3acf3f5..58bb73b37d5 100644 --- a/framework-plugins/svelte/package.json +++ b/framework-plugins/svelte/package.json @@ -30,7 +30,7 @@ "@previewjs/storybook-helpers": "^5.0.8", "@previewjs/type-analyzer": "^10.1.3", "@previewjs/vfs": "^2.1.2", - "@sveltejs/vite-plugin-svelte": "^3.1.2", + "@sveltejs/vite-plugin-svelte": "^4.0.0", "fs-extra": "^11.2.0", "svelte": "^4.2.19", "typescript": "^5.6.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index be5d71f66f4..bf81995ba45 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2314,8 +2314,8 @@ importers: specifier: ^2.1.2 version: link:../../vfs '@sveltejs/vite-plugin-svelte': - specifier: ^3.1.2 - version: 3.1.2(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) + specifier: ^4.0.0 + version: 4.0.0(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) fs-extra: specifier: ^11.2.0 version: 11.2.0 @@ -2343,7 +2343,7 @@ importers: version: link:../../testing '@sveltejs/kit': specifier: ^2.8.0 - version: 2.8.0(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)))(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) + version: 2.8.0(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)))(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) '@types/fs-extra': specifier: ^11.0.4 version: 11.0.4 @@ -8377,12 +8377,12 @@ packages: svelte: ^3.54.0 || ^4.0.0 vite: ^4.0.0 - '@sveltejs/vite-plugin-svelte-inspector@2.1.0': - resolution: {integrity: sha512-9QX28IymvBlSCqsCll5t0kQVxipsfhFFL+L2t3nTWfXnddYwxBuAEtTtlaVQpRz9c37BhJjltSeY4AJSC03SSg==} - engines: {node: ^18.0.0 || >=20} + '@sveltejs/vite-plugin-svelte-inspector@3.0.1': + resolution: {integrity: sha512-2CKypmj1sM4GE7HjllT7UKmo4Q6L5xFRd7VMGEWhYnZ+wc6AUVU01IBd7yUi6WnFndEwWoMNOd6e8UjoN0nbvQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22} peerDependencies: - '@sveltejs/vite-plugin-svelte': ^3.0.0 - svelte: ^4.0.0 || ^5.0.0-next.0 + '@sveltejs/vite-plugin-svelte': ^4.0.0-next.0||^4.0.0 + svelte: ^5.0.0-next.96 || ^5.0.0 vite: ^5.0.0 '@sveltejs/vite-plugin-svelte@1.4.0': @@ -8413,11 +8413,11 @@ packages: svelte: ^3.54.0 || ^4.0.0 || ^5.0.0-next.0 vite: ^4.0.0 - '@sveltejs/vite-plugin-svelte@3.1.2': - resolution: {integrity: sha512-Txsm1tJvtiYeLUVRNqxZGKR/mI+CzuIQuc2gn+YCs9rMTowpNZ2Nqt53JdL8KF9bLhAf2ruR/dr9eZCwdTriRA==} - engines: {node: ^18.0.0 || >=20} + '@sveltejs/vite-plugin-svelte@4.0.0': + resolution: {integrity: sha512-kpVJwF+gNiMEsoHaw+FJL76IYiwBikkxYU83+BpqQLdVMff19KeRKLd2wisS8niNBMJ2omv5gG+iGDDwd8jzag==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22} peerDependencies: - svelte: ^4.0.0 || ^5.0.0-next.0 + svelte: ^5.0.0-next.96 || ^5.0.0 vite: ^5.0.0 '@svgr/babel-plugin-add-jsx-attribute@5.4.0': @@ -20256,12 +20256,6 @@ packages: peerDependencies: svelte: ^3.19.0 || ^4.0.0 - svelte-hmr@0.16.0: - resolution: {integrity: sha512-Gyc7cOS3VJzLlfj7wKS0ZnzDVdv3Pn2IuVeJPk9m2skfhcu5bq3wtIZyQGggr7/Iim5rH5cncyQft/kRLupcnA==} - engines: {node: ^12.20 || ^14.13.1 || >= 16} - peerDependencies: - svelte: ^3.19.0 || ^4.0.0 - svelte-preprocess@4.10.7: resolution: {integrity: sha512-sNPBnqYD6FnmdBrUmBCaqS00RyCsCpj2BG58A1JBswNF7b0OKviwxqVrOL/CKyJrLSClrSeqQv5BXNg2RUbPOw==} engines: {node: '>= 9.11.2'} @@ -21767,6 +21761,14 @@ packages: vite: optional: true + vitefu@1.0.3: + resolution: {integrity: sha512-iKKfOMBHob2WxEJbqbJjHAkmYgvFDPhuqrO82om83S8RLk+17FtyMBfcyeH8GqD0ihShtkMW/zzJgiA51hCNCQ==} + peerDependencies: + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0-beta.0 + peerDependenciesMeta: + vite: + optional: true + vitest@2.1.4: resolution: {integrity: sha512-eDjxbVAJw1UJJCHr5xr/xM86Zx+YxIEXGAR+bmnEID7z9qWfoxpHw0zdobz+TQAFOLT+nEXz3+gx6nUJ7RgmlQ==} engines: {node: ^18.0.0 || >=20.0.0} @@ -34837,9 +34839,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@sveltejs/kit@2.8.0(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)))(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0))': + '@sveltejs/kit@2.8.0(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)))(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0))': dependencies: - '@sveltejs/vite-plugin-svelte': 3.1.2(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) + '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) '@types/cookie': 0.6.0 cookie: 0.6.0 devalue: 5.1.1 @@ -34882,9 +34884,9 @@ snapshots: transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte-inspector@2.1.0(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)))(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0))': + '@sveltejs/vite-plugin-svelte-inspector@3.0.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)))(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0))': dependencies: - '@sveltejs/vite-plugin-svelte': 3.1.2(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) + '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) debug: 4.3.7(supports-color@5.5.0) svelte: 4.2.19 vite: 5.4.10(@types/node@20.17.6)(less@4.1.3)(sass@1.62.1)(terser@5.36.0) @@ -34946,17 +34948,16 @@ snapshots: transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0))': + '@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 2.1.0(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)))(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) + '@sveltejs/vite-plugin-svelte-inspector': 3.0.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)))(svelte@4.2.19)(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) debug: 4.3.7(supports-color@5.5.0) deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.12 svelte: 4.2.19 - svelte-hmr: 0.16.0(svelte@4.2.19) vite: 5.4.10(@types/node@20.17.6)(less@4.1.3)(sass@1.62.1)(terser@5.36.0) - vitefu: 0.2.5(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) + vitefu: 1.0.3(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)) transitivePeerDependencies: - supports-color @@ -52535,10 +52536,6 @@ snapshots: dependencies: svelte: 4.2.19 - svelte-hmr@0.16.0(svelte@4.2.19): - dependencies: - svelte: 4.2.19 - svelte-preprocess@4.10.7(@babel/core@7.25.9)(less@4.1.3)(postcss-load-config@4.0.1(postcss@8.4.47)(ts-node@10.9.2(@swc/core@1.3.59(@swc/helpers@0.5.1))(@types/node@20.17.6)(typescript@4.9.5)))(postcss@8.4.47)(pug@3.0.2)(sass@1.62.1)(svelte@3.59.2)(typescript@4.9.5): dependencies: '@types/pug': 2.0.6 @@ -54349,6 +54346,10 @@ snapshots: optionalDependencies: vite: 5.4.10(@types/node@20.17.6)(less@4.1.3)(sass@1.62.1)(terser@5.36.0) + vitefu@1.0.3(vite@5.4.10(@types/node@20.17.6)(less@4.1.3)(terser@5.36.0)): + optionalDependencies: + vite: 5.4.10(@types/node@20.17.6)(less@4.1.3)(sass@1.62.1)(terser@5.36.0) + vitest@2.1.4(@types/node@20.17.6)(jsdom@16.7.0)(less@4.1.3)(terser@5.36.0): dependencies: '@vitest/expect': 2.1.4