NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #1242 most downloaded on npm
Node.js compression middleware
Latest stable
1.8.2
Last release 2 months ago
11 Sep 2026
Ships unpredictably
gaps range from 3 months to 5.6 years
Nearly every release is documented
notes for 39 of 40 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
40 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Fix CVE-2026-87776 (GHSA-vc2v-76pw-4v95)
Full Changelog: https://github.com/expressjs/compression/compare/v1.8.1...v1.8.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Cache-Control: no-transform directive case-insensitivelyfix(docs): update multiple links from http to https by @Phillip9587 in https://github.com/expressjs/compression/pull/222
Full Changelog: https://github.com/expressjs/compression/compare/1.8.0...v1.8.1
Refactor chunkLength function for improved readability and consistency by @Ayoub-Mabrouk in https://github.com/expressjs/compression/pull/203
Full Changelog: https://github.com/expressjs/compression/compare/1.7.5...v1.8.0
res.headersSent when available
_implicitHeader with writeHead propertyAccept-Encoding headerchore: add support for OSSF scorecard reporting by @inigomarquinez in https://github.com/expressjs/compression/pull/186
Full Changelog: https://github.com/expressjs/compression/compare/1.7.4...1.7.5
pb) supportfont/ttf as compressiblemultipart/mixedFix res.writeHead patch missing return value
text/less as compressibleres.writeHead patch missing return valueMark all XML-derived types as compressible
* deps: compressible@~2.0.13 - deps: mime-db@'>= 1.33.0 < 2'
perf: improve header token parsing speed
Deprecated DEBUG_FD environment variable set to 3 or higher
safe-buffer for improved Buffer API
compressible: false in dbDEBUG_FD environment variable set to 3 or higherDEBUG_MAX_ARRAY_LENGTHDrop partial bytes on all parsed units
- deps: bytes@2.2.0 - deps: compressible@~2.0.7 - deps: mime-db@'>= 1.21.0 < 2' - deps: accepts@~1.3.1 - deps: mime-types@~2.1.9
Skip compression when response has Cache-Control: no-transform
Cache-Control: no-transformfield argumentFix setting empty header from empty field
field- deps: accepts@~1.2.10 - deps: mime-types@~2.1.2 - deps: compressible@~2.0.4 - deps: mime-db@'>= 1.14.0 < 2' - perf: enable strict mode
Fix return value from .end and .write after end
.end and .write after endContent-Length- deps: accepts@~1.2.7 - deps: mime-types@~2.0.11 - deps: negotiator@0.5.3 - deps: debug@~2.2.0 - deps: ms@0.7.1
Fix high intensity foreground color for bold
Fix error when code calls res.end(str, encoding)
res.end(str, encoding)
- deps: accepts@~1.2.4 - deps: mime-types@~2.0.9 - deps: negotiator@0.5.1
Prefer gzip over deflate on the server
gzip over deflate on the server
- deps: accepts@~1.2.3 - deps: mime-types@~2.0.8 - deps: compressible@~2.0.2 - deps: mime-db@'>= 1.1.2 < 2'
Export the default filter function for wrapping
filter function for wrappingFixes an issue with Node.js 0.11.14
.end to only proxy to .end
- deps: accepts@~1.1.3 - deps: mime-types@~2.0.3
Implement DEBUG_FD env variable support
DEBUG_FD env variable supportFix error when media type has invalid parameter
- deps: accepts@~1.1.1 - deps: mime-types@~2.0.2 - deps: negotiator@0.4.8 - deps: compressible@~2.0.1 - deps: mime-db@1.x
- deps: accepts@~1.1.0 - deps: compressible@~2.0.0 - deps: debug@~2.0.0
- deps: on-headers@~1.0.0 - deps: vary@~1.0.0
Fix upper-case Content-Type characters prevent compression
- Add debug messages - deps: accepts@~1.0.7 - deps: negotiator@0.4.7
debug messages- deps: accepts@~1.0.5 - use mime-types
mime-typesuse vary module for better Vary behavior
Vary behaviorfix regression when negotiation fails
fix listeners for delayed stream creation
stream.pipe(res) situationsfix adding Vary when value stored as array
Vary when value stored as arrayres.enduse on-headers to handle header checking
accepts for negotiationon-headers to handle header checkingonly version compatible with node.js 0.8
res.writeHeaduse .headersSent (drops 0.8 support)
Nothing published for this version
One column per quarter.