Skip to content

Update to Node 24 - #28

Open
carlansley wants to merge 3 commits into
mainfrom
node24
Open

Update to Node 24#28
carlansley wants to merge 3 commits into
mainfrom
node24

Conversation

@carlansley

@carlansley carlansley commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Fixes #27 and fixes #18.

@carlansley carlansley self-assigned this Aug 27, 2026
Copilot AI lite review requested due to automatic review settings August 27, 2026 19:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.0 and set engines.node to 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.

Comment thread .github/workflows/coverage.yml
Comment thread .github/workflows/publish.yml
@carlansley
carlansley deployed to npm-publish August 27, 2026 19:45 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown

Coverage after merging node24 into main will be

100.00% 0.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   error.ts100%100%100%100%
   index.ts100%100%100%100%
   retry.spec.ts99.68%97.62%100%100%74
   retry.ts100%100%100%100%

@github-actions

Copy link
Copy Markdown

Beta Published - Install Command: npm install @checkdigit/retry@8.0.0-PR.28-aa3e

@ramaghanta ramaghanta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lftm

@le-cong le-cong left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

looks good, just a very minor comment

uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Node.js

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

is "Install Node.js" step removed intentionally?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah its not used

@github-actions

Copy link
Copy Markdown

❌ PR review status - not all reviewers have approved - 1 approved - 1 outstanding

@carlansley
carlansley requested a review from le-cong August 27, 2026 23:22

@le-cong le-cong left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lftm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update minimum Node version to 24 update README to reflect the backoff duration accurately.

4 participants