github nats-io/nats.go v1.32.0
Release v1.32.0

latest releases: v1.37.0, v1.36.0, v1.35.0...
10 months ago

Changelog

Added

  • JetStream:
    • ObjectStore is now available as part of jetstream package (#1450)
    • Drain method for ConsumeContext and MessagesContext. Unlike Stop(), in addition to unsubscribing and canceling the existing pull requests it will ensure that all messages already stored in client buffer will be available for processing (#1515)
    • Return account reservations on AccountInfo. NOTE: This is only available since nats-server@v2.10.8 (#1511)
    • Paging Subjects on Stream.Info() response when WithSubjectFilter() option is used (#1517)
  • KeyValue:
    • Compression option on KeyValueConfig (#1451)
    • ListKeys method for efficiently iterating over all keys in KV bucket (#1490)
    • ResumeFromRevision option for KV watcher. Thanks to @shadow3x3x3 for the contribution (#1489)

Fixed

  • Legacy JetStream:
    • Fixed and issue where ordered consumer was recreated with different name format than the original (#1449)
  • JetStream:
    • Fixed an issue where WithRetryAttempts() and WithRetryWait() options were ignored in PublishAsync() (#1464)
    • Fixed invalid PullExpiry validation in Consumer.Messages() options (#1468)
    • Fixed race condition on Stop() method for ConsumeContext and MessagesContext . Thanks to
      @evanofslack for the contribution (#1454)
    • Fixed issues with Next() method for ordered consumers (#1471, #1472)
    • Fixed ignoring a private inbox prefix in JetStream.Publish(). Thanks to @oderwat for the contribution (#1474)
    • Fixed invalid PAF id for PublishAsync() (#1476)
    • Fixed race condition when getting pull subscriptions in ordered consumer (#1497)
    • Fixed several issues in checkPending logic (#1516)
  • KeyValue:
    • Removed KV_ prefix when listing KeyValue store names (#1487)
  • Service API:
    • Fixed race condition when adding endpoints concurrently. Thanks to @actatum for the contribution (#1484)

Improved

  • Bumped nkeys and compress dependencies to latest versions (#1458, #1514)
  • Fixed broken link in jetstream/README.md. Thanks to @sebbbastien for the contribution (#1448)
  • Improvements for code quality across the library. Thanks to @sashamelentyev for the contribution (#1498, #1500)
  • Legacy JetStream:
    • Library now attempts to delete ordered consumer before creating new one to avoid piling up consumers on reset (#1449)
  • Service API:
    • Added compatibility tests for Service API (#1443)

Complete Changes

v1.31.0...v1.32.0

Don't miss a new nats.go release

NewReleases is sending notifications on new releases.