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

BREAKING: drop support for Node.js v16; add support for ^20,>=22 #245

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented Jun 11, 2024

@legobeat legobeat marked this pull request as ready for review June 11, 2024 06:47
@legobeat legobeat requested a review from a team as a code owner June 11, 2024 06:47
Copy link

socket-security bot commented Jun 11, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/node@18.19.34 None +1 2.04 MB types

🚮 Removed packages: npm/@types/node@17.0.23

View full report↗︎

@legobeat legobeat marked this pull request as draft June 11, 2024 06:48
@legobeat legobeat marked this pull request as ready for review June 11, 2024 07:17
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Seems like we may not be able to do this yet until we bump the ESLint packages, or at least eslint-plugin-jsdoc.

package.json Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
.nvmrc Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@@ -29,7 +29,8 @@ jobs:
with:
path: ${{ steps.yarn-cache-dir.outputs.YARN_CACHE_DIR }}
key: yarn-cache-${{ runner.os }}-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }}
- run: yarn --frozen-lockfile
# TODO: Remove ignore-engines when eslint-plugin-jsdoc has been upgraded
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, it seems that we may want to bump this package first before merging this PR. The fact that we're seeing this error means we would also see this error in development too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's only in development/CI, though, and does not affect users of the package.
Think we can address upgrading the lint plugin as a follow-up, in order to unblock #241?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(FWIW, --ignore-engines matches default behavior in yarn v3+)

Copy link
Contributor

Choose a reason for hiding this comment

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

Alright, but in the meantime, when I go to this branch and run yarn install, I see an error because of this package. It seems that not being able to install dependencies would be confusing for people who want to work on this library, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, I just updated project .yarnrc so this will ignore engines by default now (which also means this change in ci is not needed anymore and therefore reverted)

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, cool. FWIW I think it's silly that Yarn ignores node.engines, but I think we've had that discussion before and I guess we can use https://github.com/devoto13/yarn-plugin-engines if we really feel like it. I'm good with your change.

@legobeat legobeat requested a review from mcmire June 11, 2024 22:13
@legobeat legobeat requested a review from a team June 12, 2024 03:40
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

LGTM.

@legobeat legobeat merged commit b089e70 into MetaMask:main Jun 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants