Skip to content

Releases: danielwippermann/resol-vbus

0.28.0

06 Jan 06:05
Compare
Choose a tag to compare
  • Add extendFieldData option to DLxJsonConverter.
  • Add SpecificationFile#getPacketTemplate.
  • Add password and channel checks to TCP endpoint. (#93)
  • Add TcpConnection#disableReconnect.
  • Correctly propagate errors during TcpConnection reconnect.

0.25.0

12 Apr 17:43
Compare
Choose a tag to compare
  • Update several dependencies to fix security issues.
  • Update VBus specification file to 20220206.
  • Add support for CRC7 in protocols using minor version 1.
  • Add Datagram and Telegram support to VBusRecordingConverter.

0.24.0

12 Sep 05:11
Compare
Choose a tag to compare
  • [BREAKING CHANGE] Replaced the deprecated "request" dependency with Fetch API impl
    Since the "request" dependency that was used in the DLxRecorder class has
    been deprecated, the code was refactored to use a Fetch API implementation instead.
    But since the method DLxRecorder#downloadToStream expected "request"-specific options,
    it had to be changed, too. This method was renamed to DLxRecorder#_downloadToStream to
    indicate that it is a class-private method and its signature was changed to accept
    Fetch API specific options.

0.23.0

22 May 07:34
Compare
Choose a tag to compare
  • [BREAKING CHANGE] Replacing custom inheritance code with class syntax
    Up to this version inheritance was established using a custom extend function.
    Since only modern ECMAscript runtimes are supported since the last release the code was
    refactored to use the ECMAscript class syntax instead. In that process the extend
    function was removed, both the standalone one and the static class function that was
    added to every "class".

  • [BREAKING CHANGE] Returning a Promise from channelListCallback callback
    The TcpConnection accepts a channelListCallback. This callback gets called with the
    list of channels returned from the CHANNELLIST command and a done callback.

    Up to this version the return value of the channelListCallback was ignored. Starting
    with this version this behaviour is changed if the return value of the callback is
    a Promise:

    • if the Promise reject, the done callback is automatically called with done(reason)
    • if the Promise resolves, the done callback is automatically called with
      done(null, result)

    This allows the channelListCallback to be async.

  • Errors thrown by TcpConnection#connect now have a vbusPhase member describing on which
    VBus-over-TCP command the error occurred

0.22.0

10 May 16:08
Compare
Choose a tag to compare
  • [BREAKING CHANGE] Dropping support for Node.js versions < 12

0.21.0

02 May 19:41
Compare
Choose a tag to compare
  • [BREAKING CHANGE] Returning a Promise from filterPacket or filterDatagram callbacks

    The Connection#transceive method and many of the helper methods that use it
    accept a filterPacket and/or filterDatagram callback. Those callbacks get called
    with the data to filter and a done callback.

    Up to this version the return value of the filter callbacks was ignored. Starting with
    this version this behaviour is changed if the return value of the filter callbacks is
    a Promise:

    • if the Promise rejects, the done callback is automatically called with done(reason)
    • if the Promise resolves with null or undefined, the done callback is not called
    • if the Promise resolves with any other result, the done callback is automatically
      called with done(null, result)

    This allows async filter callbacks!

  • Add SerialConnection#baudrate option.

  • Stop running Travis tests under Node 6.

    Some dependency of jest does not work under Node 6 making tests break
    for that target. The resol-vbus library itself might still work under
    Node 6, but there is no guarantee...

0.17.0

10 Feb 13:39
Compare
Choose a tag to compare
  • Add Buffer support to Connection#(get|set)ValueById for values larger than 32-bit.
  • Add Connection#getCaps1.
  • Add bulk value transaction support to Connection class.
  • Add support to generate and parse "type 9" comment records using VBusRecordingConverter.
  • Make it easier to create a Specification from a SpecificationFile.
  • Extend vbustouch-proxy example with text data logging feature.
  • Update dependencies.
  • Some minor bug fixes.