Changelog
[v0.10.1] - 2020-08-10
Changelog
[v0.10.0] - 2020-08-07
res.type()
method for defining content type headerres.text()
for ending response with text/plain bodylog = false
err
, res
, req
and ws
on logger methodsres
handler arg (notFound
, badRequest
...)opts
object instead of confclass
and name
fields from log entries to type
and app
respectivelyclient
to ws
on websocket handler argsAppServer
ro Nodecaf
app.accept()
to generate an accept middleware instead of setting global accept rulesapp.onRouteError
handlerapp.name
and app.version
that are now always inferred from package.jsonapp.beforeStart
and app.afterStop
in favor of opts.startup
and opts.shutdown
respectivelyapp.expose()
method in favor of using app.global
object directlyapp.api()
method in favor of opts.api
app.cookieSecret
attribute in favor of setting conf cookie.secret
app.port
attribute, use config port
insteaderror()
handlers arg in favor of res.error()
assertions
module from main export in favor of response object assertionsaccept
settingChangelog
[v0.9.3] - 2020-08-07