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: safe-buffer@5.2.1
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: array-flatten@3.0.0
- deps: parseurl@~1.3.3
- deps: path-to-regexp@3.2.0
- 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: setprototypeof@1.2.0
1.3.5
- Fix incorrect middleware execution with unanchored
RegExp
s - perf: use plain object for internal method map
1.3.4
- deps: array-flatten@3.0.0
- deps: parseurl@~1.3.3
- deps: setprototypeof@1.2.0
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: debug@3.1.0
- 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: debug@2.6.9
- deps: parseurl@~1.3.2
- perf: reduce overhead for full URLs
- perf: unroll the "fast-path"
RegExp
- deps: setprototypeof@1.1.0
- deps: utils-merge@1.0.1
1.3.1
- deps: debug@2.6.8
- Fix
DEBUG_MAX_ARRAY_LENGTH
- deps: ms@2.0.0
- Fix