Skip to content

v1.0.0

Compare
Choose a tag to compare
@simonecorsi simonecorsi released this 27 Oct 08:07
· 225 commits to main since this release

1.0.0 (2022-10-27)

Bug Fixes

  • allow type checking to work with native Node16 Typescript ESM (#10) (3df7c15)

  • do not remove single / when removing trailing slash (2f5d6f0)

  • docs and release variable (c49411c)

  • ignore functional nodes (#12) (39bf05f)

  • refactor!: remove router.lookup all (1698876)

  • feat!: make strict trailing slash opt-in (#17) (961953c), closes #17

  • fix!: use map to access child keys (#15) (36afa3c), closes #15

Features

  • added immobiliarelabs standards (6a8951d)
  • added the possibility to add functions to match the route path (9c683ef)
  • match wildcard param (9498610)
  • named wildcard routes (2c681b4)
  • removed change log (6f3f21c)
  • route matcher (#16) (c84c770)
  • support unnamed placeholders with single * (5900b13)

BREAKING CHANGES

  • lookupAll is not available. use new toMatcher(router).matchAll
  • Ignore trailing slash by default. can be enabled back by passing strictTrailingSlash: true to createRouter options.
  • Internal children type is changed from object to array