Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [20.x, 22.x, 24.x]
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
with:
is-high-risk-environment: false
node-version: ${{ matrix.node-version }}
cache-node-modules: ${{ matrix.node-version == '22.x' }}
cache-node-modules: ${{ matrix.node-version == '24.x' }}

build:
name: Build
needs: prepare
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
node-version: [24.x]
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
Expand All @@ -46,7 +46,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
node-version: [24.x]
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [20.x, 22.x, 24.x]
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
Expand All @@ -96,7 +96,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [20.x, 22.x, 24.x]
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^18.20 || ^20.17 || >=22"
"node": "^20 || ^22 || >=24"
Copy link
Contributor Author

@mcmire mcmire Oct 2, 2025

Choose a reason for hiding this comment

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

We ought to support all past versions of 20.x and 22.x, not just whichever happens to be the current version right now. This change also simplifies the process for updating these ranges the next time around (no need to look up the current version, just bump all the numbers).

},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion yarn.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ module.exports = defineConfig({
workspace.set('repository.url', `${workspaceRepository}.git`);

// The package must specify the expected minimum Node versions
workspace.set('engines.node', '^18.20 || ^20.17 || >=22');
workspace.set('engines.node', '^20 || ^22 || >=24');

// The package must provide the location of the CommonJS-compatible
// entrypoint and its matching type declaration file.
Expand Down
Loading