Packages

path-to-regexp

9.0.0 · 22 Oct 2026MIT310.6M / weekRepositoryHomepagenpmAtom feed

Upgrading path-to-regexp From 4.0.3 to 6.3.0

9 releases in betweennotes for 6

Reading releases, release notes and advisories…

Other targets from 4.0.3Newest 4.x4.0.5Latest9.0.0
The note of 6.0.0, 5.0.0 lists no breaking change or deprecation, which is rare for a major.
  1. 4.0.3yours
  2. 2 releases
  3. 5.0.0major
  4. 6.0.0major
  5. 4 releases
  6. 6.3.0target
?
changes to make
1
advisory fixed
6+
new
1+
fix

Counted from 6 of 9 release notes. Advisories are counted from the advisory database, in full.

Security

Fixes 1 advisory affecting 4.0.3

Release by release

  1. 6.3.0

    12 Sep 20241 new
    • new

      Add backtrack protection to 6.x (#324) f1253b4

  2. 6.2.2no release note

  3. 6.2.1

    6 May 20221 new · 1 fix
    • new

      New example in documentation (#256) ae9e576

    • fixed

      Fix invalid matching of :name* parameter (#261) 762bc6b

  4. 6.2.0

    29 Sep 20201 new
    • new

      Support named capturing groups for RegExps

  5. 6.1.0nothing new or fixed in the note

  6. 6.0.0

    20 Nov 20193 new
    • new

      Support for nested non-capturing groups in regexp, e.g. /(abc(?=d))

    • new

      Support for custom prefix and suffix groups using /{abc(.*)def}

    • new

      Add support for {} to capture prefix/suffix explicitly, enables custom use-cases like /:attr1{-:attr2}?

  7. 4.0.4 – 5.0.03 releases, nothing new or fixed; 2 without a note

11 other lines we could not sort, mostly version bumps
  • Compare delimiter string over regexp 86baef8

    6.2.1
  • Update demo link (#250) 77df638

    6.2.1
  • Update README encode example b39edd4

    6.2.1
  • Update strict flag documentation

    6.2.0
  • Ignore test files when bundling

    6.2.0
  • Use /#? as default delimiter to avoid matching on query or fragment parameters

    6.1.0
  • Tokens in an unexpected position will throw an error

    6.0.0
  • Revert using any character as prefix, support prefixes option to configure this (starts as /. which acts like every version since 0.x again)

    6.0.0
  • Rename RegexpOptions interface to TokensToRegexpOptions

    5.0.0
  • Remove normalizePathname from library, document solution in README

    5.0.0