Releases: pillarjs/router
Releases · pillarjs/router
1.3.8
1.3.7
- Fix hanging on large stack of sync routes
1.3.6
- Fix handling very large stacks of sync middleware
- deps: [email protected]
2.0.0-beta.1
This incorporates all changes after 1.3.3 up to 1.3.5.
- Internalize private
router.process_params
method - Remove
debug
dependency - deps: [email protected]
- deps: parseurl@~1.3.3
- deps: [email protected]
- Add new
?
,*
, and+
parameter modifiers - Matching group expressions are only RegExp syntax.
(*)
is no longer valid and must be written as(.*)
, for example. - Named matching groups no longer available by position in
req.params
.
/:foo(.*)
only captures asreq.params.foo
and not available as
req.params[0]
. - Regular expressions can only be used in a matching group.
/\\d+
is no longer valid and must be written as/(\\d+)
. - Special
*
path segment behavior removed.
/foo/*/bar
will match a literal*
as the middle segment.
- Add new
- deps: [email protected]
1.3.5
- Fix incorrect middleware execution with unanchored
RegExp
s - perf: use plain object for internal method map
1.3.4
- deps: [email protected]
- deps: parseurl@~1.3.3
- deps: [email protected]
2.0.0-alpha.1
- Add basic support for returned, rejected Promises
- Rejected Promises from middleware functions
next(error)
- Rejected Promises from middleware functions
- Drop support for Node.js below 0.10
- deps: [email protected]
- Add
DEBUG_HIDE_DATE
environment variable - Change timer to per-namespace instead of global
- Change non-TTY date format
- Remove
DEBUG_FD
environment variable support - Support 256 namespace colors
- Add
1.3.3
- Fix JSDoc for
Router
constructor
1.3.2
- deps: [email protected]
- deps: parseurl@~1.3.2
- perf: reduce overhead for full URLs
- perf: unroll the "fast-path"
RegExp
- deps: [email protected]
- deps: [email protected]
1.3.1
- deps: [email protected]
- Fix
DEBUG_MAX_ARRAY_LENGTH
- deps: [email protected]
- Fix