diff --git a/.changeset/calm-spiders-listen.md b/.changeset/calm-spiders-listen.md new file mode 100644 index 000000000000..3503c5010314 --- /dev/null +++ b/.changeset/calm-spiders-listen.md @@ -0,0 +1,5 @@ +--- +"@astrojs/svelte": minor +--- + +Bumps Svelte 5 peer dependency to `^5.0.0-next.90` and support its latest breaking changes diff --git a/packages/integrations/svelte/client-v5.js b/packages/integrations/svelte/client-v5.js index 819363d5e0f1..755a6aa5381e 100644 --- a/packages/integrations/svelte/client-v5.js +++ b/packages/integrations/svelte/client-v5.js @@ -1,5 +1,5 @@ import { hydrate, mount, unmount } from 'svelte'; -import { add_snippet_symbol } from 'svelte/internal'; +import { add_snippet_symbol } from 'svelte/internal/client'; // Allow a slot to be rendered as a snippet (dev validation only) const tagSlotAsSnippet = import.meta.env.DEV ? add_snippet_symbol : (s) => s; diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index eef0b04fffd4..ce2f2f40108c 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -53,7 +53,7 @@ }, "peerDependencies": { "astro": "^4.0.0", - "svelte": "^4.0.0 || ^5.0.0-next.56", + "svelte": "^4.0.0 || ^5.0.0-next.90", "typescript": "^5.3.3" }, "engines": { diff --git a/packages/integrations/svelte/server-v5.js b/packages/integrations/svelte/server-v5.js index b4ef33824d96..04a24eff2474 100644 --- a/packages/integrations/svelte/server-v5.js +++ b/packages/integrations/svelte/server-v5.js @@ -1,4 +1,4 @@ -import { add_snippet_symbol } from 'svelte/internal'; +import { add_snippet_symbol } from 'svelte/internal/server'; import { render } from 'svelte/server'; // Allow a slot to be rendered as a snippet (dev validation only)