Skip to content

Drop deprecated mocha.opts and bump engines.node to 20#132

Merged
soulgalore merged 1 commit into
mainfrom
pagexray-tooling-refresh
May 14, 2026
Merged

Drop deprecated mocha.opts and bump engines.node to 20#132
soulgalore merged 1 commit into
mainfrom
pagexray-tooling-refresh

Conversation

@soulgalore
Copy link
Copy Markdown
Member

Two small chores that were starting to bit-rot.

The Mocha config still lived in test/mocha.opts, which Mocha deprecated in v6 and removed in v8 — moving the same four settings to
.mocharc.json unblocks the eventual Mocha bump without changing how tests run today.

engines.node was declared as >=8.9.0, which is meaningless in 2026 — every Node version older than 20 is past upstream EOL. Bumped to

=20.0.0 to match what consumers can actually run, and what the project already relies on (the recent switch from url.parse to the WHATWG
URL parser needs Node 10+ anyway).

Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com

  Two small chores that were starting to bit-rot.

  The Mocha config still lived in test/mocha.opts, which Mocha deprecated in v6 and removed in v8 — moving the same four settings to
  .mocharc.json unblocks the eventual Mocha bump without changing how tests run today.

  engines.node was declared as >=8.9.0, which is meaningless in 2026 — every Node version older than 20 is past upstream EOL. Bumped to
  >=20.0.0 to match what consumers can actually run, and what the project already relies on (the recent switch from url.parse to the WHATWG
  URL parser needs Node 10+ anyway).

  Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com
@soulgalore soulgalore merged commit 4860d06 into main May 14, 2026
3 checks passed
@soulgalore soulgalore deleted the pagexray-tooling-refresh branch May 14, 2026 17:42
@soulgalore soulgalore restored the pagexray-tooling-refresh branch May 14, 2026 17:52
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.

1 participant