Repository navigation
Dependency updates, dev-tool advisories, and keypad press capture groundwork - #185
Open
dougrathbone wants to merge 6 commits into
Open
dougrathbone wants to merge 6 commits into
dougrathbone wants to merge 6 commits into
Conversation
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>
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.
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
softprops/action-gh-release3.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.js1.16.0 to 1.17.0 (chore(deps): bump sql.js from 1.16.0 to 1.17.0 #184),@types/node26.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.minimatch10.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 pinminimatch11.0.10 andglob14.0.7, alongside the existing overrides, andnpm audit fixliftedcross-spawnto 7.1.2. All of this is dev tooling and never ships in the add-on.npm auditnow reports 0 vulnerabilities.#(for example# trigger event //PROJ/254/202/9 2or# lighting on …) returned before raw capture ran. Even with the app listed incbus_raw_event_log_apps, those lines never reached the log or the/rawtopic. 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 testpasses locally with no failures (104 suites, 3439 tests), including with--coverageto exercise the overriddentest-exclude/glob/minimatchnpm run lintandnpm run typecheckpassChecklist
package.jsonandhomeassistant-addon/config.yaml(not releasing)CHANGELOG.mdupdated (not releasing)