Skip to content

Releases: pillarjs/path-to-regexp

v8.4.2

01 Apr 21:18
Immutable release. Only release title and notes can be modified.
cbf3025

Choose a tag to compare

Fixed

Performance

  • Minimize array allocations (#437) 937c02d
  • Improve compile performance (#436) 57247e6
    • Should improve compilation performance by ~25%
  • Remove internal tokenization during parse (#435) 5844988
    • Should improve parse performance by ~20%

Bundle size to 1.93 kB, from 1.97 kB.


v8.4.1...v8.4.2

v8.4.1

30 Mar 22:56
Immutable release. Only release title and notes can be modified.
7f05876

Choose a tag to compare

Fixed

  • Remove trie deduplication (#431) 6bc8e84
    • Using a trie required non-greedy matching, which regressed wildcards in non-ending mode by matching them up until the first match. For example:
      • /*foo with /a/b = /a
      • /*foo.htmlwith /a/b.html/c.html = /a/b.html
  • Allow backtrack handling to match itself (#427) 5bcd30b
    • When backtracking was introduced, it rejected matching things like /:"a"_:"b" against /foo__. This makes intuitive sense because the second parameter is not going to backtrack on _ anymore, but it's somewhat unexpected since there's no reason it shouldn't match the second _.

v8.4.0...v8.4.1

v8.4.0

26 Mar 18:44
Immutable release. Only release title and notes can be modified.
34cb451

Choose a tag to compare

Important

Fixed

  • Restricts wildcard backtracking when using more than 1 in a path (#421)

Changed

  • Dedupes regex prefixes (#422)
    • This will result in shorter regular expressions for some cases using optional groups
  • Rejects large optional route combinations (#424)
    • When using groups such as /users{/delete} it will restrict the number of generated combinations to < 256, equivalent to 8 top-level optional groups and unlikely to occur in a real world application, but avoids exploding the regex size for applications that accept user created routes

0.1.13

26 Mar 15:37
Immutable release. Only release title and notes can be modified.
9fd0c87

Choose a tag to compare

v8.3.0

02 Sep 21:18
Immutable release. Only release title and notes can be modified.
c4f5b3f

Choose a tag to compare

Changed

Other

v8.2.0...v8.3.0

Fix backtracking (again)

05 Dec 22:09
640e694

Choose a tag to compare

Fixed

  • Improved backtracking protection for 0.1.x, will break some previously valid paths (see previous advisory: GHSA-9wv6-86v2-598j)

v0.1.11...v0.1.12

v8.2.0

26 Sep 03:28
Immutable release. Only release title and notes can be modified.
776c898

Choose a tag to compare

Fixed

  • Allowing path-to-regexp to run on older browsers by targeting ES2015
    • Target ES2015 5969033
      • Also saved 0.22kb (10%!) by removing the private class field down level
    • Remove s flag from regexp 51dbd45

v8.1.0...v8.2.0

Fix backtracking in 6.x

12 Sep 01:09
75a92c3

Choose a tag to compare

Fixed

v6.2.2...v6.3.0

Error on bad input

12 Sep 18:15
0c71192

Choose a tag to compare

Changed

  • Add error on bad input values 8f09549

v0.1.10...v0.1.11

v8.1.0

10 Sep 00:26
c302644

Choose a tag to compare

Added

  • Adds pathToRegexp method back for generating a regex
  • Adds stringify method for converting TokenData into a path string

v8.0.0...v8.1.0