Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@dkacper dkacper released this 18 Aug 14:15
· 2 commits to master since this release
e93b77f

Major version release: v1.0.0.

BREAKING CHANGES:

  • compose method is now called compile to unify its name with path-to-regexp method that's used underneath.

New features:

  • pattern property.
  • isSame method to compare two routes using type predicate.
  • All params modifiers: ?, +, and * now works and infers properly from the pattern.

Bug fixes:

  • match method returns params when pattern provides no params. Previously it was returning false in such a case.