fix(deps): update dependency nats to v2 #1195
Open
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.
This PR contains the following updates:
^1.4.12
->^1.4.12 || ^2.0.0
1.4.12
->2.29.2
Release Notes
nats-io/nats.node (nats)
v2.29.2
Compare Source
What's Changed
Important
This release bump NBC to 1.29.2 which includes a breaking change for object store which host objects 512MB and larger. Before updating, please check the release notes for information on how to migrate.
Full Changelog: nats-io/nats.node@v2.29.1...v2.29.2
v2.29.1
Compare Source
What's Changed
This release bumps nbc to 1.29.1 which fixes direct-get apis ignoring timeout options.
Full Changelog: nats-io/nats.node@v2.29.0...v2.29.1
v2.29.0
Compare Source
What's Changed
This release bumps nbc to 1.29.0 with has a few minor fixes
New Contributors
Full Changelog: nats-io/nats.node@v2.28.2...v2.29.0
v2.28.2
Compare Source
What's Changed
This release bumps nbc to 1.28.2 which fixes an issue with initializing KV stores that use sources.
Full Changelog: nats-io/nats.js@v2.28.1...v2.28.2
v2.28.1
Compare Source
What's Changed
This release updates NBC to 1.28.1. Please see the preceding link for more information.
New Contributors
Full Changelog: nats-io/nats.js@v2.28.0...v2.28.1
v2.28.0
Compare Source
What's Changed
This release bumps [NBC to 1.28.0], which fixes a subscription leak in the
request
andrequestMany
APIs with thenoMux
request option set totrue
.Full Changelog: nats-io/nats.js@v2.27.0...v2.28.0
v2.27.0
Compare Source
What's Changed
This release bumps NBC to 1.27.0 with some minor fixes to NATS core and jetstream.
Full Changelog: nats-io/nats.js@v2.26.0...v2.27.0
v2.26.0
Compare Source
What's Changed
This release updates NBC to 1.26.0, which has an important improvement for ordered pull consumers.
Full Changelog: nats-io/nats.js@v2.25.0...v2.26.0
v2.25.0
Compare Source
What's Changed
This release bumps NBC to v1.25.0, adding a small enhancement to JetStream ordered consumers.
Full Changelog: nats-io/nats.js@v2.24.0...v2.25.0
v2.24.0
Compare Source
What's Changed
This release updates NBC to v1.24.0 which has important fixes for legacy order consumers and KV/ObjectStore watchers.
Full Changelog: nats-io/nats.js@v2.23.0...v2.24.0
v2.23.0
Compare Source
What's Changed
This release has important updates for KV watchers. Please refer to the NBC release notes.
Full Changelog: nats-io/nats.js@v2.22.0...v2.23.0
v2.22.0
Compare Source
What's Changed
This release adds the connection option
handshakeFirst
which enables the client to connect with a nats-server that has been configured with ahandshake_first
tis option set to true. This release also updates nats-base-client to 1.22.0, which has one important fix toackAck()
. Please see the release notes herehandshakeFirst
option on node client by @aricart in https://github.com/nats-io/nats.js/pull/615handshakeFirst
to readme by @aricart in https://github.com/nats-io/nats.js/pull/616Full Changelog: nats-io/nats.js@v2.21.0...v2.22.0
v2.21.0
Compare Source
What's Changed
This release bumps the nats-base-client to v1.21.0 which introduces small changes and enhancements to the "new consumer" API. If you are using JetStream, please refer to the NBC release notes.
Full Changelog: nats-io/nats.js@v2.20.0...v2.21.0
v2.20.0
Compare Source
What's Changed
Full Changelog: nats-io/nats.js@v2.19.0...v2.20.0
v2.19.0
Compare Source
What's Changed
This release updates nbc to 1.19.0 which adds additional resilience to JetStream consumers.
Full Changelog: nats-io/nats.js@v2.18.0...v2.19.0
v2.18.0
Compare Source
What's Changed
This release updates NBC to v1.18.0 further improving simplified consumers and performance.
Please refer to the above release notes for additional information.
Other
noAsyncTraces
by @aricart in https://github.com/nats-io/nats.js/pull/602Full Changelog: nats-io/nats.js@v2.17.0...v2.18.0
v2.17.0
Compare Source
What's Changed
Many new features and fixes with NBC v1.17.0, including removal of preview notice for ObjectStore APIs and support for new features introduced with nats-server 2.10.0. For a complete list, please visit the release notes.
New Contributors
Full Changelog: nats-io/nats.js@v2.16.0...v2.17.0
v2.16.0
Compare Source
What's Changed
There are many new features, fixes, and one breaking change with NBC v1.16.0. Please read the release notes before updating if you are using the prerelease ObjectStore APIs.
Node JS Specific Changes
This release of the nats.js library benefits hugely from a small change in the nbc library. The publish and general latency from when the client performs an operation to when the socket is written has been greatly reduced. See https://github.com/nats-io/nats.deno/pull/566.
Full Changelog: nats-io/nats.js@v2.15.1...v2.16.0
v2.15.1
Compare Source
What's Changed
This release bumps NBC to v1.15.1 which has an important fix to the new JetStream APIs. Read about it here.
Full Changelog: nats-io/nats.js@v2.15.0...v2.15.1
v2.15.0
Compare Source
What's Changed
Client has been upgraded to use nats-base-library v1.15.0
Do note that this release has some small changes the service framework monitoring API in the data that is reported, which may be breaking if you wrote a client that is inspecting such information. Please refer to the above information for more details.
Full Changelog: nats-io/nats.js@v2.14.0...v2.15.0
v2.14.0
Compare Source
What's Changed
This release adds a new API for processing messages using JetStream and provides many fixes and enhancements.
For a complete list of changes, please see nbc release notes
[DOC] Added pointers to the location of the nats-base-client and related documentation to the top of the file by @aricart in https://github.com/nats-io/nats.js/pull/565
[BUMP] NBC to v1.14.0 by @aricart in https://github.com/nats-io/nats.js/pull/571
Full Changelog: nats-io/nats.js@v2.13.1...v2.14.0
v2.13.1
Compare Source
What's Changed
Full Changelog: nats-io/nats.js@v2.13.0...v2.13.1
v2.13.0
Compare Source
What's Changed
Important and breaking change change in nbc v1.13.0 for those using the pre-release version of ObjectStore functionality. Please read the release notes if using ObjectStore before upgrading.
Full Changelog: nats-io/nats.js@v2.12.1...v2.13.0
v2.12.1
Compare Source
What's Changed
NBC 1.12.1 enhances KV create entry to retry the operation and update the value if the previous value is a deleted key.
Node JS specific
The objectstore API has requirements on ES ReadableStream and ES crypto. Previous releases of object store functionality relied on web-streams-polifill/ponyfill. This created issues for other downstream consumers. Starting with this release object store on node 16 or better will use built-in stream/web instead. Note that objectstore is not supported in node versions less than 16.
Full Changelog: nats-io/nats.js@v2.12.0...v2.12.1
v2.12.0
Compare Source
What's Changed
Full Changelog: nats-io/nats.js@v2.11.0...v2.12.0
v2.11.0
Compare Source
What's Changed
This release updates nbc to 1.11.0, bringing multiple enhancements to the services api beta. For more information see the release notes.
Full Changelog: nats-io/nats.js@v2.10.3...v2.11.0
v2.10.3
Compare Source
What's Changed
Full Changelog: nats-io/nats.js@v2.10.2...v2.10.3
v2.10.2
Compare Source
What's Changed
Full Changelog: nats-io/nats.js@v2.10.1...v2.10.2
v2.10.1
Compare Source
What's Changed
Full Changelog: nats-io/nats.js@v2.10.0...v2.10.1
v2.10.0
Compare Source
What's Changed
The most notable change is the introduction of the NATS service API which makes it even easier to implement services using NATS.
[BUMP] See nbc to 1.10.0 for a complete list of enhancements and fixes.
[DOC] README.md: fix javascript by @jordigh in https://github.com/nats-io/nats.js/pull/535 and https://github.com/nats-io/nats.js/pull/529
New Contributors
Full Changelog: nats-io/nats.js@v2.9.2...v2.10.0
v2.9.2
Compare Source
What's Changed
[BUMP] nbc to 1.9.3
Full Changelog: nats-io/nats.js@v2.9.1...v2.9.2
v2.9.1
Compare Source
What's Changed
[BUMP] nbc to 1.9.2 - this release includes fixes for JetStream fetch(), and correctly maps errors related to exceptions thrown while doing initial authentication.
v2.9.0
Compare Source
What's Changed
[UPDATE] nbc updated to 1.9.0 - this release contains many enhancements and fixes to JetStream and KV and ObjectStore. See the linked description for more information.
NATS.js Specific Changes
Full Changelog: nats-io/nats.js@v2.8.0...v2.9.0
v2.8.0
Compare Source
What's Changed
nats.js changes
web-streams-polyfill
to support ReadableStreams. Note that objectstore also requires crypto.subtle, which must be client shimmed on node 14. Newer node runtimes provide the shim automatically as part of the built-incrypto
module.Full Changelog: nats-io/nats.js@v2.7.1...v2.8.0
v2.7.1
Compare Source
What's Changed
v2.7.0
Compare Source
What's Changed
[UPDATE] nbc (nats base client library for JavaScript) to 1.7.0 - there are numerous enhancements and fixes to NATS core, JetStream, and KV. For a complete list of descriptions, please see https://github.com/nats-io/nats.deno/releases/tag/v1.7.0 @aricart in https://github.com/nats-io/nats.js/pull/503
NATS.JS Specific
Full Changelog: nats-io/nats.js@v2.6.1...v2.7.0
v2.6.1
Compare Source
What's Changed
[UPDATE] nbc to v1.6.1 - for more information see the release notes
[FIX] This release of nats.js adds compatibility with node.js v17.5.0, see release notes above. #484
Full Changelog: nats-io/nats.js@v2.6.0...v2.6.1
v2.6.0
Compare Source
What's Changed
Full Changelog: nats-io/nats.js@v2.5.0...v2.6.0
v2.5.0
Compare Source
What's Changed
This release updates the nats-base-client (NBC) to v1.5.0
Changes to NBC library
These changes are shared by all NATS.io supported JavaScript clients.
consumers.update()
. TheConsumerUpdateConfig
provides some introspection into fields that can be modified. Modifying a consumer is only supported on servers 2.6.4 or better. @aricart in https://github.com/nats-io/nats.deno/pull/229streams.update()
now requires the name of the stream. TheStreamUpdateConfig
provides some introspection into fields that can be modified. The previous API is shimmed, however, the shim will be removed on a future release. by @aricart in https://github.com/nats-io/nats.deno/pull/230 and https://github.com/nats-io/nats.deno/pull/235keys()
now returns an iterator rather than a list of keys. If using the beta API you must change your code as no shim is possible by @aricart in https://github.com/nats-io/nats.deno/pull/240Other changes specific to NATS.js
require
to useimport
for code examples by @Rauno56 in https://github.com/nats-io/nats.js/pull/471New Contributors
Full Changelog: nats-io/nats.js@v2.4.0...v2.5.0
v2.4.0
Compare Source
This release updates NBC to 1.4.0, there are a couple of small fixes and enhancements. Please see https://github.com/nats-io/nats.deno/releases/tag/v1.4.0 for a complete list of changes.
What's Changed
[UPDATE] nbc to 1.4.0
Full Changelog: nats-io/nats.js@v2.3.0...v2.4.0
v2.3.0
Compare Source
What's Changed
extractProtocolMessage
https://github.com/nats-io/nats.js/pull/456New Contributors
Full Changelog: nats-io/nats.js@v2.2.0...v2.3.0
v2.2.0
Compare Source
This release contains a set of changes that are API-breaking for JetStream. Since the JetStream APIs on the JavaScript clients are Preview, only the minor version of the client has been bumped. Because of these changes, you should carefully read the Breaking Changes section to ensure you are not affected.
BREAKING CHANGES
JetStream Push Consumers In Queue Groups
The Push Consumer Queue feature has changed. A new nats-server (2.4.0) has been released that modifies how this feature works.
The new JavaScript clients have been modified to work with the new server and will fail to work with an existing server using push consumers with queue groups.
Previously it was possible to create a push consumer and properly get it working in a queue group with a regular
NatsConnection#subscribe
orNatsConnection#jetstream()#subscribe()
if all queue subscriptions used the same queue name and no plain (non-queue) subscriptions were used.If the mix of subscriptions and queues referenced the same consumer but provided different queue names or no queue names, the delivery of messages was incorrect and could create conditions where some messages were seen in duplicate or have unexpected side effects.
The new nats-server changes will make an old consumer configuration with a queue group a noop - the server will not send messages to the client. To enable a queue group to work on a consumer:
deliver_group
matching the queue group name.The NATS client for JavaScript on 2.2.0 and beyond, enforces the above rules, so an Error is thrown from
NatsConnection#jetstream().subscribe()
for configurations that try to use the queue group incorrectly.Because an old server will not report
deliver_group
for the consumer, anyjetstream#subscribe()
that attempts to specify a queue group will fail the validation.If you are creating your own NATS subscription to handle the consumer, and have an old server, you may continue to do that until you upgrade the server, at which point the nats-server will stop delivering messages to your client. Please ensure you don't use the consumer from different queue groups in the meantime.
JetStreamManager#streams#getMessage(number)
This API has been removed (it was deprecated and printing console messages). To retrieve a message by its sequence,
replace with
JetStreamManager#streams#getMessage({seq: number})
.JetStream
SequencePair
was renamedSequenceInfo
This matches changes in the server. These types are referenced from
ConsumerInfo
.Other Changes
[FIX] #441 - when Istio is booting, it is possible for the socket to close, triggering a catch(err) where the error is undefined - this fix simply aliases that as a connection refused error.
[FEAT] Added
DeliveryPolicy#LastPerSubject
which allows a consumer to get the last message for each subject in a stream.[FEAT]
PubAck
now reports adomain
field representing the JetStream domain if set or returning an empty string. This feature requires a newer server.[FIX]
ConsumerConfig
now have fieldsdeliver_group
,description
.v2.1.0
Compare Source
This release sports a number of updates enhancing the JavaScript JetStream functionality.
For a complete list of changes, see https://github.com/nats-io/nats.deno/releases/tag/v1.1.0.
v2.0.8
Compare Source
consumerOpts()
to take an optionalConsumerConfig
enabling the ability to specify any consumer option #433v2.0.6
Compare Source
[update] updated nbc to version 1.0.6, there are small number of JetStream and header issues addressed in the base library
v2.0.4
Compare Source
v2.0.2
Compare Source
cluster
to possible properties inServerInfo
max_age
- inStreamConfig
marked as Nanosheaders
inJetStreamPublishOptions
v2.0.1
Compare Source
[update] updated to nats-base-client v1.0.1, this release contains an important fix regarding the munging of reply subjects on messages that were received during different socket reads. This would cause clients to timeout when expecting a response.
v2.0.0
Compare Source
NATS 2.0.0 Release
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.