Skip to content

Tags

Tags

3.9.1

Toggle 3.9.1's commit message

Verified

This tag was signed with the committer’s verified signature.
avsej Sergey Avseyev
3.9.1

API Reference: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.9.1/index.html
Full Changelog: 3.9.0...3.9.1
Rubygems: https://rubygems.org/gems/couchbase/versions/3.9.1

```ruby
gem "couchbase", "3.9.1"

gem "couchbase", "3.9.1", :source => "https://packages.couchbase.com/clients/ruby"
```

The C++ core moves from 1.5.0 to 1.5.1. Changes that the core brings are
listed with their CXXCBC ticket.

Bug Fixes
---------

* CXXCBC-1112: **Embedded Mozilla CA Bundle** -- The extension embeds
  every certificate of the Mozilla CA bundle again.
  * Since 2026-10-20, the curl.se bundle puts a
    `# Fingerprint (SHA-256):` line between each certificate's name and
    its PEM block.
  * Core 1.5.0 extracted no certificate from that format. The 3.9.0
    source gem carries a bundle in this format, and the precompiled gems
    were built from it. None embeds a Mozilla certificate.
  * With no explicit trust certificate, `couchbases://` connections then
    trusted only the system CAs and the Capella root. `couchbase2://`
    connections trusted only the Capella root.

* CXXCBC-1109: **Eventing Function Not Found** -- Eventing management
  requests raise `Error::EventingFunctionNotFound` when the server
  answers `ERR_APP_NOT_FOUND`.
  * Only `ERR_APP_NOT_FOUND_TS` mapped to that error.
    `ERR_APP_NOT_FOUND` raised `Error::InvalidArgument` on HTTP 400, and
    `Error::InternalServerFailure` otherwise.

Known Issues
------------

* **grpc on Windows x64** -- `grpc` 1.85.0 publishes no `x64-mingw-ucrt`
  gem. Bundler then builds it from source, and that build failed to
  link in CI.
  * Adding `gem "grpc", "< 1.85"` to the application's Gemfile selects
    1.84.1, which ships a prebuilt gem.
  * The Windows arm64 gem does not depend on `grpc` and is not affected.

Build and Test Infrastructure
-----------------------------

* The RubyGems step of the release publishing script no longer raises
  `NoMethodError` before pushing any gem.
* On Windows x64, the development Gemfile keeps `grpc` below 1.85.

3.9.0

Toggle 3.9.0's commit message

Verified

This tag was signed with the committer’s verified signature.
avsej Sergey Avseyev
3.9.0

API Reference: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.9.0/index.html
Full Changelog: 3.8.2...3.9.0
Rubygems: https://rubygems.org/gems/couchbase/versions/3.9.0

```ruby
gem "couchbase", "3.9.0"

gem "couchbase", "3.9.0", :source => "https://packages.couchbase.com/clients/ruby"
```

The C++ core moves from 1.3.3 to 1.5.0. Changes that the core brings are
listed with their CXXCBC ticket.

**Behaviour changes.** These need review before upgrading from 3.8.x:

* TLS connections now verify the server certificate against the dialed
  hostname (CXXCBC-838). A certificate that does not match the hostname
  now fails the handshake.
* Query, analytics, search, eventing and management requests raise
  `Error::InvalidArgument` for an unrecognised HTTP 400 (CXXCBC-1049).
  SDK-RFC 0058 requires it.
* `retry_strategy:` takes `:best_effort` or `:fail_fast` (RCBC-582). On
  the operations that honour it, any other value, such as a `Proc`,
  raises `Error::InvalidArgument`.
* An `Options::Base` subclass defined by the application must yield in
  its own `initialize` (RCBC-583). `Options::Base` no longer yields for
  subclasses.
* `Bucket#ping` reports the cluster-level HTTP services as well as
  key-value (CXXCBC-845, CXXCBC-1022).
* The application telemetry latency histograms for HTTP services report
  `_sum` in milliseconds (CXXCBC-1002). Dashboards built on the old
  values need review.

New Features
------------

* RCBC-558, CXXCBC-980: **Read a Named Replica** --
  `Collection#get_replica` reads one specific replica of a document, as
  defined by SDK-RFC 0053.
  * `get_any_replica` returns whichever copy answers first.
    `get_replica` lets the application choose the copy.
  * The copy is selected with `GetReplicaStrategy.from_index(:first)`,
    or `:second` and `:third`. The active copy cannot be selected.
  * The result is a `GetReplicaResult`, and `replica?` is `true`.
  * Three new errors describe why the chosen copy cannot answer. The
    first two are raised without a network round trip.
    * `Error::ReplicaIndexOutOfBounds`: the bucket has fewer replicas
      than the index.
    * `Error::ReplicaIndexCurrentlyUnavailable`: the replica is
      configured but not placed on a node.
    * `Error::DocumentNotFoundOnReplica`: the replica does not hold the
      document. It subclasses `Error::DocumentNotFound`.
  * `GetReplicaStrategy.from_index(:first, wrap: true)` reads the next
    readable replica instead of failing. It still fails if the bucket
    has no replicas, or if no replica is readable.
  * The replica is chosen from the vBucket map, not from node health. A
    read of a replica whose node is down waits until its timeout. The
    API reference shows how to bound the wait and fall back to
    `get_any_replica`.
  * Over `couchbase2://` the operation raises
    `Error::FeatureNotAvailable`.

* RCBC-304, CXXCBC-845: **wait_until_ready** --
  `Cluster#wait_until_ready` and `Bucket#wait_until_ready` ping the
  services until they respond or the timeout elapses.
  * `Options::WaitUntilReady` selects the desired state and the service
    types.
  * `:online` waits for every endpoint of each requested service.
    `:degraded` waits for at least one.
  * For a bucket, `:online` also waits for the vBucket map. Every
    vBucket needs its active copy and each placeable replica on a node.
  * The wait raises `Error::UnambiguousTimeout` on timeout, and
    `Error::ClusterClosed` once `Cluster#disconnect` has run.
  * `Thread#raise`, `Thread#kill` and `Timeout.timeout` do not interrupt
    the wait.
  * Over `couchbase2://` the wait raises `Error::FeatureNotAvailable`.

* RCBC-554, CXXCBC-911: **Hybrid Search Score Fusion** --
  `Options::Search#scoring` controls how a hybrid search merges its FTS
  and vector results into one ranked list.
  * `SearchScoring.reciprocal_rank_fusion` merges the two lists by rank.
    It accepts `rank_constant` and `window_size`.
  * `SearchScoring.relative_score_fusion` merges the two lists by
    normalized score. It accepts `window_size`.
  * `SearchScoring.none` turns scoring off.
  * Both fusion strategies require Couchbase Server 8.1. On an older
    server the request raises `Error::FeatureNotAvailable`.
  * Over `couchbase2://` only `SearchScoring.none` is supported. The
    fusion strategies raise `Error::FeatureNotAvailable`.
  * The two fusion strategies are uncommitted.
  * Setting both `scoring` and `disable_scoring` raises
    `Error::InvalidArgument`.

* RCBC-582: **Retry Strategy per Operation** -- Key-value operations
  honour `retry_strategy:`.
  * `:fail_fast` makes a request fail at once instead of retrying. A
    mutation on a locked document then raises `Error::DocumentLocked`
    immediately.
  * `:best_effort` and `nil` keep the default strategy of the `Cluster`
    object.
  * These operations honour the option:
    * `get_multi`, `upsert_multi` and `remove_multi`;
    * `get_replica`;
    * every other single-document operation except the replica reads
      below.
  * These operations ignore the option:
    * `get_any_replica`, `get_all_replicas`, `lookup_in_any_replica` and
      `lookup_in_all_replicas`.
    * Range scans.
    * Query, analytics, search and view requests.
  * Observe requests issued for `persist_to:` and `replicate_to:` still
    use the default strategy.

* CXXCBC-978: **Log Redaction** -- With `log_redaction=true` in the
  connection string, the core tags sensitive values in its log messages.
  * `<ud>` marks user data, `<md>` metadata and `<sd>` system data.
  * A tool such as `cblogredaction` then strips or hashes them before
    the logs are shared.
  * The setting is off by default. When it is off, log output is
    unchanged.

* RCBC-575: **ActiveSupport Cache Mutation Tracking** -- The
  `mutation_tracking:` store option selects which writes
  `delete_matched` and `clear` wait for.
  * `:last`, the default, waits for the last write, as before.
  * `:all` waits for the newest write to every vBucket the store wrote
    to.
  * Any object that responds to `record` and `mutation_state` can be
    given instead.
  * Writes by other store instances or processes are not covered.

Improvements
------------

* **Vector Search Committed** -- `VectorSearch`, `VectorQuery` and
  `SearchRequest#vector_search` are no longer marked uncommitted.

* **Platforms** -- Precompiled gems are published for more platforms:
  * Windows x64 (`x64-mingw-ucrt`).
  * Windows arm64 (`aarch64-mingw-ucrt`). This gem does not depend on
    `grpc`, so `couchbase2://` is unavailable on it.
  * Linux arm64 with musl (`aarch64-linux-musl`).
  * The musl gems are built on Alpine 3.21.

* RCBC-480: **Windows Connections** -- The extension links Winsock ahead
  of the Ruby library on MinGW. Every connection previously failed with
  `WSAENOTSOCK`.

Security Fixes
--------------

* CXXCBC-1072, CXXCBC-1106: **Management Request Encoding** -- Names and
  values passed by the application can no longer change the meaning of a
  management request.
  * User and group upsert bodies are now form-encoded. A password such
    as `Pw123456&roles=admin` previously added a `roles` field.
  * Names placed into REST paths are now escaped. A `#`, `?` or `/` in a
    name could cut the path short or address a different entity.

* CXXCBC-981: **vBucket Map Bounds Check** -- Replica reads no longer
  index past the end of a vBucket map row. A row is short right after
  replicas are added to a bucket. Such a read could route a request to a
  node that does not hold the vBucket.

* CXXCBC-837: **MCBP Frame Bounds Check** -- A key-value response frame
  whose prefix length exceeds its body length is rejected. It previously
  drove the parser past the receive buffer.

* CXXCBC-836: **Analytics Identifier Quoting** -- Bucket, scope and
  collection names are quoted and escaped in the Analytics statements
  the SDK composes.

Bug Fixes
---------

* RCBC-559, RCBC-567, RCBC-586, RCBC-304: **Memory Leaks on Errors and
  Interrupts** -- A failing operation no longer leaks its request, its
  response or its reference to the core cluster.
  * 100,000 gets of a missing document grew RSS by about 23 MB.
  * `Timeout.timeout`, `Thread#kill` or a signal during an operation
    leaked its response. RSS growth per interrupted 4 MiB get drops from
    about 4 MiB to under 0.2 MiB.
  * These leaked the arguments already copied:
    * a tracer that raises;
    * an `inspect` that raises;
    * an out-of-range Integer;
    * a non-Symbol durability option.
  * A dynamic Symbol as a view namespace no longer crashes the process.
    It raises `ArgumentError`.
  * Errors reach Ruby with the same class, message and backtrace as
    before.
  * An interrupt that arrives just before an operation now takes effect
    when the operation completes. That can be as late as the operation
    timeout.

* RCBC-568: **Logger Hang** -- A failing Ruby logger callback no longer
  hangs the process.
  * The failure can be a non-`StandardError` exception, a `Timeout` or a
    `Thread#kill`.
  * The sink mutex stayed locked, and the next flush blocked while
    holding the GVL. The process then ignored `SIGTERM`.
  * Unwritten messages, including the one whose callback failed, are
    delivered by the next flush.
  * `Couchbase.set_logger(nil)` no longer raises `ArgumentError`.

* RCBC-571, CXXCBC-913, CXXCBC-914, CXXCBC-1087: **fork() Handling** --
  The child is now notified as the child.
  * The child was notified as the parent, so it restarted the I/O it
    inherited. Both processes read the same sockets.
  * An asynchronous exception during the fork no longer leaves the
    parent's `Cluster` objects stopped.
  * The child closes the sockets it inherited before it starts its own
    I/O.
  * The child reopens each `Cluster` object without waiting for its
    bootstrap (CXXCBC-1087). Requests issued meanwhile are held until
    the bootstrap completes. Each request is still bounded by its own
    timeout.

* RCBC-564: **Range Scan Use-After-Free** -- A scan result keeps the
  core cluster behind its `Cluster` object alive. Freeing the result
  after `Cluster#disconnect` could crash or hang the process. So could
  freeing both in one GC sweep.

* RCBC-566: **replica? Flag** -- `GetReplicaResult#replica?` now reports
  whether `get_any_replica` and `get_all_replicas` returned a replica.
  It previously returned `nil` over `couchbase://`.

* RCBC-580: **Raw Query and Analytics Parameters** -- Raw parameters
  reach the server as given.
  * A Symbol key passed to `Options::Query#raw` silently dropped that
    parameter and every raw parameter after it.
  * `Options::Analytics#raw` sent the entry as a statement binding
    `$name`. It is now sent as a request option.
  * A non-String key or value now raises `ArgumentError`. Such entries
    were previously dropped. This covers:
    * query and analytics parameters, raw and named;
    * search raw parameters.

* RCBC-584: **Raw View Parameters** -- `Options::View#raw` raised
  `NoMethodError` on every call, and stored values were never sent. Raw
  view parameters are now form-encoded and sent.

* RCBC-583: **Options Block** -- A block passed to an options
  constructor runs once, after the defaults are set. `Options::Query.new
  { |o| o.raw("k", 1) }` previously raised `NoMethodError`.

* RCBC-574: **ActiveSupport Cache After Multi-Key Writes** --
  `delete_matched` and `clear` no longer raise `NoMethodError` after
  `write_multi` or `delete_multi`.

* RCBC-569: **Histogram Lock** -- A non-Float percentile no longer
  leaves `HdrHistogramC` locked. The next `record_value` previously
  aborted or blocked every Ruby thread. Integer percentiles are now
  accepted.

* RCBC-573: **Log Timestamps on macOS** -- Log times carry the correct
  sub-second part. On macOS it was a thousand times too small.

* **Windows Exit Hang** -- A process that loads the extension no longer
  hangs at exit on Windows.

* **libstdc++ Symbol Interposition** -- Precompiled Linux gems no longer
  export the libstdc++ symbols they link statically. They interposed on
  the system libstdc++ and crashed other C++ extensions, such as
  `mini_racer`.

* CXXCBC-984, CXXCBC-985, CXXCBC-986, CXXCBC-987, CXXCBC-1022,
  CXXCBC-1023, CXXCBC-1090, CXXCBC-1093: **Request Completion** --
  Several core paths no longer drop a key-value request without
  completing it.
  * A request waiting in a retry backoff when the `Cluster` object
    closes now completes with an error.
  * A key-value request's timeout now includes the wait for its bucket
    to open.
  * A range scan of a missing collection fails at once with
    `Error::CollectionNotFound`.
  * `ping` no longer completes before every ping request has been sent.

* CXXCBC-1039, CXXCBC-1046, CXXCBC-1048: **HTTP Session Lifecycle** --
  HTTP session shutdown is serialised and runs once. Closing a busy
  session no longer causes a use-after-free.

* CXXCBC-1057: **Client Certificate Rotation** -- A certificate set with
  `Cluster#update_authenticator` is used by the next HTTP request.
  Pooled HTTP connections previously kept the old certificate until
  their idle timeout.

* CXXCBC-882, CXXCBC-1059: **Query Error Mapping** --
  * Query error 2120 (`E_ADMIN_AUTH`) raises
    `Error::AuthenticationFailure`.
  * Dropping a query index that does not exist raises
    `Error::IndexNotFound`, whatever HTTP status the server returns.

* CXXCBC-823, CXXCBC-839, CXXCBC-841, CXXCBC-876: **Connection
  Management** -- Fixes from core 1.4.0:
  * A cluster-level configuration no longer displaces a bucket's
    configuration. This caused stale routing and Not-My-VBucket loops
    during failover and rebalance.
  * Dead idle pooled HTTP connections are detected and closed.
  * Bucket create and update work against Couchbase Server 8.1.

* CXXCBC-785, CXXCBC-787, CXXCBC-788, CXXCBC-797: **Key-Value
  Correctness** -- A projected `get` with more than 16 paths no longer
  fails when a path is missing. `lookup_in_all_replicas` reports its
  paths and total failure correctly.

Deprecations
------------

* RCBC-554: **Options::Search#disable_scoring** -- Replaced by `scoring:
  SearchScoring.none`, which sends the same request.

Build and Test Infrastructure
-----------------------------

* The test suite runs on Windows x64 and arm64 against CAVES.
* `rake compile` uses the dependencies and CA bundle vendored in
  `ext/cache`.
* The gem no longer ships a copy of the core's BoringSSL patch for
  MinGW.

3.8.2

Toggle 3.8.2's commit message

Verified

This tag was signed with the committer’s verified signature.
DemetrisChr Dimitris Christodoulou
3.8.2

API Reference: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.8.2/index.html
Full Changelog: 3.8.1...3.8.2
Rubygems: https://rubygems.org/gems/couchbase/versions/3.8.2

```ruby
gem "couchbase", "3.8.2"

gem "couchbase", "3.8.2", :source => "https://packages.couchbase.com/clients/ruby"
```

Fixed and Enhancements
----------------------

* RCBC-557: Add parent_span to Ping options (#241).

* Update core to 1.3.3 (#245, #244, #242).

Build and Test Infrastructure
-----------------------------

* Add release publishing script (#236).

* RCBC-547: Move FIT performer to SDK repo & pre-build docker image (#237).

* RCBC-551: FIT performer - add support for CounterEq bounds type (#238).

* Add FIT nightlies using fit-cli (#239).

* Update README to point to GitHub Issues for reporting an issue (#240).

* Improve stability of test_update_bucket_history_retention (#243).

3.8.1

Toggle 3.8.1's commit message

Verified

This tag was signed with the committer’s verified signature.
avsej Sergey Avseyev
3.8.1

API Reference: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.8.1/index.html
Full Changelog: 3.8.0...3.8.1
Rubygems: https://rubygems.org/gems/couchbase/versions/3.8.1

```ruby
gem "couchbase", "3.8.1"

gem "couchbase", "3.8.1", :source => "https://packages.couchbase.com/clients/ruby"
```

Fixed and Enhancements
----------------------

* RCBC-542: Forward CAS to C++ Core in Append/Prepend (#225). The supplied CAS
  value is now forwarded to the C++ core, so compare-and-swap is honored for
  these mutations.

* RCBC-550: Access C++ log level using C++ core API instead of spdlog's default
  logger (#229).

* RCBC-540, RCBC-541: Update Protostellar protocol definitions to the latest
  version (#226).

* Update core to 1.3.2 (#232, #224).

Build and Test Infrastructure
-----------------------------

* RCBC-535: Upgrade to Minitest 6 (#228).

* RCBC-543: Add consistency helper for update_collection tests (#227).

* RCBC-541: Add GitHub Actions testing with Cloud Native Gateway (CNG) (#226).

* Rubocop: Fix Lint/SafeNavigationWithEmpty offenses (#230).

* GHA: Update actions versions (#231).

3.8.0

Toggle 3.8.0's commit message

Verified

This tag was signed with the committer’s verified signature.
avsej Sergey Avseyev
3.8.0

API Reference: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.8.0/index.html
Full Changelog: 3.7.0...3.8.0
Rubygems: https://rubygems.org/gems/couchbase/versions/3.8.0

```ruby
gem "couchbase", "3.8.0"

gem "couchbase", "3.8.0", :source => "https://packages.couchbase.com/clients/ruby"
```

Fixed and Enhancements
----------------------

* RCBC-524, RCBC-525, RCBC-526: OpenTelemetry integration (#216, #195, #197).
  Full support for distributed tracing and metrics using the OpenTelemetry API.
  Operations now create spans and record latency/throughput metrics that can be
  exported to backends like Jaeger or Prometheus.

* RCBC-522: Support for JWT authentication (#218). Added
  `Couchbase::Management::Options::User::JwtAuthenticator` to enable
  authentication using JSON Web Tokens.

* RCBC-521: Support updating authenticator (#191). The new
  `Couchbase::Cluster#update_authenticator` method allows rotating credentials
  (passwords or certificates) on an active cluster connection without requiring
  a restart.

* RCBC-503: Add app telemetry options to cluster options (#190). New
  configuration settings in `Couchbase::Options::Cluster` to control the SDK's
  internal telemetry collection, including endpoint overrides and connection
  backoff.

* RCBC-528: Use C++ Core API for all KV operations (#196). Migrated all
  Key-Value operations to use the high-performance C++ backend, ensuring
  feature parity and consistent behavior across Couchbase SDKs.

* RCBC-529: Add parent span for search/user/view mgmt opts & move to
  Management::Options module (#192). Standardized management operation options
  and added support for distributed tracing across administrative tasks.

* RCBC-527: Include child spans created by the C++ core (#210). Enhanced
  observability by surfacing internal C++ core timing spans (e.g., encoding,
  dispatch, decoding) within the Ruby span hierarchy.

* RCBC-536: Add cluster name and cluster uuid span/metric attributes (#202).
  Automatically attaches `db.couchbase.cluster_name` and
  `db.couchbase.cluster_uuid` to all telemetry signals.

* RCBC-530: Deprecate Support for MapReduce Views (#194). Marked MapReduce View
  APIs as deprecated in alignment with the Couchbase Server deprecation
  schedule.

* RCBC-525: Fix names of lookup in all/any replica spans (#220).

* RCBC-534: Correctly set tracer to external tracer if one is provided (#199).

* Add support for Ruby 4.0 (#198).

* Add inventory_with_opentelemetry example for the couchbase-opentelemetry gem
  (#222).

* Update core to 1.3.1 (#221, #219).

3.7.0

Toggle 3.7.0's commit message

Verified

This tag was signed with the committer’s verified signature.
avsej Sergey Avseyev
Release 3.7.0

Fixed and Enhancements
----------------------

* RCBC-517: Support vector search prefilter (#180)

* RCBC-518: Add way to disable enterprise analytics check programmatically (#186)

* Update core to 1.2.0 (#188, #181)

Build and Test Infrastructure Improvements
------------------------------------------

* Fix rubocop error & warnings (#185, #187)

* Test helper: Fix simplecov error (#184)

* Github Actions: Pin clang tools in linters workflow (#183)

* Github Actions: Update Windows runners (#182)

3.6.0

Toggle 3.6.0's commit message

Verified

This tag was signed with the committer’s verified signature.
avsej Sergey Avseyev
Release 3.6.0

3.5.7

Toggle 3.5.7's commit message

Verified

This tag was signed with the committer’s verified signature.
avsej Sergey Avseyev
Release 3.5.7

3.5.6

Toggle 3.5.6's commit message

Verified

This tag was signed with the committer’s verified signature.
avsej Sergey Avseyev
Release 3.5.6

3.5.5

Toggle 3.5.5's commit message

Verified

This tag was signed with the committer’s verified signature.
avsej Sergey Avseyev
Release 3.5.5