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

@W-14599658@ Fix: update packages to include npm 10 #1597

Merged
merged 8 commits into from
Dec 6, 2023

Conversation

joeluong-sfcc
Copy link
Collaborator

@joeluong-sfcc joeluong-sfcc commented Dec 5, 2023

Description

Starting with Node v18.19.0, npm is updated to v10, meaning anytime anyone tries to run npm i with Node version greater than v18.19.0 they error out since all packages look for "npm":"^8.0.0 || ^9.0.0". This PR adds in npm 10.

This PR also updates the CI to include npm 10, and excludes the combination of node 16 with npm 10 from the testing matrix as they are incompatible

Related Github Issue: #1594

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Breaking change (could cause existing functionality to not work as expected)
  • Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

  • Removing a public function or component or prop
  • Adding a required argument to a function
  • Changing the data type of a function parameter or return value
  • Adding a new peer dependency to package.json

Changes

  • (change1)

How to Test-Drive This PR

  • (step1)

Checklists

General

  • Changes are covered by test cases
  • CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance

You must check off all items in one of the follow two lists:

  • There are no changes to UI

or...

Localization

  • Changes include a UI text update in the Retail React App (which requires translation)

@joeluong-sfcc joeluong-sfcc changed the base branch from release-3.3.x to develop December 5, 2023 18:23
@joeluong-sfcc joeluong-sfcc changed the base branch from develop to release-3.3.x December 5, 2023 18:24
@joeluong-sfcc joeluong-sfcc marked this pull request as ready for review December 5, 2023 18:30
@joeluong-sfcc joeluong-sfcc requested a review from a team as a code owner December 5, 2023 18:30
npm: [8, 9, 10]
exclude: # node 16 is not compatible with npm 10
- node: 16
npm: 10
runs-on: ubuntu-latest
env:
# The "default" npm is the one that ships with a given version of node.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does CI run with node 18.0 or latest 18? As of node 18.19.0, the default npm is now 10.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the CI, seems like its actually v18.18.2, should we try to pin it to a version greater than or equal to v18.19.0?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v18.19.0 was only released last week, so it seems like the tooling does use latest 18, but just hasn't pulled in the new release yet. I'd say leave keep what we have for now, but set a reminder to double check in like a week or two, maybe?

@joeluong-sfcc joeluong-sfcc enabled auto-merge (squash) December 6, 2023 14:29
@joeluong-sfcc joeluong-sfcc merged commit 201747d into release-3.3.x Dec 6, 2023
22 checks passed
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.

3 participants