close
The Wayback Machine - https://web.archive.org/web/20201201154442/https://github.com/developit/unfetch/releases
Skip to content

@developit developit released this Sep 29, 2020 · 4 commits to master since this release

  • 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 URL objects to fetch() (#141, thanks @Edorka for the tip!)

Please make sure to also update to isomorphic-unfetch@3.1.0, which includes a security fix for node-fetch. (thanks @sakito21)

Assets 2
Sep 29, 2020
isomorphic-unfetch@3.1.0

@developit developit released this Mar 3, 2019 · 46 commits to master since this release

Assets 2

@developit developit released this Sep 17, 2018 · 54 commits to master since this release

Quick publishing fix.

Assets 2

@developit developit released this Sep 17, 2018 · 59 commits to master since this release

🦄 Small breaking change for awesome ponyness:

  • unfetch is now a pure ponyfill.
  • unfetch/polyfill is 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 returns window.fetch when it exists. For that, use unfetch/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 fetch even in supported browsers if you do the following

// never do this!
window.fetch = require('unfetch');
Assets 2

@developit developit released this Sep 17, 2018 · 87 commits to master since this release

Assets 2

@developit developit released this Jul 30, 2018 · 87 commits to master since this release

  • Fixes a little TypeScript definition issue in unfetch@3.1.0 / isomorphic-unfetch@2.1.0. Thanks @schonert & @wereHamster.
Assets 2

@developit developit released this Jul 20, 2018 · 92 commits to master since this release

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

@developit developit released this Jun 28, 2017 · 141 commits to master since this release

Breaking

  • Remove invented xml() method (not part of the Fetch spec. #43/#44 - thanks @AntonioVdlC!)

Bug Fixes

  • Fix illegal invocation errors in Webpack 2+ when window.fetch exists (#46/#47, thanks @jhnns!)

isomorphic-unfetch@2.0.0

  • This release is paired up with an update to isomorphic-unfetch that fixes an issue where ES Module-compatible bundlers like Webpack 2+ would fail to polyfill window.fetch.
Assets 2

@developit developit released this Mar 3, 2017 · 163 commits to master since this release

Assets 2
You can’t perform that action at this time.