fetch 3.0.0
-
The
whatwg-fetchpackage is now a module with exports. The following methods/classes are available:fetchHeadersRequestResponseDOMException
All exports except for
DOMExceptionrepresent the polyfill implementations, not the native variants if they are available.This library still automatically acts like a polyfill if native
window.fetchis unavailable; there is currently no way to use it as a ponyfill. -
Change
credentialsdefault valueomit→same-originto match the updated spec. -
fetch()andnew Request()now accept thesignalparameter 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.