Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 4, 2025

Bumps github.com/amatsagu/tempest from 1.2.3 to 1.3.1.

Release notes

Sourced from github.com/amatsagu/tempest's releases.

v1.3.1

What's Changed

  • Fixed regression where syncing commands with discord could panic when client tried to process sub slash commands before having base command groups prepared,
  • Added more "inline reply" helper methods for interactions

Full Changelog: amatsagu/tempest@v1.3.0...v1.3.1

v1.3.0

[!WARNING] Due to change in behavior or name of many structs and/or their fields, manual intervention will be required after updating to make older apps/bots work. This update doesn't contain (other than syntax) breaking changes.

What's Changed

  • Bumped required Go version & updated a lot of structs related interactions and responses to match latest Discord API docs changes,
  • Updated the way how slices and maps are handled in json payloads with new omitzero tag added in Go v1.24 - this allows to easily send empty array in json payload whenever it's needed to signal empty option, previously it used hack on bytes to achieve it,
  • Introduced basic support for Entitlements and SKU fields - those are used for Discord Monetization feature,
  • Started using dedicated Bitfield helper struct when dealing with all kind of flags or permissions,
  • Significantly improved time it takes to upload files thanks to streaming file contents (up to 4x faster than before),
  • Redesigned how dynamic component/modal listeners work:
    • From now, they rely on developer to control their lifecycle - at first it gonna look more difficult but has a bonus of it now working with context.Context, so it's possible to introduce graceful shutdown or other advanced control patterns,
    • There's no longer any ticking function to auto-clear remaining listener(s) - this part is also on developer from now. Look at new example app/bot code in ./example directory, specifically /dynamic command how it can be used. It improved app performance but may lead to memory leaks if not handled properly.
  • Introduced full support for message components v2:
    • Created struct definitions for all 15 components like Button, String Select, File, Separator, etc.
    • Pseudo-grouped them into 5 interfaces for better type safety: LayoutComponent, InteractiveComponent, ContentComponent, AccessoryComponent,
    • Added few custom unmarshal handlers + helper function to use new component system as it got far more complicated due to usage of interfaces
  • Unified interaction structs & skipped useless fields like Message or Version to reduce struct allocation size,
  • Updated README.md & CODE_NOTES.md,
  • Updated example app/bot code to reflect all higher changes & updates,
  • Deleted sync.Pool from Client - after various tests: there appears to be at best ~1% improvement in memory usage from using them. I'm not exactly sure why it happens but they appear to not work too well with json, so for now we'll move back to regular encoding/json way of using it and patiently wait for Go v1.25 that adds json/v2 which should be noticeably more efficient,
  • Fixed rare bug that appeared when trying to upload multiple files in same message reply,
  • Fixed regression in Client.RegisterSubCommand() (thanks to @​lumap now it should work properly),

[!NOTE] On personal Discord App, I've noticed on average 7% lower memory footprint with all higher changes. Not all elements were fully tested - for example, we don't use Entitlements (yet) so they were not tested in action, however they follow Discord API documentation page so there shouldn't be any problems.

New Contributors

Full Changelog: amatsagu/tempest@v1.2.3...v1.3.0

Commits
  • ad1bbd7 feat: updated license
  • 290564f feat: updated example code to include subcommands
  • 9eb0406 fix: solved regression that caused sub commands to not be parsed properly
  • d7e4143 feat: added more linear method helpers
  • 4d9474a style: correct grammar typo
  • c54133d fix: delete old, test print messages used back in testing
  • 3997602 fix: update struct names
  • 090dfdd fix: include parsed Data object in component interaction
  • fe8b59c feat: slightly optimize payload parsing with partial json parsing
  • 841b33e style: unify struct naming pattern
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/amatsagu/tempest](https://github.com/amatsagu/tempest) from 1.2.3 to 1.3.1.
- [Release notes](https://github.com/amatsagu/tempest/releases)
- [Commits](amatsagu/tempest@v1.2.3...v1.3.1)

---
updated-dependencies:
- dependency-name: github.com/amatsagu/tempest
  dependency-version: 1.3.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Aug 4, 2025
@dhrdlicka dhrdlicka merged commit e2f8d81 into main Aug 29, 2025
1 check passed
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/amatsagu/tempest-1.3.1 branch August 29, 2025 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants