Skip to content

v0.9.3 (2021-03-09)

Compare
Choose a tag to compare
@oznu oznu released this 09 Mar 11:40
cef9ed1

Bug Fixes

  • #890 - Fix regression in the validateClientSuppliedValue method (renamed from validClientSuppliedValue) so it now transforms values to their corresponding types as expected (eg. transforms false to 0 for a UINT8 data type).
    • Background: Requests made via Siri sometimes have unexpected values for the data type, eg. Siri sends the request with true while the Home app sends the same request with 1 - for a UINT8 data type. This change normalises the value before it is sent to the characteristic setter method.
  • #890 - When a number type is thrown or returned as a callback error in a characteristic setter or getter, HAP-NodeJS will now verify it's a valid hap status number, if not it will transform it into HAPStatus.SERVICE_COMMUNICATION_FAILURE.

Other Changes

  • #890 - Check for non-finite numbers such as Infinity and NaN in client/user input validation methods and Characteristic.setProps().
  • #890 - Added the DEBUG_MESSAGE level to CharacteristicWarningType.
  • #890 - Warnings about invalid write responses from a SET handler are now debug level characteristic warnings.