Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork447
Releases: pillarjs/path-to-regexp
8.3.0
c4f5b3fFix backtracking (again)
640e694Fixed
- Improved backtracking protection for 0.1.x, will break some previously valid paths (see previous advisory:GHSA-9wv6-86v2-598j)
Assets2
Uh oh!
There was an error while loading.Please reload this page.
8.2.0
776c898Fixed
- Allowing
path-to-regexpto run on older browsers by targeting ES2015
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Fix backtracking in 6.x
75a92c3Assets2
Uh oh!
There was an error while loading.Please reload this page.
Error on bad input
0c71192Assets2
Uh oh!
There was an error while loading.Please reload this page.
v8.1.0
c302644Added
- Adds
pathToRegexpmethod back for generating a regex - Adds
stringifymethod for convertingTokenDatainto a path string
Assets2
Uh oh!
There was an error while loading.Please reload this page.
Support array inputs (again)
8f67b8bAssets2
Uh oh!
There was an error while loading.Please reload this page.
Add backtracking protection
2eb1293Assets2
Uh oh!
There was an error while loading.Please reload this page.
Fix backtracking in 1.x
c75eb10Assets2
Uh oh!
There was an error while loading.Please reload this page.
Simpler API
ed1095eHeads up! This is a fairly large change (again) and I need to apologize in advance. If I foresaw what this version would have ended up being I would not have released version 7. A longer blog post and explanation will be incoming this week, but the pivot has been due to work on Express.js v5 and this will the finalized syntax used in Express moving forward.
Edit: The post is out -https://blakeembrey.com/posts/2024-09-web-redos/
Added
- Adds key names to wildcards using
*namesyntax, aligns with:behavior but using an asterisk instead
Changed
- Removes group suffixes of
?,+, and*- only optional exists moving forward (use wildcards for+,{*foo}for*) - Parameter names follow JS identifier rules and allow unicode characters
Added
- Parameter names can now be quoted, e.g.
:"foo-bar" - Match accepts an array of values, so the signature is now
string | TokenData | Array<string | TokenData>
Removed
- Removes
loosemode - Removes regular expression overrides of parameters
Assets2
Uh oh!
There was an error while loading.Please reload this page.