Skip to content

Commit 46c00b3

Browse files
bdehamerMichael SmithCopilot
authored
Drop Node 20 (#1670)
* "feat!: drop support for Node 20" BREAKING CHANGE: drop support for Node 20 Signed-off-by: Michael Smith <owlstronaut@github.com> * deps: make-fetch-happen@16 Signed-off-by: Michael Smith <owlstronaut@github.com> * deps: proc-log@7 Signed-off-by: Michael Smith <owlstronaut@github.com> * fix(test): transform ESM-only proxy-agent deps in Jest make-fetch-happen@16 pulls in @npmcli/agent@5, which depends on ESM-only http-proxy-agent@9, https-proxy-agent@9, socks-proxy-agent@10, and agent-base@7. Jest's CommonJS runtime can't require() them, so any test importing make-fetch-happen failed with 'Cannot use import statement outside a module'. Extend @swc/jest to .js files and add a transformIgnorePatterns override so those packages are transformed instead of skipped under node_modules/. Signed-off-by: Brian DeHamer <bdehamer@github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * bump tuf-js packages Signed-off-by: Brian DeHamer <bdehamer@github.com> --------- Signed-off-by: Michael Smith <owlstronaut@github.com> Signed-off-by: Brian DeHamer <bdehamer@github.com> Co-authored-by: Michael Smith <owlstronaut@github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3975770 commit 46c00b3

35 files changed

Lines changed: 848 additions & 1711 deletions

.changeset/clean-beers-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sigstore/mock-server': patch
3+
---
4+
5+
Bump `@tuf-js\repo-mock` from 4.0.1 to 5.0.0
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@sigstore/conformance': minor
3+
'@sigstore/mock-server': minor
4+
'@sigstore/mock': minor
5+
'@sigstore/cli': minor
6+
'@sigstore/oci': minor
7+
---
8+
9+
Drop support for Node 20

.changeset/drop-node-20.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@sigstore/rekor-types': major
3+
'@sigstore/bundle': major
4+
'sigstore': major
5+
'@sigstore/verify': major
6+
'@sigstore/core': major
7+
'@sigstore/sign': major
8+
'@sigstore/tuf': major
9+
---
10+
11+
Drop support for Node 20

.changeset/loud-moments-tan.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sigstore/tuf': patch
3+
---
4+
5+
Bump `tuf-js` from 5.0.1 to 6.0.0

.changeset/mfh-16-oci.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sigstore/oci': minor
3+
---
4+
5+
Bump make-fetch-happen from 15.x to 16.x

.changeset/mfh-16-sign.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sigstore/sign': major
3+
---
4+
5+
Bump make-fetch-happen from 15.x to 16.x

.changeset/proc-log-7.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@sigstore/sign': major
3+
'@sigstore/oci': minor
4+
---
5+
6+
Bump proc-log from 6.x to 7.x

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ jobs:
3636
fail-fast: false
3737
matrix:
3838
node-version:
39-
- 20.17.0
40-
- 20.x
41-
- 22.9.0
39+
- 22.22.2
4240
- 22.x
41+
- 24.15.0
42+
- 24.x
43+
- 26.x
4344
platform:
4445
- os: ubuntu-latest
4546
shell: bash

.github/workflows/compatibility-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup node
2424
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v3
2525
with:
26-
node-version: 20
26+
node-version: 22
2727
cache: npm
2828
- name: Install CLI
2929
run: npm install -g @sigstore/cli

.github/workflows/smoke-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup node
2424
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2525
with:
26-
node-version: 20
26+
node-version: 22
2727
cache: npm
2828
- name: Install dependencies
2929
run: npm ci
@@ -61,7 +61,7 @@ jobs:
6161
- name: Setup node
6262
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
6363
with:
64-
node-version: 20
64+
node-version: 22
6565
cache: npm
6666
- name: Install dependencies
6767
run: npm ci
@@ -114,7 +114,7 @@ jobs:
114114
- name: Setup node
115115
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
116116
with:
117-
node-version: 20
117+
node-version: 22
118118
cache: npm
119119
- name: Install dependencies
120120
run: npm ci

0 commit comments

Comments
 (0)