Skip to content

Commit

Permalink
docs: add path-to-regexp update changes to history
Browse files Browse the repository at this point in the history
  • Loading branch information
nfantone committed Nov 17, 2021
1 parent 9c4e973 commit 3e46aa2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

This incorporates all changes after 1.3.5 up to 1.3.6.

* deps: `path-to-regexp@6.2.0` (See [release changelog](https://github.com/pillarjs/path-to-regexp/releases/tag/v6.2.0))
- Support for **named capturing groups** in paths using `RegExp`, i.e.: `/\/(?<group>.+)/` would result in `req.params.group` being populated.
- Custom **prefix and suffix groups** using `{}`, e.g.: `/:entity{-:action}?` would match `/user` and `/user-delete`.
- **BREAKING**: Parenthesis and bracket literals now require escaping, i.e.: `/user(:id)` or `/user{:id}` no longer match `/user(42)`, `/user{42}` as before unless written as `/user\\(:id\\)` or `/user\\{:id\\}`.
- **BREAKING**: Unbalanced patterns would now produce an error: `/test(foo` previously would worked, now it expects either `(` to be closed or the character to be escaped for the previous behavior, e.g. `/test\\(foo`.

2.0.0-beta.1 / 2020-03-29
=========================

Expand Down

0 comments on commit 3e46aa2

Please sign in to comment.