Skip to content

feat(tools): include enriched dep changes in Discord release announcement#93

Merged
towanTG merged 2 commits into
developfrom
feat/discord-enriched-notes
Jun 11, 2026
Merged

feat(tools): include enriched dep changes in Discord release announcement#93
towanTG merged 2 commits into
developfrom
feat/discord-enriched-notes

Conversation

@towanTG

@towanTG towanTG commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

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 changesbulletsInRange in tools/changelog.ts only collected top-level bullets, while enrich-dep-changelogs.ts writes the real underlying changes as indented sub-bullets. It gains an opt-in includeNested flag (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@version heading(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

**@swapkit/sdk@4.6.33** · **@swapkit/wallet-extensions@4.5.19** · **@swapkit/wallet-hardware@4.9.20** · **@swapkit/wallet-mobile@4.3.13** · **@swapkit/wallets@4.8.25**
• Update SwapKit SDK dependencies: (#91)
   ↳ Ship CHANGELOG.md in the published package. … (sdk#274)
   ↳ Prefer a user-configured TON RPC URL (via SKConfig) over the Orbs-discovered endpoint. … (sdk#272)
   ↳ Resolve the Sui client RPC endpoint via getRPCUrl(Chain.Sui) … (sdk#269)
   ↳ Resolve the Sui client RPC endpoint with getRPCUrlSync … (sdk#271)

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-run with the exact PUBLISHED_PACKAGES payload from run 27338881351 (output above) + a split-group scenario
  • bun run tools/enrich-dep-changelogs.ts --dry-run still a clean no-op
  • bun biome check clean

No changeset: tools-only change, no published package affected.

@towanTG towanTG merged commit b78217a into develop Jun 11, 2026
@towanTG towanTG deleted the feat/discord-enriched-notes branch June 11, 2026 10:16
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.

1 participant