Skip to content

Releases: pillarjs/path-to-regexp

ES2015 Package for Bundlers

Choose a tag to compare

@blakeembrey blakeembrey released this 12 Nov 03:32

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

Choose a tag to compare

@blakeembrey blakeembrey released this 11 Nov 05:50

Added

  • Add native match function to library

Backport token to function options

Choose a tag to compare

@blakeembrey blakeembrey released this 11 Nov 03:38

Added

  • Backport TokensToFunctionOptions

Validate and sensitive options

Choose a tag to compare

@blakeembrey blakeembrey released this 31 Aug 04:00
  • Add sensitive option for tokensToFunction (#191)
  • Add validate option to path functions (#178)