async-context-middleware@0.3.0
Breaking Changes📦 remixView on GitHub →
⚠ 2 breaking🔧 4 symbols
Summary
This release introduces a breaking change to how `getContext()` derives its type, aligning it with `fetch-router`, and removes the redundant `AsyncContextTypes.requestContext` augmentation.
⚠️ Breaking Changes
- The return type of `getContext()` now derives from `fetch-router`'s `RouterTypes.context`. Route parameters are broadened to `AnyParams`.
- The separate `AsyncContextTypes.requestContext` augmentation has been removed. Apps configuring their router context should no longer apply this second async-context-specific augmentation.
Migration Steps
- If you were augmenting `AsyncContextTypes.requestContext`, remove that augmentation as it is no longer necessary.