Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd committed Sep 9, 2024
1 parent 168de1d commit 2e7fb67
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
unreleased
=========================
2.0.0 / 2024-09-09
==================

* Drop support for node <18
* deps: path-to-regexp@^8.0.0
- Drop support for partial capture group `router.route('/user(s?)/:user/:op')` but still have optional non-capture `/user{s}/:user/:op`
- `:name?` becomes `{:name}`
- `:name*` becomes `*name`.
- The splat change also changes splat from strings to an array of strings
- Optional splats become `{*name}`
- `:name+` becomes `*name` and thus equivalent to `*name` so I dropped those tests
- Strings as regular expressions are fully removed, need to be converted to native regular expressions

2.0.0-beta.2 / 2024-03-20
=========================
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "router",
"description": "Simple middleware-style router",
"version": "2.0.0-beta.2",
"version": "2.0.0",
"author": "Douglas Christopher Wilson <[email protected]>",
"contributors": [
"Blake Embrey <[email protected]>"
Expand Down

0 comments on commit 2e7fb67

Please sign in to comment.