Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency isomorphic-unfetch to v4 #89

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from

Conversation

makaira-github
Copy link
Contributor

This PR contains the following updates:

Package Type Update Change
isomorphic-unfetch dependencies major ^3.1.0 -> ^4.0.0

Release Notes

developit/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');

Configuration

📅 Schedule: At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, 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, click this checkbox.

This PR has been generated by Renovate Bot.

@makaira-github makaira-github force-pushed the renovate/isomorphic-unfetch-4.x branch from 592bf73 to de3d344 Compare August 10, 2023 15:08
@makaira-github makaira-github force-pushed the renovate/isomorphic-unfetch-4.x branch from de3d344 to 083435a Compare August 18, 2023 09:00
@makaira-github makaira-github force-pushed the renovate/isomorphic-unfetch-4.x branch from 083435a to 0f4d56f Compare September 15, 2023 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants