Closed renovate[bot] closed 6 years ago
This Pull Request updates dependency unfetch (source) from v3.1.1 to v4.0.0
unfetch
v3.1.1
v4.0.0
Release Notes
Compare Source
🦄 Small breaking change for awesome ponyness:
unfetch/polyfill
TL;DR: require('unfetch') no longer returns window.fetch when it exists. For that, use unfetch/polyfill.
require('unfetch')
window.fetch
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');
Since unfetch is a proper ponyfill, it will now overwrite fetch even in supported browsers if you do the following
fetch
// never do this! window.fetch = require('unfetch');
This PR has been generated by Renovate Bot.
This Pull Request updates dependency
unfetch
(source) fromv3.1.1
tov4.0.0
Release Notes
v4.0.0
Compare Source
🦄 Small breaking change for awesome ponyness:
unfetch
is now a pure ponyfill.unfetch/polyfill
is now the polyfill version (even smaller than the ponyfill!)This change makes unfetch lovely to use as a polyfill from HTML:
Otherwise, if you're using Unfetch and bundling your code, continue as you were before:
Important - the one thing to avoid:
This PR has been generated by Renovate Bot.