v3.3.0
版本发布时间: 2020-08-04 19:16:17
JakeChampion/fetch最新发布版本:v3.6.20(2023-12-14 07:12:38)
Features:
- Updated documentation for AbortController to recommend a polyfill which is spec-compliant and fully synchronous. -- https://github.com/github/fetch/pull/814
Bug fixes:
-
Fixed the "self is not defined" error that was reported for NodeJS applications - https://github.com/github/fetch/pull/794
-
Reverted the DOMException handling refactor as the original code fixed issues in old Android browsers - https://github.com/github/fetch/pull/797
-
Response.arrayBuffer()
now always resolve with aArrayBuffer
as per the specification. -- https://github.com/github/fetch/pull/816 -
Request
andResponse
can now only be called vianew
(as constructors) as per the specification. -- https://github.com/github/fetch/pull/796 -
Headers which are passed as a
Headers
object no longer have their names normalised as per the specification -- https://github.com/github/fetch/pull/798
Refactor:
- Removed the top-level
this
to stop warnings being emitted from Rollup. -- https://github.com/github/fetch/pull/815