| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Full Changelog: isomorphic-4.0.1...isomorphic-4.0.2
Full Changelog: 4.2.0...5.0.0
Full Changelog: isomorphic-3.1.0...isomorphic-4.0.1
Please make sure to also update to isomorphic-unfetch@3.1.0, which includes a security fix for node-fetch. (thanks @sakito21)
Quick publishing fix.
🦄 Small breaking change for awesome ponyness:
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');
Also released: isomorphic-unfetch@2.1.0 - now with node-fetch 2.x, TypeScript definitions and a readme.
| Back | FazBrowse Home | New Git URL |