Skip to content

fix: declare the real minimum Node.js version - #34

Merged
Kikobeats merged 1 commit into
masterfrom
Kikobeats/fix-engines
Oct 28, 2026
Merged

Kikobeats merged 1 commit into
masterfrom
Kikobeats/fix-engines

Conversation

@Kikobeats

@Kikobeats Kikobeats commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Users on Node versions below what this package needs can install it without a warning and then crash at runtime. This declares the real minimum in engines.node.

package old floor new floor set by
html-encode none >= 20 jschardet@4.0.0 (engines >=20)

Proof

Each suite ran with npx -y -p node@<version> -- node <test runner bin> (tests only, no lint, no c8). Where the repo's test runner refuses the target Node, an older ava or mocha ran the same test files.

  • Suite on Node 20.0.0: 8 tests passed (ava 5.3.1, since the repo's ava 8 needs ^22.20).

The floor and the dependency that sets it come from walking the installed production dependency tree and taking the highest semver.minVersion(engines.node).

🤖 Generated with Claude Code


Note

Low Risk
Metadata-only change to install-time engine constraints; no runtime or logic changes.

Overview
Adds engines.node": ">= 20" to package.json so npm can warn when the package is installed on an unsupported Node version instead of failing later at runtime.

The floor matches jschardet@~4.0.0, which already requires Node 20+.

Reviewed by Cursor Bugbot for commit ddc4987. Bugbot is set up for automated code reviews on this repo. Configure here.

html-encode: none -> >= 20, set by jschardet@4.0.0 (engines >=20)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

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 14 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: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5bd1e4ba-e9b0-4daa-b28d-e5f473524bc5
Commits

Reviewing files that changed from the base of the PR and between dd99c96 and ddc4987.

Files selected for processing: 1
  • package.json
  • 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

Comment @coderabbitai help to get the list of available commands.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 92.593% — Kikobeats/fix-engines into master. No base build found for master.

@github-actions github-actions Bot 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.

html-encode

Details
Benchmark suite Current: ddc4987 Previous: dd99c96 Ratio
decode windows-1250 from content-type 510.9 ms (505.3-513.7) 509.2 ms (505.8-511.8) 1.00
decode shift_jis from meta charset 355.3 ms (353.1-357.9) 357 ms (354.1-357.9) 1.00
infer shift_jis with jschardet 816.6 ms (784.1-829.4) 801.5 ms (764.1-833.2) 1.02

This comment was automatically generated by workflow using github-action-benchmark.

@Kikobeats
Kikobeats merged commit 9c06a61 into master Oct 28, 2026
5 checks passed
@Kikobeats
Kikobeats deleted the Kikobeats/fix-engines branch October 28, 2026 19:53
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