Repository navigation
fix: set engines to the Node.js version the package needs at runtime - #89
Merged
Merged
Conversation
engines.node now states what consumers need, not the dev toolchain's floor. Constraints found: - @devicefarmer/adbkit 4.0.1 (dependency): >= 22.12; its commander 15 dependency: >=22.12.0; adbkit-logcat 3 / adbkit-monkey 2: >= 22 - sharp 0.35.5 (dependency): >=20.9.0 - shipped code: import attributes on the JSON data (bundled into dist), node:stream/promises; nothing past 22.12. The built dist and the shipped postinstall script were smoke-tested on Node.js 22.12.0. - last release before 2026-10-31 (v2.1.9): >=20.9.0, which adbkit 4 no longer allows Result: engines.node ">=22.12.0"; tsup target node22. The require() entry's guard now says ^20.19.0 or >=22.13.0 (require(esm) without the experimental warning). The dev toolchain floor (Node.js 22.22.0, vitest 5 / tsup 9) moved to devEngines; CI min_node_version stays at 22.22.0 and says so.
… this package runs on
Shinrai
approved these changes
Nov 2, 2026
cldmv-bot Bot
added a commit
that referenced
this pull request
Nov 2, 2026
# `@cldmv/node-android-tv-remote` v2.2.1 Changelog **Release Date**: November 2026 **Release Type**: Patch **Branch**: `release/2.2.1` --- ## Overview Version 2.2.1 lowers `engines.node` from `>=22.22.0` to `>=22.12.0`. v2.2.0 set the package floor to the version its development toolchain needs, which was higher than anything the package needs at runtime. The runtime floor is now the one its dependencies declare, and the toolchain floor moves to npm's `devEngines`, where it only applies to working on this repository. The exported API and the remote's behavior are unchanged from v2.2.0. --- ## 📦 Requirements ### `engines.node` is `>=22.12.0` ([#89](#89)) `engines.node` drops from `>=22.22.0` to `>=22.12.0`, the floor that `@devicefarmer/adbkit` 4 and its `commander` 15 dependency declare. `import` works from 22.12.0. `require()` loads the ESM build through Node's `require(esm)`, which runs without warnings from 22.13.0, so the `ERR_REQUIRE_ESM` message that `require()` throws on a Node.js without `require(esm)` now names `>=22.13.0`. Developing the package still needs Node.js 22.22.0 or later. That floor is now declared in `devEngines` (`runtime` `node` `>=22.22.0`, `onFail: "error"`), so npm enforces it in a checkout of this repository and never for consumers installing the package. --- ## 🔧 CI & tooling - tsup builds for `node22` instead of `node20` ([#89](#89)). - The CI and publish matrices still start at Node.js 22.22.0; the `min_node_version` descriptions now say it is the dev toolchain floor and should match `devEngines`, not `engines` ([#89](#89)). ## 🧪 Tests - `tests/entry.test.vitest.mjs` and `tests/cjs/entry.test.cjs` check for the new `>=22.13.0` guard message ([#89](#89)). ## 📚 Documentation - The README requirements list Node.js `>=22.12.0`, say `require()` needs `>=22.13.0`, and add the 22.22.0 `devEngines` floor for development ([#89](#89)). - The v2.2.0 notes describe its Node.js floor under Requirements instead of Breaking Changes, and list the `waitBootComplete()` timeout under Behavior changes ([#88](#88)). - **NEW:** [docs/changelog/v2/v2.2.1.md](./v2.2.1.md) — this changelog. ## 🔧 Dependencies _No dependency updates._ --- ## Upgrade notes - No breaking changes — drop-in for v2.2.0. - Node.js 22.12.0 through 22.21.x can now install the package without an `EBADENGINE` warning. <details> <summary>👥 Contributors</summary> - @Shinrai </details> --- <!-- coverage-start -->  | Metric | Coverage | |--------|----------| | Statements | 94.8% | | Branches | 86.6% | | Functions | 97.5% | | Lines | 95.6% | *Avg: **93.6%** · `cb4ac62` · Node lts/** <!-- coverage-end --> <!-- co-authors --> Co-authored-by: Shinrai <[email protected]>
Shinrai
added a commit
that referenced
this pull request
Nov 8, 2026
# `@cldmv/node-android-tv-remote` v2.2.1 Changelog **Release Date**: November 2026 **Release Type**: Patch **Branch**: `release/2.2.1` --- ## Overview Version 2.2.1 lowers `engines.node` from `>=22.22.0` to `>=22.12.0`. v2.2.0 set the package floor to the version its development toolchain needs, which was higher than anything the package needs at runtime. The runtime floor is now the one its dependencies declare, and the toolchain floor moves to npm's `devEngines`, where it only applies to working on this repository. The exported API and the remote's behavior are unchanged from v2.2.0. --- ## 📦 Requirements ### `engines.node` is `>=22.12.0` ([#89](#89)) `engines.node` drops from `>=22.22.0` to `>=22.12.0`, the floor that `@devicefarmer/adbkit` 4 and its `commander` 15 dependency declare. `import` works from 22.12.0. `require()` loads the ESM build through Node's `require(esm)`, which runs without warnings from 22.13.0, so the `ERR_REQUIRE_ESM` message that `require()` throws on a Node.js without `require(esm)` now names `>=22.13.0`. Developing the package still needs Node.js 22.22.0 or later. That floor is now declared in `devEngines` (`runtime` `node` `>=22.22.0`, `onFail: "error"`), so npm enforces it in a checkout of this repository and never for consumers installing the package. --- ## 🔧 CI & tooling - tsup builds for `node22` instead of `node20` ([#89](#89)). - The CI and publish matrices still start at Node.js 22.22.0; the `min_node_version` descriptions now say it is the dev toolchain floor and should match `devEngines`, not `engines` ([#89](#89)). ## 🧪 Tests - `tests/entry.test.vitest.mjs` and `tests/cjs/entry.test.cjs` check for the new `>=22.13.0` guard message ([#89](#89)). ## 📚 Documentation - The README requirements list Node.js `>=22.12.0`, say `require()` needs `>=22.13.0`, and add the 22.22.0 `devEngines` floor for development ([#89](#89)). - The v2.2.0 notes describe its Node.js floor under Requirements instead of Breaking Changes, and list the `waitBootComplete()` timeout under Behavior changes ([#88](#88)). - **NEW:** [docs/changelog/v2/v2.2.1.md](./v2.2.1.md) — this changelog. ## 🔧 Dependencies _No dependency updates._ --- ## Upgrade notes - No breaking changes — drop-in for v2.2.0. - Node.js 22.12.0 through 22.21.x can now install the package without an `EBADENGINE` warning. <details> <summary>👥 Contributors</summary> - @Shinrai </details> --- <!-- coverage-start -->  | Metric | Coverage | |--------|----------| | Statements | 94.8% | | Branches | 86.6% | | Functions | 97.5% | | Lines | 95.6% | *Avg: **93.6%** · `cb4ac62` · Node lts/** <!-- coverage-end --> <!-- co-authors --> Co-authored-by: Shinrai <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
📦 Dependencies
No dependency updates
🔧 Other Changes
👥 Contributors