Skip to content

v0.7.0

Compare
Choose a tag to compare
@Supereg Supereg released this 03 May 21:10
b14321f

Core.ts and BridgeCore.ts got deprecated in this release and are schedule to be remove by the end of 2020. Have a look at the wiki which explains this further and provides some help to create a project using HAP-NodeJS as a library.

New API

  • AccessControlManagement was introduced to easily handle the AccessControl service

Improvements

  • Moved to nodes crypto library (supported by the underlying openssl library) for chacha20-poly1305 encryption and decryption. This gives a 10x performance boost when doing crypto. Requires a node version of >= 10.17.0
  • Moved to the futoin-hkdf library for doing HKDF. Its more efficient buffer handling gives a performance boost of about 30-40%
  • To prevent brute force attacks, HAP-NodeJS will now move into an UNPAIRABLE state after 100 unsuccessful pair attempts rejecting any further attempts to pair. A restart will reset this to accept pairings again. We might improve on this in the future, that it will require some "reset" method, to clear the state.
  • HAP enforces a strict limit of a maximum of 100 services per accessory and a maximum of 100 characteristics per service. HAP-NodeJS enforces this limits now to prevent accessory showing "No response" in the Home App (#814)
  • All Debuggers are now prefixed with the library name HAP-NodeJS: to be conform with the conventions made by the debug library (#126)
  • Mitigated a Denial of Service when setting minValue higher than maxValue (#690)

Other

  • Added CONTRIBUTING.md and SECURITY.d and restructured the README.md a bit.
  • Removed legacy code related for the old Relay server
  • The wiki was rewritten (and still is) with the ongoing beta of this release.