Releases: rawnly/next-wayfinder
Releases · rawnly/next-wayfinder
v0.3.0
v0.2.3
What's Changed
New api and breaking changes:
-
Is now available a
beforeAll
callback that is executed before the request reaches any middleware. It is available both globally and per hostname. -
The signature of the handler has changed to use the response generated by the
beforeAll
callback
declare type Handler = <T>(request: NextRequestWithParams<T>, response: NextResponse, event: NextFetchEvent) => NextResponse
- Renamed
inecjtor
tocontext
- Added a response factory in the options to improve compatibility with other middlewares
Changes
- feat: added
beforeAll
middleware and renamedinjector
to context - docs: changelog
- fix: fixed context and response factory
- docs: updated docs + example
- chore: updated versions
- docs: copy readme to package folder
- docs: readme update
Full Changelog: v0.2.1...0.2.3