Skip to content

2.26.0

Latest

Choose a tag to compare

@mongodb-dbx-release-bot mongodb-dbx-release-bot released this 10 Sep 16:54
· 2 commits to master since this release
8405041

The MongoDB Ruby team is pleased to announce version 2.26.0 of the mongo gem - a pure-Ruby driver for connecting to, querying, and manipulating MongoDB databases. This is a new minor release in the 2.x series of MongoDB Ruby Driver.

Install this release using RubyGems via the command line as follows:

gem install -v 2.26.0 mongo

Or simply add it to your Gemfile:

gem 'mongo', '2.26.0'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

Add option to configure DEK cache lifetime (RUBY-3524 | PR)

Adds a new option to the Mongo::Client constructor: :key_expiration_ms. This is used to specify the lifetime of the data encryption key cache, in milliseconds. Must be a non-negative integer. A value of 0 means the cache never expires. Defaults to 60000.

Client backpressure with baseBackoffMS (RUBY-3901 | PR)

Improved performance for MongoDB 9.0's Intelligent Workload Management (IWM) by only retrying overload errors when doing so is expected to not worsen server conditions.

Other New Features

  • Add QE text queries (prefix/suffix/substring) (RUBY-3903 | PR)

Bug Fixes

  • Disallow comma in authMechanismProperties connection string value (RUBY-3482 | PR)
  • Fix libmongocrypt version floor, ClientEncryption timeout_ms and missing range_opts (RUBY-3903 | PR)
  • Consult server-side encryptedFields when dropping QE collections (PR)
  • Use exact match for file ID in GridFS methods (CVE-2026-88030)