NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2277 most downloaded on npm
High performance middleware framework
Latest stable
3.7.0
Last release 8 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.2 years
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
16 years old
234 releases · first in 2010
Drag across the ruler to compare, or tap a release to open it.
Fix upper-case Content-Type characters prevent compression
req.session after csurf middlewareres.csrfToken() after req.session.destroy() will now workres.end patch to call correct upstream res.writeextensions optionFix Content-Length calculation for multi-byte file names
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Work-around v8 generating empty stack traces
Fix exception when global Error.stackTraceLimit is too low
Error.stackTraceLimit is too lowAdd TRACE_DEPRECATION environment variable
debug messagestime (converted by ms)TRACE_DEPRECATION environment variable--no-deprecation argument--trace-deprecation argument:remote-user tokencombined log formatcommon log formatdev formatRegExpdotfiles optionAdd support for multiple wildcards in namespaces
Fix cookie.signed option to actually sign cookie
cookie.signed option to actually sign cookieres.end patch to return correct valueres.end patch to handle multiple res.end callsmaxAge (converted by ms)setHeaders option* deps: cookie-parser@1.3.2 - deps: cookie-signature@1.0.4 * deps: cookie-signature@1.0.4 - fix for timing attacks * deps: express-session@~1.5.2 - de
deprecate connect(middleware) -- use app.use(middleware) instead
connect(middleware) -- use app.use(middleware) instead
connect.createServer() -- use connect() insteadres.setHeader() patch to work with get -> append -> set patterncookie-parser middlewarereq.secretcookie-parser no longer requiredres.cookie no longer requireduid-safe, faster and even less collisions* deps: body-parser@1.4.3 - deps: type-is@1.3.1
* deps: type-is@1.3.1 - fix global variable leak
deprecate verify option to json -- use body-parser npm module instead
verify option to json -- use body-parser npm module instead
verify option to urlencoded -- use body-parser npm module insteaddepd modulefinalhandler for final response handlingmedia-typer to parse content-type for charseturlencoded() without provided extended optioninflate: false to turn officonv-litereq.cookies and req.signedCookies are now plain objectsthrowX-Content-Type-Options: nosniff headergenid option to generate custom session IDssaveUninitialized option to control saving uninitialized sessionsunset option to control unsetting req.sessionrand-token by default; reduce collisionsRegExp object for hostnamereq.vhost objectHost headeruse vary module for better Vary behavior
Vary behaviorrefactor to use csrf-tokens@~1.0.2
mime to mime-types@1.0.0Pass on errors from reading error files
Vary behaviorETag headerfix listeners for delayed stream creation
stream.pipe(res) situationsfix adding Vary when value stored as array
Vary when value stored as arrayres.end* fix deprecated utils.escape
utils.escapedeprecate methodOverride() -- use method-override npm module instead
methodOverride() -- use method-override npm module instead
extended option to urlencoded parserVary headerdigits argumentX-Response-Time headerescape-html for escapingFix content negotiation when no Accept header
Accept headerENAMETOOLONG as code 414Fix resave such that resave: true works
resave such that resave: true worksinvoke next(err) after request fully read
next(err) after request fully readreq.body key referencing array or objectfix res.charset appending charset when content-type has one
res.charset appending charset when content-type has oneAdd resave option to control saving unmodified sessions
resave option to control saving unmodified sessions:response-time token is now empty when immediate used:response-time token is now monotonic:response-time token has precision to 1 μs:status + immediate output in node.js 0.8buffer option to prevent indefinite event loop holdingfix edge-case in res.appendHeader that would append in wrong order
res.appendHeader that would append in wrong order
remove usages of res.headerSent from core
res.headerSent from coredeprecate res.headerSent -- use res.headersSent
res.headerSent -- use res.headersSent
res.on("header") -- use on-headers module insteadconnect.version to reflect the actual versiontype optiontype optionname option; replacement for key optionsetImmediate in MemoryStore for node.js >= 0.10Call error stack even when response has been sent
res.cookie support
res.appendHeaderres.headerSent to return Booleanres.headersSent for node.js 0.8res.writeHeadreq.timedout propertyrespond option to constructorenable() methodsetImmediateres.cookie() instead of res.setHeader()Buffer of icon as first argumentpath argument is directoryAccept options directly to send module
send moduleadd constant-time string compare
* dep: static-favicon@1.0.2 * Fixed content of default icon
* dep: static-favicon@1.0.1 * Fixed path to default icon
* dep: fresh@0.2.2 * no real changes * dep: serve-index@1.0.1 * deps: negotiator@0.4.2 * dep: serve-static@1.0.2 * deps: send@0.2.0
basicAuth: use basic-auth-connect
cookieSession: compare full value rather than crc32
csrf: prevent deprecated warning with old sessions
directory: sort folders before files
* bump raw-body
errorHandler: use res.setHeader() instead of res.writeHead() #949 @lo1tuma
res.setHeader() instead of res.writeHead() #949 @lo1tumasessions: add rolling session option #944 @ilmeo
fixed; fixed a bug with static middleware at root and trailing slashes #942 (@dougwilson)
fixed: set headers written by writeHead before emitting 'header'
res.flush() for flushing responses\ns with <br/>s in error handlerwarn about multiparty and limit middleware deprecation for v3
compress: Set vary header only if Content-Type passes filter #904
multipart: add docs regarding tmpfiles
csrf: change to math.random() salt and remove csrfToken() callback
csrf: prevent salt generation on every request, and add async req.csrfToken(fn)
csrf: refactor to use HMAC tokens (BREACH attack)
add: compress Dart source files by default
* update send
add a name back to static middleware ("staticMiddleware")
add better debug() for middleware
fix: escape req.method in 404 response
add threshold option to compress() to prevent compression of small responses
threshold option to compress() to prevent compression of small responses* update send
fix: write/end to noop() when request aborted
* update qs * drop support for node < v0.8
* update qs
remove "static" function name. Closes #794
revert cookie signature which was creating session race conditions
One column per quarter.