Releases: danielwippermann/resol-vbus
0.28.0
0.25.0
- 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
andTelegram
support toVBusRecordingConverter
.
0.24.0
- [BREAKING CHANGE] Replaced the deprecated "request" dependency with Fetch API impl
Since the "request" dependency that was used in theDLxRecorder
class has
been deprecated, the code was refactored to use a Fetch API implementation instead.
But since the methodDLxRecorder#downloadToStream
expected "request"-specific options,
it had to be changed, too. This method was renamed toDLxRecorder#_downloadToStream
to
indicate that it is a class-private method and its signature was changed to accept
Fetch API specific options.
0.23.0
-
[BREAKING CHANGE] Replacing custom inheritance code with
class
syntax
Up to this version inheritance was established using a customextend
function.
Since only modern ECMAscript runtimes are supported since the last release the code was
refactored to use the ECMAscriptclass
syntax instead. In that process theextend
function was removed, both the standalone one and the static class function that was
added to every "class". -
[BREAKING CHANGE] Returning a
Promise
fromchannelListCallback
callback
TheTcpConnection
accepts achannelListCallback
. This callback gets called with the
list of channels returned from theCHANNELLIST
command and adone
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
aPromise
:- if the
Promise
reject, thedone
callback is automatically called withdone(reason)
- if the
Promise
resolves, thedone
callback is automatically called with
done(null, result)
This allows the
channelListCallback
to beasync
. - if the
-
Errors thrown by
TcpConnection#connect
now have avbusPhase
member describing on which
VBus-over-TCP command the error occurred
0.22.0
- [BREAKING CHANGE] Dropping support for Node.js versions < 12
0.21.0
-
[BREAKING CHANGE] Returning a
Promise
fromfilterPacket
orfilterDatagram
callbacksThe
Connection#transceive
method and many of the helper methods that use it
accept afilterPacket
and/orfilterDatagram
callback. Those callbacks get called
with the data to filter and adone
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
aPromise
:- if the
Promise
rejects, thedone
callback is automatically called withdone(reason)
- if the
Promise
resolves withnull
orundefined
, thedone
callback is not called - if the
Promise
resolves with any other result, thedone
callback is automatically
called withdone(null, result)
This allows
async
filter callbacks! - if the
-
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. Theresol-vbus
library itself might still work under
Node 6, but there is no guarantee...
0.17.0
- Add
Buffer
support toConnection#(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 aSpecificationFile
. - Extend
vbustouch-proxy
example with text data logging feature. - Update dependencies.
- Some minor bug fixes.