Releases: nats-io/stan.js
v0.3.2
v0.3.0
- Implemented
getRedeliveryCount()
on a message which returns the number of times the message has been redelivered. This requires nats-streaming-server v0.17.0 - See #155 - Fixed an issue related to the client lifecycle when the client is created with an existing nats connection, the connect handler was not triggered, thus the client would appear to hang.
- Exposed recent connection properties in the typescript bindings. See #145.
- Adopted standardjs for project formatting
- Updated dependencies
v0.2.6
v0.2.4
v0.2.2
connectTimeout changes
- internal request/reply timeouts of the stan protocol now have their timeouts specified by the
connectTimeout
property as done in the go-nats-streaming client.
ES6 Changes
- changed
var
toconst
/let
. Use of arrow functions everywhere it could simplify code.
Tests
- move to nyc from istanbul exposed a number of tests hanging because timers were not properly closed under some conditions (this required changes in node-nats), as well as insuring that all tests call
close()
on the connection.
Updated Samples/Bench tools
- the samples and tools hadn't been updated or reviewed since initially written. They received some love.
Dependency updates
- updated all dev depedencies
- replaced istanbul with nyc
v0.2.0
-
[CHANGE] The properties
maxPingOut
andpingInterval
were renamed tostanMaxPingOut
andstanPingInterval
to prevent nats property shadowing. Any client that used these properties will have to be updated to use the new ones. -
The index.d.ts was updated: the StanOptions now extend most ClientOpts from node-nats.
AckHandlerCallback
now properly declares the error argument as possibly undefined.
v0.1.0
This release introduces client-side pings to help keep track of streaming server connections. The feature introduces 2 new connection options:
pingInterval
which controls the number of milliseconds between client pings to the server (default is 5000 milliseconds)maxPingOut
the number of unanswered ping requests before theconnection_lost
event is emitted on the client notifying that the connection from the server was lost.
You can read more about it here: https://github.com/nats-io/node-nats-streaming#connection-status.
Note that this release makes one change to client connection options. By default, NATS connections that are created by the library will set maxReconnectAttempts
to infinite.
v0.0.52
- FIX nats-io/nats.node#244 - (port connection property not being honored)
- Updated dependencies