Bump NATS.Client.Core and NATS.Client.JetStream#416
Open
dependabot[bot] wants to merge 1 commit into
Open
Conversation
Bumps NATS.Client.Core from 2.7.2 to 2.8.2 Bumps NATS.Client.JetStream from 2.7.2 to 2.8.2 --- updated-dependencies: - dependency-name: NATS.Client.Core dependency-version: 2.8.2 dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: NATS.Client.JetStream dependency-version: 2.8.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated NATS.Client.Core from 2.7.2 to 2.8.2.
Release notes
Sourced from NATS.Client.Core's releases.
2.8.2
Patch release on the 2.8 line. Fixes ordered push consumer subscription teardown. Thanks to @haoguanjun for the fix.
What's Changed
Full Changelog: nats-io/nats.net@v2.8.1...v2.8.2
2.8.1
Patch release on the 2.8 line. Bug fixes across JetStream, KV, subscriptions, and connection logging, plus a small Services helper for handling error responses on the requester side.
What's Changed
New Services Extensions
Detect service errors on responses (#1152)
Services signal failures using
Nats-Service-Error/Nats-Service-Error-Coderesponse headers. The requester side previously had to read those headers by hand. New extensions onNatsMsg<T>(in theNATS.Netnamespace) cover the common patterns:Full Changelog: nats-io/nats.net@v2.8.0...v2.8.1
Download from NuGet at https://www.nuget.org/packages/NATS.Net/2.8.1
2.8.0
Happy to announce the NATS .NET 2.8.0 stable release of the 2.8 line. It picks up the NATS Server v2.14 client surface (consumer reset,
$JS.FC.*flow-control replies,Consumerfield on stream source/mirror,AllowBatchPublishon stream config), ships two breaking changes that landed in the preview cycle, and fixes in-flight message loss on consumer/connection dispose behind an opt-in drain.A big thank you to all NATS contributors and community members who helped make this release possible. <3
NATS Server v2.14 Features
ResetConsumerAsynconINatsJSContextandINatsJSConsumer(ADR-60), to reset a pinned consumer's state (#1126).$JS.FC.*flow-control replies are parsed by the JS metadata layer, for streams that publish with thejs_ack_fc_v2flag (#1127).Consumerfield onStreamSourceand stream mirror config, for pre-created mirror/source consumers (#1128).AllowBatchPublishonStreamConfig(JSONallow_batched), required by streams that opt into fast-ingest batch publishing per ADR-50 (#1120). The fast-ingest publisher itself lives in orbit.net alongside the existing atomic batch publisher.Breaking Changes
Subject Validation On By Default (#1093)
Subjects containing whitespace (space, tab, CR, LF) now throw
NatsException. This closes a class of CRLF injection issues from malformed subjects.Opt out if you rely on legacy subjects that contain whitespace:
NKeyPair Removed From NATS.Client.Core (#1101)
NATS.Client.Core.NKeysandNKeyPairare removed. Signing now goes through theNATS.NKeyspackage, which lets the nkey/Ed25519 code be versioned independently of the client.For typical users this is transparent: keep using
NatsAuthOpts.NKeyFile,CredsFile,Jwt+Seed, orAuthCredCallbackand the client wires up the new signer automatically.Only direct callers of
NATS.Client.Core.NKeyPairneed to switch:Other Notable Changes
NatsConnectionsurfaces server-side errors to client code.... (truncated)
2.8.0-preview.3
Third preview of NATS .NET 2.8 completes the nats-server v2.14 feature set for the client. See PRs below for specifics.
This release also includes a fix for in-flight message loss on consumer/connection dispose. The new drain path is opt-in, so defaults preserve current behavior. The dispose ordering refactor touches a hot path though, so please give your workloads a once-over and report anything that looks off.
Opt in:
Changes:
Full Changelog: nats-io/nats.net@v2.8.0-preview.2...v2.8.0-preview.3
2.8.0-preview.2
Second preview of NATS .NET 2.8 ships nats-server v2.14 support: streams that opt into fast-ingest batch publishing per ADR-50 can now set the new
AllowBatchPublishfield onStreamConfig(the fast-ingest publisher itself will live in orbit.net alongside the existing atomic batch publisher). Also picks up a Pin ID handling fix for duplicate status headers, the new flat README intro, and assorted CI and test flake fixes.Changes:
Full Changelog: nats-io/nats.net@v2.8.0-preview.1...v2.8.0-preview.2
2.8.0-preview.1
Happy to ship the first preview of NATS .NET 2.8. The theme of this release is tightening the protocol layer and shrinking the core API surface, so this preview carries two breaking changes. Please try it and report anything odd before we cut the stable.
Package on NuGet: https://www.nuget.org/packages/NATS.Net
Breaking changes:
SkipSubjectValidation = trueonNatsOpts.NATS.Client.Core.NKeysandNKeyPairare removed. Signing now goes through theNATS.NKeyspackage (https://www.nuget.org/packages/NATS.NKeys), which lets the nkey/Ed25519 code be versioned independently of the client.Also includes protocol size checks (64MB incoming payload cap, in line with nats.js), KV watcher cancellation fix, credential loading state reset on failure, and Pin ID handling improvements.
Thanks to the NATS community who contributed PRs, reviews, and bug reports on this one ❤️
Full Changelog: nats-io/nats.net@v2.7.3...v2.8.0-preview.1
2.7.3
Announcing a new version of NATS .NET client library covering various fixes and a security update on one dependency for NETStandard targets (#1089) even though the vulnerable API is not used by our library.
A big thank you to all NATS contributors and community members who helped make this release possible ❤️
Breaking Changes
NakAsync Signature Change (#1081)
The
TimeSpan delayparameter has been removed fromINatsJSMsg<T>.NakAsync(). The delay must now be passed viaAckOpts.NakDelay.Before (v2.7.2):
After (v2.7.3):
Note: because we also have an extension method, recompiling your project is enough.
AckTerminateAsync TermWithReason (#1048, #1081)
AckTerminateAsyncnow supports an optional termination reason. A new overload and a newTerminateReasonproperty onAckOptshave been added toINatsJSMsg<T>. Implementors of this interface must add the new method.Requires NATS Server 2.10.4+.
PinnedClient Validation (#1063)
Calling
NextAsync(),FetchAsync(), orFetchNoWaitAsync()on a consumer withPriorityPolicy.PinnedClientnow throwsNatsJSException. UseConsumeAsync()instead.Full Changelog: nats-io/nats.net@v2.8.0...v2.8.1
Download from NuGet at https://www.nuget.org/packages/NATS.Net/2.8.1
2.8.0
Happy to announce the NATS .NET 2.8.0 stable release of the 2.8 line. It picks up the NATS Server v2.14 client surface (consumer reset,
$JS.FC.*flow-control replies,Consumerfield on stream source/mirror,AllowBatchPublishon stream config), ships two breaking changes that landed in the preview cycle, and fixes in-flight message loss on consumer/connection dispose behind an opt-in drain.A big thank you to all NATS contributors and community members who helped make this release possible. <3
NATS Server v2.14 Features
ResetConsumerAsynconINatsJSContextandINatsJSConsumer(ADR-60), to reset a pinned consumer's state (#1126).$JS.FC.*flow-control replies are parsed by the JS metadata layer, for streams that publish with thejs_ack_fc_v2flag (#1127).Consumerfield onStreamSourceand stream mirror config, for pre-created mirror/source consumers (#1128).AllowBatchPublishonStreamConfig(JSONallow_batched), required by streams that opt into fast-ingest batch publishing per ADR-50 (#1120). The fast-ingest publisher itself lives in orbit.net alongside the existing atomic batch publisher.Breaking Changes
Subject Validation On By Default (#1093)
Subjects containing whitespace (space, tab, CR, LF) now throw
NatsException. This closes a class of CRLF injection issues from malformed subjects.Opt out if you rely on legacy subjects that contain whitespace:
NKeyPair Removed From NATS.Client.Core (#1101)
NATS.Client.Core.NKeysandNKeyPairare removed. Signing now goes through theNATS.NKeyspackage, which lets the nkey/Ed25519 code be versioned independently of the client.For typical users this is transparent: keep using
NatsAuthOpts.NKeyFile,CredsFile,Jwt+Seed, orAuthCredCallbackand the client wires up the new signer automatically.Only direct callers of
NATS.Client.Core.NKeyPairneed to switch:Other Notable Changes
NatsConnectionsurfaces server-side errors to client code.... (truncated)
2.8.0-preview.3
Third preview of NATS .NET 2.8 completes the nats-server v2.14 feature set for the client. See PRs below for specifics.
This release also includes a fix for in-flight message loss on consumer/connection dispose. The new drain path is opt-in, so defaults preserve current behavior. The dispose ordering refactor touches a hot path though, so please give your workloads a once-over and report anything that looks off.
Opt in:
Changes:
Full Changelog: nats-io/nats.net@v2.8.0-preview.2...v2.8.0-preview.3
2.8.0-preview.2
Second preview of NATS .NET 2.8 ships nats-server v2.14 support: streams that opt into fast-ingest batch publishing per ADR-50 can now set the new
AllowBatchPublishfield onStreamConfig(the fast-ingest publisher itself will live in orbit.net alongside the existing atomic batch publisher). Also picks up a Pin ID handling fix for duplicate status headers, the new flat README intro, and assorted CI and test flake fixes.Changes:
Full Changelog: nats-io/nats.net@v2.8.0-preview.1...v2.8.0-preview.2
2.8.0-preview.1
Happy to ship the first preview of NATS .NET 2.8. The theme of this release is tightening the protocol layer and shrinking the core API surface, so this preview carries two breaking changes. Please try it and report anything odd before we cut the stable.
Package on NuGet: https://www.nuget.org/packages/NATS.Net
Breaking changes:
SkipSubjectValidation = trueonNatsOpts.NATS.Client.Core.NKeysandNKeyPairare removed. Signing now goes through theNATS.NKeyspackage (https://www.nuget.org/packages/NATS.NKeys), which lets the nkey/Ed25519 code be versioned independently of the client.Also includes protocol size checks (64MB incoming payload cap, in line with nats.js), KV watcher cancellation fix, credential loading state reset on failure, and Pin ID handling improvements.
Thanks to the NATS community who contributed PRs, reviews, and bug reports on this one ❤️
Full Changelog: nats-io/nats.net@v2.7.3...v2.8.0-preview.1
2.7.3
Announcing a new version of NATS .NET client library covering various fixes and a security update on one dependency for NETStandard targets (#1089) even though the vulnerable API is not used by our library.
A big thank you to all NATS contributors and community members who helped make this release possible ❤️
Breaking Changes
NakAsync Signature Change (#1081)
The
TimeSpan delayparameter has been removed fromINatsJSMsg<T>.NakAsync(). The delay must now be passed viaAckOpts.NakDelay.Before (v2.7.2):
After (v2.7.3):
Note: because we also have an extension method, recompiling your project is enough.
AckTerminateAsync TermWithReason (#1048, #1081)
AckTerminateAsyncnow supports an optional termination reason. A new overload and a newTerminateReasonproperty onAckOptshave been added toINatsJSMsg<T>. Implementors of this interface must add the new method.Requires NATS Server 2.10.4+.
PinnedClient Validation (#1063)
Calling
NextAsync(),FetchAsync(), orFetchNoWaitAsync()on a consumer withPriorityPolicy.PinnedClientnow throwsNatsJSException. UseConsumeAsync()instead.