Skip to content

fix(frontend): reject an @types/node major that differs from the runtime - #270

Merged
WilliamAGH merged 2 commits into
mainfrom
dev
Nov 1, 2026
Merged

WilliamAGH merged 2 commits into
mainfrom
dev

Conversation

@WilliamAGH

Copy link
Copy Markdown
Owner

verify-node-version.mjs now fails when frontend @types/node's major differs from engines.node (Node 24). Probe: a ^26.6.5 pin fails; the current ^24.19.2 passes.

verify-node-version.mjs held .nvmrc, the lockfile, the Dockerfile and the
docs to engines.node but not the types, so a grouped bump left
@types/node on 26 under a Node 24 runtime. It now fails when the
@types/node major differs from the engines.node major.

Agent-Session: f6561fed-d6d9-4fd1-a9d3-9db9f9613f55
Copilot AI balanced review requested due to automatic review settings November 1, 2026 12:03
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f24755c8-9473-474f-b24f-867bcabd1b5f
Commits

Reviewing files that changed from the base of the PR and between c810d3e and 04355af.

Files selected for processing: 1
  • frontend/scripts/verify-node-version.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

🟡 Changes recommended

The Node-version guard checks only the first version in a dependency range, allowing ranges that include mismatched Node 26 typings to pass.

1 open issue
What changed in this PR

Extends the frontend’s Node-version verification script to detect mismatches between the declared @types/node major and the canonical runtime major.

Changes:

  • Extracts and compares the typings and runtime majors.
  • Adds an error message for mismatches and a comment explaining the compatibility risk.
File Description
frontend/​scripts/​verify-node-version.mjs Adds a typings-major check to the existing Node-version synchronization checks.

Review effort: Balanced

throw new Error(`docs/getting-started.md must name ${expectedDocumentationVersion}`);
}
// Types from a newer Node major type-check APIs this runtime lacks.
const nodeTypesMajor = frontendPackage.devDependencies?.["@types/node"]?.replace(/^[\^~]/, "").split(".")[0];
oxfmt --check rejected the single-line @types/node lookup added in
4ba3f29, failing Build & Test run 41304637085; this applies the formatter.

Agent-Session: f6561fed-d6d9-4fd1-a9d3-9db9f9613f55
@WilliamAGH
WilliamAGH merged commit 488230f into main Nov 1, 2026
14 checks passed

This branch was successfully deployed

1 active deployment
development — 04355af0 Deployed Nov 1, 2026 by WilliamAGH via deploy #703
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants