Skip to content

Commit 51112ab

Browse files
authored
fix(svelte): update import statements and bump peer dependency for v5 (#10645)
1 parent f7d6254 commit 51112ab

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.changeset/calm-spiders-listen.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@astrojs/svelte": minor
3+
---
4+
5+
Bumps Svelte 5 peer dependency to `^5.0.0-next.90` and support its latest breaking changes

packages/integrations/svelte/client-v5.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { hydrate, mount, unmount } from 'svelte';
2-
import { add_snippet_symbol } from 'svelte/internal';
2+
import { add_snippet_symbol } from 'svelte/internal/client';
33

44
// Allow a slot to be rendered as a snippet (dev validation only)
55
const tagSlotAsSnippet = import.meta.env.DEV ? add_snippet_symbol : (s) => s;

packages/integrations/svelte/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"peerDependencies": {
5555
"astro": "^4.0.0",
56-
"svelte": "^4.0.0 || ^5.0.0-next.56",
56+
"svelte": "^4.0.0 || ^5.0.0-next.90",
5757
"typescript": "^5.3.3"
5858
},
5959
"engines": {

packages/integrations/svelte/server-v5.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { add_snippet_symbol } from 'svelte/internal';
1+
import { add_snippet_symbol } from 'svelte/internal/server';
22
import { render } from 'svelte/server';
33

44
// Allow a slot to be rendered as a snippet (dev validation only)

0 commit comments

Comments
 (0)