Releases: nats-io/nats.deno
v1.0.0-6
v1.0.0-5
#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 arespond
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
- [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
v1.0.0-2
v1.0.0-1
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
- [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
v0.1.1-22
v0.1.1-21
[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
.