This is a bugfix and patch release. Make sure to check the breaking changes below.
What's Changed
- Use TimeSpan for duration instead of nanoseconds by @mtmk in #250
- Removed redundant StreamUpdateRequest class by @mtmk in #248
- Include symbols packages for NuGet by @mtmk in #247
- Stream CreateConsumer renamed CreateOrUpdateConsumer by @mtmk in #251
- Increase consume and fetch channel size by @mtmk in #246
- Removed logging object placeholders by @mtmk in #245
- Fixed domain and API prefix priority and format by @mtmk in #253
- Fixed JetStream ACK custom serialization by @mtmk in #255
- JetStream fetch to require maxMsgs parameter by @mtmk in #257
- Releasing 2.0.1 by @mtmk in #256
Full Changelog: v2.0.0...v2.0.1
Breaking Changes
- JetStream configuration models now use
TimeSpan
for all durations - JetStream stream update method now takes in
StreamConfig
- JetStream
CreateConsumerAsync()
method is renamed toCreateOrUpdateConsumerAsync()
to reflect its behaviour - JetStream
FetchAsync()
method now requires an option object and doesn't have a default batch size. Change your calls toFetchAsync(new NatsJSFetchConfig { MaxMsgs = 1000 })
Compile should catch them all and hopefully they're not going to cause too much hassle at this early stage.
Happy coding!
Nuget Packages
NATS.Net
This is the main meta package containing all other packages except serialization.
dotnet add package NATS.Net --version 2.0.1
If you are not deploying Native AOT you can also use ad-hoc JSON serialization:
dotnet add package NATS.Client.Serializers.Json --version 2.0.1
Individual Packages
dotnet add package NATS.Client.Core --version 2.0.1
dotnet add package NATS.Client.Hosting --version 2.0.1
dotnet add package NATS.Client.JetStream --version 2.0.1
dotnet add package NATS.Client.KeyValueStore --version 2.0.1
dotnet add package NATS.Client.ObjectStore --version 2.0.1
dotnet add package NATS.Client.Services --version 2.0.1
dotnet add package NATS.Client.Serializers.Json --version 2.0.1