Skip to content

Releases: ckastbjerg/next-type-safe-routes

Bug fixes and improvements

16 Nov 21:11
Compare
Choose a tag to compare
Pre-release

Bug fixes

  • Make paths in plugin be system-independent (See #28)
  • Fix period handling (See #24)
  • Fix syntax of output of consts (See #23)
  • Quote route parameters (See #16)

Improvements

  • Run the original webpack() function if present in config (See #20)

Big thanks to @osdiab for the contributions! 🙏

Add support for catch all routes

20 Apr 06:40
a724f0c
Compare
Choose a tag to compare
Pre-release

This release adds support for catch all routes as well as optional catch all routes.

See #12 and #13 for details

Less strict type for Query

08 Apr 08:45
1369000
Compare
Choose a tag to compare
Pre-release

Bug fix. See #11

Improved API surface

07 Apr 21:14
1955634
Compare
Choose a tag to compare
Improved API surface Pre-release
Pre-release

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

26 Mar 22:40
Compare
Choose a tag to compare
v0.1.0

:bookmark: Bump to v. 0.1.0

Enhanced documentation

26 Mar 15:24
c104f02
Compare
Choose a tag to compare

Just a bunch of updates to the README.

Simplify path to import plugin

22 Mar 05:49
Compare
Choose a tag to compare
v0.0.21-alpha

:bookmark: Update to 0.0.21-alpha

Re-generate types when files are added or remove

22 Mar 08:24
f0efcc3
Compare
Choose a tag to compare
v.0.0.22-alpha

Merge pull request #6 from ckastbjerg/re-generate-types-no-file-add-a…

v0.0.18-alpha

21 Mar 12:51
Compare
Choose a tag to compare
:bookmark: Update version tag to 0.0.18-alpha

v.0.0.20-alpha: Merge pull request #5 from ckastbjerg/add-basic-tests

21 Mar 21:32
b484f1e
Compare
Choose a tag to compare