Skip to content

Releases: borderless/router

Generic router param

24 Jun 20:34
da6abee
Compare
Choose a tag to compare

Changed

  • Add generic argument to router input params
  • Bump node version 20b4049
  • Reduce number of intermediate arrays produced f1e1783

v1.0.4...v1.0.5

Handle empty strings statically

06 Jul 06:11
8694abb
Compare
Choose a tag to compare
  • Handle empty segments as static empty strings 4650bcb

v1.0.3...v1.0.4

Fix matching empty routes

06 Jul 05:34
1508532
Compare
Choose a tag to compare
  • Define router type explicitly 95c7adc
  • Fix sorting of undefined path bfbc1d1
  • Raise redefinition error on empty routes b3ce07c
  • Fix route matching an empty string 0378be6

v1.0.2...v1.0.3

Fix module type to ESM

06 Jul 05:04
5f4e1dd
Compare
Choose a tag to compare
  • Accept iterable as input 19512d9
  • Add module type to package.json cd9a357

v1.0.1...v1.0.2

Remove bin

06 Jul 04:53
74dd26f
Compare
Choose a tag to compare

Initial release

06 Jul 04:46
bda5965
Compare
Choose a tag to compare

Simple router with sorted route matching based on specificity, with support for simple dynamic segments. Mostly designed for use with file-system based routes (e.g. Next.js) and will avoid usages of characters that don't work on the filesystem (e.g. :).