What's Changed
This release increases stability and adds support for a number of exciting nats-server 2.12 features
JetStream
- feat: Batch publishing support. JetStream now allows you to publish a number of messages atomically in a batch. #322
- feat: add
allow_msg_counter
to stream configurations. This features enables the use of streams as a counter. For an incubating API see orbit counters #317 - feat: add Raft group and traffic account metadata to cluster types #319
- feat: Support for message scheduling by setting the streams
allow_msg_schedules
and usingScheduleOptions
in theJetStreamPublishOptions
. #321 - feat: Added support for
Prioritized
policy for pull consumers #323 - feat(jetstream): Add support to configure
PersistMode
stream configurations #327 - feat: It is now possible to remove stream
mirrors
via update API #320 - fix: NATS server 2.12 changed how pending messages were reported when accessed via the Direct API. #314
Key-Value Store
- feat(kv): introduce key and payload codecs for customizable key-value encoding and decoding #305
- feat(kv): TTL support entries #306
Object Store
- fix:replicas api option was leaking into object store configuration where the only supported value, which was set correctly, is num_replicas. Servers 2.12+ which validate configurations would reject the operation if this value was set. #315
Node Transport
- fix: changed DNS resolution to use dns.lookup() instead of dns.resolveX() as this allows overrides such as /etc/hosts to work properly #310
- fix: ensure proper cleanup of socket in discard() method. In some container setups under Windows. #309
Full Changelog: v3.1.0...v3.2.0