Skip to content

feat: Homebridge 2 readiness#159

Open
joshjohanning wants to merge 3 commits into
Zacknetic:masterfrom
joshjohanning:upstream-pr/homebridge-v2-compat
Open

feat: Homebridge 2 readiness#159
joshjohanning wants to merge 3 commits into
Zacknetic:masterfrom
joshjohanning:upstream-pr/homebridge-v2-compat

Conversation

@joshjohanning

Copy link
Copy Markdown

Adds compatibility with Homebridge v2 while keeping v1 support. Minimal, focused changes: dependency bumps, one tsconfig flag, and one type-narrowing fix.

closes #155

- engines.node: ^22.12.0 || ^24.0.0 (matches Homebridge v2 requirement)
- engines.homebridge: ^1.6.0 || ^2.0.0 (dual compat)
- devDependencies: homebridge ^2.0.2, typescript ^5.9.3, @types/node ^22
Homebridge v2 transitively pulls in @matter/* type definitions that
fail under the project's existing 'node' moduleResolution. Skipping
declaration file checks avoids the errors without altering the
project's TypeScript resolution strategy.
…ic comparison

controllerFirmwareVersion is typed as 'string | number'. TypeScript 5
rejects the '<=', '>', and '==' numeric comparisons used in the
processRequest() power-command path. Narrow the value via Number()
once and reuse it for all comparisons.
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.

Confirm Readiness for Homebridge 2.0

1 participant