Skip to content

Releases: nats-io/nats.deno

v1.0.0-6

17 Sep 23:08
Compare
Choose a tag to compare

v1.0.0-6

  • Bumped std to 0.69.0
  • Bumped CI to deno 1.4
  • Fixed import/export for types to pacify deno's tsc compiler
  • Fixed Msg.getPending() to provide correct count of messages still in flight.
  • Bumped nkeys.js dependencies

v1.0.0-5

11 Sep 16:15
0f6bd78
Compare
Choose a tag to compare

#v1.0.0-5

  • [BREAKING] this release changes the signature of msg.respond from (payload?: Uint8Array, headers?: MsgHdrs): boolean to (payload?: Uint8Array, opts?: PublishOptions): boolean. If you are responding with only headers, you'll need to modify your code to {headers: msgHeaders}. The change is required to allow a respond specify a reply subject - APIs such as JetStream make use of this feature.

  • [chore] Updated deno std to [email protected]

  • [chore] Updated CI to use deno 1.3.3

  • [chore] Replaced unused promises in tests to have a then() to pacify IDE warnings

v1.0.0-4

04 Sep 17:48
Compare
Choose a tag to compare
  • [feat] subscriptions that specify a callback now throw an error if an iterator is attached to it.
  • [fix] callback subscriptions, now correctly report pending and processed messages.
  • [feat] connections have the property info which provides the current server info

v1.0.0-3

02 Sep 22:39
794ba41
Compare
Choose a tag to compare
  • updated version of nkeys.js
  • added an optimization to the protocol parser that prefers uses of buffer.slices() over subarray() when running in Node. As Nodejs transposes the functionality of slice and subarray.

v1.0.0-2

27 Aug 20:36
0692345
Compare
Choose a tag to compare

#v1.0.0-2

Greatly improved performance

  • reduced number of awaits when iterators have data available
  • hand-rolled parseInt/encoder improving protocol performance
  • deferred extra array concatenations, until a drain happens on the pending buffer

v1.0.0-1

24 Aug 21:05
169b0d8
Compare
Choose a tag to compare

v1.0.0-1

  • [chore] cleaned up where dependencies were loaded and re-exported
  • [compact] added compiler directives to ignore timers as in node, timers are not numbers
  • [fix] fixed samples that had spurious encodes/decodes
  • [fix] close promise resolution in thenable caused a flag to be set too late, creating redial issues in node.
  • [feat] added bench logic to simplify any kind of bench tool in a different runtime
  • [fix] added additional tests, missing copyrights

v0.1.1-31

12 Aug 19:33
b4bccd6
Compare
Choose a tag to compare
  • [feat] added support no noMux subscriptions - option is added to a specific subscription.
  • [feat] implemented nats.go parser in typescript, this reduces the number of allocations and is generally much more efficient than the previous REGEX based parser.
  • [feat] implemented max_payload checks for outbound messages, if a client tries to publish a message that is larger than the server will allow, the publish/request/respond operation will throw an error.
  • [feat] message properties such as subject/reply are converted to strings only if they are accessed, thus reducing allocations and work that is not required, and thus improving subscriber performance.
  • [feat] implemented the ability for the deno client to specify a CA certificate by providing the tls.caFile option.

v0.1.1-23

06 Aug 19:58
c9b1426
Compare
Choose a tag to compare

[BREAKING] removes url connection property - use servers which now supports a string or array of strings.

v0.1.1-22

06 Aug 16:25
6ef42d3
Compare
Choose a tag to compare
  • updated dependency for nkeys.js

v0.1.1-21

04 Aug 15:51
8cad22b
Compare
Choose a tag to compare

[FEAT] added Codec with implementations for StringCodec and JSONCodec, which take String/Objects and encode/decode to Uint8Arrays. This mechanism enables user code to exercise the encoding/decoding of payloads and indirectly allows a single client to work with Uint8Arrays, JSON or string payloads. This resolves nats-io/nats-clients#1.

[BREAKING] nats client removes the Payload option, message payloads are always Uint8Array.