Releases
v0.12.0
BREAKING CHANGES
Remove plugin dependency-checking functionality (3700c73 )
Plugin dependencies are no longer checked. The plugin meta
property is no longer useful.
Remove Body Parser (fad9cf0 )
Removed the app.addBodyParser()
method and all built-in body-parsing functionality
Remove global preHandler
hooks (8efd5b1 )
"preHandler" now only refers to route-level hooks
Async hooks must return false
when sending a response (2a51d74 )
Replace custom error handlers with onError
hooks (a4d1655 )
The app.setErrorHandler()
function has been removed
Errors now also affect the request lifecycle differently
The onStreamError
option has been replaced with onErrorSending
Only create an HTTP server when app.listen()
is called (098106d )
app.server
will be null
until app.listen()
is called (unless a server was passed to Medley with the server
option)
Replace app.setNotFoundHandler()
with notFoundHandler
option (4a36b13 )
Remove res.route
and make the route config directly accessible as res.config
(cb8e63e )
Make res.config
the exact value as the config
option passed to app.route()
(82a5250 )
config
no longer defaults to an empty object
New Features
Add app.handler
property (fa47137 )
Allow using a custom server instance when creating an app (d5689fc )
Improvements
Pass load error to all onLoad
callbacks/promises (a6f7ca5 )
Make app.listen()
more like Node's server.listen()
(0b63786 )
Misc
Make the res.[get|set|has|append|remove]Header()
methods canonical (9baf2b9 )
The short forms are now the aliases
docs: Improve Routes documentation (2c84dc5 )
deps: [email protected] (ba4a2cb )
You can’t perform that action at this time.