Skip to content

Releases: nats-io/nats.net

NATS .NET v2.5.12

21 Mar 11:58
1e8ba02
Compare
Choose a tag to compare

Happy to announce our support for NATS Server 2.11 with this release of NATS .NET version 2.5.12.

What's Changed

  • Add priority group options (overflow) (#743) @mtmk

Full Changelog: v2.5.11...v2.5.12

Support for Other NATS Server 2.11 Features

Download from NuGet

You can download the latest version from NuGet.

NATS .NET v2.5.11

12 Mar 22:18
0450443
Compare
Choose a tag to compare

Minor feature release.

What's Changed

  • Add overloads for client extensions by @mtmk in #776

Full Changelog: v2.5.10...v2.5.11

Download from NuGet

You can download the latest version from NuGet.

NATS .NET v2.5.10

12 Mar 15:00
430119f
Compare
Choose a tag to compare

We're happy to announce a new NATS .NET release v2.5.10. This release includes various bug fixes and minor improvements. Notably, a long standing reconnect bug was fixed with #758 thanks to @STARSCrazy's excellent issue report #750. Also big thanks to @uhfath for DI improvements with #757.

What's Changed

  • Fix task tracking by @mtmk in #764
  • Fix reconnect getting stuck by @mtmk in #758
  • Make the parameter-less StreamConfig constructor public by @darkwatchuk in #768
  • Add NatsPayloadTooLargeException class by @aDisplayName in #761
  • Added an ability to specify pool size with a callback using IServiceProvider (fixed&signed) by @uhfath in #757
  • Add Metadata to KV Bucket by @mtmk in #741
  • Add support for Direct Get API with key in subject by @mtmk in #771

New Contributors

Full Changelog: v2.5.9...v2.5.10

Download from NuGet

You can download the latest version from NuGet.

NATS .NET v2.5.9

24 Feb 19:09
58e1646
Compare
Choose a tag to compare

This is a minor bug fix release.

What's Changed

  • Consumer pause docs update by @mtmk in #742
  • Fix ordered consumer creation by @mtmk in #746

Full Changelog: v2.5.8...v2.5.9

Download from NuGet

You can download the latest version from NuGet.

NATS .NET v2.5.8

11 Feb 13:03
0e2e280
Compare
Choose a tag to compare

We are excited to announce the release of NATS .NET v2.5.8! This version introduces several new features to enhance your experience with the NATS .NET client:

Services: Long-awaited functionality for creating services without queue groups has now been implemented.

KV Store: New Try methods have been added to the KV Store, allowing operations without throwing exceptions. These methods are particularly useful in scenarios where exceptions are not truly exceptional but are used to drive application logic, such as in caching applications. This has been a real community effort. Thanks to everyone involved ❤️

What's Changed

Full Changelog: v2.5.7...v2.5.8

Download from NuGet

You can download the latest version from NuGet.

NATS .NET v2.5.7

27 Jan 21:20
7177140
Compare
Choose a tag to compare

We're happy to announce a new NATS .NET release version 2.5.7. This release includes various minor fixes and features. There is also a breaking change in the dependency injection package; please make sure to check the details below.

What's Changed

Breaking Change to NATS.Extensions.Microsoft.DependencyInjection Default Serialization

Since the introduction of INatsClient interface we have made developers and newcomers life easier by providing a sensible default serialization setting that would avoid surprises, and allow ad hoc JSON serialization of custom objects out of the box. With the change Add NatsClient to DI #689 we are now introducing these defaults into the NATS.Extensions.Microsoft.DependencyInjection package. If you are using this package and want to stay with the old defaults you must change the following options:

  • BoundedChannelFullMode option is applied to the subscription channels and the connection default is to DropNewest. The default applied to the NatsClient instances and in turn to the NATS.Extensions.Microsoft.DependencyInjection package is now to wait when the channel is full. You can set it back to the connection default or if you are happy to go with the new default please make sure to test your application.
  • DefaultSerializerRegistry of NATS.Extensions.Microsoft.DependencyInjection package is the main change with this release, allowing applications to automatically serialize ad hoc objects to JSON, while serializing primitives like byte arrays, numbers, dates, and strings to their raw values using the same serializer registry as NatsClient. We are also deprecating AddJsonSerialization methods to avaoid confusion. They are only marked as Obsolete for now, so there is no need to change that with this release.
services.AddNatsClient(nats =>
{
    // DropNewest was the default, now it's set to Wait. To keep
    // the behavior before this PR add the following line:
    nats.WithSubPendingChannelFullMode(BoundedChannelFullMode.DropNewest);

    // If you were not using custom serializer which doesn't derialize ad hoc JSON
    // objects make sure to add the following to keep to original serializer settings:
    nats.WithSerializerRegistry(NatsDefaultSerializerRegistry.Default);
});

For more information, please check the PR Add NatsClient to DI #689. Overall, we don't expect many application would be affected by this change; nevertheless, feel free to ask for clarification in the #dotnet channel on http://slack.nats.io if needed.

New Contributors

Full Changelog: v2.5.6...v2.5.7

NuGet Downloads

https://www.nuget.org/packages/NATS.Net/2.5.7

NATS .NET v2.5.6

13 Jan 18:17
b27eb7c
Compare
Choose a tag to compare

This is a bug fix release of NATS .NET v2.5.6. It fixes a serialization issue that was happening when interacting with JetStream APIs. Impact should be minimal since JetStream API calls would be retried in most cases however you might see warnings in your logs regarding malformed JSON buffers. The bug was introduced in v2.5.5 and you are strongly encourage to upgrade from v2.5.5. See #709 for more information.

What's Changed

Full Changelog: v2.5.5...v2.5.6

Download and Install from NuGet

https://www.nuget.org/packages/NATS.Net

NATS .NET v2.5.5

10 Dec 13:01
3f919dd
Compare
Choose a tag to compare

Happy to announce a new release of NATS .NET v2.5.5. With this release we're introducing exception-free methods especially in operations where logic might've been driven by exceptions like the KV get method which might return a not-found. See #688 for more details.

What's Changed

New Contributors

Full Changelog: v2.5.4...v2.5.5

https://www.nuget.org/packages/NATS.Net

NATS .NET v2.5.3

05 Nov 11:56
04b2dc1
Compare
Choose a tag to compare

This is a minor release of a missing feature.

What's Changed

New Contributors

Full Changelog: v2.5.2...v2.5.3

NuGet

https://www.nuget.org/packages/NATS.Net/2.5.3

NATS .NET v2.5.2

22 Oct 15:27
3462ebf
Compare
Choose a tag to compare

Bugfix release.

What's Changed

  • Add DateTimeOffset converter to handle UTC serialization by @mtmk in #661

Full Changelog: v2.5.1...v2.5.2