fix(deps): update dependency etcd3 to v1.1.2 #3142
Merged
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.1.0
->1.1.2
Release Notes
microsoft/etcd3 (etcd3)
v1.1.2
Compare Source
1.1.1 2023-07-28
1.1.0 2020-11-28
feat: implement elections
Implementation of elections, as seen in etcd's Go client. Elections are most commonly used if you need a single server in charge of a certain task; you run an election on every server where your program is running, and among them they will choose one "leader".
There are two main entrypoints: campaigning via Election.campaign, and observing the leader via Election.observe.
Thanks to @yujuiting for their help with the initial implementation. (see #66, #85).
fix: deprecation:
watcherBuilder.ignore()
was available for "ignoring" types of events, but it actually did the opposite: it was an include-list, rather than a deny-list. It's deprecated in favor ofwatchBuilder.only()
fix: buffers not allowed in typings
Namespace.get(<key>)
fix: prevent user errors in watcher event listeners from causing backoffs in the underlying stream
1.0.2 2020-09-18
fix: update version of cockatiel to fix incompatible TypeScript types (see #128)
fix: don't include the deadline in inherited lease call options (see #131)
feat: allow passing a set of default CallOptions in new Etcd3() (see #133)
When constructing
Etcd3
, you can now passdefaultCallOptions
. This can be an object, or a function which will be called for each etcd method call and should return an object. As a function, it will be called with a context object, which looks like:For example, this will set a 10 second timeout on all calls which are not streams:
The default options are shallow merged with any call-specific options. For example this will always result in a 5 second timeout, regardless of what the
defaultCallOptions
contains:1.0.1 2020-06-21
proto
files not included in npm package1.0.0 2020-06-21
breaking: chore: Node < 10 is no longer supported
breaking: chore:
bignumber.js
, used to handle 64-bit numbers returned from etcd, updated from 5.x to 9.0.0breaking: chore: TypeScript is updated to 3.9, and the types of some function signatures have been narrowed
breaking: chore: grpc has been updated from
[email protected]
to@grpc/[email protected]
. This affects the optionalgrpcOptions
that the client can be configured with. The previous package was a couple years old, so you may additionally see different behavior of grpc on your network.Thank you to @pauliusuza for his help updating everything
breaking:
retry
andbackoffStrategy
options have been deprecated in favor of a newfaultHandling
option.breaking:
GRPCConnectFailedError
has been removed in favor of more accurate, specific GRPC error types.feat: add
faultHandling
option that allows configuring error handling through Cockatiel policies. (see #121)There are two policies: per-host, and global. Calls will call through the global policy, and then to a host policy. Each time the global policy retries, it will pick a new host to run the call on.
The recommended setup for this is to put a retry policy on the
global
slot, and a circuit-breaker policy guarding eachhost
. Additionally, you can configure a backoff that the watch manager will use for reconnecting watch streams.By default,
global
is set to a three-retry policy andhost
is a circuit breaker that will open (stop sending requests) for five seconds after three consecutive failures. The watch backoff defaults to Cockatiel's default exponential options (a max 30 second delay on a decorrelated jitter). If you would like to disable these policies, you can passPolicy.noop
from Cockatiel to theglobal
andhost
options.Notably, with the default options, you may now receive
BrokenCircuitError
s from Cockatiel if calls to a host repeatedly fail.For example, this is how you would manually specify the default options:
Here's how you can disable all fault-handling logic:
feat: export an
isRecoverableError
function that can be used to detect whether the given error is transient, as defined by grpc. Useful when creating retry policies. Recoverable errors will have the exported symbolRecoverableError
as one of their properties.feat: add
SingleRangeBuilder.exists()
that returns if the given key existsfeat: allow apply call options to authentication token exchange (see #111)
feat: allow disabling automatic lease keep-alives (see #110)
fix: errors when creating watchers not being handled correctly (see #114)
fix: mark leases as lost if the watch connection is alive but etcd is unresponsive (see #110)
0.2.13 2019-07-03
lease.put
in transactions not applying the lease to the target key (see #92)markFailed
on the mock instance, rather than the real connection pool, whilst mocking (see #94)0.2.12 2019-07-03
grpc.load
deprecation error (see #81, #91) thanks to @RezoChiang0.2.11 2018-05-21
0.2.10 2018-05-05
lease.release()
to let leases expire automatically (see #69)0.2.9 2018-02-09
0.2.7 2017-12-30
0.2.6 2017-11-11
cc456cc
)66b1e90
)9127329
)8856981
)4578138
)7474f96
)0.2.5 2017-09-30
0.2.4 2017-08-02
https
prefix is provided (#29) thanks to @jmreicha0.2.3 2017-07-19
0.2.2 2017-07-10
0.2.1 2017-07-10client.watch()
is now a function to construct high-level watchers (#12)0.2.0 2017-06-03
client.get()
and maps of strings fromclient.getAll()
by default (#6)0.1.2 2017-04-13
0.1.1
v1.1.1
Compare Source
Configuration
📅 Schedule: Branch creation - "before 3am on Friday" (UTC), 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 this update again.
This PR has been generated by Mend Renovate. View repository job log here.