Skip to content

Dependency updates, dev-tool advisories, and keypad press capture groundwork - #185

Open
dougrathbone wants to merge 6 commits into
masterfrom
dougrathbone/deps-and-keypad-capture-6700
Open

dougrathbone wants to merge 6 commits into
masterfrom
dougrathbone/deps-and-keypad-capture-6700

Conversation

@dougrathbone

Copy link
Copy Markdown
Owner

Summary

Brings in the three pending Dependabot updates, clears the dev-only security advisories that Dependabot could not fix on its own, and lays the capture groundwork for the keypad press-type request in #172.

Part of #172

Changes

  • Dependabot updates (cherry-picked with their original authorship): softprops/action-gh-release 3.0.3 to 3.0.4 (chore(deps): bump softprops/action-gh-release from 3.0.3 to 3.0.4 in the github-actions group across 1 directory #178), sql.js 1.16.0 to 1.17.0 (chore(deps): bump sql.js from 1.16.0 to 1.17.0 #184), @types/node 26.6.6 to 26.6.10 (chore(deps-dev): bump @types/node from 26.6.6 to 26.6.10 in the dev-dependencies group #183). Dependabot will close those PRs once this merges.
  • Dev-tool advisories: minimatch 10.2.6 and 9.0.9 were stuck below the advisory's fixed version (11.0.1) because they come in through Jest's coverage path (test-exclude, glob), whose version ranges never allow 11. That is why Dependabot's security update kept failing. Overrides now pin minimatch 11.0.10 and glob 14.0.7, alongside the existing overrides, and npm audit fix lifted cross-spawn to 7.1.2. All of this is dev tooling and never ships in the add-on. npm audit now reports 0 vulnerabilities.
  • Raw capture fix: event-port lines starting with # (for example # trigger event //PROJ/254/202/9 2 or # lighting on …) returned before raw capture ran. Even with the app listed in cbus_raw_event_log_apps, those lines never reached the log or the /raw topic. They are now captured. Unlisted apps are still filtered, and nothing is captured twice.
  • docs/KEYPAD_PRESS_INVESTIGATION.md: C-Bus has no long-press message, so a press type can only be inferred from the programmed key mode and the timing between commands. This doc records what is unknown and how testers can capture it, following the audio investigation. No press-type inference ships until real captures show it is reliable.

No version bump or changelog entry; those go in the release commit.

Test plan

  • npm test passes locally with no failures (104 suites, 3439 tests), including with --coverage to exercise the overridden test-exclude/glob/minimatch
  • New code has unit test coverage: three new bridge tests. The two capture tests fail with the source change reverted
  • Existing tests were not broken or removed
  • npm run lint and npm run typecheck pass

Checklist

  • Version bumped in package.json and homeassistant-addon/config.yaml (not releasing)
  • CHANGELOG.md updated (not releasing)
  • No sensitive data or credentials included
Open in Web Open in Cursor 

dependabot Bot and others added 6 commits December 4, 2026 10:41
Bumps the github-actions group with 1 update in the / directory: [softprops/action-gh-release](https://github.com/softprops/action-gh-release).


Updates `softprops/action-gh-release` from 3.0.3 to 3.0.4
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](softprops/action-gh-release@efb3536...8a0cd65)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 3.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [sql.js](https://github.com/sql-js/sql.js) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/sql-js/sql.js/releases)
- [Commits](sql-js/sql.js@v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: sql.js
  dependency-version: 1.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the dev-dependencies group with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@types/node` from 26.6.6 to 26.6.10
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.6.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Dependabot's security update for minimatch kept failing: the advisory
covers everything below 11.0.1, but the copies we had (10.2.6, 9.0.9)
come in through Jest's coverage path (test-exclude, glob, @jest/reporters),
whose ranges never allow 11. glob 9-14.0.5 had its own advisories on the
same path, and cross-spawn 7.0.x had Windows-only injection advisories.

Pin minimatch 11.0.10 and glob 14.0.7 via overrides, in line with the
existing js-yaml/browserslist pins, and let npm audit fix lift
cross-spawn to 7.1.2. Both pinned versions support Node 20 and 22+,
matching engines. All of this is dev tooling and never ships in the
add-on; npm audit is now clean and the coverage run still works.

Co-authored-by: Doug Rathbone <dougrathbone@users.noreply.github.com>
C-Gate's status change port renders events as commands or comments, and
keypad traffic often arrives in the comment form ("# trigger event
//PROJ/254/202/9 2", "# lighting on ..."). The event path returned on
any '#' line before raw capture ran, so those lines never reached
cbus/read/.../raw or the capture log even with the application listed
in cbusRawEventLogApps. Only trigger min/max, which has its own handler,
was being captured.

Capture runs before the comment is ignored. Lines without an address or
for unlisted applications are still filtered by parseRawCaptureTarget,
and every handler that captures also consumes its line, so nothing is
captured twice. Groundwork for the keypad press-type investigation on

Co-authored-by: Doug Rathbone <dougrathbone@users.noreply.github.com>
#172: the captures need every line a keypad produces.
Issue #172's top request is telling short, long and double key presses
apart for scene automations. C-Bus has no press-type message: a key
sends whatever its Toolkit programming gives it, so press type can only
be inferred from which commands arrive and their timing, and only for
some key modes (bell press, dimmer).

Record what the bridge does today, what each key mode is expected to
send (unverified through C-Gate), the open questions that block a
decoder, and the capture steps for testers, following the audio
investigation. No press-type inference ships until real captures show
it is reliable.

Co-authored-by: Doug Rathbone <dougrathbone@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants