Skip to content

Commit 10c7aab

Browse files
committed
chore!: upgrade to node 24
1 parent 8c8cf48 commit 10c7aab

File tree

9 files changed

+30
-29
lines changed

9 files changed

+30
-29
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
node-version: [22.x, 24.x]
23+
node-version: [24.x, 25.x]
2424

2525
steps:
2626
- uses: actions/checkout@v4
@@ -55,15 +55,15 @@ jobs:
5555
- name: Test (unit)
5656
run: npm run test:coverage
5757

58-
node-20:
58+
node-24:
5959
runs-on: ubuntu-latest
6060
steps:
6161
- uses: actions/checkout@v4
6262

6363
- name: Setup Node.js
6464
uses: actions/setup-node@v4
6565
with:
66-
node-version: 20.x
66+
node-version: 24.x
6767
cache: 'npm'
6868

6969
- name: Install dependencies

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.19
1+
24

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.19
1+
24

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GitHub Actions workflows may query the GitHub API and consume rate limits, but t
1414
## Quick Start
1515

1616
```yaml
17-
- uses: hesreallyhim/github-api-usage-monitor@v1
17+
- uses: hesreallyhim/github-api-usage-monitor@v2
1818
```
1919
2020
That's it. Insert that anywhere in your workflow job. The action uses the pre/post hook lifecycle — it starts monitoring automatically before your first step and reports after your last step. No `start`/`stop` steps needed.
@@ -53,7 +53,7 @@ jobs:
5353
usage-tracker:
5454
runs-on: ubuntu-latest
5555
steps:
56-
- uses: hesreallyhim/github-api-usage-monitor@v1
56+
- uses: hesreallyhim/github-api-usage-monitor@v2
5757
with:
5858
diagnostics: true
5959
# ... The rest of your workflow - calls to GitHub API

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ inputs:
2020
required: false
2121

2222
runs:
23-
using: node20
23+
using: node24
2424
pre: dist/pre.js
2525
main: dist/main.js
2626
post: dist/post.js

dist/post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26938,7 +26938,7 @@ module.exports = setCacheAdd;
2693826938
* @name has
2693926939
* @memberOf SetCache
2694026940
* @param {*} value The value to search for.
26941-
* @returns {number} Returns `true` if `value` is found, else `false`.
26941+
* @returns {boolean} Returns `true` if `value` is found, else `false`.
2694226942
*/
2694326943
function setCacheHas(value) {
2694426944
return this.__data__.has(value);

docs/VERSIONING.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,22 @@ This document defines the supported runtime contract, dependency constraints, an
77

88
## 1. Node.js support contract
99

10-
- Supported Node.js versions: **>= 20**
11-
- Action runtime: `runs.using: node20`
12-
- Development and CI target: **Node 20.x**
10+
- Supported Node.js versions: **>= 24**
11+
- Action runtime: `runs.using: node24`
12+
- Development and CI target: **Node 24.x**
1313

1414
**Rationale**
15-
- GitHub-hosted runners execute `node20`, which floats across the 20.x line.
15+
- GitHub-hosted runners execute `node24`, which floats across the 24.x line.
1616
- We support a major version contract, not a specific patch.
17+
- A JavaScript action runtime major bump (for example `node20` to `node24`) is treated as a breaking change for release purposes because older GHES or self-hosted environments may not support the newer runtime.
1718
- Patch-level guarantees are neither tested nor enforced and are therefore not claimed.
1819

1920
**Configuration**
2021
```json
2122
// package.json
2223
{
2324
"engines": {
24-
"node": ">=20"
25+
"node": ">=24"
2526
}
2627
}
2728
```
@@ -33,21 +34,21 @@ This document defines the supported runtime contract, dependency constraints, an
3334
This repository includes both `.nvmrc` and `.node-version` to support multiple Node version managers and tooling ecosystems.
3435

3536
- Canonical source: `.nvmrc`
36-
- Accepted value: major only (e.g. `20`)
37+
- Accepted value: major only (e.g. `24`)
3738
- Policy: both files must match exactly
3839

3940
```
4041
.nvmrc
41-
20
42+
24
4243
4344
.node-version
44-
20
45+
24
4546
```
4647

4748
**Rationale**
4849
- `nvm` consumes `.nvmrc`.
4950
- Other tooling (asdf, mise, editors, some CI systems) consumes `.node-version`.
50-
- Using the major only aligns with the project’s Node support contract (`>=20` / `20.x`).
51+
- Using the major only aligns with the project’s Node support contract (`>=24` / `24.x`).
5152
- Keeping both files synchronized prevents environment drift across tools.
5253

5354
**Enforcement**
@@ -105,12 +106,12 @@ engine-strict=true
105106
- `dist/` verification (`git diff --exit-code -- dist`)
106107
- Self-test workflow generation verification (`npm run generate:self-test` + diff)
107108
- Node matrix includes at minimum:
108-
- `20.x` (contract baseline; runs unit + integration tests)
109+
- `24.x` (contract baseline; runs unit + integration tests)
109110
- newer majors optionally for early warning (unit tests only)
110111

111112
**Job structure**
112-
- `node-20` job runs the full suite (unit + integration) because integration tests are expensive.
113-
- The matrix job (22.x/24.x) runs unit tests only for faster feedback on newer majors.
113+
- `node-24` job runs the full suite (unit + integration) because integration tests are expensive.
114+
- The matrix job (24.x/25.x) runs unit tests only for faster feedback on newer majors.
114115

115116
**Rationale**
116117
- CI guarantees that any commit merged to `main` is buildable, tested, and has up-to-date bundled output.
@@ -170,9 +171,9 @@ Release-As: 1.1.1
170171

171172
## Summary
172173

173-
- Node support: `>=20`
174-
- Action runtime: `node20`
175-
- Dev default: `20.x`
174+
- Node support: `>=24`
175+
- Action runtime: `node24`
176+
- Dev default: `24.x`
176177
- Dependency enforcement: lockfile + `engine-strict=true`
177178
- Quality gate: CI + branch protection
178179
- Releases: Release Please + semantic versioning

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@
6262
"vitest": "^4.1.2"
6363
},
6464
"engines": {
65-
"node": ">=20.19.0"
65+
"node": ">=24.0.0"
6666
}
6767
}

0 commit comments

Comments
 (0)