Skip to content

Conversation

@giamir
Copy link
Contributor

@giamir giamir commented Jan 16, 2026

This PR adjust 2 things in the @stackoverflow/stacks-svelte package.json:

  • Set the onlyUpdatePeerDependentsWhenOutOfRange experimental option of changeset to true so that the @stackoverflow/stacks peer dependency version is not overridden every time a new version is published. Specifically we need to keep also v2 as a peer dependency because in projects like our Core codebase stacks v2 and v3 will coexist together for a while and we don't want the npm algorithm to prevent installation (see this Core PR for context). We already added v2 as a peer dependency a while back but changeset overrode it when it upgraded the stacks library (context). The new flag should prevent that from happening in the future.
  • Move the @stackoverflow/stacks-utils package from being a peer dependency to a regular dependency (so that consumer don't need to install it manually themselves and we retain more control over breaking changes within the package that affects stacks svelte). It is also consistent with what we do for the dependency on @stackoverflow/stacks-icons.

@changeset-bot
Copy link

changeset-bot bot commented Jan 16, 2026

🦋 Changeset detected

Latest commit: a0f182a

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

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

@netlify
Copy link

netlify bot commented Jan 16, 2026

Deploy Preview for stacks-svelte ready!

Name Link
🔨 Latest commit a0f182a
🔍 Latest deploy log https://app.netlify.com/projects/stacks-svelte/deploys/6969f8b2158e9e000919ce52
😎 Deploy Preview https://deploy-preview-2128--stacks-svelte.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@giamir giamir requested a review from mukunku January 16, 2026 08:37
@netlify
Copy link

netlify bot commented Jan 16, 2026

Deploy Preview for stacks ready!

Name Link
🔨 Latest commit a0f182a
🔍 Latest deploy log https://app.netlify.com/projects/stacks/deploys/6969f8b2695e890008e78a27
😎 Deploy Preview https://deploy-preview-2128--stacks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@giamir giamir enabled auto-merge (squash) January 16, 2026 08:37
@giamir giamir merged commit d60aa26 into beta Jan 16, 2026
28 of 29 checks passed
@giamir giamir deleted the SPARK-33/adjust-stacks-svelte-peer-deps branch January 16, 2026 08:56
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.

2 participants