- Breaking: Audit logger plugin no longer accepts a
opts.logBufferobject. - Breaking: Audit logger plugin requires a
opts.eventstring 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
auditLogevent, but instead emits anauditevent. - Breaking: Metrics plugin now returns
inflightRequestsinstead ofunfinishedRequests
- FIX: staticServe plugin should not assume
req.connectionState()method since it's 5.x restify only.
- #81: move
reqIdHeadersoption 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.clientClosedfield. Compatible only with restify@5.0.0-beta-3.0 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
clientClosedattribute 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
sanitizePathnow available only on thepreexportallowDots: falseandplainObjects: falseare new defaults forqueryParser.mapParams: falseis 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.
bodyParserplugin now saves the raw unparsed body on req.rawBody