Skip to content

Remove support for experimental useCalculatedVersionForSnapshots#1652

Merged
Andarist merged 3 commits intonextfrom
useCalculatedVersion-support
May 4, 2026
Merged

Remove support for experimental useCalculatedVersionForSnapshots#1652
Andarist merged 3 commits intonextfrom
useCalculatedVersion-support

Conversation

@bluwy
Copy link
Copy Markdown
Member

@bluwy bluwy commented Apr 26, 2025

It was deprecated in favor of snapshot.useCalculatedVersion

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 26, 2025

🦋 Changeset detected

Latest commit: 00c7225

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

This PR includes changesets to release 16 packages
Name Type
@changesets/cli Major
@changesets/assemble-release-plan Major
@changesets/config Major
@changesets/types Major
@changesets/get-release-plan Patch
@changesets/apply-release-plan Patch
@changesets/changelog-git Patch
@changesets/changelog-github Patch
@changesets/get-dependents-graph Patch
@changesets/git Patch
@changesets/parse Patch
@changesets/pre Patch
@changesets/read Patch
@changesets/release-utils Patch
@changesets/should-skip-package Patch
@changesets/write 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

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.85%. Comparing base (d165b4e) to head (00c7225).
⚠️ Report is 4 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1652      +/-   ##
==========================================
- Coverage   82.61%   81.85%   -0.77%     
==========================================
  Files          54       54              
  Lines        2422     2441      +19     
  Branches      718      716       -2     
==========================================
- Hits         2001     1998       -3     
- Misses        379      401      +22     
  Partials       42       42              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

useCalculatedVersion: (
config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH as any
).useCalculatedVersionForSnapshots,
useCalculatedVersion: false,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is a TODO comment above this declaration that could be done now (in this PR) - if I'm reading things correctly

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

IIUC it mentions changing the parameter type to be stricter so we don't have to refine it, so I think it would be a separate breaking change (if I understand correctly too).

I think it may be best tackled in another PR though which I can follow up later

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's only refined to handle both the old and new formats of snapshot.useCalculatedVersion. Given this PR removed the legacy format - I'd say it would be appropriate to handle this TODO here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm a bit confused but why didn't it refine if config.snapshot was passed then? From #914 it seems that it's to prevent a breaking change if snapshot wasn't pass with different versions installed.

The change for this is to make the config.snapshot non-optional, and the snapshot parameter stricter. And that feels like a different breaking change and out of scope of this PR which addresses useCalculatedVersionForSnapshots only.

@bluwy
Copy link
Copy Markdown
Member Author

bluwy commented May 4, 2026

@Andarist can we handle the TODO from your last review separately? I'd prefer to get this in first.

Comment thread .changeset/tangy-buses-smoke.md
@Andarist Andarist merged commit a0b5326 into next May 4, 2026
9 of 10 checks passed
@Andarist Andarist deleted the useCalculatedVersion-support branch May 4, 2026 09:05
@github-actions github-actions Bot mentioned this pull request May 4, 2026
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