Releases: pillarjs/path-to-regexp
Releases · pillarjs/path-to-regexp
Remove Default Encode URI Component
No changes to path rules since 3.x, except support for nested RegEx parts in 4.x.
Changed
- Rename
RegexpOptionsinterface toTokensToRegexpOptions - Remove
normalizePathnamefrom library, document solution in README - Encode using identity function as default, not
encodeURIComponent
Decode URI
Removed
- Remove
whitelistin favor ofdecodeURI(advanced behavior can happen outsidepath-to-regexp)
Remove `String#normalize`
Fixed
- Remove usage of
String.prototype.normalizeto continue supporting IE
Normalize Path Whitelist
Added
- Add normalize whitelist of characters (defaults to
/%.-)
Allow `RegexpOptions` in `match`
Fixed
- Allow
RegexpOptionsinmatch(...)function
Fix Spelling of Regexp
Fixed
- Normalize
regexpspelling across 4.x
ES2015 Package for Bundlers
All path rules are backward compatible with 3.x, except for nested () and other RegEx special characters that were previously ignored.
Changed
- Export names have changed to support ES2015 modules in bundlers
matchdoes not default todecodeURIComponent
Added
- New
normalizePathnameutility for supporting unicode paths in libraries - Support nested non-capturing groups within parameters
- Add tree-shaking (via ES2015 modules) for webpack and other bundlers
Match Function
Added
- Add native
matchfunction to library
Backport token to function options
Added
- Backport
TokensToFunctionOptions