NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3592 most downloaded on npm
Bare minimum fetch polyfill in 500 bytes
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 2.3 years
Most releases are documented
notes for 14 of 16 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
16 releases · first in 2017
Add TypeScript definitions and export them @developit in https://github.com/developit/unfetch/pull/159
Full Changelog: https://github.com/developit/unfetch/compare/4.2.0...5.0.0
> Please make sure to also update to isomorphic-unfetch@3.1.0, which includes a security fix for node-fetch. _(thanks @sakito21)_
.json() parse errors return a rejected Promise instead of throwing (#112, thanks @sunsean!)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 fornode-fetch. (thanks @sakito21)
One column per quarter.
Fix TypeScript definitions (#99 #105 - thanks @stephenmathieson & @Fnatte!)
Nothing published for this version
🦄 Small breaking change for awesome ponyness:
🦄 Small breaking change for awesome ponyness:
unfetch is now a pure ponyfill.unfetch/polyfill is now the polyfill version (even smaller than the ponyfill!)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');
</details>
Fixes an IE11 bug (#85, thanks @khusa!)
Fixes a little TypeScript definition issue in unfetch@3.1.0 / isomorphic-unfetch@2.1.0. Thanks @schonert & @wereHamster.
unfetch@3.1.0 / isomorphic-unfetch@2.1.0. Thanks @schonert & @wereHamster.> Also released: isomorphic-unfetch@2.1.0 - now with node-fetch 2.x, TypeScript definitions and a readme.
Also released:
isomorphic-unfetch@2.1.0- now with node-fetch 2.x, TypeScript definitions and a readme.
Remove invented xml() method (not part of the Fetch spec. #43/#44 - thanks @AntonioVdlC!)
xml() method (not part of the Fetch spec. #43/#44 - thanks @AntonioVdlC!)isomorphic-unfetch@2.0.0isomorphic-unfetch that fixes an issue where ES Module-compatible bundlers like Webpack 2+ would fail to polyfill window.fetch.Fix polyfill in webpack 2 (#31, thanks @sapegin!)
Only set withCredentials to true when credentials is "include" (#28, thanks @suhaotian!)
withCredentials to true when credentials is "include" (#28, thanks @suhaotian!)- #25: The module / jsnext:main now point to a pre-transpiled bundle with ES Modules exports. Fixes an issue where Webpack 2 users who are not transpi
module / jsnext:main now point to a pre-transpiled bundle with ES Modules exports. Fixes an issue where Webpack 2 users who are not transpiling node_modules would end up with untranspiled code.Fixes an issue with the UMD bundle
Add unfetch/polyfill entry, which automatically installs to window.fetch if it doesn't exist
unfetch/polyfill entry, which automatically installs to window.fetch if it doesn't existcredentials option, specifically { credentials: 'include' }response.ok reporting false erroneously in some casesresponse.blob() so it actually returns a Blob- Fixes issue with XHR status.
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →