Skip to content

isomorphic-unfetch: Consider making node-fetch a peerDependency  #143

Open

Description

@jamiechong

I have the case where I'd like to have better control of the version of node-fetch used (v3.x beta). If it were a peer dependency I'd be able to do this.

Activity

  1. developit commented on Sep 29, 2020

    @developit
    Owner

    Definitely open to this.

  2. added this to the 5.0 milestone on Sep 29, 2020
  3. carlpaten commented on Jun 29, 2021

    @carlpaten

    Peer dependencies are not meant to be optional. This will cause problems with non-node installs.

  4. mindplay-dk commented on Aug 2, 2021

    @mindplay-dk

    How about at least adding a peer dependency on @types/node-fetch, so building with this package doesn't fail? (see #96)

  5. carlpaten commented on Aug 2, 2021

    @carlpaten

    Fully support this since unfetch bundles its own type definitions. Per @mindplay-dk's own comment in that thread,

    But either way, it's currently an undeclared dependency - you have to get a build failure and then manually install the package, so I think either that should be fixed, or the dependency should be removed?

    E: I wonder if you shouldn't open a separate issue for visibility.

  6. JustFly1984 commented on Sep 1, 2021

    @JustFly1984

    @jamiechong you can use yarn and resolutions field in package.json to force exact version of dependencies. But be careful, it could break things.

  7. matheo commented on Jan 2, 2022

    @matheo

    @developit can node-fetch be updated to v3.1.0 please?

  8. developit commented on Jan 2, 2022

    @developit
    Owner

    @matheo want to open a PR?

  9. RishikeshDarandale commented on Feb 3, 2022

    @RishikeshDarandale
    Contributor

    @developit , I tried my best to create #156 , but I am stuck to fix the test cases. Can you please take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions