What's New
On this page
Learn what's new in:
What's New in 2.21
The Ruby driver 2.21 release includes the following new features:
Supports the Client-Side Operations Timeout (CSOT) feature, which unifies most timeout-related options under a single
timeout_ms
option.Supports MongoDB Server version 8.0.
Support for range v2 queries with Queryable Encryption, including a new
trim_factor
parameter. For more information about Queryable Encryption, see Queryable Encryption in the MongoDB Server manual.
To learn more about this release, see the v2.21 Release Notes on GitHub.
What's New in 2.20
The Ruby driver 2.20 release includes the following new features:
Discontinues support for Ruby 2.5 and 2.6. Deprecates support for Ruby 2.7 and JRuby 9.2, which will be discontinued in the next minor driver version. Adds support for JRuby 9.4.
Supports the newly-released Ruby-BSON version 5.0.
Allows connection strings without a slash between the hosts and the options. For example,
mongodb://example.com?w=1
andmongodb://example.com/?w=1
are both valid connection strings now.Sends container runtime and orchestration metadata for the client environment to the server for analytics purposes.
Writes a warning message to the log when detecting the host as a CosmosDB (Azure) or DocumentDB (Amazon) instance.
Attempts retries of read or write operations on a different
mongos
instance in a sharded topology, if possible.
To learn more about this release, see the v2.20 Release Notes on GitHub.