Changelog History
Page 1
-
v3.5.0 Changes
November 06, 2020โ Added a work-around for projects which use core-js -- #748
-
v3.4.1 Changes
September 07, 2020Republishing to ensure the dist/fetch.umd.js is up-to-date
-
v3.4.0 Changes
August 07, 2020๐ Use globalThis as the global object if it exists #822
-
v3.3.1
August 04, 2020 -
v3.3.0 Changes
August 04, 2020๐ 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 aArrayBuffer
as per the specification. -- #816Request
andResponse
can now only be called vianew
(as constructors) as per the specification. -- #796Headers which are passed as a
Headers
object no longer have their names normalised as per the specification -- #798๐จ Refactor:
- โ Removed the top-level
this
to stop warnings being emitted from Rollup. -- #815
-
v3.2.0 Changes
July 09, 2020๐ 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
-
v3.1.1 Changes
July 08, 2020๐ Bug fix
-- check if Content-Type header exists prior to examining the value #792
-
v3.1.0 Changes
June 30, 2020๐ Documentation:
- โ Added documentation on features of
fetch
which 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-stream
responses intoBlob
s if the browser supportsArrayBuffers
-- #752โ Added compatibility for
fetch-mock
-- #736Making 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
- โ Added documentation on features of
-
v3.0.1
July 08, 2020 -
v3.0.0 Changes
September 07, 2018๐ฆ 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.