Skip to content

fix: set engines to the Node.js version the package needs at runtime - #89

Merged
Shinrai merged 3 commits into
nextfrom
fix/runtime-engines-floor
Nov 2, 2026
Merged

Shinrai merged 3 commits into
nextfrom
fix/runtime-engines-floor

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

📦 Dependencies

No dependency updates

🔧 Other Changes

👥 Contributors

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.
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: dependencies Relates to dependency updates, version bumps, or package management type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 2, 2026
@Shinrai
Shinrai merged commit 4a62e89 into next Nov 2, 2026
28 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/runtime-engines-floor branch November 2, 2026 01:36
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 -->

![coverage](https://img.shields.io/badge/coverage-93.6%25-brightgreen?style=for-the-badge&logo=vitest&logoColor=white)

| 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 -->

![coverage](https://img.shields.io/badge/coverage-93.6%25-brightgreen?style=for-the-badge&logo=vitest&logoColor=white)

| 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: dependencies Relates to dependency updates, version bumps, or package management type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant