Releases: ckastbjerg/next-type-safe-routes
Releases · ckastbjerg/next-type-safe-routes
Bug fixes and improvements
Add support for catch all routes
This release adds support for catch all routes as well as optional catch all routes.
Less strict type for Query
Bug fix. See #11
Improved API surface
For all API changes, please refer to the updated README.
But these are the gist of the changes...
A breaking change has been introduced for getting dynamic routes:
// v.0.1.0
getRoute({ route: "/users/[userId]", userId: 1 });
// v.0.2.0-alpha
getRoute({ route: "/users/[userId]", params: { userId: 1 } });
Another breaking change is for the optional (non-type-safe) query
option:
// v.0.1.0
getRoute("/users", { a: "b" });
// v.0.2.0-alpha
getRoute({ route: "/users", query: { a: "b" } });
A non-breaking change is, that simple routes can now also be retrieve more explicitly:
// v.0.1.0
getRoute("/users");
// v.0.2.0-alpha also allows
getRoute({ route: "/users" });
Improved documentation
v0.1.0 :bookmark: Bump to v. 0.1.0
Enhanced documentation
Just a bunch of updates to the README.
Simplify path to import plugin
v0.0.21-alpha :bookmark: Update to 0.0.21-alpha
Re-generate types when files are added or remove
v.0.0.22-alpha Merge pull request #6 from ckastbjerg/re-generate-types-no-file-add-a…
v0.0.18-alpha
:bookmark: Update version tag to 0.0.18-alpha
v.0.0.20-alpha: Merge pull request #5 from ckastbjerg/add-basic-tests
Adding more tests