Skip to content

Remove initialVersions in pre.json - #2110

Closed
bluwy wants to merge 2 commits into
pre-no-changesetfrom
pre-no-initial-versions
Closed

Remove initialVersions in pre.json#2110
bluwy wants to merge 2 commits into
pre-no-changesetfrom
pre-no-initial-versions

Conversation

@bluwy

@bluwy bluwy commented Jun 23, 2026

Copy link
Copy Markdown
Member

Unused since #454

@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 187ff13

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

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

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.83%. Comparing base (43dd604) to head (187ff13).

Files with missing lines Patch % Lines
packages/pre/src/index.ts 12.50% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@                 Coverage Diff                  @@
##           pre-no-changeset    #2110      +/-   ##
====================================================
- Coverage             84.95%   84.83%   -0.13%     
====================================================
  Files                    66       66              
  Lines                  2526     2525       -1     
  Branches                696      696              
====================================================
- Hits                   2146     2142       -4     
- Misses                  350      351       +1     
- Partials                 30       32       +2     

☔ View full report in Codecov by Harness.
📢 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.

Comment thread packages/pre/src/index.ts
Comment on lines +84 to +95
// "changesets" is not used by v3 anymore, delete and remove the stale changeset files
if (preState.changesets != null) {
for (const changesetId of preState.changesets) {
await fs
.rm(path.resolve(rootDir, ".changeset", changesetId + ".md"))
.catch(() => {
// It's possible to specify an unknown id before without errors, so we
// don't throw an error here if the file doesn't exist.
});
}
delete preState.changesets;
}

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.

isn't this just to handle some old versions too? perhaps this block could also be removed entirely?

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.

oh wait, this PR is stacked on top of #2109 (which I have not noticed initially)

@bluwy bluwy closed this Jun 23, 2026
@bluwy
bluwy deleted the pre-no-initial-versions branch June 23, 2026 16: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.

2 participants