React-Native-Web-TypeScript-Prettier-Boilerplate icon indicating copy to clipboard operation
React-Native-Web-TypeScript-Prettier-Boilerplate copied to clipboard

Update dependency isomorphic-unfetch to v4

Open renovate[bot] opened this issue 2 years ago • 0 comments

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
isomorphic-unfetch 3.0.0 -> 4.0.2 age adoption passing confidence

Release Notes

developit/unfetch (isomorphic-unfetch)

v4.0.2

Compare Source

v4.0.1

Compare Source

Quick publishing fix.

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!)
  • 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');

v3.1.0

Compare Source

Also released: [email protected] - 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

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

renovate[bot] avatar Mar 16 '23 15:03 renovate[bot]