restify
12.1.0 · 23 Oct 2026MIT121.9k / weekRepositoryHomepagenpmAtom feed
9.1.0 is the newest release of 9.x.
In short
7 breaking1 security2 deprecated28 new58 fixed7 internal
- Breaking
Remove deprecated usage of pino.child
- Breaking
Removes
RequestCaptureStreamand replacesBunyanwithPino - Breaking
Adds async/await support to pre, use and handler chains
- Breaking
Drops suppoprt to node 8 and updates linting rules
- Breaking
server: - Server returns
RequestCloseErrorinstead ofRequestAbortedError - Breaking
travisci: dropping support below Node.js 4
- Breaking
cpuUsageThrottle: support breaking change in pidusage module
- Security
examples/todoapp/package.json to reduce vulnerabilities
Release note
Breaking changes
- Breaking
Remove deprecated usage of pino.child
- Deprecated
Deprecates and removes re-routing when passing a string parameter to
next() - Breaking
Removes
RequestCaptureStreamand replacesBunyanwithPino - Breaking
Adds async/await support to pre, use and handler chains
- Breaking
Drops suppoprt to node 8 and updates linting rules
- Breaking
server: - Server returns
RequestCloseErrorinstead ofRequestAbortedError - Breaking
travisci: dropping support below Node.js 4
Features
async/await support
- Deprecated
Deprecate req.closed
Provide callback to uncaughtException handler
Remove re-routing from handler
Send 500s for unhandled requests
audit: Add the ability to specify a custom audit log serializer (for err, req and res)
chain: schedule handlers to the next tick
chain: use nextTick instead of setImmediate
deps: replace cover/istanbul with nyc
first: Handlers that execute ASAP in the req/res lifecycle
http2: add native HTTP/2 support
plugin: plugin to serve static files
Ability to find a route by a path
Add router.render() back to support hypermedia usecase (#1752) (0700cfd), closes #1684
helpers: add compose feature
plugins: context, req.get() returns the whole context
plugins: do not include user-input in UnsupportedMediaTypeError message (VError fails), move it to info
req: add restifyDone event
Add support for non-strict formatters
jsonBodyParser handles extended content types *+json
router: add ignoreTrailingSlash router option
server: new router and middleware system
cpuUsageThrottle
throttle plugin: expose rate limit metrics as headers
Create inflightRequestThrottle plugin
Revert async formatters
Bug Fixes
Add support for secureOptions in createServer
Allow multiple unmerged set-cookie headers.
Correct typo in assertion message
Don't create empty clientError listener for http.Server
Emit after event with proper error param for node versions >= 11.4.0
- Security
examples/todoapp/package.json to reduce vulnerabilities
Format falsy constants properly in json formatter
Make arity error message actionable
More flaky metrics.test.js fixes
Properly handle non-errors thrown in domains
Proxy events into instance var and add test script
Re-add support for clientError listeners
Remove invalid triggering of uncaughtException handler
Return 444 status code for closed and aborted requests
Send numbers or bools as payloads
Server should fire not acceptable event
Use close event on response instead of socket
Use more reliable close event
benchmark: force latest restify version
bodyReader: Fix memory leak
cpuUsageThrottle: Always queue a new timeout
cpuUsageThrottle: Correctly named handler for debugInfo
cpuUsageThrottle: dont include interval in lag
- Breaking
cpuUsageThrottle: support breaking change in pidusage module
dev: pin to exact versions of linting tools and fix lint errors
dev: remove nsp since the project merged with npm
dev: upgrading modules including restify-errors
dtrace: route probes
inflightRequestThrottle: properly handle next
jsonBodyParser: fix percent sign causing server fail
npm: exclude extraneous files
npm: remove unleash dependency
package-lock.json: remove artifacts.netflix.com repo
plugins: save req._matchedVersion
plugins: use process.hrtime() for duration calculation
request: date() and time() methods return value
server: address domain performance regression with Node v12.x
server: address req and res close event changes in Node v10.x
server: avoid http2 experimental warning without http2 option
server: avoiding uncaughtException in _routeErrorResponse by only sending response when not sent
server: fix uncaught exceptions triggering route lookups
652 - Incorrect error on route with no versions
Add migration guid to website
Add node 7-8 travis support
Doc site
Documentation update for restifyError event example
Emit restifyError event even for router errors
Redirect should work even when hostname or protocol is not specified in req.url
server: error in pre handler triggers after event
Exclude package-lock.json
static: avoid user-provided data in Error messages being interpreted as sprintf codes
Audit timers of same name should accumulate
GH-1438, error reponse customization documentation incorrect
Honor port for redirect
Monkey patch getHeaders for pre-v7 Node.js (GH-1409)
Package.json version now matches npm
Respect when status code is set with res.status (GH-1429)
Test static plugin's handling of sprintf escape sequences
Update chai (^3.4.1 to ^4.0.0)
Use
Buffer.isBufferinstead ofutil.isBuffer.Versioned route matching should not throw TypeError
audit: use public APIs for accessing response headers (5169db7), closes /nodejs.org/api/deprecations.html#deprecations_dep0066
Prefer Pino logger over Bunyan (#1841) (2f5bf87), closes #1841
Miscellaneous Chores
- Removed
Remove deprecated usage of pino.child
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.