Skip to content

Releases: nats-io/stan.js

v0.3.2

12 May 14:27
Compare
Choose a tag to compare

v0.3.0

24 Mar 15:55
c68e133
Compare
Choose a tag to compare
  • 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

16 Jul 15:27
a7b43c4
Compare
Choose a tag to compare

[FIX] Changed protobuf generation to commonjs_strict removing the global variable global conflict for applications that use other protobuf-based libraries.

v0.2.4

16 Jul 15:26
78a179a
Compare
Choose a tag to compare

[NEW] subscriptions now emit errors/timeout event notifications
[NEW] tokenhandler options are now forwarded to the underlying nats connection options.

v0.2.2

29 Mar 15:35
Compare
Choose a tag to compare

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 to const/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

21 Mar 19:37
Compare
Choose a tag to compare
  • [CHANGE] The properties maxPingOut and pingInterval were renamed to stanMaxPingOut and stanPingInterval 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

20 Mar 22:22
00b7fd5
Compare
Choose a tag to compare

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 the connection_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

15 Feb 18:19
9b45bfd
Compare
Choose a tag to compare

minor fixes

04 Nov 16:32
Compare
Choose a tag to compare
  • Added queue group to typescript subscribe definitions #79
  • Fixed ack subject format #82

v.0.0.50

27 Sep 16:27
c7030e2
Compare
Choose a tag to compare

[FIX] #71 Event for disconnect was not mapped
[FIX] #75 Fixes:

  • package.json constraints allow for nodejs 10 and better
  • small fixes to client close() some cases where events were emitted, didn't return, running into NPEs.