stevenfitzpatrick / stevenfitzpatrick.io

My personal homepage
https://stevenfitzpatrick.io
2 stars 0 forks source link

Update unfetch to the latest version 🚀 #153

Open greenkeeper[bot] opened 5 years ago

greenkeeper[bot] commented 5 years ago

The dependency unfetch was updated from 3.1.1 to 4.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Release Notes for 4.0.0

🦄 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');
Commits

The new version differs by 28 commits.

  • dbe0a9e 4.0.0
  • 701d4ef Migrate to Microbundle and Jest. Drops size to 498 bytes!
  • c2812e2 Rework unfetch/polyfill for make it bundler-agnostic.
  • ba16a12 Move to mjs and make unfetch a ponyfill
  • 803c39b fix npm issues
  • d1ebfe8 npm ci
  • e5cc917 only run tests on Node 10 [2]
  • a4b9763 only run tests on Node 10
  • be85858 Merge pull request #72 from DanielRuf/chore/use-npm-ci
  • 438fcfd Merge branch 'master' into chore/use-npm-ci
  • 8ae85ee Merge pull request #71 from DanielRuf/chore/add-nodejs-8-10
  • fca5e8f Merge branch 'master' into chore/add-nodejs-8-10
  • dfe5c6e Merge branch 'master' into chore/use-npm-ci
  • e699581 Merge pull request #89 from deptno/master
  • 0d90045 fix #87 change isomorphic-fetch ts definition: export default to export =

There are 28 commits in total.

See the full diff

FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree:

greenkeeper[bot] commented 5 years ago

Update to this version instead 🚀

Release Notes for 4.0.1

Quick publishing fix.

Commits

The new version differs by 5 commits.

See the full diff

greenkeeper[bot] commented 5 years ago

Update to this version instead 🚀

Commits

The new version differs by 8 commits.

  • 92d9203 4.1.0
  • 8329812 Reduce size by 20b
  • 9de6183 update to microbundle 0.10
  • 9921754 Merge pull request #103 from ericnmurphy/patch-2
  • 1e8e824 Merge branch 'master' into patch-2
  • ac0aa09 Merge pull request #105 from stephenmathieson/fix-typedef
  • 1bab6b6 Fix TypeScript export
  • 2e5cbf9 Updated isomorphic-unfetch code examples

See the full diff