Skip to content
Merged

2.3.0 #222

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 58 additions & 54 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
unreleased
==========
2.3.0
=====

* Add `router.listRoutes()` to list the registered routes
* Add `diagnostics_channel` tracing through the `express.router.request` `TracingChannel`
- Traces request handlers, error handlers and `router.param()` callbacks
- Exposes the matched route pattern as `route` on the tracing context
* Add TypeScript declarations for `Router` and `Route`
* perf: skip decoding route parameters without `%`
* Set `err.statusCode` to 400 for malformed route parameters
Expand All @@ -9,14 +13,14 @@ unreleased
- The internal `Layer` no longer stores `keys`, `params` or `path`
- The internal `layer.match()` returns `{ params, path, keys, pattern }` or `false` instead of a boolean

2.2.0 / 2025-03-26
==================
2.2.0
=====

* Remove `setImmediate` support check
* Restore `debug` dependency

2.1.0 / 2025-02-10
==================
2.1.0
=====

* Updated `engines` field to Node@18 or higher
* Remove `Object.setPrototypeOf` polyfill
Expand All @@ -27,8 +31,8 @@ unreleased
* Replace `utils-merge` dependency with `Object.assign`
* deps: Remove unused dep `after`

2.0.0 / 2024-09-09
==================
2.0.0
=====

* Drop support for node <18
* deps: path-to-regexp@^8.0.0
Expand All @@ -40,15 +44,15 @@ unreleased
- `: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
=========================
2.0.0-beta.2
============

This incorporates all changes after 1.3.5 up to 1.3.8.

* Add support for returned, rejected Promises to `router.param`

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

This incorporates all changes after 1.3.3 up to 1.3.5.

Expand All @@ -71,8 +75,8 @@ This incorporates all changes after 1.3.3 up to 1.3.5.
`/foo/*/bar` will match a literal `*` as the middle segment.
* deps: setprototypeof@1.2.0

2.0.0-alpha.1 / 2018-07-27
==========================
2.0.0-alpha.1
=============

* Add basic support for returned, rejected Promises
- Rejected Promises from middleware functions `next(error)`
Expand All @@ -84,42 +88,42 @@ This incorporates all changes after 1.3.3 up to 1.3.5.
- Remove `DEBUG_FD` environment variable support
- Support 256 namespace colors

1.3.8 / 2023-02-24
==================
1.3.8
=====

* Fix routing requests without method

1.3.7 / 2022-04-28
==================
1.3.7
=====

* Fix hanging on large stack of sync routes

1.3.6 / 2021-11-15
==================
1.3.6
=====

* Fix handling very large stacks of sync middleware
* deps: safe-buffer@5.2.1

1.3.5 / 2020-03-24
==================
1.3.5
=====

* Fix incorrect middleware execution with unanchored `RegExp`s
* perf: use plain object for internal method map

1.3.4 / 2020-01-24
==================
1.3.4
=====

* deps: array-flatten@3.0.0
* deps: parseurl@~1.3.3
* deps: setprototypeof@1.2.0

1.3.3 / 2018-07-06
==================
1.3.3
=====

* Fix JSDoc for `Router` constructor

1.3.2 / 2017-09-24
==================
1.3.2
=====

* deps: debug@2.6.9
* deps: parseurl@~1.3.2
Expand All @@ -128,24 +132,24 @@ This incorporates all changes after 1.3.3 up to 1.3.5.
* deps: setprototypeof@1.1.0
* deps: utils-merge@1.0.1

1.3.1 / 2017-05-19
==================
1.3.1
=====

* deps: debug@2.6.8
- Fix `DEBUG_MAX_ARRAY_LENGTH`
- deps: ms@2.0.0

1.3.0 / 2017-02-25
==================
1.3.0
=====

* Add `next("router")` to exit from router
* Fix case where `router.use` skipped requests routes did not
* Use `%o` in path debug to tell types apart
* deps: setprototypeof@1.0.3
* perf: add fast match path for `*` route

1.2.0 / 2017-02-17
==================
1.2.0
=====

* Skip routing when `req.url` is not set
* deps: debug@2.6.1
Expand All @@ -155,24 +159,24 @@ This incorporates all changes after 1.3.3 up to 1.3.5.
- Use same color for same namespace
- deps: ms@0.7.2

1.1.5 / 2017-01-28
==================
1.1.5
=====

* deps: array-flatten@2.1.1
* deps: setprototypeof@1.0.2
- Fix using fallback even when native method exists

1.1.4 / 2016-01-21
==================
1.1.4
=====

* deps: array-flatten@2.0.0
* deps: methods@~1.1.2
- perf: enable strict mode
* deps: parseurl@~1.3.1
- perf: enable strict mode

1.1.3 / 2015-08-02
==================
1.1.3
=====

* Fix infinite loop condition using `mergeParams: true`
* Fix inner numeric indices incorrectly altering parent `req.params`
Expand All @@ -181,8 +185,8 @@ This incorporates all changes after 1.3.3 up to 1.3.5.
* deps: path-to-regexp@0.1.7
- Fix regression with escaped round brackets and matching groups

1.1.2 / 2015-07-06
==================
1.1.2
=====

* Fix hiding platform issues with `decodeURIComponent`
- Only `URIError`s are a 400
Expand All @@ -194,31 +198,31 @@ This incorporates all changes after 1.3.3 up to 1.3.5.
* perf: skip attempting to decode zero length string
* perf: use plain for loops

1.1.1 / 2015-05-25
==================
1.1.1
=====

* Fix issue where `next('route')` in `router.param` would incorrectly skip values
* deps: array-flatten@1.1.0
* deps: debug@~2.2.0
- deps: ms@0.7.1

1.1.0 / 2015-04-22
==================
1.1.0
=====

* Use `setprototypeof` instead of `__proto__`
* deps: debug@~2.1.3
- Fix high intensity foreground color for bold
- deps: ms@0.7.0

1.0.0 / 2015-01-13
==================
1.0.0
=====

* Fix crash from error within `OPTIONS` response handler
* deps: array-flatten@1.0.2
- Remove redundant code path

1.0.0-beta.3 / 2015-01-11
=========================
1.0.0-beta.3
============

* Fix duplicate methods appearing in OPTIONS responses
* Fix OPTIONS responses to include the HEAD method properly
Expand All @@ -227,13 +231,13 @@ This incorporates all changes after 1.3.3 up to 1.3.5.
* deps: debug@~2.1.1
* deps: methods@~1.1.1

1.0.0-beta.2 / 2014-11-19
=========================
1.0.0-beta.2
============

* Match routes iteratively to prevent stack overflows

1.0.0-beta.1 / 2014-11-16
=========================
1.0.0-beta.1
============

* Initial release ported from Express 4.x
- Altered to work without Express
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.2.0",
"version": "2.3.0",
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
"contributors": [
"Blake Embrey <hello@blakeembrey.com>"
Expand Down
Loading