Skip to content

Releases: mongodb/mongo-ruby-driver

2.2.4

01 Mar 11:05
Compare
Choose a tag to compare

The following bug fixes are included in this release:

  • RUBY-1090 Ensure that cursor type is applied to find commands.
  • RUBY-1093 Ensure that negative limits are applied to find commands.

2.2.3

18 Feb 10:35
Compare
Choose a tag to compare

This patch level release has the following bug fixes and changes:

  • RUBY-1086 Ensure that error is raised when reply from server has the cursor not found flag.
  • RUBY-1087 Always try to add hosts reported by the primary description.
  • RUBY-1089 Fix counts in BulkWrite::Result
  • RUBY-1085 Ensure that all upserted and inserted ids are included in BulkWrite::Result
  • Driver Benchmarking tests are added to repository. Note that data files are not included in the driver repository.
  • Allow :scram to be set as authentication mechanism in the URI. (@mattberther)
  • New SDAM yaml test added - tests scenario in RUBY-1087.

2.2.2

25 Jan 10:36
Compare
Choose a tag to compare

This version has a few changes from users and bug fixes:

  • Support passing IO objects to Grid::File and lazily read from them. @janko-m
  • Remove unnecessary string allocation in GridFS Read Stream @janko-m
  • Don't store authenticator on connection instance.
  • MONGOID-4209 Test to ensure distinct always returns an array (even if no results)
  • Add more error messages indicating an operation can be retried. @jonhyman
  • RUBY-1077 Consider setVersion and electionId when detecting stale primaries
  • RUBY-1079 Update documentation for Collection::View#count
  • RUBY-1082 Account for when write concern is nil in GridFS write stream
  • RUBY-1081 Represent write concern options keys as Symbols and values as Strings or Integers
  • RUBY-1078 Use default max message size when value is nil. @jonhyman

2.2.0

07 Dec 15:28
Compare
Choose a tag to compare

This is the general release of MongoDB Ruby driver version 2.2.0, which supports MongoDB server version 3.2.

It has the changes listed in the 2.2.0.rc0 release as well as the following:

  • Update SDAM tests
  • Allow tests to run without requiring mongod to be started with the --auth flag
  • Stop monitor on server garbage collection
  • Scope connection pool to cluster

1.12.5

01 Dec 12:18
Compare
Choose a tag to compare

This release has one change - a fix to the bson extension so it can build on Windows

  • RUBY-703 Fix bson extension on Windows

2.2.0.rc0

16 Nov 15:57
Compare
Choose a tag to compare

This is the first release candidate of MongoDB Ruby driver version 2.2.0. It has full support for the upcoming MongoDB server version 3.2.

The following new features and changes are included:
RUBY-1033 Support new commands for find, getMore, and killCursors
RUBY-1009 Deprecate eval helpers
RUBY-1008 Change showDiskLoc to showRecordId
RUBY-1034 Support partial indexes
RUBY-1050 Ensure spec compliance for unacknowledged write concerns.
RUBY-1038 Support ReadConcern
RUBY-1036 Support bypassDocumentValidation option
RUBY-1037 Support sending write concern to a findAndModify command
RUBY-1055 Support creating a collection with options
RUBY-1064 Add option maxAwaitTimeMS on getMore commands

The following performance improvements have been made:
RUBY-1019, RUBY-1046, RUBY-1028 Performance improvements. Notably, usage of the bson 4.0, which uses byte buffers instead of strings.

1.12.4

29 Oct 16:39
Compare
Choose a tag to compare
  • RUBY-1008: Update tests for mongodb 3.2
  • RUBY-1009: Deprecate eval helper
  • RUBY-1007: Use client's op_timeout or the default when refreshing ping time
  • RUBY-982: Add MongoReplicaSetClient#reconnect method
  • RUBY-1066: Don't override previously-defined Hash#assert_valid_keys (@TiteiKo)

2.1.2

16 Oct 16:21
Compare
Choose a tag to compare
  • RUBY-1053 Fixes to retry behavior. (@jonhyman)
  • RUBY-1051 Fix for Operation Result class.
  • RUBY-1054 Don't apply inherited read preference for commands.
  • RUBY-1052 Use connect_timeout setting as the timeout for Server Monitor sockets.
  • Ensure that only a find one is performed on a GridFS files collection when checking if it's empty.

2.1.1

30 Sep 15:46
Compare
Choose a tag to compare
  • Count commands now cast to integers for 2.4 when doubles are returned.
  • Retry capabilities for sharded clusters have been improved. Users can now pass max_read_retries and read_retry_interval options to the client to configure these values. They default to 1 retry with a 5 second interval.

2.1.0

10 Sep 19:18
Compare
Choose a tag to compare

This release has all the changes in the beta and rc0 versions of 2.1.0 with the addition of the following changes:

  • RUBY-997 Add basic retry for failure scenarios
  • Less brittle monkey-patching in tests
  • RUBY-947 Force binary encoding for message fields
  • RUBY-1015 Fix UNIXSocket reference failure on Windows
  • Retry for #count and #distinct (@jonhyman)
  • RUBY-1012 Fix SSL reconnect after connection failure
  • RUBY-1016 Don't check 'ok' field in query response validation
  • Redact sensitive events and data
  • RUBY-1022 Don't check for error fields in query response validation
  • RUBY-839 Add embedded array to test doc
  • RUBY-1028 Various performance improvements
  • RUBY-1025 Make sure #collections_info returns all results
  • RUBY-1021 Redact sensitive data from options