|
| 1 | +.. _ruby-whats-new: |
| 2 | + |
| 3 | +========== |
| 4 | +What's New |
| 5 | +========== |
| 6 | + |
| 7 | +.. contents:: On this page |
| 8 | + :local: |
| 9 | + :backlinks: none |
| 10 | + :depth: 1 |
| 11 | + :class: singlecol |
| 12 | + |
| 13 | +.. facet:: |
| 14 | + :name: genre |
| 15 | + :values: reference |
| 16 | + |
| 17 | +.. meta:: |
| 18 | + :keywords: update, new feature, deprecation, upgrade |
| 19 | + |
| 20 | +Learn what's new in: |
| 21 | + |
| 22 | +* :ref:`2.21 <version-2.21>` |
| 23 | +* :ref:`2.20 <version-2.20>` |
| 24 | + |
| 25 | +.. _upcoming-breaking-changes: |
| 26 | + |
| 27 | +.. _version-2.21: |
| 28 | + |
| 29 | +What's New in 2.21 |
| 30 | +------------------ |
| 31 | + |
| 32 | +The {+driver-short+} 2.21 release includes the following new features: |
| 33 | + |
| 34 | +- Supports the Client-Side Operations Timeout (CSOT) feature, which unifies |
| 35 | + most timeout-related options under a single ``timeout_ms`` option. |
| 36 | +- Supports {+mdb-server+} version 8.0. |
| 37 | +- Support for range v2 queries with Queryable Encryption, including a new ``trim_factor`` |
| 38 | + parameter. For more information about Queryable Encryption, see :manual:`Queryable Encryption </core/queryable-encryption>` |
| 39 | + in the {+mdb-server+} manual. |
| 40 | + |
| 41 | +To learn more about this release, see the |
| 42 | +:github:`v2.21 Release Notes <mongodb/mongo-ruby-driver/releases/tag/v2.21.0>` on |
| 43 | +GitHub. |
| 44 | + |
| 45 | +.. _version-2.20: |
| 46 | + |
| 47 | +What's New in 2.20 |
| 48 | +------------------ |
| 49 | + |
| 50 | +The {+driver-short+} 2.20 release includes the following new features: |
| 51 | + |
| 52 | +- Discontinues support for Ruby 2.5 and 2.6. Deprecates support for Ruby 2.7 and |
| 53 | + JRuby 9.2, which will be discontinued in the next minor driver version. Adds |
| 54 | + support for JRuby 9.4. |
| 55 | +- Supports the newly-released Ruby-BSON version 5.0. |
| 56 | +- Allows connection strings without a slash between the hosts and the options. |
| 57 | + For example, ``mongodb://example.com?w=1`` and ``mongodb://example.com/?w=1`` are |
| 58 | + both valid connection strings now. |
| 59 | +- Sends container runtime and orchestration metadata for the client environment |
| 60 | + to the server for analytics purposes. |
| 61 | +- Writes a warning message to the log when detecting the host as a CosmosDB |
| 62 | + (Azure) or DocumentDB (Amazon) instance. |
| 63 | +- Attempts retries of read or write operations on a different ``mongos`` |
| 64 | + instance in a sharded topology, if possible. |
| 65 | + |
| 66 | +To learn more about this release, see the |
| 67 | +:github:`v2.20 Release Notes <mongodb/mongo-ruby-driver/releases/tag/v2.20.0>` on |
| 68 | +GitHub. |
0 commit comments