Skip to content

Releases: mongodb/mongo-ruby-driver

2.8.0

21 Mar 15:35
Compare
Choose a tag to compare

This feature release of the Ruby driver improves connection- and authentication- related diagnostics as well as streamlines handshake and authentication code.

The following issue has been fixed since 2.8.0.rc0:

Please review 2.8.0.rc0 release notes for the full list of changes.

2.7.2

21 Mar 15:33
Compare
Choose a tag to compare

This is a maintenance release in the 2.7.x series. It fixes one issue in 2.7.1 potentially affecting applications' test suites:

2.8.0.rc0

27 Feb 02:58
Compare
Choose a tag to compare

2.7.1

2.7.0

31 Jan 19:59
Compare
Choose a tag to compare

This feature release of the Ruby driver features an improved SDAM implementation, unified URI options and a preview of the convenient API for transactions.

Please refer to release notes for 2.7.0.rc0 for the complete list of new features and changes.

2.7.0 fixes the following issue identified during the RC process:

2.7.0.rc0

23 Jan 01:27
Compare
Choose a tag to compare
2.7.0.rc0 Pre-release
Pre-release

This preview of the upcoming 2.7.0 feature release of the Ruby driver has the following major new features:

  • RUBY-1431 SDAM and Server Selection Spec Compliance. Large portions of SDAM code have been rewritten to bring the driver in compliance with published MongoDB driver specifications. No changes to applications using MongoDB are required, however applications should see the following benefits:
    • Faster server selection (including during failover in replica sets)
    • Faster client initialization
    • Better concurrency as more I/O is now done in background threads
    • Improved logging and diagnostics of server discovery, topology changes and removal of servers from topology
    • Better resiliency to connection and authentication errors
    • SDAM events are now published in a more consistent manner
    • Monitoring connections no longer authenticate, lessening load on the cluster
    • Topology and server description objects are no longer mutated in place, simplifying change tracking for applications/APM implementors
    • Locks have been added to synchronize topology updates
    • It is possible to wait for background monitoring threads to terminate when closing the client
  • RUBY-1559 Unified URI Options. This adds support for a multitude of options in MongoDB URIs to the driver, in a way consistent with other MongoDB-maintained drivers.
  • RUBY-1574 Convenient API for Transactions. This adds a with_transaction method to session objects to provide an easier way to retry operations in a transaction until they commit successfully.

The following minor improvements have also been made:

The following bugs have been fixed:

As well, a number of improvements have been made to tutorial and API documentation of the driver. Full list of fixed issues may be found here.

This version of the driver has been tested with Ruby 2.6.

Lacking major issues we expect to release 2.7.0 final in about a week.

2.6.4

23 Jan 00:45
Compare
Choose a tag to compare

2.6.2

13 Aug 18:19
Compare
Choose a tag to compare

This patch level release of the ruby driver has the following changes:

  • RUBY-1426 Don't remove unknown secondaries servers from the topology

2.6.1

11 Jul 16:07
Compare
Choose a tag to compare

This patch level release of the ruby driver has the following changes:

  • RUBY-1364 Fix bad performance reading large documents over SSL
  • RUBY-1384 Document Session#start_transaction
  • RUBY-1385 Correctly handle read preference in session/transaction code
  • RUBY-1391 Return correct OpenSSL error message rather than a generic one

2.6.0

27 Jun 18:24
b147f78
Compare
Choose a tag to compare

This is the Ruby driver release supporting the 4.0 version of the MongoDB server.

It has the following changes and new features:

  • RUBY-1267 Automate Atlas connectivity tests
  • RUBY-1288 Deprecate MongoDB-CR
  • RUBY-1289 Implement SASLPrep
  • RUBY-1290 GridFS MD5 digest must be optional
  • RUBY-1293 SCRAM-SHA-256 Support
  • RUBY-1298 Mongo::Client created with ipv6 address encounters error when duplicated via #with
  • RUBY-1317 Implement Transactions spec
  • RUBY-1323 Update SCRAM-SHA-256 implementation and tests for spec change
  • RUBY-1327 Initial aggregate command for a change stream should not be retried
  • RUBY-1331 Errors raised by drivers should include codeName string from server response
  • RUBY-1333 More errors should be retryable
  • RUBY-1337 mongo cannot detect primary after upgrading from 2.4.3 to 2.5.x
  • RUBY-1339 Support nameOnly option in listCollections command
  • RUBY-1340 Provide Transactions example for Docs
  • RUBY-1341 Validations for read mode
  • RUBY-1342 Add helpers and options for Change Streams Follow-on Work
  • RUBY-1346 Resync retryable writes tests
  • RUBY-1347 Implicit sessions must not be used with parallelCollectionScan
  • RUBY-1354 Implement new count API
  • RUBY-1362 Implement SASLprep for Ruby < 2.2
  • RUBY-1365 Update ChangeStream spec to detail usage of startAtOperationTime
  • RUBY-1369 Verify change stream #next resume behavior
  • RUBY-1370 Add API-level documentation for restriction of geo commands in count helpers
  • RUBY-1373 Implement startAtOperationTime