v3.0.0
版本发布时间: 2018-09-07 21:22:22
JakeChampion/fetch最新发布版本:v3.6.20(2023-12-14 07:12:38)
-
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.
1、 fetch.umd.js 14.46KB