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.
limit: do not consume request in node 0.10.x
session: add long expires check and prevent excess set-cookie
add name to compress middleware
next(status[, msg])"; makes composition hardYour coding agent can read these notes before it upgrades. Set up the MCP server →
add support for next(status[, msg]) back
next(status[, msg]) back
timeout() 408 to 503add support for bodyParser to ignore Content-Type if no body is present (jquery primarily does this poorely)
add support for leading JSON whitespace
req.ip when present:-delimited stringadd debug() for disconnected session store
debug() for disconnected session store
add passing of connect.timeout() errors to next()
connect.timeout() errors to next()
add defer option to multipart() [Blake Miner]
defer option to multipart() [Blake Miner]
logger(), now utf8. Closes #293add err.status = 400 to multipart() errors
err.status = 400 to multipart() errors
compress(). Closes #659* update qs
add session store "connect" / "disconnect" support [louischatriot]
:url log tokenfix static() pause regression from "send" integration
static() pause regression from "send" integrationfix .write() encoding for zlib inconstancy. Closes #561
.write() encoding for zlib inconstancy. Closes #561remove limit default from urlencoded()
urlencoded()
json()multipart()cookieSession() clear cookie path / domain bug. Closes #636fix options mutation in static()
options mutation in static()add __GET__ / __HEAD__ check to directory(). Closes #634
connect.timeout()
directory(). Closes #634add more descriptive invalid json error message
fix connect.static() 404 regression, pass next(). Closes #629
connect.static() 404 regression, pass next(). Closes #629add json() utf-8 illustration test. Closes #621
json() utf-8 illustration test. Closes #621
connect.static() internals to use "send"session() req.session generation with pathname mismatchcookieSession() req.session generation with pathname mismatchFixed cookieSession() with cookieParser() secret regression. Closes #602
Fixed staticCache() dont cache responses with set-cookie. Closes #607
logger() mount check
staticCache() dont cache responses with set-cookie. Closes #607staticCache() when Cookie is presentAdded err.buf to urlencoded() and json()
err.buf to urlencoded() and json()
Added ETags back to static() [timkuijsten]
static() [timkuijsten]
utils.parseRange() with range-parser moduleutils.parseBytes() with bytes moduleutils.modified() with fresh modulecookieSession() regression with invalid cookie signing [shtylman]Update crc dep (which bundled nodeunit)
Added secret option to cookieSession middleware [shtylman]
secret option to cookieSession middleware [shtylman]
secret option to session middleware [shtylman]req.remoteUser back to basicAuth() as alias of req.usercookie dependency [shtylman]Added limit option to urlencoded()
json()
urlencoded()multipart()static middlewareAdded support to csrf middle for pre-flight CORS requests
engines to allow newer version of nodeFixed static() redirect when mounted. Closes #554
static() redirect when mounted. Closes #554Perf: memoize url parsing (~20% increase)
make benchmark
connect(fn, fn2, ...). Closes #549Added optional json() reviver function to be passed to JSON.parse [jed]
reviver function to be passed to JSON.parse [jed]
Fixed cookieParser() req.cookies regression
req.cookies regressionFixed session() browser-session length cookies & examples
session() browser-session length cookies & examples
query() "self-aware" [jed]Added debug() calls to .use() (DEBUG=connect:displatcher)
debug() calls to .use() (DEBUG=connect:displatcher)
urlencoded() support for GETjson() support for GET. Closes #497strict option to json()session() only set-cookie when modifiedSession#lastAccess property. Closes #399Added: cookieSession() only sets cookie on change. Closes #442
cookieSession() only sets cookie on change. Closes #442
connect:dispatcher debug() probesAdded test for __ENAMETOOLONG__ now that node is fixed
Added test coverage for vhost() middleware
vhost() middleware
cookieParser() signed cookie support to use SHA-2 [senotrusov]static() Range: respond with 416 when unsatisfiablevhost() middleware. Closes #494Added cookieSession() middleware for cookie-only sessions
cookieSession() middleware for cookie-only sessions
compress() middleware for gzip / deflate supportsession() "proxy" setting to trust X-Forwarded-Protojson() middleware to parse "application/json"urlencoded() middleware to parse "application/x-www-form-urlencoded"multipart() middleware to parse "multipart/form-data"cookieParser(secret) support so anything using this middleware may access signed cookiescookieParser()cookieParser()err.status support in Connect's default end-pointstaticCache()res.headerSent checking nodes res._headerSent until node doesbasicAuth() req.remoteUser to req.usersession() to a browser-session cookie. Closes #475bodyParser() to use json(), urlencoded(), and multipart()errorHandler() is now a development-only middlewarenext() errors when possible so applications can unify logging / handlinghttp[s].Server inheritance, now just a function, making it easy to have an app providing both http and https.createServer() (use connect())secret option from session(), use cookieParser(secret)connect.session.ignore array supportrouter() middleware. Closes #262Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fixed: actually allow empty body for json
Changed: allow empty body for json/urlencoded requests. Backport for #443
Fixed static() _index.html_ support on windows
static() index.html support on windowsFixed potential security issue, store files in req.files. Closes #431 [reported by dobesv]
Added nesting support for _multipart/form-data_ [jackyz]
Added _multipart/form-data_ support to bodyParser() using formidable
bodyParser() using formidableFixed req.body, always default to {}
req.body, always default to {}
Added static() redirect option. Closes #398
static() redirect option. Closes #398limit(): respond with 413 when content-length exceeds the limitstaticCache() Age header fieldAdded: make Store inherit from EventEmitter
Store inherit from EventEmitter
Store#load(sess, fn) to fetch a Session instancestaticCache()res.socket.destroy() to req.socket.destroy()Added staticCache() middleware, a memory cache for static()
staticCache() middleware, a memory cache for static()
res.headerSent checking nodes res._headerSent (remove when node adds this)Revert "Added double-next reporting"
Added immediate option to logger(). Closes #321
next() reporting
immediate option to logger(). Closes #321qs >= 0.3.1Fixed connect.static() null byte vulnerability
connect.static() null byte vulnerability
connect.directory() null byte vulnerabilitystatic() to postfix "/" on directory. Closes #289Added: allow retval == null from logger callback to ignore line
== null from logger callback to ignore line
getOnly option to connect.static.send()X-CSRF-Token header field checkqs >= 0.3.0Added :response-time to "dev" logger format
csrf() middleware. Closes #315res._headers logger regression. Closes #318.use()Added filter function option to directory() [David Rio Deiros]
filter function option to directory() [David Rio Deiros]
logger() middleware, with extensible tokens and formatsstatic.send() ".." in path without root considered maliciousdirectory(), use originalUrl [Daniel Dickison]Added malicious path check to directory() middleware
directory() middleware
utils.forbidden(res)connect.query() middlewareOne column per quarter.