Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

path-to-regexp

Package Overview
Dependencies
Maintainers
5
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-to-regexp - npm Package Versions

1
7

2.3.0

Diff

Changelog

Source

2.3.0 / 2018-08-20

  • Use delimiter when processing repeated matching groups (e.g. foo/bar has no prefix, but has a delimiter)
blakeembrey
published 2.2.1 •

Changelog

Source

2.2.1 / 2018-04-24

  • Allow empty string with end: false to match both relative and absolute paths
blakeembrey
published 2.2.0 •

Changelog

Source

2.2.0 / 2018-03-06

  • Pass token as second argument to encode option (e.g. encode(value, token))
blakeembrey
published 2.1.0 •

Changelog

Source

2.1.0 / 2017-10-20

  • Handle non-ending paths where the final character is a delimiter
    • E.g. /foo/ before required either /foo/ or /foo// to match in non-ending mode
blakeembrey
published 2.0.0 •

Changelog

Source

2.0.0 / 2017-08-23

  • New option! Ability to set endsWith to match paths like /test?query=string up to the query string
  • New option! Set delimiters for specific characters to be treated as parameter prefixes (e.g. /:test)
  • Remove isarray dependency
  • Explicitly handle trailing delimiters instead of trimming them (e.g. /test/ is now treated as /test/ instead of /test when matching)
  • Remove overloaded keys argument that accepted options
  • Remove keys list attached to the RegExp output
  • Remove asterisk functionality (it's a real pain to properly encode)
  • Change tokensToFunction (e.g. compile) to accept an encode function for pretty encoding (e.g. pass your own implementation)
blakeembrey
published 1.7.0 •

Changelog

Source

1.7.0 / 2016-11-08

  • Allow a delimiter option to be passed in with tokensToRegExp which will be used for "non-ending" token match situations
blakeembrey
published 1.6.0 •

Changelog

Source

1.6.0 / 2016-10-03

  • Populate RegExp.keys when using the tokensToRegExp method (making it consistent with the main export)
  • Allow a delimiter option to be passed in with parse
  • Updated TypeScript definition with Keys and Options updated
blakeembrey
published 1.5.3 •

Changelog

Source

1.5.3 / 2016-06-15

  • Add \\ to the ignore character group to avoid backtracking on mismatched parens
blakeembrey
published 1.5.2 •

Changelog

Source

1.5.2 / 2016-06-15

  • Escape \\ in string segments of regexp
blakeembrey
published 1.5.1 •

Changelog

Source

1.5.1 / 2016-06-08

  • Add index.d.ts to NPM package
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc