window.fetch polyfill v3.0.0 Release Notes
Release Date: 2018-09-07 // over 5 years ago-
๐ฆ The
whatwg-fetch
package is now a module with exports. The following methods/classes are available:fetch
Headers
Request
Response
DOMException
All exports except for
DOMException
represent the polyfill implementations, not the native variants if they are available.This library still automatically acts like a polyfill if native
window.fetch
is unavailable; there is currently no way to use it as a ponyfill.โก๏ธ Change
credentials
default valueomit
โsame-origin
to match the updated spec.๐ฆ
fetch()
andnew Request()
now accept thesignal
parameter to accept an AbortSignal.๐ป Join multiple header values with
,<space>
instead of,
to match other browsers.๐ Convert any Request/Response unsupported body type to a string to match the spec.
๐ฆ Flow type definitions are now included in the package.