Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move svelte, sveltekit and vite into peerDependencies #1398

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SeppahBaws
Copy link
Collaborator

The latest Svelte update added a new element (<svelte:boundary>). However, upgrading an existing houdini + svelte project to this latest version gives errors when generating, as the version of the svelte compiler that houdini uses is outdated.

By moving the svelte dependency into peerDependencies, we use the svelte version that the project is using. The only requirement we now have is that it matches ^5.0.0.

(The updated wrangler version in e2e/react is because I was having compilation errors in better-sqlite3 while installing)

To help everyone out, please make sure your PR does the following:

  • Update the first line to point to the ticket that this PR fixes
  • Add a message that clearly describes the fix
  • If applicable, add a test that would fail without this fix
  • Make sure the unit and integration tests pass locally with pnpm run tests and cd integration && pnpm run tests
  • Includes a changeset if your fix affects the user with pnpm changeset

Copy link

changeset-bot bot commented Dec 2, 2024

🦋 Changeset detected

Latest commit: 088a020

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
houdini-plugin-svelte-global-stores Patch
houdini-adapter-static Patch
houdini-svelte Patch
houdini Patch
houdini-adapter-auto Patch
houdini-adapter-cloudflare Patch
houdini-adapter-node Patch
houdini-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for houdini-docs-next canceled.

Name Link
🔨 Latest commit 088a020
🔍 Latest deploy log https://app.netlify.com/sites/houdini-docs-next/deploys/6754665768e8730008bcdf01

Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for houdinigraphql canceled.

Name Link
🔨 Latest commit 088a020
🔍 Latest deploy log https://app.netlify.com/sites/houdinigraphql/deploys/6754665708a8fa0008807f60

AlecAivazis
AlecAivazis previously approved these changes Dec 2, 2024
@knd775
Copy link
Contributor

knd775 commented Dec 3, 2024

I think it may be worth considering doing the same with vite

@SeppahBaws
Copy link
Collaborator Author

I think it may be worth considering doing the same with vite

Ah yeah good point. I might probably also move svelte-kit as well...

@SeppahBaws SeppahBaws changed the title Move svelte into peerDependencies Move svelte, sveltekit and vite into peerDependencies Dec 4, 2024
@SeppahBaws SeppahBaws force-pushed the svelte-peerdependency branch 2 times, most recently from 3dada55 to 9801cdf Compare December 7, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants