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

Dependency package node-fetch has a new version available #19231

Closed
azure-sdk opened this issue Dec 10, 2021 · 11 comments
Closed

Dependency package node-fetch has a new version available #19231

azure-sdk opened this issue Dec 10, 2021 · 11 comments
Labels
Client This issue points to a problem in the data-plane of the library. dependency-upgrade-required EngSys This issue is impacting the engineering system.

Comments

@azure-sdk
Copy link
Collaborator

azure-sdk commented Dec 10, 2021

We have identified a dependency on version 2.7.0 of node-fetch. A new version (3.3.2) is available for upgrade.

Following are the steps to upgrade package dependency.

  1. Understand the breaking changes between the version being used and the version you want to upgrade to.

  2. Identify all packages that take a dependency on this package.

  3. Go to the root folder for each such package (/sdk/service-name/package-name) and update package.json to have the new version.

  4. Run rush update to ensure the new version is pulled in.

  5. Make relevant changes to absorb the breaking changes.

  6. Repeat steps 3 to 5 for each of the packages that have a dependency on this package.

@ghost ghost added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Dec 10, 2021
@jeremymeng jeremymeng added the Client This issue points to a problem in the data-plane of the library. label Dec 13, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Dec 13, 2021
@ramya-rao-a
Copy link
Contributor

This task should be taken up along with #19165

@ramya-rao-a ramya-rao-a added this to the [2022] February milestone Dec 15, 2021
@joheredi joheredi self-assigned this Jan 18, 2022
@jeremymeng jeremymeng removed their assignment Jan 19, 2022
@snuffykl
Copy link

Hi just checking any update to upgrade node-fetch to 2.6.7 ?

@ramya-rao-a
Copy link
Contributor

Hey @snuffykl

Our current dependency on node-fetch is using the semver notation ^2.6.6 which should give you the latest minor and patch updates with major version 2. Are you looking for node-fetch to be updated to v3?

@snuffykl
Copy link

Hey @snuffykl

Our current dependency on node-fetch is using the semver notation ^2.6.6 which should give you the latest minor and patch updates with major version 2. Are you looking for node-fetch to be updated to v3?

Hi @ramya-rao-a

I am looking to get it to 2.6.7. Good to know it will give me 2.6.7.

Thank you.

@joheredi
Copy link
Member

Unfortunately we won't be able to upgrade to v3 in the short term. The reason is that node-fetch v3 dropped support on commonjs modules. In order to migrate we'd need to make our packages ESM-only which we are not ready to do at the moment.

There seems to be a big number of community members impacted by the commonjs drop in node-fetch (for reference: node-fetch/node-fetch#1263)

@praveenkuttappan is there any way to tell the Dependency checker to just look at new versions under 2.x.x for this package?

@jeremymeng
Copy link
Contributor

We will only log issues for available major version updates. v2.x.x will be auto updated when our automation do rush update --full.

We could move this to backlog then check back in the future.

@alexweininger
Copy link

Unfortunately we won't be able to upgrade to v3 in the short term. The reason is that node-fetch v3 dropped support on commonjs modules. In order to migrate we'd need to make our packages ESM-only which we are not ready to do at the moment.

@joheredi Do you have long term plans to migrate to v3 and make the SDK packages ESM-only?

@joheredi
Copy link
Member

@bterlson should be able to comment about the long-term plans for ESM-only packages in this repo.

@joheredi joheredi modified the milestones: [2022] February, Backlog Jan 26, 2022
@joheredi joheredi removed their assignment Jan 26, 2022
@kevintechie
Copy link

Please consider updating to patch v2.6.7 to address high vulnerability issue per: GHSA-r683-j2x4-v87g

Update seems more urgent now.

@joheredi
Copy link
Member

We already updated to 2.6.7. Also since our dependency on node-fetch is a caret one, running npm update on your side would get you the latest version 2.6.7 without core-http releasing a new version

@jeremymeng jeremymeng added the EngSys This issue is impacting the engineering system. label Sep 12, 2022
Copy link

Hi @azure-sdk, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 13, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2024
@xirzec xirzec removed this from the Backlog milestone May 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. dependency-upgrade-required EngSys This issue is impacting the engineering system.
Projects
None yet
Development

No branches or pull requests

8 participants