From c2c847d344712568538ec5a0672d0ec499de7c07 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 13 May 2026 10:10:56 -0700 Subject: [PATCH 1/6] chore: bumping @npmcli/template-oss from 4.30.0 to 5.1.0 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a2618a5..79d54e8 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ }, "devDependencies": { "@npmcli/eslint-config": "^6.0.0", - "@npmcli/template-oss": "4.30.0" + "@npmcli/template-oss": "5.1.0" }, "files": [ "bin/", @@ -41,7 +41,7 @@ }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "4.30.0", + "version": "5.1.0", "publish": "true", "testRunner": "node:test", "latestCiVersion": 24, From 7ce4348144ef30eadf7ea262d862c0013f323c76 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 13 May 2026 10:11:00 -0700 Subject: [PATCH 2/6] feat!: template-oss-apply --- .github/CODEOWNERS | 2 +- .github/workflows/audit.yml | 4 ++-- .github/workflows/ci-release.yml | 16 +++++++--------- .github/workflows/ci.yml | 16 +++++++--------- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/post-dependabot.yml | 4 ++-- .github/workflows/pull-request.yml | 4 ++-- .github/workflows/release-integration.yml | 4 ++-- .github/workflows/release.yml | 8 ++++---- 9 files changed, 28 insertions(+), 32 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2c54b0d..b6ec921 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,3 @@ # This file is automatically added by @npmcli/template-oss. Do not edit. -* @npm/cli-team +* @npm/cli-team @npm/cli-triage diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 2543d79..7378d55 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -21,13 +21,13 @@ jobs: shell: bash steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Git User run: | git config --global user.email "npm-cli+bot@github.com" git config --global user.name "npm CLI robot" - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 id: node with: node-version: 24.x diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 99d28cb..439c526 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -32,7 +32,7 @@ jobs: shell: bash steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} - name: Setup Git User @@ -48,7 +48,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} sha: ${{ inputs.check-sha }} - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 id: node with: node-version: 24.x @@ -113,7 +113,7 @@ jobs: shell: ${{ matrix.platform.shell }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ inputs.ref }} - name: Setup Git User @@ -129,12 +129,13 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} sha: ${{ inputs.check-sha }} - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 id: node with: node-version: ${{ matrix.node-version }} check-latest: contains(matrix.node-version, '.x') - name: Install Latest npm + if: ${{ !startsWith(matrix.node-version, '22.') }} uses: ./.github/actions/install-latest-npm with: node: ${{ steps.node.outputs.node-version }} @@ -143,11 +144,8 @@ jobs: - name: Test (with coverage on Node >= 24) if: ${{ startsWith(matrix.node-version, '24') }} run: npm run test:cover --ignore-scripts - - name: Test (on Node 20 with globbing workaround) - if: ${{ startsWith(matrix.node-version, '20') }} - run: npm run test:node20 --ignore-scripts - - name: Test - if: ${{ !startsWith(matrix.node-version, '24') && !startsWith(matrix.node-version, '20') }} + - name: Test (without coverage on Node < 24) + if: ${{ !startsWith(matrix.node-version, '24') }} run: npm test --ignore-scripts - name: Conclude Check uses: LouisBrunner/checks-action@v1.6.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b46e51..6094a74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,13 +25,13 @@ jobs: shell: bash steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Git User run: | git config --global user.email "npm-cli+bot@github.com" git config --global user.name "npm CLI robot" - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 id: node with: node-version: 24.x @@ -89,18 +89,19 @@ jobs: shell: ${{ matrix.platform.shell }} steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Git User run: | git config --global user.email "npm-cli+bot@github.com" git config --global user.name "npm CLI robot" - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 id: node with: node-version: ${{ matrix.node-version }} check-latest: contains(matrix.node-version, '.x') - name: Install Latest npm + if: ${{ !startsWith(matrix.node-version, '22.') }} uses: ./.github/actions/install-latest-npm with: node: ${{ steps.node.outputs.node-version }} @@ -109,9 +110,6 @@ jobs: - name: Test (with coverage on Node >= 24) if: ${{ startsWith(matrix.node-version, '24') }} run: npm run test:cover --ignore-scripts - - name: Test (on Node 20 with globbing workaround) - if: ${{ startsWith(matrix.node-version, '20') }} - run: npm run test:node20 --ignore-scripts - - name: Test - if: ${{ !startsWith(matrix.node-version, '24') && !startsWith(matrix.node-version, '20') }} + - name: Test (without coverage on Node < 24) + if: ${{ !startsWith(matrix.node-version, '24') }} run: npm test --ignore-scripts diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index af848e1..8c43556 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -26,7 +26,7 @@ jobs: security-events: write steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Git User run: | git config --global user.email "npm-cli+bot@github.com" diff --git a/.github/workflows/post-dependabot.yml b/.github/workflows/post-dependabot.yml index 8e80d10..0d8f753 100644 --- a/.github/workflows/post-dependabot.yml +++ b/.github/workflows/post-dependabot.yml @@ -17,7 +17,7 @@ jobs: shell: bash steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.ref }} - name: Setup Git User @@ -25,7 +25,7 @@ jobs: git config --global user.email "npm-cli+bot@github.com" git config --global user.name "npm CLI robot" - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 id: node with: node-version: 24.x diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9ecf311..6e3f409 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -23,7 +23,7 @@ jobs: shell: bash steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Setup Git User @@ -31,7 +31,7 @@ jobs: git config --global user.email "npm-cli+bot@github.com" git config --global user.name "npm CLI robot" - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 id: node with: node-version: 24.x diff --git a/.github/workflows/release-integration.yml b/.github/workflows/release-integration.yml index 195f50a..34228c0 100644 --- a/.github/workflows/release-integration.yml +++ b/.github/workflows/release-integration.yml @@ -34,7 +34,7 @@ jobs: id-token: write steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ fromJSON(inputs.releases)[0].tagName }} - name: Setup Git User @@ -42,7 +42,7 @@ jobs: git config --global user.email "npm-cli+bot@github.com" git config --global user.name "npm CLI robot" - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 id: node with: node-version: 24.x diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 863f9eb..e240d70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,13 +30,13 @@ jobs: shell: bash steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Git User run: | git config --global user.email "npm-cli+bot@github.com" git config --global user.name "npm CLI robot" - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 id: node with: node-version: 24.x @@ -107,7 +107,7 @@ jobs: shell: bash steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 ref: ${{ needs.release.outputs.pr-branch }} @@ -116,7 +116,7 @@ jobs: git config --global user.email "npm-cli+bot@github.com" git config --global user.name "npm CLI robot" - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 id: node with: node-version: 24.x From b5abd177cfb1c61e4b6df90150ab5b2a8bf16238 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 13 May 2026 10:11:15 -0700 Subject: [PATCH 3/6] feat!: bump to new node engine range BREAKING CHANGE: `normalize-package-data` now supports node `^22.22.2 || ^24.15.0 || >=26.0.0` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 79d54e8..3ffe3a8 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "lib/" ], "engines": { - "node": "^20.17.0 || >=22.9.0" + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" }, "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", From 190680d3dd1e8554fc63c450a570962c297e5408 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 13 May 2026 10:11:19 -0700 Subject: [PATCH 4/6] chore: template-oss-apply --- .github/workflows/audit.yml | 4 ++-- .github/workflows/ci-release.yml | 23 +++++++++++++---------- .github/workflows/ci.yml | 23 +++++++++++++---------- .github/workflows/post-dependabot.yml | 4 ++-- .github/workflows/pull-request.yml | 4 ++-- .github/workflows/release-integration.yml | 4 ++-- .github/workflows/release.yml | 8 ++++---- 7 files changed, 38 insertions(+), 32 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 7378d55..4a2d6af 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -30,8 +30,8 @@ jobs: uses: actions/setup-node@v6 id: node with: - node-version: 24.x - check-latest: contains('24.x', '.x') + node-version: 26.x + check-latest: contains('26.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 439c526..90b94ad 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -51,8 +51,8 @@ jobs: uses: actions/setup-node@v6 id: node with: - node-version: 24.x - check-latest: contains('24.x', '.x') + node-version: 26.x + check-latest: contains('26.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -91,22 +91,25 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.17.0 - - 20.x - - 22.9.0 + - 22.22.2 - 22.x + - 24.15.0 - 24.x + - 26.0.0 + - 26.x exclude: - platform: { name: macOS, os: macos-15-intel, shell: bash } - node-version: 20.17.0 - - platform: { name: macOS, os: macos-15-intel, shell: bash } - node-version: 20.x - - platform: { name: macOS, os: macos-15-intel, shell: bash } - node-version: 22.9.0 + node-version: 22.22.2 - platform: { name: macOS, os: macos-15-intel, shell: bash } node-version: 22.x + - platform: { name: macOS, os: macos-15-intel, shell: bash } + node-version: 24.15.0 - platform: { name: macOS, os: macos-15-intel, shell: bash } node-version: 24.x + - platform: { name: macOS, os: macos-15-intel, shell: bash } + node-version: 26.0.0 + - platform: { name: macOS, os: macos-15-intel, shell: bash } + node-version: 26.x runs-on: ${{ matrix.platform.os }} defaults: run: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6094a74..8060298 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,8 +34,8 @@ jobs: uses: actions/setup-node@v6 id: node with: - node-version: 24.x - check-latest: contains('24.x', '.x') + node-version: 26.x + check-latest: contains('26.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -67,22 +67,25 @@ jobs: os: windows-latest shell: cmd node-version: - - 20.17.0 - - 20.x - - 22.9.0 + - 22.22.2 - 22.x + - 24.15.0 - 24.x + - 26.0.0 + - 26.x exclude: - platform: { name: macOS, os: macos-15-intel, shell: bash } - node-version: 20.17.0 - - platform: { name: macOS, os: macos-15-intel, shell: bash } - node-version: 20.x - - platform: { name: macOS, os: macos-15-intel, shell: bash } - node-version: 22.9.0 + node-version: 22.22.2 - platform: { name: macOS, os: macos-15-intel, shell: bash } node-version: 22.x + - platform: { name: macOS, os: macos-15-intel, shell: bash } + node-version: 24.15.0 - platform: { name: macOS, os: macos-15-intel, shell: bash } node-version: 24.x + - platform: { name: macOS, os: macos-15-intel, shell: bash } + node-version: 26.0.0 + - platform: { name: macOS, os: macos-15-intel, shell: bash } + node-version: 26.x runs-on: ${{ matrix.platform.os }} defaults: run: diff --git a/.github/workflows/post-dependabot.yml b/.github/workflows/post-dependabot.yml index 0d8f753..2d41073 100644 --- a/.github/workflows/post-dependabot.yml +++ b/.github/workflows/post-dependabot.yml @@ -28,8 +28,8 @@ jobs: uses: actions/setup-node@v6 id: node with: - node-version: 24.x - check-latest: contains('24.x', '.x') + node-version: 26.x + check-latest: contains('26.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 6e3f409..7cfbbca 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -34,8 +34,8 @@ jobs: uses: actions/setup-node@v6 id: node with: - node-version: 24.x - check-latest: contains('24.x', '.x') + node-version: 26.x + check-latest: contains('26.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/release-integration.yml b/.github/workflows/release-integration.yml index 34228c0..d705f32 100644 --- a/.github/workflows/release-integration.yml +++ b/.github/workflows/release-integration.yml @@ -45,8 +45,8 @@ jobs: uses: actions/setup-node@v6 id: node with: - node-version: 24.x - check-latest: contains('24.x', '.x') + node-version: 26.x + check-latest: contains('26.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e240d70..c277433 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,8 @@ jobs: uses: actions/setup-node@v6 id: node with: - node-version: 24.x - check-latest: contains('24.x', '.x') + node-version: 26.x + check-latest: contains('26.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: @@ -119,8 +119,8 @@ jobs: uses: actions/setup-node@v6 id: node with: - node-version: 24.x - check-latest: contains('24.x', '.x') + node-version: 26.x + check-latest: contains('26.x', '.x') - name: Install Latest npm uses: ./.github/actions/install-latest-npm with: From e405f5792d8e0135befa0aa6ea95e747ab6b2584 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 13 May 2026 10:11:35 -0700 Subject: [PATCH 5/6] deps: hosted-git-info@10.1.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3ffe3a8..8be78c4 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "test:cover": "node --test --experimental-test-coverage --test-timeout=3000 --test-coverage-lines=97 --test-coverage-functions=97 --test-coverage-branches=97 './test/**/*.js'" }, "dependencies": { - "hosted-git-info": "^9.0.0", + "hosted-git-info": "^10.1.0", "semver": "^7.3.5", "validate-npm-package-license": "^3.0.4" }, From ba86dbdb262cbfe5d90086f1d741a9d601621d65 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 15 May 2026 09:27:01 -0700 Subject: [PATCH 6/6] chore: replace removed _stream_writable with stream for Node 26 compatibility --- test/normalize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/normalize.js b/test/normalize.js index 37bcbea..ce1c3ba 100644 --- a/test/normalize.js +++ b/test/normalize.js @@ -66,7 +66,7 @@ test('core module name', function () { function warn (m) { warnings.push(m) } - var coreModules = ['http', '_stream_writable'] + var coreModules = ['http', 'stream'] var expect = [] for (var i = 0; i < coreModules.length; ++i) { normalize({