- Silence Next.js native errors in
createSafeRouteHandlerand allow to returnneverwhenredirectis used inside a Route Handler.
- Add support for Next.js parallel routes with new
experimental_slotsoption increateSafeLayoutServerComponent. - Remove
TypeScriptas peer dependency.
- Fix
onErrorcallback call increateSafePageServerComponentandcreateSafeLayoutServerComponent. Now it's not called anymore for Next.js native errors.
- Update internal logging.
- Silent Next.js native errors. They won't clutter logs anymore.
- Update documentations and meta files.
- Package/repo related changes.
- Introducing new functions
createSafePageServerComponentandcreateSafeLayoutServerComponentexported from@sugardarius/anzen/server-componentsto validate segments, search params, and authorize Page and Layout files in Next.js. - Add doc in website for new functions
createSafePageServerComponentandcreateSafeLayoutServerComponent. - Add validated props in the authorize option params for
createSafeRouteHandler.
- Add support for Next.js 16 🚀
- Update type management when using
NextRequest.
- Fix typo in logs when the handler throws.
- Make request as a generic type to use
NextRequestgracefully. - Clone original request to avoid side effects and to make it consumable in the
authorizefunction.
- Internal refactoring.
- Route handler function execution time is now logged into the console.
- Original request is now cloned when consuming the body for validation operations.
- Update jsdoc.
- Update README.md.
- Public announcement.
- Package public release (not officially announced).
- Allow workflow permissions
- Patch (private).
- Initial release (private).