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

[Snyk] Upgrade isomorphic-unfetch from 3.1.0 to 4.0.2 #202

Closed
wants to merge 2 commits into from

Conversation

ci-stytch
Copy link
Contributor

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade isomorphic-unfetch from 3.1.0 to 4.0.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 3 versions ahead of your current version.
  • The recommended version was released 3 months ago, on 2023-01-03.
Release notes
Package name: isomorphic-unfetch
  • 4.0.2 - 2023-01-03

    Full Changelog: isomorphic-4.0.1...isomorphic-4.0.2

  • 4.0.1 - 2022-12-31

    What's Changed

    New Contributors

    Full Changelog: isomorphic-3.1.0...isomorphic-4.0.1

  • 4.0.0 - 2022-12-31

    🦄 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');
      </li>
      <li>
        <b>3.1.0</b> - <a href="https://snyk.io/redirect/github/developit/unfetch/releases/tag/isomorphic-3.1.0">2020-09-29</a></br><p>isomorphic-unfetch@3.1.0</p>
      </li>
    </ul>
    from <a href="https://snyk.io/redirect/github/developit/unfetch/releases">isomorphic-unfetch GitHub release notes</a>
    

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@max-stytch
Copy link
Collaborator

We're skipping this update for now in order to stay on node-fetch v2.x.x. v3.x.x is an ES Module, which breaks Jest on certain Node versions. While we can handle this for this repo, we don't want this causing issues for customers.

Node-fetch v2.x.x continues to get security updates (for now!).

See: #147

@max-stytch max-stytch closed this Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants