Skip to content

Releases: pillarjs/path-to-regexp

Normalize Path Whitelist

12 Nov 06:54
Compare
Choose a tag to compare

Added

  • Add normalize whitelist of characters (defaults to /%.-)

Allow `RegexpOptions` in `match`

12 Nov 04:35
Compare
Choose a tag to compare

Fixed

  • Allow RegexpOptions in match(...) function

Fix Spelling of Regexp

12 Nov 04:10
Compare
Choose a tag to compare

Fixed

  • Normalize regexp spelling across 4.x

ES2015 Package for Bundlers

12 Nov 03:32
Compare
Choose a tag to compare

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
  • match does not default to decodeURIComponent

Added

  • New normalizePathname utility 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

11 Nov 05:50
Compare
Choose a tag to compare

Added

  • Add native match function to library

Backport token to function options

11 Nov 03:38
Compare
Choose a tag to compare

Added

  • Backport TokensToFunctionOptions

Validate and sensitive options

31 Aug 04:00
Compare
Choose a tag to compare
  • Add sensitive option for tokensToFunction (#191)
  • Add validate option to path functions (#178)