feat(tools): include enriched dep changes in Discord release announcement#93
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The first Discord release announcement (from #92's publish) only showed
• Update SwapKit SDK dependencies: (#91)— the enriched changes were dropped, and there was no per-package attribution. Two changes:1. Include the enriched dep changes —
bulletsInRangeintools/changelog.tsonly collected top-level bullets, whileenrich-dep-changelogs.tswrites the real underlying changes as indented sub-bullets. It gains an opt-inincludeNestedflag (still skipping nested refs under "Updated dependencies" blocks); default behavior unchanged, so the enricher is unaffected.2. List every bumped package with its changeset since the last released version — the embed description is now one section per package group: the
package@versionheading(s), then that section's notes. Packages whose newest changelog sections carry identical changes (the usual case for a dep-bump release) are grouped under one heading instead of repeating the notes five times; packages with only internal dep bumps show "Dependency updates only.".Only the just-released version's section is sliced per package — not the full changelog.
Dry-run against the actual 4.8.25 release
And with packages on different sections (simulated sdk@4.6.33 + wallets@4.8.24), the groups split correctly with each package showing its own notes.
Testing
bun run tools/announce-release.ts --dry-runwith the exactPUBLISHED_PACKAGESpayload from run 27338881351 (output above) + a split-group scenariobun run tools/enrich-dep-changelogs.ts --dry-runstill a clean no-opbun biome checkcleanNo changeset: tools-only change, no published package affected.