Skip to content

Bump github.com/amatsagu/tempest from 1.10.5 to 1.11.0 - #19

Merged
dhrdlicka merged 1 commit into
mainfrom
dependabot/go_modules/github.com/amatsagu/tempest-1.11.0
Nov 25, 2026
Merged

dhrdlicka merged 1 commit into
mainfrom
dependabot/go_modules/github.com/amatsagu/tempest-1.11.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 9, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/amatsagu/tempest from 1.10.5 to 1.11.0.

Release notes

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

v1.11.0

Tempest v1.11.0 is a major performance and modernization release. This update completes the framework's migration to Go's modern encoding/json/v2 engine, replaces zlib-compression with zstd-stream compression (which is much more performant), adds buffer pooling and response streaming across the REST and Gateway hot paths to reduce number of memory allocations and overhauls interaction dispatch with zero-copy pointer semantics (again, sorry - we had that in past).

What's Changed

  • Fully transitioned all internal serialization and deserialization of json objects to Go's encoding/json/v2 and encoding/json/jsontext, providing anywhere from 5% to 15% faster JSON throughput but what's more important: we noticed lower CPU overhead and memory usage in every single benchmark and test we've made.
  • Standardized omitzero struct flag across all discord models for numeric IDs, counts, bitset flags, enums, boolean options, etc. preventing accidental serialization of invalid zero values (some of that was required due to small behavior change in json/v2).
  • Further optimized hot paths and struct definitions that caused extra memory allocations:
    • Snowflakes now implement encoding.TextAppender (AppendText) and UnmarshalText, making them faster and cheaper to parse.
    • Rate limiter now better handles /interactions/ routes, making them much cheaper at cost of slightly higher base/idle memory use.
    • User struct can be now parsed without extra reflection but as side effect: user.DisplayName() is now a function instead value.
    • Added zero-allocation discriminator scanners (peekInteractionType, peekComponentType) using jsontext.Decoder to inspect payloads in a single forward pass without unmarshaling into intermediate maps.
    • Improved signature verification on incoming HTTP requests making them do less allocations.
    • Converted CommandInteraction, ComponentInteraction, ModalInteraction, and AutoCompleteInteraction to pointer dispatch (*CommandInteraction), eliminating struct copying and heap escapes across goroutines.
    • Specialized interaction wrappers now embed the base Interaction struct by value instead of by pointer, eliminating an extra heap allocation per interaction.
    • Added global sync.Pool instances for *bytes.Buffer and *bytes.Reader to Rest, eliminating heap allocations for request bodies, and stream responses directly via json.UnmarshalRead.
  • Upgraded GatewayClient compression from zlib-stream to streaming zstd (Compression / ZstdCompression) powered by klauspost/compress/zstd. The decoder is reused across reconnects, cutting incoming Gateway memory and CPU overhead by up to ~70%.
  • Incoming and outgoing WebSocket frames now stream directly using zero-copy jsontext.Value, and read deadlines are refreshed adaptively to reduce deadline churn.
  • Hardened RateLimiter bucket synchronization to honor learned windows, preventing 429 retry loops under high concurrency, and restricted unsafe retries on non-idempotent endpoints.
  • Added uniform resolved entity accessors (itx.Data.Resolved.Resolve*(id)), modal component getters, and helper to instantly acknowledge & update parent component messages.
  • Updated Discord API models with latest Discord docs, modernized the example bot, and standardized doc comments across the codebase.
  • Fixed FindInteractiveComponent prematurely stopping on the first child instead of recursively inspecting all children thanks by @​Bertie690 in amatsagu/tempest#71.

Full Changelog: amatsagu/tempest@v1.10.5...v1.11

Commits
  • fd5793a docs: improve function comments
  • caf4c28 docs: update readme for example bot
  • 85b5c33 perf: optimize interaction dispatch, REST request buffering, and rate limit r...
  • ca4ec28 fix: use omitzero instead omitempty for optional discord struct fields
  • 6e3bc63 docs: note omitzero requirement on numbers and flags in json/v2
  • 819128e fix(json): standardize omitzero across all discord models for numeric, flag, ...
  • 4adc7cb perf(rest): eliminate route string allocations in rate limiter RoundTrip
  • d08ce8e perf(gateway): stream outgoing WebSocket frames directly and pass payload poi...
  • d0c66b2 perf: optimize HTTP interaction hot path with zero-alloc verification, pooled...
  • 50b6a45 perf: optimize command dispatch with in-place pointer resolution
  • 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 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.10.5 to 1.11.0.
- [Release notes](https://github.com/amatsagu/tempest/releases)
- [Commits](amatsagu/tempest@v1.10.5...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/amatsagu/tempest
  dependency-version: 1.11.0
  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 Nov 9, 2026
@dhrdlicka
dhrdlicka merged commit feb9cb9 into main Nov 25, 2026
1 check passed
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.

1 participant