6.8 KiB
layout, title, menu, lang, description, sitemap
| layout | title | menu | lang | description | sitemap |
|---|---|---|---|---|---|
| page | Express 4.x Sürüm Notları | changelog | tr | Stay updated with the release change log for Express.js 4.x, detailing new features, bug fixes, and important changes across versions. | false |
4.15.3 - Release date: 2017-05-16
{: id="4.15.3"}
The 4.15.3 patch release including some minor bug fixes:
- Fix error when `res.set` cannot add charset to `Content-Type`.
- Fix missing `</html>` in HTML document.
For a complete list of changes in this release, see History.md.
4.15.2 - Release date: 2017-03-06
{: id="4.15.2"}
The 4.15.2 patch release including a minor bug fix:
- Fix regression parsing keys starting with `[` in the extended (default) query parser.
For a complete list of changes in this release, see History.md.
4.15.1 - Release date: 2017-03-05
{: id="4.15.1"}
The 4.15.1 patch release including a minor bug fix:
- Fix compatibility issue when using the datejs 1.x library where the [`express.static()` middleware](/{{ page.lang }}/4x/api.html#express.static) and [`res.sendFile()` method](/{{ page.lang }}/4x/api.html#res.sendFile) would incorrectly respond with 412 Precondition Failed.
For a complete list of changes in this release, see History.md.
4.15.0 - Release date: 2017-03-01
{: id="4.15.0"}
The 4.15.0 minor release includes bug fixes, performance improvements, and other minor feature additions, including:
- Starting with this version, Express supports Node.js 7.x.
- The [`express.static()` middleware](/{{ page.lang }}/4x/api.html#express.static) and [`res.sendFile()` method](/{{ page.lang }}/4x/api.html#res.sendFile) now support the `If-Match` and `If-Unmodified-Since` request headers.
- Update to [jshttp/etag module](https://www.npmjs.com/package/etag) to generate the default ETags for responses which work when Node.js has [FIPS-compliant crypto enabled](https://nodejs.org/dist/latest/docs/api/cli.html#cli_enable_fips).
- Various auto-generated HTML responses like the default not found and error handlers will respond with complete HTML 5 documents and additional security headers.
For a complete list of changes in this release, see History.md.
4.14.1 - Release date: 2017-01-28
{: id="4.14.1"}
The 4.14.1 patch release includes bug fixes and performance improvements, including:
- Update to [pillarjs/finalhandler module](https://www.npmjs.com/package/finalhandler) fixes an exception when Express handles an `Error` object which has a `headers` property that is not an object.
For a complete list of changes in this release, see History.md.
4.14.0 - Release date: 2016-06-16
{: id="4.14.0"}
The 4.14.0 minor release includes bug fixes, security update, performance improvements, and other minor feature additions, including:
- Starting with this version, Express supports Node.js 6.x.
- Update to [jshttp/negotiator module](https://www.npmjs.com/package/negotiator) fixes a [regular expression denial of service vulnerability](https://npmjs.com/advisories/106).
-
The [`res.sendFile()` method](/{{ page.lang }}/4x/api.html#res.sendFile) now accepts two new options: `acceptRanges` and `cacheControl`.
-
acceptRanges(defaut istrue), enables or disables accepting ranged requests. When disabled, the response does not send theAccept-Rangesheader and ignores the contents of theRangerequest header. -
cacheControl, (default istrue), enables or disables theCache-Controlresponse header. Disabling it will ignore themaxAgeoption. -
res.sendFilehas also been updated to handleRangeheader and redirections better.
-
- The [`res.location()` method](/{{ page.lang }}/4x/api.html#res.location) and [`res.redirect()` method](/{{ page.lang }}/4x/api.html#res.redirect) will now URL-encode the URL string, if it is not already encoded.
- The performance of the [`res.json()` method](/{{ page.lang }}/4x/api.html#res.json) and [`res.jsonp()` method](/{{ page.lang }}/4x/api.html#res.jsonp) have been improved in the common cases.
-
The [jshttp/cookie module](https://www.npmjs.com/package/cookie) (in addition to a number of other improvements) has been updated and now the [`res.cookie()` method](/{{ page.lang }}/4x/api.html#res.cookie) supports the `sameSite` option to let you specify the [SameSite cookie attribute](https://tools.ietf.org/html/draft-west-first-party-cookies-07).
{% include admonitions/note.html content="This attribute has not yet been fully standardized, may change in the future, and many clients may ignore it."%}
The possible value for the
sameSiteoption are:true, which sets theSameSiteattribute toStrictfor strict same site enforcement.false, which does not set theSameSiteattribute.'lax', which sets theSameSiteattribute toLaxfor lax same site enforcement.'strict', which sets theSameSiteattribute toStrictfor strict same site enforcement.
- Absolute path checking on Windows, which was incorrect for some cases, has been fixed.
- IP address resolution with proxies has been greatly improved.
- The [`req.range()` method](/{{ page.lang }}/4x/api.html#req.range) options object now supports a `combine` option (`false` by default), which when `true`, combines overlapping and adjacent ranges and returns them as if they were specified that way in the header.
For a complete list of changes in this release, see History.md.