Skip to content

Releases: mongodb/mongo-ruby-driver

2.21.1

30 Apr 19:38
2ab53dd
Compare
Choose a tag to compare

Version 2.21.1 of the MongoDB Ruby Driver is now available. This is the latest patch release in the 2.21 series.

Install it via RubyGems at the command line:

$ gem install -v 2.21.1 mongo

Or via Bundler, in a Gemfile:

gem 'mongo', '2.21.1'

It adds the following new feature:

  • RUBY-3395 Adds support for vectorSearch search indexes, by adding a type: parameter to the #create_one method. (PR)

The following minor changes were made:

  • RUBY-1933 Adds some debug-level logging around the initial DNS seed list query, to help when troubleshooting network issues (PR)
  • RUBY-3299 Slight performance improvement for decrypting documents with a large number of encrypted fields (PR)
  • RUBY-3429 Transient KMS errors are now retried. (PR)

It also includes the following bug fixes:

  • RUBY-2467 Fixes a warning while installing the gem, caused by a missing subdirectory. Fixed by removing all specs from the generated gem; if you need the specs, please check out the repository. (PR)
  • RUBY-3604 Fix a race condition in the authentication flow that could cause authentication to fail incorrectly when multiple simultaneous threads are attempting to authenticate. (PR by @jteich)
  • RUBY-3658 When a timeout is specified on the client, database, or operation, partial writes to the server are never completed, resulting in timeouts. (PR)

Full Changelog: v2.21.0...v2.21.1

2.21.0

19 Sep 17:38
6c26542
Compare
Choose a tag to compare

Version 2.21.0 of the MongoDB Ruby Driver is now available.

Release Highlights

  • RUBY-2523: Introducing "Client-Side Operations Timeout" (CSOT). Most timeout-related options have been deprecated and unified under a single, new timeout_ms option. Deprecated options include socket_timeout, wait_queue_timeout, wtimeout, max_time_ms, and max_commit_time_ms.
  • RUBY-3503: Bump maxWireVersion for server 8.0 support.
  • RUBY-3392 and RUBY-3457: Support for range v2 queries with queryable encryption, including a new trim_factor parameter.
  • RUBY-3463: Fixed connection issues in load-balanced topologies caused by cursors incorrectly releasing the connection between operations.

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 2.21.0 mongo

What's Changed

New Contributors

Full Changelog: v2.20.1...v2.21.0

2.20.1

10 Jul 15:44
8f16460
Compare
Choose a tag to compare

Version 2.20.1 of the MongoDB Ruby Driver is now available.

Release Highlights

This patch release includes one bug fix, and one documentation update:

  • RUBY-3496 Certain retryable errors were not being retried when legacy retries were enabled. Thank you to Joe Lim for the PR!
  • RUBY-3434 Documentation was added/improved to suggest how to configure Mongoid for use with forking web servers. Thank you to Johnny Shields for the PR!

Documentation

Documentation is available at MongoDB.com.

Installation

You may install this version via RubyGems, with:

gem install --version 2.20.1 mongo

What's Changed

Full Changelog: v2.20.0...v2.20.1

2.20.0

28 Mar 20:56
74e4e38
Compare
Choose a tag to compare

Version 2.20.0 of the Ruby driver for MongoDB is released. This adds the following new features:

  • Connection strings no longer require a slash between the hosts and the options. E.g., "mongodb://example.com?w=1" and "mongodb://example.com/?w=1" are both valid connection strings now. (https://jira.mongodb.org/browse/RUBY-3329)
  • Container runtime and orchestration metadata for the client environment are now sent to the server for analytics purposes. (https://jira.mongodb.org/browse/RUBY-3298)
  • When connecting to a CosmosDB (Azure) or DocumentDB (Amazon) instance, a warning message will now be logged. (https://jira.mongodb.org/browse/RUBY-3296)
  • When attempting a retry of a read or write operation in a sharded topology, the retry will be attempted on a different mongos instance, if possible. (https://jira.mongodb.org/browse/RUBY-2748)
  • Add support for the newly-released Ruby-BSON version 5.0.
  • Support for Ruby 2.5 and 2.6 has been discontinued. Support for Ruby 2.7 and JRuby 9.2 has been deprecated, and will be discontinued in a future driver version. Support for JRuby 9.4 has been added.

This release also fixes the following user-facing issues:

2.19.3

16 Nov 20:50
5c64168
Compare
Choose a tag to compare

This is a patch release that adds support for:

2.19.2

30 Oct 12:02
525c48e
Compare
Choose a tag to compare

This is a patch release that fixes the following issue:

2.18.3

30 Oct 12:02
18baa72
Compare
Choose a tag to compare

This is a patch release that fixes the following issue:

2.17.4

30 Oct 12:02
d512628
Compare
Choose a tag to compare

This is a patch release that fixes the following issue:

2.16.4

30 Oct 12:05
cebacf4
Compare
Choose a tag to compare

This is a patch release that fixes the following issue:

2.19.1

24 Jul 11:54
9c90702
Compare
Choose a tag to compare

This patch release in the 2.19 series fixes the following issue:

RUBY-3284 Connection Pool does not open new connections when needed