Releases: nats-io/nats.net
NATS .NET v2.5.12
Happy to announce our support for NATS Server 2.11 with this release of NATS .NET version 2.5.12.
What's Changed
Full Changelog: v2.5.11...v2.5.12
Support for Other NATS Server 2.11 Features
- Implement Consumers Pause (#432) thanks to @MauriceVanVeen
- KV TTL support is still in preview and can be found in 2.6 preview releases. thanks to @stebet
- You can find the direct batch support in Orbit .NET JetStream Extensions thanks to @Ivandemidov00
Download from NuGet
You can download the latest version from NuGet.
NATS .NET v2.5.11
Minor feature release.
What's Changed
Full Changelog: v2.5.10...v2.5.11
Download from NuGet
You can download the latest version from NuGet.
NATS .NET v2.5.10
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
- @aDisplayName made their first contribution in #761
Full Changelog: v2.5.9...v2.5.10
Download from NuGet
You can download the latest version from NuGet.
NATS .NET v2.5.9
NATS .NET v2.5.8
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
- Added Additional Try Commands to KVStore by @darkwatchuk in #728
- Add service use queue group option by @mtmk in #734
Full Changelog: v2.5.7...v2.5.8
Download from NuGet
You can download the latest version from NuGet.
NATS .NET v2.5.7
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
- Add CreateOrUpdateStoreAsync by @Ivandemidov00 in #707
- Implement Lame Duck Mode Event Handler by @pzajaczkowski in #716
- Add callback to NatsAuthOpts that allows refreshing a Token by @garrett-sutton in #712
- Add NatsClient to DI by @mtmk in #689
- Fix telemetry header readonly error by @mtmk in #719
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 deprecatingAddJsonSerialization
methods to avaoid confusion. They are only marked asObsolete
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
- @garrett-sutton made their first contribution in #712
Full Changelog: v2.5.6...v2.5.7
NuGet Downloads
NATS .NET v2.5.6
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
NATS .NET v2.5.5
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
- Add flags to NatsMsg and JetStream Request by @mtmk in #652
- Add (force) reconnect method by @pzajaczkowski in #684
- Update README.md by @mtmk in #683
- Jetstream CreateOrUpdateStream by @Ivandemidov00 in #692
- Add KV try get by @mtmk in #688
- Add password support for PFX files by @mtmk in #694
- Release 2.5.5 by @mtmk in #695
New Contributors
- @pzajaczkowski made their first contribution in #684
Full Changelog: v2.5.4...v2.5.5
NATS .NET v2.5.3
This is a minor release of a missing feature.
What's Changed
New Contributors
Full Changelog: v2.5.2...v2.5.3