Releases: ethanniser/next-typesafe-url
Releases · ethanniser/next-typesafe-url
[email protected]
[email protected]
[email protected]
Patch Changes
- ea127fd: Fix bug with index route under a route group where the generate type file route string is blank
[email protected]
Patch Changes
- 5ff950a: Add support for nextjs<15 where search/route params are not promises
[email protected]
Patch Changes
- c69cb20: bump react peer dep
[email protected]
Patch Changes
- 38a7e77: Fix peer dep issue for nextjs 15
[email protected]
Minor Changes
- ead4092: updates the cli to allow for a custom filename to be set under the --filename flag to replace the default of 'routeType.ts' - Thank you @JasonPaff !
[email protected]
Major Changes
-
2195782: Add support for Next.js 15, which makes accessing search and route params from page components and layouts async
This change required moving the parsing logic from the HOC component, and before your page component ever gets called, to when you
await
/.then
the searchParams/routeParams promise. This means that those promises will now reject when validation fails, but this also allows more fine grained error handling.
[email protected]
Patch Changes
- 5ee638f: Fixed page useRouteParams error status not reset issue.
[email protected]
Minor Changes
- fb7e555: - Added pageExtensions CLI flag.
- Added .tsx extension support for routeType files.