Skip to content

Commit 0a86c4e

Browse files
committed
chore(logs): encourage svelte5 users to update from vps3 to vps4
1 parent 9515421 commit 0a86c4e

File tree

5 files changed

+4287
-3390
lines changed

5 files changed

+4287
-3390
lines changed

.changeset/wise-glasses-call.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/vite-plugin-svelte': patch
3+
---
4+
5+
add warning for svelte5 users to update to vite-plugin-svelte@4

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
aggregate-output=true
22
reporter=append-only
3+
dedupe-injected-deps=false # needed for _test_dependencies

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
"prettier --cache --ignore-path .gitignore --ignore-unknown --write"
6060
]
6161
},
62-
"packageManager": "pnpm@8.15.7",
62+
"packageManager": "pnpm@9.6.0",
6363
"engines": {
64-
"pnpm": "^8.6.3",
64+
"pnpm": "^9.6.0",
6565
"node": "^18.0.0 || >=20"
6666
},
6767
"pnpm": {

packages/vite-plugin-svelte/src/utils/log.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ export function isDebugNamespaceEnabled(namespace) {
262262
}
263263

264264
export function logSvelte5Warning() {
265-
const notice = `You are using Svelte ${VERSION}. Svelte 5 support is experimental, breaking changes can occur in any release until this notice is removed.`;
266-
const wip = ['svelte-inspector is disabled until dev mode implements node to code mapping'];
267-
log.warn(`${notice}\nwork in progress:\n - ${wip.join('\n - ')}\n`);
265+
log.warn(
266+
`You are using Svelte ${VERSION} with vite-plugin-svelte@3. Active Svelte 5 support has moved vite-plugin-svelte@4, it is only provided as-is here.
267+
To receive bugfixes and new features update your devDependencies to "@sveltejs/vite-plugin-svelte": "^4.0.0-next.6" and install.
268+
For framework integrations that depend on it (e.g. astro), you might have to add an override:
269+
"overrides": {"@sveltejs/vite-plugin-svelte": "^4.0.0-next.6"}`.replace(/\n\s*/gm, '\n\t')
270+
);
268271
}

0 commit comments

Comments
 (0)