Update to Node 24 - #28
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s baseline to Node.js 24, refreshes CI/publish workflows accordingly, and corrects retry backoff documentation to match the implementation.
Changes:
- Bump package major version to
8.0.0and setengines.nodeto Node 24+. - Update GitHub Actions workflows for CI, coverage reporting, and release/beta publishing; remove the dedicated publish-beta workflow.
- Clarify/correct exponential backoff documentation (and add concrete timing examples) and modernize a few internal constants/usages (e.g.,
Infinity).
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/retry.ts |
Updates defaults/formatting and clarifies backoff comments to match actual behavior. |
src/retry.spec.ts |
Adjusts tests for newer Node APIs and refactors some iteration/formatting. |
src/options.ts |
Copyright year update. |
src/index.ts |
Copyright year update. |
src/error.ts |
Formats Error construction (with cause) and updates copyright year. |
SECURITY.md |
Updates supported major version range to >= 8.0. |
README.md |
Corrects backoff formula explanation and adds concrete timing examples. |
package.json |
Major version bump, Node engine bump, dependency/devDependency updates, script updates. |
LICENSE.txt |
Copyright year update. |
.github/workflows/publish.yml |
Consolidates release and PR beta publishing into one workflow; updates action versions and publishing flow. |
.github/workflows/publish-beta.yml |
Removes the now-redundant beta publish workflow. |
.github/workflows/coverage.yml |
Splits coverage into base/pr jobs with artifact-based reporting and adds concurrency control. |
.github/workflows/codeql-analysis.yml |
Updates CodeQL action versions. |
.github/workflows/ci.yml |
Updates Node matrix and action versions; normalizes step naming/env. |
.github/workflows/check-published-scheduled.yml |
Updates checkout/action usage and simplifies the job steps. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Coverage after merging node24 into main will be
Coverage Report
|
||||||||||||||||||||||||||||||||||||||
|
Beta Published - Install Command: |
le-cong
left a comment
There was a problem hiding this comment.
looks good, just a very minor comment
| uses: actions/checkout@v7 | ||
| with: | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| - name: Install Node.js |
There was a problem hiding this comment.
is "Install Node.js" step removed intentionally?
There was a problem hiding this comment.
yeah its not used
|
❌ PR review status - not all reviewers have approved - 1 approved - 1 outstanding |
Fixes #27 and fixes #18.