4.10.0
expressjs/express4.10.0Oct 24, 2014by dougwilson
AI Summary
Express 4.10.0 adds support for multiple view directories via `app.set('views', array)`, improves `res.attachment`/`res.download` with standards-compliant Content-Disposition headers and Unicode support, and fixes handling of invalid empty URLs. This release also updates multiple dependencies including debug, etag, and finalhandler.
Key Highlights
- Added support for `app.set('views', array)` to look up views in sequence across multiple directories
- Improved `res.attachment`/`res.download` with content-disposition module for standards-compliant headers and full Unicode support
- Fixed handling of invalid empty URLs
- Fixed `res.send(status)` to reference `res.sendStatus(status)` in documentation
- Updated debug to 2.1.0 with DEBUG_FD environment variable support
New Features
- Support for `app.set('views', array)` - views are looked up in sequence in array of directories
- Use of `content-disposition` module for `res.attachment`/`res.download` with standards-compliant Content-Disposition header and full Unicode support
- Use of `path.resolve` in view lookup
Full Release Notes
- Add support for `app.set('views', array)`
- Views are looked up in sequence in array of directories
- Fix `res.send(status)` to mention `res.sendStatus(status)`
- Fix handling of invalid empty URLs
- Use `content-disposition` module for `res.attachment`/`res.download`
- Sends standards-compliant `Content-Disposition` header
- Full Unicode support
- Use `path.resolve` in view lookup
- deps: debug@~2.1.0
- Implement `DEBUG_FD` env variable support
- deps: depd@~1.0.0
- deps: etag@~1.5.0
- Improve string performance
- Slightly improve speed for weak ETags over 1KB
- deps: finalhandler@0.3.2
- Terminate in progress response only on error
- Use `on-finished` to determine request status
- deps: debug@~2.1.0
- deps: on-finished@~2.1.1
- deps: on-finished@~2.1.1
- Fix handling of pipelined requests
- deps: qs@2.3.0
- Fix parsing of mixed implicit and explicit arrays
- deps: send@0.10.1
- deps: debug@~2.1.0
- deps: depd@~1.0.0
- deps: etag@~1.5.0
- deps: on-finished@~2.1.1
- deps: serve-static@~1.7.1
- deps: send@0.10.1