Skip to content

chore(dev-deps): align @types/node with Node.js 18.19+ support#1388

Open
ognis1205 wants to merge 3 commits intoorhun:mainfrom
ognis1205:fix/types-node-dev-dependency
Open

chore(dev-deps): align @types/node with Node.js 18.19+ support#1388
ognis1205 wants to merge 3 commits intoorhun:mainfrom
ognis1205:fix/types-node-dev-dependency

Conversation

@ognis1205
Copy link
Collaborator

Description

  • Update the @types/node version specification to ^18.19.
  • Update the engines.node constraint from >=18.19 || >=20.6 || >=21 to ^18.19 || >=20.6.

Motivation and Context

  • The previous engines.node constraint (>=18.19 || >=20.6 || >=21) was redundant, since >=18.19 already covers 20 and 21.
  • The @types/node version was previously set to 24.x, which is intended for Node.js 24.
  • However, the engines.node constraint (>=18.19 || >=20.6 || >=21) indicates that the package is intended to run on Node.js 18.19+ and 20.6+.

See also:

How Has This Been Tested?

  • yarn install
  • yarn typecheck
  • yarn lint
  • yarn build
  • yarn dev

Screenshots / Logs (if applicable)

N/A

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (no code change)
  • Refactor (refactoring production code)
  • Other

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly (if applicable).
  • I have formatted the code with rustfmt.
    • cargo +nightly fmt --all
  • I checked the lints with clippy.
    • cargo clippy --tests --verbose -- -D warnings
  • I have added tests to cover my changes.
  • All new and existing tests passed.
    • cargo test

@ognis1205 ognis1205 requested a review from orhun as a code owner February 27, 2026 05:23
@ognis1205
Copy link
Collaborator Author

cc: @favna

@codecov-commenter
Copy link

codecov-commenter commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.57%. Comparing base (10a3b57) to head (34d5f82).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1388   +/-   ##
=======================================
  Coverage   47.57%   47.57%           
=======================================
  Files          24       24           
  Lines        2119     2119           
=======================================
  Hits         1008     1008           
  Misses       1111     1111           
Flag Coverage Δ
unit-tests 47.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ognis1205 ognis1205 marked this pull request as draft February 27, 2026 05:31
@ognis1205 ognis1205 marked this pull request as ready for review February 27, 2026 06:22
@orhun
Copy link
Owner

orhun commented Feb 27, 2026

Would be nice to ping @favna on Discord. He told me his GitHub notifications are off

Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
@ognis1205 ognis1205 force-pushed the fix/types-node-dev-dependency branch from 1354a55 to 34d5f82 Compare March 2, 2026 16:05
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.

3 participants