Repository navigation
release: v2.2.0 - adopt the CLDMV library layout with a tsup build - #67
Merged
Merged
Conversation
Bumps the prettier group with 1 update: [prettier](https://github.com/prettier/prettier). Updates `prettier` from 3.9.9 to 3.9.10 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@3.9.9...3.9.10) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.9.10 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: prettier ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps the prettier group with 1 update: [prettier](https://github.com/prettier/prettier). Updates `prettier` from 3.9.9 to 3.9.10 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p> <blockquote> <h2>3.9.10</h2> <ul> <li>Markdown: Update <code>micromark-extension-gfm-table</code> to fix the table parse issue on performance (<a href="https://redirect.github.com/prettier/prettier/pull/20266">#20266</a> by <a href="https://github.com/fisker"><code>@fisker</code></a>)</li> </ul> <p>🔗 <a href="https://github.com/prettier/prettier/blob/3.9.10/CHANGELOG.md#3910">Changelog</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's changelog</a>.</em></p> <blockquote> <h1>3.9.10</h1> <p><a href="https://github.com/prettier/prettier/compare/3.9.9...3.9.10">diff</a></p> <h4>Markdown: Update <code>micromark-extension-gfm-table</code> to fix the table parse issue on performance (<a href="https://redirect.github.com/prettier/prettier/pull/20266">#20266</a> by <a href="https://github.com/fisker"><code>@fisker</code></a>)</h4> <p>See <a href="https://github.com/micromark/micromark-extension-gfm-table/commit/4f43ead37b786bc531d924530d4ab4c714886267">https://github.com/micromark/micromark-extension-gfm-table/commit/4f43ead37b786bc531d924530d4ab4c714886267</a> for details.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/prettier/prettier/commit/1172b82c295c4f889fd787dc6c78c3e194ebf353"><code>1172b82</code></a> Release 3.9.10</li> <li><a href="https://github.com/prettier/prettier/commit/d0142273aff2c76f8a69785d42ee2cedc4b0aaa3"><code>d014227</code></a> Update <code>micromark-extension-gfm-table</code> to fix the table parse issue on perfor...</li> <li><a href="https://github.com/prettier/prettier/commit/953b9084329dcd06ed1072a04b333f1e6e9371e8"><code>953b908</code></a> Bump Prettier dependency to 3.9.9</li> <li><a href="https://github.com/prettier/prettier/commit/ad8a6bf4fa23c42fd114683fec43b28a11bd24af"><code>ad8a6bf</code></a> Clean changelog_unreleased</li> <li>See full diff in <a href="https://github.com/prettier/prettier/compare/3.9.9...3.9.10">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details>
Contributor
Author
🔒 Dependency Review
|
Contributor
Author
|
| File | Raw | Δ Raw | Gzipped | Δ Gzipped |
|---|---|---|---|---|
| dist/index.cjs | 1.7 kB | +1.7 kB (+100.0%) |
876 B | +876 B |
| dist/index.mjs | 26.4 kB | +26.4 kB (+100.0%) |
9.4 kB | +9.4 kB |
| Total | 28.1 kB | +28.1 kB | 10.2 kB | +10.2 kB |
📊 Generated by bundle-size. Brotli sizes also measured but omitted from the table for brevity.
Move the hand-written root entries to src/index.mjs and src/index.cjs and build with tsup: dist/index.mjs is the bundle, dist/index.cjs a verbatim copy of src/index.cjs. The "." export gets a node-android-tv-remote-dev condition pointing at src/, and the package now ships dist/ plus scripts/postinstall.mjs (the postinstall hook runs on consumer installs) instead of src/ and scripts/. engines.node becomes ^20.19.0 || >=22.13.0, matching what the CJS entry already enforces at runtime. Vitest and test:cjs run with the condition; tests/cjs/entry.test.cjs now checks the build, and a source-level entry test covers src/index.cjs. eslint.config.mjs moves to .configs/. CI, release and bundle-size workflows run the real build. Closes #75
Node 22.12 warns when require() loads the ESM entry, so the matrix starts where engines.node does.
The dev toolchain (chokidar 6, tsup 9) needs Node 22.22, so nothing older can be tested. engines, the CJS guard message and the CI matrix floor move together.
sharp 0.35.3 -> 0.35.5 @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 @eslint/css 2.0.0 -> 2.0.1 @eslint/json 2.1.0 -> 2.1.1 @vitest/coverage-v8, vitest 5.0.3 -> 5.0.5 eslint 10.12.0 -> 10.14.0 globals 17.13.0 -> 17.14.0 prettier -> 3.9.10 Transitive fixes via npm audit fix. @devicefarmer/adbkit stays on 3.3.9; 4.0.1 is a new major on a runtime dependency. Supersedes the open Dependabot PR #70 and the hotfix-redirect PRs #64, #69, #72, #74, #77, #79.
katex 0.19.1+ and minimatch 11.0.3+ clear the dev-only advisories that come in through eslint and @eslint/markdown; the same overrides fix-headers carries.
… isn't complete yet
Mocks the adbkit client and device and drives client creation, connect/disconnect, the heartbeat and connection check, auto-disconnect, key/long-press/text shell commands, setSettings, ensureAwake, reboot, screencap/thumbnail and waitBootComplete, plus a check that the real package still has the client, device and util methods the remote calls. Line coverage of src/lib/android-tv-remote.mjs goes from 24% to 95%.
Breaking changes in 4.0.0 (DeviceFarmer/adbkit#567, #568) and how they apply here: - Native promises replace bluebird; bluebird-only methods (.timeout, .delay, .return, .cancel, .catch(Class, fn)) are gone. Doesn't apply: the remote only uses .then/.catch and await on adbkit promises. - Cancellation is explicit (AbortSignal on parser reads, tracker.end(), transfer.cancel(), a signal option on waitBootComplete/waitForDevice). Doesn't apply: we don't use trackers, sync transfers or cancellation; waitBootComplete() is still called without options. - Deep imports outside the new exports map no longer resolve. Doesn't apply: only the package root is imported; the default-import shape (.Adb) is unchanged. - Node.js 22.12 or later is required. Already met: engines.node is >=22.22.0. - Unawaited internal promise chains now warn instead of crashing. Doesn't apply: no trackers, sync transfers or ProcStat in use. - adbkit-logcat 3 / adbkit-monkey 2. Doesn't apply: openLogcat() and openMonkey() aren't used. No source changes were needed.
waitBootComplete(timeout) took a timeout but never passed it on, so the wait ran until the device finished booting however long that took. It now hands adbkit 4 an AbortSignal.timeout(timeout); adbkit rejects with a TimeoutError and closes the connection when it fires, which reaches the existing "Boot completion timeout" hint. Closes #85
screencap({ width/height, filepath }) ended the file stream and emitted
"screencap-saved"/"screencap-complete" straight away, before the data
had reached the file, and a failing write stream had no error listener.
The background job now runs capture -> resize -> file through
stream/promises pipeline(), so the events fire and the job settles only
after the file is fully written, and a write failure tears the pipeline
down and is emitted as a "screencap" error with no completion events.
Closes #86
… isn't complete yet (#83)
Shinrai
approved these changes
Nov 2, 2026
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.
@cldmv/node-android-tv-remotev2.2.0 ChangelogRelease Date: November 2026
Release Type: Minor
Branch:
release/2.2.0Overview
Version 2.2.0 moves the package to the CLDMV library layout with a tsup build, moves the runtime dependency
@devicefarmer/adbkitto its new major 4, and fixes two long-standing bugs:waitBootComplete(timeout)now actually stops waiting at its timeout, andscreencap()with afilepathno longer reports the file saved before it is written.The supported Node.js range changes:
engines.nodegoes from>=20.9.0to>=22.22.0, and@devicefarmer/adbkit4 itself requires Node.js 22.12 or later. That is a real requirement change even though it ships in a minor release; see Breaking Changes and the upgrade notes. The exported API (createRemote,createAndroidTVRemoteand the default export, from bothimportandrequire()) is unchanged.💥 Breaking Changes
Node.js
>=22.22.0is now required (#81)engines.nodewas>=20.9.0in v2.1.9 (set bysharp), withrequire()documented as needing^20.19.0or>=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/adbkit4 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. TheERR_REQUIRE_ESMmessage thatrequire()throws on a Node.js withoutrequire(esm)now names>=22.22.0.npm prints an
EBADENGINEwarning when installing on an older Node.js, and the install fails whenengine-strictis set.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 aTimeoutError; 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 optionallywidth/height), the background save ended the file stream and emittedscreencap-savedandscreencap-completestraight away, before the data reached the file, and the file stream had noerrorlistener. The capture, resize and file write now run throughstream/promisespipeline(): the two events fire, andlastScreencapDatais set, only after the file is fully written. A capture, resize or write failure tears the whole pipeline down and is reported as ascreencaperror with no completion events.✨ Features
Library layout:
src/entries and a tsup build (#81, fixes #75)The hand-written root
index.mjs/index.cjsmoved tosrc/index.mjs/src/index.cjs, andbuildis now tsup (tsup.config.mjs) instead of anechostub: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/modulepoint atdist/,exportsadds./package.json, andprepackruns the build sodist/is never committed. The published files are nowdist/(without source maps) andscripts/postinstall.mjs, which still runs on install to check foradb.src/and the other two helper scripts are no longer published:scripts/setup-device.mjsandscripts/wake-tv.mjsimportsrc/, so they are checkout tools (npm run setup-devicein a clone of this repository).node-android-tv-remote-devexport condition (#81)The
"."export carries anode-android-tv-remote-devcondition that pointsimportandrequireatsrc/. In a checkout,node --conditions=node-android-tv-remote-devruns the unbuilt source; without it the package resolves todist/, whichnpm run buildproduces. Installed copies only shipdist/.🔧 CI & tooling
npm run build:ci:lint,format:check, then tsup), including the coverage legs (coverage_build_command) (#81).dist/**.mjs/dist/**.cjsinstead of the root entries,src/andscripts/(#81).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
>=22.22.0requirement and documentsnpm run buildand thenode-android-tv-remote-devcondition for working from a checkout (#81).🔧 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).@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
>=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.importandrequire(). Code that reached intosrc/orscripts/setup-device.mjs/scripts/wake-tv.mjsinside the installed package must stop doing so; those files are no longer published.👥 Contributors
Avg: 93.6% ·
b8963e3· Node lts/*Co-authored-by: Shinrai [email protected]