What's Changed
This release updates the nats-base-client (NBC) to v1.5.0
Changes to NBC library
These changes are shared by all NATS.io supported JavaScript clients.
- [FEAT] JetStream APIs for JavaScript are no longer preview. Note that Materialized views APIs are marked as beta and subject to change. by @aricart in nats-io/nats.deno#234
- [FEAT] JetStreamManager API added
consumers.update()
. TheConsumerUpdateConfig
provides some introspection into fields that can be modified. Modifying a consumer is only supported on servers 2.6.4 or better. @aricart in nats-io/nats.deno#229 - [CHANGE] JetStreamManager API
streams.update()
now requires the name of the stream. TheStreamUpdateConfig
provides some introspection into fields that can be modified. The previous API is shimmed, however, the shim will be removed on a future release. by @aricart in nats-io/nats.deno#230 and nats-io/nats.deno#235 - [FIX] Fixed an issue where a fast path for text encoding/decoding of NATS protocol messages (non-payload) didn't handle UTF code-points (ie when using username/password that contained these characters). All encoding decoding of protocol messages now uses TextEncoder/Decoder. by @aricart in nats-io/nats.deno#238
- [CHANGE] [BREAKING] [BETA] KV
keys()
now returns an iterator rather than a list of keys. If using the beta API you must change your code as no shim is possible by @aricart in nats-io/nats.deno#240 - [FIX] Documentation typos. by @MrMYHuang in nats-io/nats.deno#244
- [FEAT] added support for custom reviver in JSONCodec by @tommyo in nats-io/nats.deno#242
- [FEAT] added support for KV prefix handling by @aricart in nats-io/nats.deno#239
Other changes specific to NATS.js
- [DOCS]: corrected markdown markup by @jonaslagoni in #467
- [README] Changed
require
to useimport
for code examples by @Rauno56 in #471
New Contributors
- @jonaslagoni made their first contribution in #467
- @Rauno56 made their first contribution in #471
Full Changelog: v2.4.0...v2.5.0