Skip to content

fix(frontend): check the @types/node version the lockfile resolves - #271

Merged
WilliamAGH merged 1 commit into
mainfrom
dev
Nov 1, 2026
Merged

WilliamAGH merged 1 commit into
mainfrom
dev

Conversation

@WilliamAGH

Copy link
Copy Markdown
Owner

verify-node-version.mjs now reads the resolved @types/node version from package-lock.json, so ranges, aliases, and dependencies placement are judged by what installs. Probe: a lockfile resolving 26.6.5 fails; the current 24.19.2 passes.

Review of 4ba3f29: parsing the devDependencies specifier missed a range
spanning two majors, an npm: alias, comparators, and @types/node listed
under dependencies. The check now reads the resolved version from
package-lock.json, which each of those specifiers resolves to.

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

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
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: 0cf12084-cdc6-4ca2-a7cf-1c8917cc269b
Commits

Reviewing files that changed from the base of the PR and between 488230f and c9340a8.

Files selected for processing: 1
  • frontend/scripts/verify-node-version.mjs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Summary

Summary by CodeRabbit

  • Chores
    • Updated the Node version consistency check to use the resolved @types/node version. When available, its major version must match the canonical Node major; if no resolved version is present, the check is skipped. This keeps the validation aligned with the installed version rather than the declared dependency range.

The Node version verification script now checks the resolved @types/node major version from package-lock.json. It reports a mismatch against the canonical Node major and skips the check when the lockfile has no resolved version.

Changes: Node version check

Layer / File(s) Summary
Compare the resolved Node types version
frontend/scripts/verify-node-version.mjs
The script reads the resolved @types/node version from package-lock.json. If its major differs from the canonical Node major, the error reports the resolved major. If no version is resolved, the check is skipped.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to c9340

The check now validates the resolved Node types version rather than its declared range. The current lockfile matches the required Node major, and no actionable merge-blocking risk was found.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: checking the resolved @types/node version from the lockfile.
Description check Passed The description accurately explains the lockfile-based version check and gives concrete passing and failing examples.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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

A lockfile holds the version in view
The script checks its major, too
A mismatch gets a clear report
No resolved version? Skip that sort
Node and its types stay in step

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.

🟢 Approval recommended

No active review issues are reported for the update to check the lockfile-resolved Node types version.

No open issues 🎉

What changed in this PR

Updates the frontend Node version guard to check the resolved @types/node version in package-lock.json rather than its declared version in package.json.

Changes:

  • Compares the lockfile-resolved types major with the canonical Node runtime major, covering ranges, aliases, and dependency placement.
  • Updates the mismatch error to report the resolved and required major versions.
File Description
frontend/​scripts/​verify-node-version.mjs Reads the resolved @types/node version from the lockfile and clarifies mismatch errors.

Review effort: Balanced

@WilliamAGH
WilliamAGH merged commit c63e05e into main Nov 1, 2026
15 checks passed

This branch was successfully deployed

1 active deployment
development — c9340a85 Deployed Nov 1, 2026 by WilliamAGH via deploy #706
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