npm path-to-regexp 8.4.0

4 hours ago

Important

Fixed

  • Restricts wildcard backtracking when using more than 1 in a path (#421)

Changed

  • Dedupes regex prefixes (#422)
    • This will result in shorter regular expressions for some cases using optional groups
  • Rejects large optional route combinations (#424)
    • When using groups such as /users{/delete} it will restrict the number of generated combinations to < 256, equivalent to 8 top-level optional groups and unlikely to occur in a real world application, but avoids exploding the regex size for applications that accept user created routes

Don't miss a new path-to-regexp release

NewReleases is sending notifications on new releases.