JakeChampion
released this
Added a work-around for projects which use core-js -- #748
Assets
2
JakeChampion
released this
Republishing to ensure the dist/fetch.umd.js is up-to-date
Assets
3
JakeChampion
released this
Use globalThis as the global object if it exists #822
Assets
3
JakeChampion
released this
Features:
- Updated documentation for AbortController to recommend a polyfill which is spec-compliant and fully synchronous. -- #814
Bug fixes:
-
Fixed the "self is not defined" error that was reported for NodeJS applications - #794
-
Reverted the DOMException handling refactor as the original code fixed issues in old Android browsers - #797
-
Response.arrayBuffer()now always resolve with aArrayBufferas per the specification. -- #816 -
RequestandResponsecan now only be called vianew(as constructors) as per the specification. -- #796 -
Headers which are passed as a
Headersobject no longer have their names normalised as per the specification -- #798
Refactor:
- Removed the top-level
thisto stop warnings being emitted from Rollup. -- #815
Assets
2
JakeChampion
released this
Features:
- Add support for no-cache and no-store - #795
Bug fixes:
- Fixed the "self is not defined" error that was reported for NodeJS applications - #794
- Throw a TypeError if Request or Response functions are called without
new- #796
Refactor:
- Refactor DOMException handling code to avoid redundant exceptions generation - #797
Assets
2
JakeChampion
released this
Bug fix
-- check if Content-Type header exists prior to examining the value #792
Assets
2
JakeChampion
released this
Documentation:
- Added documentation on features of
fetchwhich are not polyfilled. -- #734
Bug fixes:
-
Empty header names used to not throw an error which was not compliant with the specification. They now throw a TypeError, the same as Chrome, Firefox and Safari do. -- #684
-
Changed the default status text of a response to align with the specification, the default is now an empty string. -- #698
-
We now allow exclamation mark as valid header character to align with the specification -- #745
-
We no longer convert
application/octet-streamresponses intoBlobs if the browser supportsArrayBuffers-- #752 -
Added compatibility for
fetch-mock-- #736 -
Making a fetch request with an empty string for the url no longer throws a DOMException error in Internet Explorer -- #619
-
Fixed another Internet Explorer bug to make sure all resolved fetch promises will trigger their promise chains -- #575
Assets
2
mislav
released this
-
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.