Skip to content

Releases

v3.0.0

Choose a tag to compare

@cldmv-bot cldmv-bot released this 29 Nov 04:00
v3.0.0
cecbce4

@cldmv/node-android-tv-remote v3.0.0 Changelog

Release Date: November 2026
Release Type: Major
Branch: release/3.0.0


Overview

v3.0.0 switches the CommonJS entry to the generic index.cjs shim used across the CLDMV libraries. require("@cldmv/node-android-tv-remote") now returns the module object, the same exports import gives, instead of the createRemote function with properties attached.

This is the only breaking change, and it only affects code that uses require() and calls the result directly. ESM import is unchanged, and so is every remote method. The release also moves the build from a single tsup bundle to one minified file per module in dist/, and bumps the CLDMV dev tools; neither changes what import or require() return.


💥 Breaking Changes

require("@cldmv/node-android-tv-remote") returns the module object (#121, fixes #120)

The ESM entry exports two distinct values, createRemote (also exported as default) and createAndroidTVRemote, so the shim hands back the module object:

const remote = require("@cldmv/node-android-tv-remote");
// => { __esModule, default: createRemote, createRemote, createAndroidTVRemote }

const { createRemote } = require("@cldmv/node-android-tv-remote");
const device = await createRemote({ ip: "192.168.1.100" });
  • require(x)({ ip }) becomes require(x).createRemote({ ip }), or const { createRemote } = require(x).
  • require(x).createRemote, require(x).createAndroidTVRemote, require(x).default and destructuring keep working.
  • __esModule is newly present on the result, and the result is no longer callable.

src/index.cjs is now the same small file as in other CLDMV libraries (Node version guard, then require("./index.mjs")), and the build still copies it unchanged to dist/index.cjs. The CJS test expects the module object and checks its keys. The README CommonJS example uses the destructured form.


🔧 CI & tooling

  • dist/ now mirrors src/, one minified file per module with keepNames and source maps, built with esbuild (bundle: false) instead of a single tsup bundle (#124, fixes #118). The import and require() shapes and the exported subpaths are unchanged, and src/index.cjs is still copied verbatim to dist/index.cjs. The published tarball now holds several files under dist/ instead of one, source maps are still left out, and tsup is replaced by esbuild in the dev dependencies.
  • ci.yml is synced with the CLDMV/.github v4.43.0 template (#112).
  • ci.yml adopts the v4.46.0 concurrency block, so superseded runs on next, hotfixes and feature branches are cancelled and only pushes to the release branch keep a unique group per run (#122, fixes #119).

📚 Documentation

  • NEW: docs/changelog/v3/v3.0.0.md: this changelog.
  • README: the CommonJS example uses const { createRemote } = require(...).
  • README: the build note describes the per-module esbuild output.
  • README What's New promoted to v3.0.0.

🔧 Dependencies

  • vitest 5.1.0 → 5.1.1 (#114)

  • @vitest/coverage-v8 5.1.0 → 5.1.1 (#115)

  • @cldmv/vitest-runner 1.6.1 → 1.8.0 (#116)

  • The CLDMV dev tools: @cldmv/vitest-runner 1.8.0 → 1.11.4, @cldmv/configs 1.4.0 → 1.5.0 and @cldmv/fix-headers 2.2.7 → 2.6.1, plus npm update for the rest, with file headers restamped and .github/dependabot.yml synced to the CLDMV/.github v4.47.0 groups (#123)

  • tsup removed and esbuild added for the per-module build (#124)

All of these are dev dependencies; no runtime dependencies changed.


Upgrade notes

  • require("@cldmv/node-android-tv-remote") is no longer callable. Use const { createRemote } = require("@cldmv/node-android-tv-remote").
  • .createRemote, .createAndroidTVRemote, .default and destructuring work as before.
  • ESM import is unchanged.

coverage

Metric Coverage
Statements 95.3%
Branches 85.3%
Functions 97.6%
Lines 95.4%

Avg: 93.4% · 55cffdd · Node lts/*

👥 Contributors

v2.3.0

Choose a tag to compare

@cldmv-bot cldmv-bot released this 22 Nov 09:34
v2.3.0
0aac31a

@cldmv/node-android-tv-remote v2.3.0 Changelog

Release Date: November 2026
Release Type: Minor
Branch: release/2.3.0


Overview

Version 2.3.0 replaces @devicefarmer/adbkit with @cldmv/droidsock, which speaks the ADB protocol itself. The adb command-line tool and its server are no longer needed to drive a device, and the install-time check for adb is gone. Keeping the connection alive also moves to droidsock: maintainConnection now turns on its heartbeat and its automatic reconnect with backoff, in place of the remote's own heartbeat timer and periodic adb devices check.

The exported API (createRemote, createAndroidTVRemote and the default export, from both import and require()) is unchanged. engines.node rises from >=22.12.0 to >=22.15.0, the floor droidsock declares. See Requirements and the upgrade notes.


📦 Requirements

Node.js >=22.15.0 is now required (#95)

engines.node goes from >=22.12.0 to >=22.15.0, matching @cldmv/droidsock 2. require() loads the ESM build through Node's require(esm), which runs without warnings on that floor, so the message require() throws on an older Node.js now names >=22.15.0.

The adb binary is optional (#95)

The remote no longer shells out to adb or needs its server running. Install adb only for your own use, such as the setup-device steps in the README. The postinstall script that printed install instructions when adb was missing has been removed, along with scripts/postinstall.mjs in the published package.


⚠️ Behavior changes

Connection upkeep comes from droidsock (#95)

With maintainConnection on (the default), the remote enables droidsock's heartbeat (every heartbeatInterval ms, 20 seconds by default) and its automatic reconnect with backoff. A dropped connection is noticed by the socket and the heartbeat and reconnected without waiting for a polling interval. Reconnect attempts, successful reconnects and giving up are reported through the log channel, and the connected state follows the socket.

  • connectionCheckInterval is deprecated and ignored.
  • getConnectionStatus() returns "connected" or "disconnected"; it no longer returns "unknown".
  • With autoConnect off, a command on a remote that never connected rejects with Device not connected.

Calls without a droidsock equivalent run through shell (#95)

screencap() captures the PNG in memory over shell, and waitBootComplete() polls sys.boot_completed. Each poll gets only the time left before the timeout, so a hung device can't keep waitBootComplete() waiting past it.


🧪 Tests

  • The adb-client and event tests use a droidsock mock, and a new test runs the real droidsock against a fake device on a local socket (#95).
  • npm run test:dist builds the package and runs the suite against dist/; npm test now includes it. The tests import the package by name, and a resolve test checks each run loaded the tree it meant to (#96).
  • The vitest config sets the node-android-tv-remote-dev condition with devCondition() from @cldmv/configs. The test.nodeOptions it used before isn't a Vitest option, so the condition never reached the test workers (#93).

🔧 CI & tooling

  • The dev-only dev/tools/adb-response.mjs tool, which was built on adbkit, has been removed (#95).

📚 Documentation

  • The README requirements list Node.js 22.15.0, and the ADB install section is marked optional (#95).
  • The README describes npm run test:dist (#96).
  • The heartbeatInterval JSDoc gives the real 20-second default (#95).
  • NEW: docs/changelog/v2/v2.3.0.md — this changelog.

🔧 Dependencies

Runtime:

  • @devicefarmer/adbkit ^4.0.1 removed, @cldmv/droidsock added (#95). adbkit's commander, node-forge, split, adbkit-logcat and adbkit-monkey are no longer installed.
  • @cldmv/droidsock ^2.2.0 → ^2.2.1 (#111). droidsock 2.2.1 keeps @cldmv/slothlet below 3.24.0, whose stand-ins for sockets made connect() throw Illegal invocation (CLDMV/slothlet#708). The @cldmv/slothlet override this repository carried for its own install is removed.

Development only:

  • @cldmv/configs ^1.3.0 → ^1.4.0, for devCondition() (#93).

Upgrade notes

  • Node.js >=22.15.0 is required. On Node.js 22.12 to 22.14, stay on v2.2.1.
  • You can uninstall adb if nothing else needs it.
  • Drop connectionCheckInterval from your config; it has no effect. Use heartbeatInterval to tune how fast a dead connection is noticed.
  • Code that checked getConnectionStatus() for "unknown" can drop that branch.

coverage

Metric Coverage
Statements 95.3%
Branches 85.3%
Functions 97.6%
Lines 95.4%

Avg: 93.4% · 00d3d51 · Node lts/*

👥 Contributors

v2.2.1

Choose a tag to compare

@cldmv-bot cldmv-bot released this 02 Nov 02:47
v2.2.1
eb0d906

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

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).
  • 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).

🧪 Tests

  • tests/entry.test.vitest.mjs and tests/cjs/entry.test.cjs check for the new >=22.13.0 guard message (#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).
  • 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).
  • NEW: docs/changelog/v2/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.

coverage

Metric Coverage
Statements 94.8%
Branches 86.6%
Functions 97.5%
Lines 95.6%

Avg: 93.6% · cb4ac62 · Node lts/*

👥 Contributors

v2.2.0

Choose a tag to compare

@cldmv-bot cldmv-bot released this 02 Nov 00:15
v2.2.0
79a4eaf

@cldmv/node-android-tv-remote v2.2.0 Changelog

Release Date: November 2026
Release Type: Minor
Branch: release/2.2.0


Overview

Version 2.2.0 moves the package to the CLDMV library layout with a tsup build, moves the runtime dependency @devicefarmer/adbkit to its new major 4, and fixes two long-standing bugs: waitBootComplete(timeout) now actually stops waiting at its timeout, and screencap() with a filepath no longer reports the file saved before it is written.

The supported Node.js range changes: engines.node goes from >=20.9.0 to >=22.22.0, and @devicefarmer/adbkit 4 itself requires Node.js 22.12 or later. See Requirements and the upgrade notes. The exported API (createRemote, createAndroidTVRemote and the default export, from both import and require()) is unchanged.


📦 Requirements

Node.js >=22.22.0 is now required (#81)

engines.node was >=20.9.0 in v2.1.9 (set by sharp), with require() documented as needing ^20.19.0 or >=22.12.0. Both are now >=22.22.0. The new build toolchain no longer runs on Node.js 20 (tsup 9 alone declares ^22.18.0 || ^24.11.0 || >=26.0.0), and @devicefarmer/adbkit 4 declares >= 22.12, so Node.js 20 is no longer supported at runtime either. The floor is set to 22.22.0, the oldest version the CI and publish matrices now test. The ERR_REQUIRE_ESM message that require() throws on a Node.js without require(esm) now names >=22.22.0.

npm prints an EBADENGINE warning when installing on an older Node.js, and the install fails when engine-strict is set.

⚠️ Behavior changes

waitBootComplete() now rejects at its timeout (#84, fixes #85)

This is a bug fix, listed here because it changes what a caller sees. waitBootComplete(timeout = 60000) documented a timeout but never passed it on, so the call waited until the device finished booting, however long that took. See Bug Fixes for the details.


🐛 Bug Fixes

waitBootComplete(timeout) honors its timeout (#84, fixes #85)

The remote now hands adbkit 4 an AbortSignal.timeout(timeout). When it fires, adbkit closes the connection and rejects with a TimeoutError; the remote logs the existing "Boot completion timeout after …ms" message, emits the error, and rejects. A call with no argument now gives up after the documented 60 seconds instead of waiting indefinitely.

screencap() finishes writing a resized screenshot before reporting it saved (#84, fixes #86)

With a filepath (and optionally width / height), the background save ended the file stream and emitted screencap-saved and screencap-complete straight away, before the data reached the file, and the file stream had no error listener. The capture, resize and file write now run through stream/promises pipeline(): the two events fire, and lastScreencapData is set, only after the file is fully written. A capture, resize or write failure tears the whole pipeline down and is reported as a screencap error with no completion events.


✨ Features

Library layout: src/ entries and a tsup build (#81, fixes #75)

The hand-written root index.mjs / index.cjs moved to src/index.mjs / src/index.cjs, and build is now tsup (tsup.config.mjs) instead of an echo stub:

  • dist/index.mjs is a minified ESM bundle of src/index.mjs, with names and node: specifiers kept. The keycode, keyboard and remote-key JSON tables are inlined. The runtime dependencies (@devicefarmer/adbkit, sharp) stay external.
  • dist/index.cjs is not a second bundle. It is a verbatim copy of src/index.cjs, the thin wrapper that loads ./index.mjs through Node's synchronous require(esm) and keeps the historical CommonJS shape (module.exports is createRemote, with createRemote, createAndroidTVRemote and default on it).

main / module point at dist/, exports adds ./package.json, and prepack runs the build so dist/ is never committed. The published files are now dist/ (without source maps) and scripts/postinstall.mjs, which still runs on install to check for adb. src/ and the other two helper scripts are no longer published: scripts/setup-device.mjs and scripts/wake-tv.mjs import src/, so they are checkout tools (npm run setup-device in a clone of this repository).

node-android-tv-remote-dev export condition (#81)

The "." export carries a node-android-tv-remote-dev condition that points import and require at src/. In a checkout, node --conditions=node-android-tv-remote-dev runs the unbuilt source; without it the package resolves to dist/, which npm run build produces. Installed copies only ship dist/.


🔧 CI & tooling

  • CI, release and bundle-size workflows run the real build (npm run build:ci: lint, format:check, then tsup), including the coverage legs (coverage_build_command) (#81).
  • The bundle-size check measures dist/**.mjs / dist/**.cjs instead of the root entries, src/ and scripts/ (#81).
  • The CI and publish test matrices start at Node.js 22.22.0, the new package floor (#81).
  • vitest and test:cjs run with the node-android-tv-remote-dev condition, so the suite tests src/; test:cjs builds first and checks dist/. eslint.config.mjs moved into .configs/ (#81).
  • tmp/ is gitignored (#80).

🧪 Tests

  • adb-client.test.vitest.mjs mocks the adbkit client and device and drives every path that calls into adbkit: client creation, connect / disconnect, the heartbeat and connection check, auto-disconnect, key, long-press and text shell commands, setSettings, ensureAwake, reboot, screencap / thumbnail and waitBootComplete, plus a check that the real adbkit package still has every client, device and util method the remote calls. Line coverage of src/lib/android-tv-remote.mjs goes from 24% to 95% (#84).
  • entry.test.vitest.mjs covers src/index.cjs at the source level (#81).

📚 Documentation

  • The README states the >=22.22.0 requirement and documents npm run build and the node-android-tv-remote-dev condition for working from a checkout (#81).
  • NEW: docs/changelog/v2/v2.2.0.md — this changelog.

🔧 Dependencies

Runtime:

  • @devicefarmer/adbkit ^3.3.8 → ^4.0.1 (3.3.9 → 4.0.1 in the lockfile) (#84). adbkit 4 replaces bluebird with native promises, makes cancellation explicit with AbortSignal, adds an exports map that blocks deep imports, requires Node.js 22.12 or later, and moves to adbkit-logcat 3 and adbkit-monkey 2. The remote only imports the package root, only uses .then / .catch / await on adbkit promises, and doesn't use trackers, sync transfers, logcat or monkey, so no source change was needed beyond passing the new signal to waitBootComplete. bluebird is no longer installed.
  • sharp ^0.35.3 → ^0.35.5 (the lockfile was already on 0.35.5) (#82).

Development only:

  • tsup ^9.0.0 and typescript added with the build (#81); typescript is pinned to ^6.0.3, since TypeScript 7's JavaScript declaration emit isn't complete yet (#83).
  • overrides for katex (>=0.19.1 <1.0.0, 0.16.47 → 0.19.1) and minimatch (^11.0.3, 10.2.6 → 11.0.3) clear the dev-only advisories that come in through eslint and @eslint/markdown (#83).
  • Toolchain refresh (#82): @cldmv/configs 1.2.4 → 1.3.0, @cldmv/fix-headers 2.2.0 → 2.2.4, @cldmv/vitest-runner 1.5.3 → 1.5.6, vitest / @vitest/coverage-v8 5.0.3 → 5.0.5, eslint 10.12.0 → 10.14.0, @eslint/css 2.0.0 → 2.0.1, @eslint/json 2.1.0 → 2.1.1, globals 17.13.0 → 17.14.0, plus transitive fixes from npm audit fix (vite 8.3.2 → 8.3.5 among them).
  • prettier 3.9.9 → 3.9.10 (#66).

Upgrade notes

  • Node.js >=22.22.0 is required. Upgrade Node.js before upgrading the package. On Node.js 20, stay on v2.1.9.
  • waitBootComplete() now rejects once its timeout (60 seconds by default) passes. A caller that relied on it waiting indefinitely for a slow boot should pass a larger timeout and handle the rejection.
  • screencap-saved and screencap-complete now fire after the file is on disk, and a write failure arrives as a screencap error. Code that worked around the early events (for example by polling for the file) can drop the workaround.
  • The exported API is...
Read more

v2.1.9

Choose a tag to compare

@cldmv-bot cldmv-bot released this 12 Oct 17:30
v2.1.9
da26d99

@cldmv/node-android-tv-remote v2.1.9 Changelog

Release Date: October 2026
Release Type: Patch


Overview

Version 2.1.9 fixes a medium-severity brace-expansion advisory in the development toolchain and updates the test and lint tooling. The net change against v2.1.8 is package.json (the version field only) and package-lock.json. No source file, script, workflow or documentation changed, the declared dependency ranges are unchanged, and the runtime dependencies (@devicefarmer/adbkit and sharp) keep the same locked versions.

@cldmv/vitest-runner 1.5.3 raises its own engines.node to >=22.12.0 and brings in chalk 6, which needs Node.js 22 or later. Running the repository's tests already needed Node.js 22.12 or later because of Vitest 5, and the CI matrix starts at 22.12.0, so this changes nothing in practice. The package's own engines.node stays >=20.9.0.


🔒 Security

brace-expansion 5.0.9 → 5.0.12 (#55)

Fixes GHSA-q2hr-2g5m-vwhr (CVE-2026-102277), a medium-severity (CVSS 5.3) denial of service: expanding input shaped like {a},b} takes time quadratic in the number of literal } characters, so a large crafted pattern can block the event loop. brace-expansion is a transitive dependency of minimatch, which only the development tooling pulls in, and the lockfile records it as development-only, so it is not part of the installed package. The repository's Dependabot alert for it (alert 41) closes once this release reaches master.

#55 was Dependabot's security update, redirected by the hotfix workflow to be re-applied on top of the hotfix branch's own tip. It was merged into next rather than hotfixes, so the fix ships in this release and not as a separate hotfix release. Nothing else is pending on the hotfix lane: hotfixes has no commits beyond master.


🔧 Dependencies

All changes are to development dependencies, and only the lockfile moved. The package.json ranges are unchanged.

  • @cldmv/vitest-runner 1.5.1 → 1.5.3 (#61). Its engines.node rises from >=20.19.0 to >=22.12.0 and its chalk dependency moves from 5.6.2 to 6.0.1 (engines.node >=22), as described above. The runner's 1.5.3 release also changes how its CommonJS entry loads the ES module build, which does not affect how this repository runs its tests.
  • Vitest group (#56): vitest, @vitest/coverage-v8, @vitest/mocker and @vitest/spy 5.0.2 → 5.0.3, with vite 8.3.1 → 8.3.2, rolldown and its platform bindings 1.2.11 → 1.2.12, @oxc-project/types 0.151.0 → 0.152.0 and why-is-node-running 3.2.2 → 3.2.1 (the exact version Vitest 5.0.3 depends on, so this one moves down).
  • ESLint (#57): eslint 10.11.0 → 10.12.0.
  • globals (#59): 17.12.0 → 17.13.0.
  • Security (#55): brace-expansion, described above.

📚 Documentation


Upgrade notes

  • No runtime changes — drop-in for v2.1.8. The published files, the runtime dependency ranges and the locked runtime versions are as before.
  • Contributors need Node.js 22.12 or later to run the repository's tests, as already required by Vitest 5.

coverage

Metric Coverage
Statements 23.2%
Branches 20.3%
Functions 40.6%
Lines 23.7%

Avg: 26.9% · 4febe2d · Node lts/*

👥 Contributors

v2.1.8

Choose a tag to compare

@cldmv-bot cldmv-bot released this 05 Oct 03:59
v2.1.8
20c2255

@cldmv/node-android-tv-remote v2.1.8 Changelog

Release Date: October 2026
Release Type: Patch
Branch: release/2.1.8


Overview

Version 2.1.8 makes remotes independent of each other and stops an unheard error event from crashing the process. Each remote now has its own event emitter, so two TVs no longer see each other's events. When no error listener is attached, an error is logged instead of thrown, and the failing call still reports it. It also restores npm run setup-device, which had been broken since v2.1.0, and relicenses the package under Apache-2.0. The dev tooling for file headers moves to @cldmv/fix-headers 2.2.0 and @cldmv/configs 1.2.4.


🐛 Bug Fixes

Each remote has its own event emitter (#46, fixes #43)

The event emitter and its helper functions were created once at module level and shared by every remote returned by createRemote(). With two TVs, listeners on one remote received the other remote's connect, disconnect, log and error events, and off() on one affected the other. Every remote now gets its own emitter.

An error with no listener no longer crashes the process (#46, fixes #44)

The remote is an event emitter, and Node.js throws when error is emitted with no listener. Even a failed auto-connect inside createRemote(), before the caller could attach a listener, crashed the process. Now error is emitted only when a listener is attached. Otherwise the error goes out as a log event with level "error" (the Error is in data.error) and to NODE_DEBUG=android-tv-remote. The failing call still reports it: commands reject and initPromise rejects. A failed auto-connect is no longer an unhandled promise rejection for callers who never await initPromise. connect() and disconnect() still resolve with the Error rather than rejecting, as before.

npm run setup-device works again (#45, fixes #42)

scripts/setup-device.mjs imported src/lib/adb/setup.mjs, which was deleted in v2.1.0, so the script failed with a module-not-found error, and it was still published. It now runs the setup steps through the v2 remote: connect, apply the keep-awake settings with setSettings, wake the device with ensureAwake, go to the home screen, and always disconnect, even when a step fails. All three scripts in scripts/ now run their command only when executed directly and export main(), so importing them has no side effects.


📄 License

The package is relicensed from MIT to Apache-2.0 (#41). The repository now has a LICENSE file; before this it had none, although package.json declared MIT.


🧪 Tests

  • tests/scripts.test.vitest.mjs imports every file under scripts/, so a dangling import fails CI, and tests the setup flow against a fake remote.
  • tests/events.test.vitest.mjs mocks @devicefarmer/adbkit, so no real ADB or network connections are made. It checks that two remotes are independent, and that errors with and without a listener are reported correctly for connect, keyboard.key and auto-connect.
  • Line coverage rises from about 13% to about 23%.

📚 Documentation

  • NEW: docs/changelog/v2/v2.1.8.md: this changelog.
  • NEW: changelog files for every earlier release, v1.0.0 through v2.1.7, under docs/changelog/ (#41).
  • README restructured to the CLDMV layout: badges, What's New, Installation with Node.js requirements, Documentation index and Links (#41). It also fixes the install and import examples, which used the wrong package name (android-tv-remote).
  • The README now says an error listener is optional and describes where unheard errors go (#48).

🔧 Dependencies

Both are dev dependencies and affect only the npm run fix:headers script, which extends @cldmv/configs/fix-headers.json. Only package.json and the lockfile changed; no file headers were restamped and the published package is unaffected.

  • @cldmv/fix-headers ^2.1.1 → ^2.2.0, in two steps. 2.1.4 (#50) no longer writes a JavaScript comment into JSON or Markdown files, processes every repeated --input, and never walks dependency folders such as node_modules. 2.2.0 (#52) makes @Last modified by follow edits to a file's content only, so a run that merely rewrites a header keeps the recorded editor.
  • @cldmv/configs ^1.2.0 → ^1.2.4 (#52). The shared fix-headers config now sets forceAuthorUpdate and forceLastModifiedAuthorUpdate to false, so @Author keeps the file's creator and @Last modified by changes only with real content edits. The 1.2.1 and 1.2.2 releases of that package only changed its own CI.

Upgrade notes

  • No breaking changes: drop-in for v2.1.7.
  • If you ran several remotes and relied on one remote's listeners also receiving another remote's events, that was the bug fixed here; attach listeners to each remote.
  • Code that kept the process alive only because an unheard error crashed it no longer crashes: listen for error, or for log events with level "error", if you want to act on failures without awaiting the call.
  • The license is now Apache-2.0.

coverage

Metric Coverage
Statements 23.2%
Branches 20.3%
Functions 40.6%
Lines 23.7%

Avg: 26.9% · f5dcd8f · Node lts/*

👥 Contributors

v2.1.7

Choose a tag to compare

@cldmv-bot cldmv-bot released this 03 Oct 18:45
v2.1.7
d1dba15

@cldmv/node-android-tv-remote v2.1.7 Changelog

Release Date: October 2026
Release Type: Patch


Overview

Version 2.1.7 fixes the CommonJS entry. index.cjs now loads the ESM build directly through Node's synchronous require(esm), fails with a clear, actionable message on Node.js versions that can't do that, and exports createAndroidTVRemote alongside createRemote, so require() and import expose the same factories. The ESM entry and the remote API are unchanged.


🐛 Bug Fixes

CommonJS entry requires the ESM build directly and fails clearly without require(esm) (#39)

index.cjs used to load index.mjs through a createRequire() indirection, which on Node.js without require(esm) failed with a bare ERR_REQUIRE_ESM that didn't say what to do. It now calls require("./index.mjs") directly and, before that, checks process.features.require_module: on Node.js older than ^20.19.0 / >=22.12.0 it throws an ERR_REQUIRE_ESM error that names the required versions and points to import().

createAndroidTVRemote exported from CommonJS (#39)

The ESM entry has exported createAndroidTVRemote since v2.0.0, but the CommonJS entry only exposed createRemote (as the module itself, .createRemote and .default). It now exports createAndroidTVRemote too:

const { createAndroidTVRemote } = require("@cldmv/node-android-tv-remote");

const remote = await createAndroidTVRemote({ ip: "192.168.1.100" });

🔧 CI & tooling

  • New tests/cjs/entry.test.cjs (node:test), run after Vitest by npm test and npm run coverage through a new test:cjs script. It checks that require() exposes the same factories as import and that the Node.js version check fires when require(esm) is unavailable.

Upgrade notes

  • No breaking changes — drop-in for v2.1.6. CommonJS consumers need Node.js ^20.19.0 or >=22.12.0, as they already did; on older Node.js the error message is now explicit, and import() remains the way to load the package there.
  • v2.1.1 through v2.1.6 were released on GitHub but never published to npm. v2.1.7 is the first version on npm after v2.1.0, so upgrading from npm's v2.1.0 picks up everything in between, including the Node.js 20.9.0 floor from v2.1.1.

coverage

Metric Coverage
Statements 12.7%
Branches 9.1%
Functions 20.2%
Lines 13.0%

Avg: 13.7% · 5ae55df · Node lts/*

👥 Contributors

v2.1.6

Choose a tag to compare

@cldmv-bot cldmv-bot released this 03 Oct 03:30
v2.1.6
61a99e3

@cldmv/node-android-tv-remote v2.1.6 Changelog

Release Date: October 2026
Release Type: Patch


Overview

Version 2.1.6 is a CI and lockfile release with no runtime code changes. It corrects v2.1.5's required-check fix so in-repo PRs report their status from a job that actually runs, and refreshes the lockfile. It was released on GitHub but did not reach npm.


🔧 CI & tooling

  • In-repo PR mirror job runs instead of being skipped (#37) — the ✅ Required PR Check mirror now runs on the pull_request event for in-repo PRs and reports the CI result.

📚 Documentation


🔧 Dependencies

  • sharp 0.35.4 → 0.35.5 in the lockfile (#35); the declared range (^0.35.3) is unchanged, so installs already picked up the newer patch.
  • @cldmv/vitest-runner 1.2.0 → 1.5.1 (dev; #36).

Upgrade notes

No breaking changes — drop-in for v2.1.5. No runtime code changed.


coverage

Metric Coverage
Statements 12.7%
Branches 9.1%
Functions 20.2%
Lines 13.0%

Avg: 13.7% · a89a513 · Node lts/*

👥 Contributors

v2.1.5

Choose a tag to compare

@cldmv-bot cldmv-bot released this 02 Oct 21:46
v2.1.5
5a5bef5

@cldmv/node-android-tv-remote v2.1.5 Changelog

Release Date: October 2026
Release Type: Patch


Overview

Version 2.1.5 is a maintenance release with no runtime code changes. It syncs the v4 workflows with the CLDMV/.github v4.29.2 templates and adds the bundle-size workflow, fixes the CI required-check mirror so a skipped run can no longer satisfy the merge ruleset, stamps uniform file headers, and takes a round of development dependency updates. Like the releases since v2.1.1, it was released on GitHub but did not reach npm.


🔧 CI & tooling

  • v4 workflows synced with CLDMV/.github v4.29.2 templates, plus bundle-size measurement (#30) — adds the bundle-size.yml, provenance.yml, release-merge.yml, member-auto-merge.yml, dependabot-recreate.yml and pr-notify.yml callers; bundle size is measured on the published JS files, and the release-merge workflow list is restored to the template's.
  • Skipped PR-run mirror no longer satisfies ✅ Required PR Check (#34) — GitHub counts a skipped required check as passing, which could let a PR merge before its tests finished. The skipped job no longer posts under the required name.
  • Uniform file headers (#33) — adopts the shared CLDMV fix-headers config (.configs/fix-headers.json, new fix:headers script) and stamps headers across the source, scripts, tests, tools and workflows. Only comment headers changed.

📚 Documentation


🔧 Dependencies

All development-only:

  • eslint 10.10.0 → 10.11.0 (#28)
  • vitest and @vitest/coverage-v8 5.0.0 → 5.0.2, prettier 3.9.6 → 3.9.9 (#27)
  • Added @cldmv/configs and @cldmv/fix-headers

Upgrade notes

No breaking changes — drop-in for v2.1.4. No runtime code changed.


coverage

Metric Coverage
Statements 12.7%
Branches 9.1%
Functions 20.2%
Lines 13.0%

Avg: 13.7% · cae29ba · Node lts/*

👥 Contributors

v2.1.4

Choose a tag to compare

@cldmv-bot cldmv-bot released this 14 Sep 02:20
v2.1.4
61be47f

@cldmv/node-android-tv-remote v2.1.4 Changelog

Release Date: September 2026
Release Type: Patch


Overview

Version 2.1.4 picks up @devicefarmer/adbkit 3.3.9 in the lockfile, bumps @eslint/css to 2.0.0, removes two unused bindings from the screencap code path, and wires bot identity secrets into the release workflows. It was released on GitHub (tag v2.1.4, release PR #10) but did not reach npm, whose latest version is still 2.1.0.

The only runtime-file change is dead-code removal in src/lib/android-tv-remote.mjs; behavior is unchanged. The declared @devicefarmer/adbkit range (^3.3.8) did not change, engines, exports, and main are unchanged.


🐛 Bug Fixes

Unused code removed from screencap

The unused pipeline import from stream/promises and the unused writeStreamStartTime / writeStreamTime timing variables around createWriteStream were removed from src/lib/android-tv-remote.mjs. No behavior changes.


🔧 CI & tooling

  • Bot identity secrets passed to release workflows — feature-pr.yml, hotfixes-release.yml, and next-release.yml now map CLDMV_BOT_NAME / CLDMV_BOT_EMAIL.
  • hotfix-redirector.yml can sign cherry-picks — it now also maps CLDMV_BOT_GPG_PRIVATE_KEY / CLDMV_BOT_GPG_PASSPHRASE (needed when redirecting Dependabot security PRs onto hotfixes) and declares top-level permissions: contents: read.
  • Lint cleanups in dev scripts — unused catch bindings renamed to _ in scripts/postinstall.mjs and several tools/ scripts; dev/tools/retry-init-adb.mjs test now awaits createRemote.

📚 Documentation

  • NEW: docs/changelog/v2/v2.1.4.md — this changelog.
  • README — fixed mismatched code fences in the Basic Usage and Event-Driven Usage examples.

🔧 Dependencies

  • @devicefarmer/adbkit lockfile resolution 3.3.8 → 3.3.9 (#10); declared range ^3.3.8 unchanged
  • @eslint/css ^1.4.0 → ^2.0.0 (dev)

Upgrade notes

No breaking changes and nothing to do for consumers.

👥 Contributors