- 5.0.0-alpha.2
- 5.0.0-alpha.1
The Router changes also affect some aspects of middleware. Specifically, handling rejected promises returned from middleware or route handers, as well as next('router')
bailing out of a router instance.
- 5.0.0-alpha.4
- remove:
- Express 3.x middleware error stubs (trying to access middleware which was bundled in 3.x and removed in 4.x e.g.
express.compress
orexpress.bodyParser
will no longer print a notice. Those values are justundefined
without the explicit throw and notice)
- Express 3.x middleware error stubs (trying to access middleware which was bundled in 3.x and removed in 4.x e.g.
- remove:
- 5.0.0-alpha.7
- 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
- deps: [email protected]
- 5.0.0-alpha.7
- remove:
- deps: [email protected]
- Add basic support for returned, rejected Promises
- Fix JSDoc for
Router
constructor - deps: [email protected]
- deps: parseurl@~1.3.2
- deps: [email protected]
- deps: [email protected]
- 5.0.0-alpha.4
- deps: router@~1.3.0
- perf: add fast match path for
*
route - Add
next("router")
to exit from router (different fromnext('route')
already available) - Fix case where
router.use
skipped requests routes did not - Skip routing when
req.url
is not set - Use
%o
in path debug to tell types apart - deps: [email protected]
- deps: [email protected]
- perf: add fast match path for
- deps: router@~1.3.0
- 5.0.0-alpha.2
- Use
router
module for routing
- Use
- 5.0.0-alpha.1
- 5.0.0-alpha.2
- 5.0.0-alpha.1
- 5.0.0-alpha.6
- 5.0.0-alpha.3
- 5.0.0-alpha.2
- 5.0.0-alpha.1
- remove:
res.json(obj, status)
signature - useres.json(status, obj)
res.jsonp(obj, status)
signature - useres.jsonp(status, obj)
res.send(body, status)
signature - useres.send(status, body)
res.send(status)
signature - useres.sendStatus(status)
res.sendfile
- useres.sendFile
instead
- remove:
Branch 5.0 History.md File
This is the source material where the above was pulled from
This is the sixth Express 5.0 alpha release, based off 4.17.1 and includes changes from 5.0.0-alpha.7.
This is the seventh Express 5.0 alpha release, based off 4.16.4 and includes changes from 5.0.0-alpha.6.
The major change with this alpha is the basic support for returned, rejected Promises in the router.
- remove:
path-to-regexp
dependency
- 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
- deps: [email protected]
- Add basic support for returned, rejected Promises
- Fix JSDoc for
Router
constructor - deps: [email protected]
- deps: parseurl@~1.3.2
- deps: [email protected]
- deps: [email protected]
This is the sixth Express 5.0 alpha release, based off 4.15.5 and includes changes from 5.0.0-alpha.5.
- remove:
res.redirect(url, status)
signature - useres.redirect(status, url)
res.send(status, body)
signature - useres.status(status).send(body)
- deps: router@~1.3.1
- deps: [email protected]
This is the fifth Express 5.0 alpha release, based off 4.15.2 and includes changes from 5.0.0-alpha.4.
This is the fourth Express 5.0 alpha release, based off 4.15.0 and includes changes from 5.0.0-alpha.3.
- remove:
- Remove Express 3.x middleware error stubs
- deps: router@~1.3.0
- Add
next("router")
to exit from router - Fix case where
router.use
skipped requests routes did not - Skip routing when
req.url
is not set - Use
%o
in path debug to tell types apart - deps: [email protected]
- deps: [email protected]
- perf: add fast match path for
*
route
- Add
This is the third Express 5.0 alpha release, based off 4.14.1 and includes changes from 5.0.0-alpha.2.
- remove:
res.json(status, obj)
signature - useres.status(status).json(obj)
res.jsonp(status, obj)
signature - useres.status(status).jsonp(obj)
res.vary()
(no arguments) -- provide a field name as an argument
- deps: [email protected]
- deps: [email protected]
- deps: router@~1.1.5
- deps: [email protected]
- deps: methods@~1.1.2
- deps: parseurl@~1.3.1
- deps: [email protected]
This is the second Express 5.0 alpha release, based off 4.13.1 and includes changes from 5.0.0-alpha.1.
- remove:
app.param(fn)
req.param()
-- usereq.params
,req.body
, orreq.query
instead
- change:
res.render
callback is always async, even for sync view engines- The leading
:
character inname
forapp.param(name, fn)
is no longer removed - Use
router
module for routing - Use
path-is-absolute
module for absolute path detection
This is the first Express 5.0 alpha release, based off 4.10.1.
- remove:
app.del
- useapp.delete
req.acceptsCharset
- usereq.acceptsCharsets
req.acceptsEncoding
- usereq.acceptsEncodings
req.acceptsLanguage
- usereq.acceptsLanguages
res.json(obj, status)
signature - useres.json(status, obj)
res.jsonp(obj, status)
signature - useres.jsonp(status, obj)
res.send(body, status)
signature - useres.send(status, body)
res.send(status)
signature - useres.sendStatus(status)
res.sendfile
- useres.sendFile
insteadexpress.query
middleware
- change:
req.host
now returns host (hostname:port
) - usereq.hostname
for only hostnamereq.query
is now a getter instead of a plain property
- add:
app.router
is a reference to the base router