Skip to content

v2.0.0-beta#1094

Merged
bwp91 merged 7 commits intolatestfrom
beta-2.0.0
Jun 17, 2025
Merged

v2.0.0-beta#1094
bwp91 merged 7 commits intolatestfrom
beta-2.0.0

Conversation

@bwp91
Copy link
Contributor

@bwp91 bwp91 commented Jun 8, 2025

Related PRs:


Changes

  • ⚠️ drop support for node v18
    • the minimum node version required is now v20
  • update commander from v13 to v14
  • Added support for NodeJS 24
  • Update @homebridge/ciao to 1.3.3
  • update jest to v30 and required migration steps
  • update eslint to v9 and required migration steps
  • ⚠️ republish as @homebridge/hap-nodejs for consistency

Homebridge Dependencies

  • @homebridge/ciao @ v1.3.3
  • @homebridge/dbus-native @ v0.7.1
  • bonjour-hap @ v3.9.0

@github-actions github-actions bot added the latest label Jun 8, 2025
@coveralls
Copy link

coveralls commented Jun 8, 2025

Pull Request Test Coverage Report for Build 15690631851

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.9%) to 63.413%

Totals Coverage Status
Change from base Build 15519747947: -0.9%
Covered Lines: 6242
Relevant Lines: 9306

💛 - Coveralls

This comment was marked as outdated.

@bwp91 bwp91 requested a review from Copilot June 16, 2025 19:01

This comment was marked as outdated.

@bwp91 bwp91 requested a review from Copilot June 16, 2025 19:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the library to v2.0.0-beta by dropping Node.js v18 support, renaming the package scope, and updating key dependencies and tooling.

  • Raise minimum Node.js requirement to v20 and add v24 support.
  • Rename package to @homebridge/hap-nodejs and update related badges.
  • Bump dependencies: commander v13→v14, jest v29→v30, migrate ESLint to a flat config.

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
package.json Renamed package scope, bumped Node engine, updated versions.
docs/index.html Adjusted npm badge links and labels for the new package name.
src/lib/util/tlv.spec.ts Switched Jest matcher from .toThrowError() to .toThrow().
eslint.config.mjs Introduced new flat ESLint configuration, removed legacy file.
CHANGELOG.md Added unreleased entry for v2.0.0 with migration notes.
Comments suppressed due to low confidence (5)

package.json:3

  • The version in package.json was not updated to v2.0.0-beta; please bump it to match the release tag.
"version": "1.2.0"

docs/index.html:6

  • The href for the npm beta badge still references hap-nodejs; update it to @homebridge/hap-nodejs.
<a href="https://www.npmjs.com/package/hap-nodejs/v/beta"><img title="npm version beta" src="https://badgen.net/npm/v/@homebridge/hap-nodejs/beta" ></a>

docs/index.html:7

  • The href for the npm alpha badge still references hap-nodejs; update it to @homebridge/hap-nodejs.
<a href="https://www.npmjs.com/package/hap-nodejs/v/alpha"><img title="npm version alpha" src="https://badgen.net/npm/v/@homebridge/hap-nodejs/alpha" ></a>

docs/index.html:8

  • The href for the npm downloads badge still references hap-nodejs; update it to @homebridge/hap-nodejs.
<a href="https://www.npmjs.com/package/hap-nodejs"><img title="npm downloads" src="https://badgen.net/npm/dt/@homebridge/hap-nodejs" ></a>

CHANGELOG.md:5

  • [nitpick] Changelog header lists v2.0.0 instead of the prerelease v2.0.0-beta; consider matching the beta tag for clarity.
## v2.0.0 (Unreleased)

@bwp91 bwp91 marked this pull request as ready for review June 17, 2025 04:55
@bwp91 bwp91 merged commit e598312 into latest Jun 17, 2025
23 of 27 checks passed
@bwp91 bwp91 deleted the beta-2.0.0 branch June 17, 2025 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants