Skip to content

v1.8.0

Compare
Choose a tag to compare
@motoki317 motoki317 released this 25 Mar 11:10
· 5 commits to master since this release
42c201c

Changes

  • Added size-related statistics to Stats() method.
  • Contexts passed to replaceFn no longer propagates cancellation signals.
    • Cancel propagation inside request coalescing is not usually desirable, as it represents multiple value requests. If only one request that initiated the replaceFn call cancels the context, all other waiting goroutines get the same "context canceled" error, which is usually not something desirable.
    • The library now requires Go >= 1.21 as it uses context.WithoutCancel().
  • Allow context value propagation (but without cancel propagation) for all replaceFn call paths, including background update.
    • BREAKING This change breaks the signature of Notify() method, but you can just supply context.Background() to keep the old behavior.
    • This should better support use-cases like distributed tracing.

Full Changelog: v1.7.1...v1.8.0