Repository navigation
Releases
v3.0.0
@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 })becomesrequire(x).createRemote({ ip }), orconst { createRemote } = require(x).require(x).createRemote,require(x).createAndroidTVRemote,require(x).defaultand destructuring keep working.__esModuleis 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 mirrorssrc/, one minified file per module withkeepNamesand source maps, built with esbuild (bundle: false) instead of a single tsup bundle (#124, fixes #118). Theimportandrequire()shapes and the exported subpaths are unchanged, andsrc/index.cjsis still copied verbatim todist/index.cjs. The published tarball now holds several files underdist/instead of one, source maps are still left out, andtsupis replaced byesbuildin the dev dependencies.ci.ymlis synced with the CLDMV/.github v4.43.0 template (#112).ci.ymladopts the v4.46.0 concurrency block, so superseded runs onnext,hotfixesand 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
-
vitest5.1.0 → 5.1.1 (#114) -
@vitest/coverage-v85.1.0 → 5.1.1 (#115) -
@cldmv/vitest-runner1.6.1 → 1.8.0 (#116) -
The CLDMV dev tools:
@cldmv/vitest-runner1.8.0 → 1.11.4,@cldmv/configs1.4.0 → 1.5.0 and@cldmv/fix-headers2.2.7 → 2.6.1, plusnpm updatefor the rest, with file headers restamped and.github/dependabot.ymlsynced to the CLDMV/.github v4.47.0 groups (#123) -
tsupremoved andesbuildadded 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. Useconst { createRemote } = require("@cldmv/node-android-tv-remote")..createRemote,.createAndroidTVRemote,.defaultand destructuring work as before.- ESM
importis unchanged.
| Metric | Coverage |
|---|---|
| Statements | 95.3% |
| Branches | 85.3% |
| Functions | 97.6% |
| Lines | 95.4% |
Avg: 93.4% · 55cffdd · Node lts/*
👥 Contributors
v2.3.0
@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.
connectionCheckIntervalis deprecated and ignored.getConnectionStatus()returns"connected"or"disconnected"; it no longer returns"unknown".- With
autoConnectoff, a command on a remote that never connected rejects withDevice 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:distbuilds the package and runs the suite againstdist/;npm testnow 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-devcondition withdevCondition()from@cldmv/configs. Thetest.nodeOptionsit 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.mjstool, 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
heartbeatIntervalJSDoc gives the real 20-second default (#95). - NEW: docs/changelog/v2/v2.3.0.md — this changelog.
🔧 Dependencies
Runtime:
@devicefarmer/adbkit^4.0.1removed,@cldmv/droidsockadded (#95). adbkit'scommander,node-forge,split,adbkit-logcatandadbkit-monkeyare no longer installed.@cldmv/droidsock^2.2.0→^2.2.1(#111). droidsock 2.2.1 keeps@cldmv/slothletbelow 3.24.0, whose stand-ins for sockets madeconnect()throwIllegal invocation(CLDMV/slothlet#708). The@cldmv/slothletoverride this repository carried for its own install is removed.
Development only:
@cldmv/configs^1.3.0→^1.4.0, fordevCondition()(#93).
Upgrade notes
- Node.js
>=22.15.0is required. On Node.js 22.12 to 22.14, stay on v2.2.1. - You can uninstall
adbif nothing else needs it. - Drop
connectionCheckIntervalfrom your config; it has no effect. UseheartbeatIntervalto tune how fast a dead connection is noticed. - Code that checked
getConnectionStatus()for"unknown"can drop that branch.
| Metric | Coverage |
|---|---|
| Statements | 95.3% |
| Branches | 85.3% |
| Functions | 97.6% |
| Lines | 95.4% |
Avg: 93.4% · 00d3d51 · Node lts/*
👥 Contributors
v2.2.1
@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
node22instead ofnode20(#89). - The CI and publish matrices still start at Node.js 22.22.0; the
min_node_versiondescriptions now say it is the dev toolchain floor and should matchdevEngines, notengines(#89).
🧪 Tests
tests/entry.test.vitest.mjsandtests/cjs/entry.test.cjscheck for the new>=22.13.0guard message (#89).
📚 Documentation
- The README requirements list Node.js
>=22.12.0, sayrequire()needs>=22.13.0, and add the 22.22.0devEnginesfloor 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
EBADENGINEwarning.
| Metric | Coverage |
|---|---|
| Statements | 94.8% |
| Branches | 86.6% |
| Functions | 97.5% |
| Lines | 95.6% |
Avg: 93.6% · cb4ac62 · Node lts/*
👥 Contributors
v2.2.0
@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.mjsis a minified ESM bundle ofsrc/index.mjs, with names andnode:specifiers kept. The keycode, keyboard and remote-key JSON tables are inlined. The runtime dependencies (@devicefarmer/adbkit,sharp) stay external.dist/index.cjsis not a second bundle. It is a verbatim copy ofsrc/index.cjs, the thin wrapper that loads./index.mjsthrough Node's synchronousrequire(esm)and keeps the historical CommonJS shape (module.exportsiscreateRemote, withcreateRemote,createAndroidTVRemoteanddefaulton 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/**.cjsinstead of the root entries,src/andscripts/(#81). - The CI and publish test matrices start at Node.js 22.22.0, the new package floor (#81).
- vitest and
test:cjsrun with thenode-android-tv-remote-devcondition, so the suite testssrc/;test:cjsbuilds first and checksdist/.eslint.config.mjsmoved into.configs/(#81). tmp/is gitignored (#80).
🧪 Tests
adb-client.test.vitest.mjsmocks 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 andwaitBootComplete, plus a check that the real adbkit package still has every client, device and util method the remote calls. Line coverage ofsrc/lib/android-tv-remote.mjsgoes from 24% to 95% (#84).entry.test.vitest.mjscoverssrc/index.cjsat the source level (#81).
📚 Documentation
- The README states the
>=22.22.0requirement and documentsnpm run buildand thenode-android-tv-remote-devcondition 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 withAbortSignal, adds anexportsmap that blocks deep imports, requires Node.js 22.12 or later, and moves toadbkit-logcat3 andadbkit-monkey2. The remote only imports the package root, only uses.then/.catch/awaiton adbkit promises, and doesn't use trackers, sync transfers, logcat or monkey, so no source change was needed beyond passing the newsignaltowaitBootComplete.bluebirdis no longer installed.sharp^0.35.3→^0.35.5(the lockfile was already on 0.35.5) (#82).
Development only:
tsup^9.0.0andtypescriptadded with the build (#81);typescriptis pinned to^6.0.3, since TypeScript 7's JavaScript declaration emit isn't complete yet (#83).overridesforkatex(>=0.19.1 <1.0.0, 0.16.47 → 0.19.1) andminimatch(^11.0.3, 10.2.6 → 11.0.3) clear the dev-only advisories that come in througheslintand@eslint/markdown(#83).- Toolchain refresh (#82):
@cldmv/configs1.2.4 → 1.3.0,@cldmv/fix-headers2.2.0 → 2.2.4,@cldmv/vitest-runner1.5.3 → 1.5.6,vitest/@vitest/coverage-v85.0.3 → 5.0.5,eslint10.12.0 → 10.14.0,@eslint/css2.0.0 → 2.0.1,@eslint/json2.1.0 → 2.1.1,globals17.13.0 → 17.14.0, plus transitive fixes fromnpm audit fix(vite8.3.2 → 8.3.5 among them). prettier3.9.9 → 3.9.10 (#66).
Upgrade notes
- Node.js
>=22.22.0is 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-savedandscreencap-completenow fire after the file is on disk, and a write failure arrives as ascreencaperror. Code that worked around the early events (for example by polling for the file) can drop the workaround.- The exported API is...
v2.1.9
@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-runner1.5.1 → 1.5.3 (#61). Itsengines.noderises from>=20.19.0to>=22.12.0and itschalkdependency 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/mockerand@vitest/spy5.0.2 → 5.0.3, withvite8.3.1 → 8.3.2,rolldownand its platform bindings 1.2.11 → 1.2.12,@oxc-project/types0.151.0 → 0.152.0 andwhy-is-node-running3.2.2 → 3.2.1 (the exact version Vitest 5.0.3 depends on, so this one moves down). - ESLint (#57):
eslint10.11.0 → 10.12.0. globals(#59): 17.12.0 → 17.13.0.- Security (#55):
brace-expansion, described above.
📚 Documentation
- NEW: docs/changelog/v2/v2.1.9.md: this changelog.
- README ✨ What's New updated for v2.1.9.
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.
| Metric | Coverage |
|---|---|
| Statements | 23.2% |
| Branches | 20.3% |
| Functions | 40.6% |
| Lines | 23.7% |
Avg: 26.9% · 4febe2d · Node lts/*
👥 Contributors
v2.1.8
@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.mjsimports every file underscripts/, so a dangling import fails CI, and tests the setup flow against a fake remote.tests/events.test.vitest.mjsmocks@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 forconnect,keyboard.keyand 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
errorlistener 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 asnode_modules. 2.2.0 (#52) makes@Last modified byfollow 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 setsforceAuthorUpdateandforceLastModifiedAuthorUpdatetofalse, so@Authorkeeps the file's creator and@Last modified bychanges 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
errorcrashed it no longer crashes: listen forerror, or forlogevents with level"error", if you want to act on failures without awaiting the call. - The license is now Apache-2.0.
| Metric | Coverage |
|---|---|
| Statements | 23.2% |
| Branches | 20.3% |
| Functions | 40.6% |
| Lines | 23.7% |
Avg: 26.9% · f5dcd8f · Node lts/*
👥 Contributors
v2.1.7
@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 bynpm testandnpm run coveragethrough a newtest:cjsscript. It checks thatrequire()exposes the same factories asimportand that the Node.js version check fires whenrequire(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.
| Metric | Coverage |
|---|---|
| Statements | 12.7% |
| Branches | 9.1% |
| Functions | 20.2% |
| Lines | 13.0% |
Avg: 13.7% · 5ae55df · Node lts/*
👥 Contributors
v2.1.6
@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 Checkmirror now runs on thepull_requestevent for in-repo PRs and reports the CI result.
📚 Documentation
- NEW: docs/changelog/v2/v2.1.6.md — this changelog.
🔧 Dependencies
sharp0.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-runner1.2.0 → 1.5.1 (dev; #36).
Upgrade notes
No breaking changes — drop-in for v2.1.5. No runtime code changed.
| Metric | Coverage |
|---|---|
| Statements | 12.7% |
| Branches | 9.1% |
| Functions | 20.2% |
| Lines | 13.0% |
Avg: 13.7% · a89a513 · Node lts/*
👥 Contributors
v2.1.5
@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/.githubv4.29.2 templates, plus bundle-size measurement (#30) — adds thebundle-size.yml,provenance.yml,release-merge.yml,member-auto-merge.yml,dependabot-recreate.ymlandpr-notify.ymlcallers; 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-headersconfig (.configs/fix-headers.json, newfix:headersscript) and stamps headers across the source, scripts, tests, tools and workflows. Only comment headers changed.
📚 Documentation
- NEW: docs/changelog/v2/v2.1.5.md — this changelog.
🔧 Dependencies
All development-only:
eslint10.10.0 → 10.11.0 (#28)vitestand@vitest/coverage-v85.0.0 → 5.0.2,prettier3.9.6 → 3.9.9 (#27)- Added
@cldmv/configsand@cldmv/fix-headers
Upgrade notes
No breaking changes — drop-in for v2.1.4. No runtime code changed.
| Metric | Coverage |
|---|---|
| Statements | 12.7% |
| Branches | 9.1% |
| Functions | 20.2% |
| Lines | 13.0% |
Avg: 13.7% · cae29ba · Node lts/*
👥 Contributors
v2.1.4
@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, andnext-release.ymlnow mapCLDMV_BOT_NAME/CLDMV_BOT_EMAIL. hotfix-redirector.ymlcan sign cherry-picks — it now also mapsCLDMV_BOT_GPG_PRIVATE_KEY/CLDMV_BOT_GPG_PASSPHRASE(needed when redirecting Dependabot security PRs ontohotfixes) and declares top-levelpermissions: contents: read.- Lint cleanups in dev scripts — unused catch bindings renamed to
_inscripts/postinstall.mjsand severaltools/scripts;dev/tools/retry-init-adb.mjstest now awaitscreateRemote.
📚 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/adbkitlockfile resolution 3.3.8 → 3.3.9 (#10); declared range^3.3.8unchanged@eslint/css^1.4.0 → ^2.0.0 (dev)
Upgrade notes
No breaking changes and nothing to do for consumers.