Skip to content

Simplify getChangelogEntry#632

Merged
bluwy merged 1 commit into
mainfrom
simplify-get-changelog-entry
May 27, 2026
Merged

Simplify getChangelogEntry#632
bluwy merged 1 commit into
mainfrom
simplify-get-changelog-entry

Conversation

@bluwy
Copy link
Copy Markdown
Member

@bluwy bluwy commented May 25, 2026

I copied the function from https://github.com/changesets/changesets/blob/eaea8a45aca36f2c87adf888e3a73cd2c3a9ee39/packages/release-utils/src/utils.ts#L33

Which I've updated for next in changesets/changesets#1962. This removes a ton of dependencies and slightly reduces our bundle size:

  • Before: 1,227.77 kB
  • After: 1,131.49 kB

We also don't have to update the deps (they're outdated). We could import this from @changesets/release-utils if we want, but the changes I made is in next. And I'm also not sure if we want to start using @changesets/release-utils here. So I went with the simple approach and copy the function to here.

I totally understand if we do not feel like doing this now. I feel that it's ok since we've added more tests for it, and it only affects the version PR description. But I'll leave it to you to see if we should do this now, or later.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 25, 2026

🦋 Changeset detected

Latest commit: 84bd40d

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

This PR includes changesets to release 1 package
Name Type
@changesets/action 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

@Andarist
Copy link
Copy Markdown
Member

I'm not a fan of parsing this with regex 😬 but I guess, we can try... it gives me edge-case creeps though.

@bluwy
Copy link
Copy Markdown
Member Author

bluwy commented May 27, 2026

Yeah I'm happy to revert if we get any reports. Since it affects the PR description only, I think it's relatively safe to test if this works and prep the same changes in core.

@bluwy bluwy added this pull request to the merge queue May 27, 2026
Merged via the queue into main with commit 1d54b9e May 27, 2026
7 checks passed
@bluwy bluwy deleted the simplify-get-changelog-entry branch May 27, 2026 15:42
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