- Breaking: Audit logger plugin no longer accepts a
opts.logBuffer
object. - Breaking: Audit logger plugin requires a
opts.event
string which identifies the restify event the logger is listening on. It must be one ofpre
,routed
, orafter
- Breaking: Audit logger plugin no longer emits an
auditLog
event, but instead emits anaudit
event. - Breaking: Metrics plugin now returns
inflightRequests
instead ofunfinishedRequests
- FIX: staticServe plugin should not assume
req.connectionState()
method since it's 5.x restify only.
- #81: move
reqIdHeaders
option from restify 5.x core into the plugin repo. Requires 5.x restify to work properly.
- #82: fix bug in context plugin where context bucket was shared between requests.
- #79: audit log now uses
req.connectionState()
instead ofreq.clientClosed
field. Compatible only with [email protected] or newer. - #78: new metrics plugin for use with
server.on('after',...
event.
- Add assertions to context plugin.
- #73 Add request context plugin.
- merges commit from restify core that fixes errors for static plugin
- audit log now has a
clientClosed
attribute that denotes whether or not the req was closed/terminated by the client
- move unit migrated to mocha
- unit tests separated into their own files
- plugins moved into their own repository
sanitizePath
now available only on thepre
exportallowDots: false
andplainObjects: false
are new defaults forqueryParser
.mapParams: false
is now the default setting for both the queryParser and bodyParser plugins- request expiration plugin now has two options, absolute time and timeout, the signature of the options has changed.
- Add printLog flag to audit logger to optionally print log, by default is true.
- Server emit auditlog event with log obj. Optionally store logs in ringbuffer.
bodyParser
plugin now saves the raw unparsed body on req.rawBody