v1.8.0
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 supplycontext.Background()
to keep the old behavior. - This should better support use-cases like distributed tracing.
- BREAKING This change breaks the signature of
Full Changelog: v1.7.1...v1.8.0