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

Fix peerdependencies versions #1430

Merged
merged 3 commits into from
Jan 28, 2025
Merged

Fix peerdependencies versions #1430

merged 3 commits into from
Jan 28, 2025

Conversation

SeppahBaws
Copy link
Collaborator

This PR bumps the peerdependency versions of vite and sveltekit, as we apparently seem to have missed these between the peerdependencies and vite 6 PRs.

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 Jan 27, 2025

🦋 Changeset detected

Latest commit: 1dce74c

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 Minor
houdini-adapter-static Minor
houdini Minor
houdini-adapter-auto Patch
houdini-adapter-cloudflare Patch
houdini-adapter-node Patch
houdini-react Patch
houdini-svelte 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 Jan 27, 2025

Deploy Preview for houdinigraphql canceled.

Name Link
🔨 Latest commit 1dce74c
🔍 Latest deploy log https://app.netlify.com/sites/houdinigraphql/deploys/6797b7a0db29ed0008d8062e

Copy link

netlify bot commented Jan 27, 2025

Deploy Preview for houdini-docs-next canceled.

Name Link
🔨 Latest commit 1dce74c
🔍 Latest deploy log https://app.netlify.com/sites/houdini-docs-next/deploys/6797b7a0c7611700089e1300

@@ -61,7 +60,7 @@
"vite-plugin-watch-and-run": "^1.7.0"
},
"peerDependencies": {
"vite": "^5.3.3"
"vite": "^6.0.3"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this would be a breaking change. if you want to add vite6, that can be done in a minor, but removing vite5 would be breaking. (a user stuck on vite5 cannot update houdini anymore)

Copy link
Collaborator Author

@SeppahBaws SeppahBaws Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm that's fair. So something like this would be a better solution then?

Suggested change
"vite": "^6.0.3"
"vite": "^5.3.3 || ^6.0.3"

(given that we test that it also still works with vite 5)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that can be done in a minor (adding support for vite6 is a feature rather than a patch)

syntax looks fine.

@SeppahBaws SeppahBaws disabled auto-merge January 27, 2025 15:38
@SeppahBaws
Copy link
Collaborator Author

Alright everything should be good now.
Tested it with our work project and should still be backwards compatible with projects running on vite 5.

@AlecAivazis AlecAivazis enabled auto-merge (squash) January 28, 2025 19:07
@AlecAivazis AlecAivazis merged commit 142cc66 into main Jan 28, 2025
15 checks passed
@AlecAivazis AlecAivazis deleted the peerdependencies branch January 28, 2025 19:07
@github-actions github-actions bot mentioned this pull request Jan 28, 2025
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