4.12.0
expressjs/express4.12.0Feb 23, 2015by dougwilson
AI Summary
Express 4.12.0 includes a significant change to generate ETags for all request responses (not just GET and HEAD), fixes the trust proxy setting to properly inherit when apps are mounted, and updates multiple dependencies including accepts, send, serve-static, and type-is.
Key Highlights
- ETag generation now applies to all request responses, not just GET and HEAD
- Fixed 'trust proxy' setting to inherit when app is mounted
- Updated Content-Type header parsing to use the 'content-type' package
- Updated multiple dependencies: accepts@~1.2.4, send@0.12.1, serve-static@~1.9.1, type-is@~1.6.0
- Fixed preference sorting stability for long acceptable lists in accepts
Breaking Changes
- ETags are now generated for all responses (previously only GET and HEAD), which changes response headers for other HTTP methods
New Features
- Automatic ETag generation for all request responses
- Inherited trust proxy setting for mounted applications
- Stable preference sorting for content negotiation with long acceptable lists
- Support for wildcard type and subtype (*/*) in type-is
Full Release Notes
- Fix `"trust proxy"` setting to inherit when app is mounted - Generate `ETag`s for all request responses - No longer restricted to only responses for `GET` and `HEAD` requests - Use `content-type` to parse `Content-Type` headers - deps: accepts@~1.2.4 - Fix preference sorting to be stable for long acceptable lists - deps: mime-types@~2.0.9 - deps: negotiator@0.5.1 - deps: cookie-signature@1.0.6 - deps: send@0.12.1 - Always read the stat size from the file - Fix mutating passed-in `options` - deps: mime@1.3.4 - deps: serve-static@~1.9.1 - deps: send@0.12.1 - deps: type-is@~1.6.0 - fix argument reassignment - fix false-positives in `hasBody` `Transfer-Encoding` check - support wildcard for both type and subtype (`*/*`) - deps: mime-types@~2.0.9