- Fix unintentional use of arrow functions in some 4.1.0 builds (#138, thanks @simon04!)
- Fix usage in Web Workers (#109)
.json()parse errors return a rejected Promise instead of throwing (#112, thanks @sunsean!)- Improved TypeScript typings (#117 & #121, thanks @Andarist & @0x80!)
- Add support for passing
URLobjects tofetch()(#141, thanks @Edorka for the tip!)
Please make sure to also update to
isomorphic-unfetch@3.1.0, which includes a security fix fornode-fetch. (thanks @sakito21)
Assets
2
- Fix TypeScript definitions (#99 #105 - thanks @stephenmathieson & @Fnatte!)
- Drop another 20 bytes, now 478b
🐕
Assets
2
Quick publishing fix.
Assets
2
unfetchis now a pure ponyfill.unfetch/polyfillis now the polyfill version (even smaller than the ponyfill!)- All modules are shipped in all formats, and the polyfill is now < 500b.
- Also a little bugfix for IE11 (#85, thanks @khusa)
TL;DR:
require('unfetch')no longer returnswindow.fetchwhen it exists. For that, useunfetch/polyfill.
This change makes unfetch lovely to use as a polyfill from HTML:
<script src="https://unpkg.com/unfetch/polyfill"></script>
<!-- that's it! -->
<script>foo = await fetch('/foo.json')</script>Otherwise, if you're using Unfetch and bundling your code, continue as you were before:
if (!self.fetch) self.fetch = require('unfetch');
// or simply:
import 'unfetch/polyfill';Important - the one thing to avoid:
Since unfetch is a proper ponyfill, it will now overwrite
fetcheven in supported browsers if you do the following// never do this! window.fetch = require('unfetch');
Assets
2
Assets
2
- Fixes a little TypeScript definition issue in
unfetch@3.1.0/isomorphic-unfetch@2.1.0. Thanks @schonert & @wereHamster.
Assets
2
Also released:
isomorphic-unfetch@2.1.0- now with node-fetch 2.x, TypeScript definitions and a readme.
- TypeScript definitions!
- Fixes a bug in response status code parsing
- Fixes XHR being potentially synchronous in really old browsers
- Fixes parsing of empty header values
- Serves up the umd bundle on unpkg.com
Assets
2
Breaking
- Remove invented
xml()method (not part of the Fetch spec. #43/#44 - thanks @AntonioVdlC!)
Bug Fixes
isomorphic-unfetch@2.0.0
- This release is paired up with an update to
isomorphic-unfetchthat fixes an issue where ES Module-compatible bundlers like Webpack 2+ would fail to polyfillwindow.fetch.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
