Releases · pillarjs/path-to-regexp (original) (raw)
v8.4.2
01 Apr 21:18
Immutablerelease. Only release title and notes can be modified.
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
30 Mar 22:56
Immutablerelease. Only release title and notes can be modified.
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:
*/*foowith/a/b=/a
*/*foo.htmlwith/a/b.html/c.html=/a/b.html
- Using a trie required non-greedy matching, which regressed wildcards in non-ending mode by matching them up until the first match. For example:
- 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_.
- When backtracking was introduced, it rejected matching things like
v8.4.0
26 Mar 18:44
Immutablerelease. Only release title and notes can be modified.
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
- When using groups such as
0.1.13
26 Mar 15:37
Immutablerelease. Only release title and notes can be modified.
v8.3.0
02 Sep 21:18
Immutablerelease. Only release title and notes can be modified.
Changed
- Add custom error class (#398) 2a7f2a4
- Allow plain objects for
TokenData(#391) 687a9bb - Escape text should escape backslash (#390) a4a8552
- Improved error messages and stack size (#363) a6bdf40
Other
- Minifying the parser
Fix backtracking (again)
v8.2.0
26 Sep 03:28
Immutablerelease. Only release title and notes can be modified.
Fixed
- Allowing
path-to-regexpto run on older browsers by targeting ES2015
Fix backtracking in 6.x
Error on bad input
v8.1.0
Added
- Adds
pathToRegexpmethod back for generating a regex - Adds
stringifymethod for convertingTokenDatainto a path string