Skip to content

deps: [M3-9471] - Clean up unnecessary package resolutions - #12089

Merged
bill-akamai merged 13 commits into
linode:developfrom
bill-akamai:M3-9471-clean-up-unnecessary-package-resolutions
Apr 24, 2025
Merged

bill-akamai merged 13 commits into
linode:developfrom
bill-akamai:M3-9471-clean-up-unnecessary-package-resolutions

Conversation

@bill-akamai

@bill-akamai bill-akamai commented Apr 22, 2025

Copy link
Copy Markdown
Contributor

Description 📝

This PR removes unnecessary package resolutions from the root package.json. After checking each resolution with pnpm why -r, the cookie and nanoid packages are now naturally resolving to newer versions. node-fetch, yaml, and semver still use dependencies that rely on outdated versions, so those resolutions are being retained for now.

🗑️ Resolutions removed:

cookie pinned version: ^0.7.0

Packages are resolving to 0.7.2

Relevant PR(s):

Dependabot alert(s):

Jira ticket(s):


nanoid pinned version: ^3.3.8

Packages are resolving to 3.3.11

Relevant PR(s):

Dependabot alert(s):

Jira ticket(s):


📌 Resolutions still needed:

node-fetch pinned version: ^2.6.7

recompose 0.30.0
└─┬ fbjs 0.8.18
  └─┬ isomorphic-fetch 2.2.1
    └── node-fetch 1.7.3

Relevant PR(s):

Dependabot alert(s):

Jira ticket(s):

  • No associated Jira tickets found

yaml pinned version: ^2.3.0

@emotion/react 11.13.5
└─┬ @emotion/babel-plugin 11.13.5
  └─┬ babel-plugin-macros 3.1.0
    └─┬ cosmiconfig 7.1.0
      └── yaml 1.10.2

Relevant PR(s):

Dependabot alert(s):

Jira ticket(s):

  • No associated Jira tickets found

semver pinned version: ^7.5.2

eslint-plugin-react 7.37.4
└── semver 6.3.1

Relevant PR(s):

Dependabot alert(s):

Jira ticket(s):

  • No associated Jira tickets found

Changes 🔄

  • Removed 2 package resolutions from package.json (cookie and nanoid)

Verification steps

  • Fully reset dependencies with pnpm clean && pnpm install && pnpm bootstrap
  • Run pnpm why -r cookie and pnpm why -r nanoid to ensure they're resolving to versions higher than those previously pinned
  • Make sure app works! Build it, look for any errors, check unit tests, etc.
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • [x TypeScript compilation succeeded without errors
  • Code passes all linting rules

@bill-akamai bill-akamai self-assigned this Apr 22, 2025
@bill-akamai bill-akamai added the Dependencies Pull requests that update a dependency file label Apr 22, 2025
@bill-akamai
bill-akamai marked this pull request as ready for review April 23, 2025 17:24
@bill-akamai
bill-akamai requested a review from a team as a code owner April 23, 2025 17:24
@bill-akamai
bill-akamai requested review from hkhalil-akamai and mjac0bs and removed request for a team April 23, 2025 17:24
Comment thread pnpm-lock.yaml Outdated
Comment thread package.json
Comment thread package.json
@hkhalil-akamai

This comment was marked as outdated.

@bill-akamai
bill-akamai marked this pull request as draft April 24, 2025 16:21
@bill-akamai

bill-akamai commented Apr 24, 2025

Copy link
Copy Markdown
Contributor Author

I'm not necessarily seeing this error... can others confirm? Totally a matter of preference but import React just looks cleaner to me than import * as React.

@hkhalil-akamai I agree with you that import React from 'react'; looks cleaner. This style of import fixed some linting issues that showed up after I removed the resolutions however, since it appears that we need some of these resolutions after all I reverted these changes. It must have stemmed from using the newer version of either node-fetch, yaml, or semver. We can revisit once those are actually ready to be replace if we do need to update the import style then.

It looks like we'll be able to remove node-fetch if we can remove recompose from our codebase. I saw @bnussman-akamai has already done some of this work before and there are only a few references left to this package so it looks possible to remove in a separate ticket.

@bill-akamai
bill-akamai marked this pull request as ready for review April 24, 2025 17:17
@hkhalil-akamai hkhalil-akamai added the Add'tl Approval Needed Waiting on another approval! label Apr 24, 2025
@github-project-automation github-project-automation Bot moved this from Review to Approved in Cloud Manager Apr 24, 2025
@bnussman-akamai bnussman-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Apr 24, 2025
@linode-gh-bot

Copy link
Copy Markdown

Cloud Manager UI test results

🔺 1 failing test on test run #16 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
1 Failing566 Passing5 Skipped112m 1s

Details

Failing Tests
SpecTest
smoke-community-stackscripts.spec.tsCloud Manager Cypress Tests→Community Stackscripts integration tests » Community Stackscripts integration tests

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/stackscripts/smoke-community-stackscripts.spec.ts"

@bill-akamai
bill-akamai merged commit 039f2a2 into linode:develop Apr 24, 2025
@github-project-automation github-project-automation Bot moved this from Approved to Merged in Cloud Manager Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Multiple approvals and ready to merge! Dependencies Pull requests that update a dependency file

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants