Releases: mongodb/mongo-ruby-driver
Releases · mongodb/mongo-ruby-driver
2.4.0.rc1
This second release candidate of version 2.4.0 has the following changes:
- Ensure socket timeout is applied for reads (@wandenberg)
- RUBY-1148 Check operations for collation String keys as well as Symbols.
- Deprecate default socket timeout constant, as it was not effective anyway.
- RUBY-1120 Ensure that socket read timeouts are effective.
- RUBY-1142 Allow SSL certs to be specified as files, Strings, or file paths (@nessche)
- RUBY-1146 Fix Command Monitoring query formatting for queries to mongos.
- RUBY-1147 Fix batch size and limit for find commands.
- Fix warnings when in verbose mode. (@375gnu)
- RUBY-1163 Fix creating indexes on subdocument fields in server < 2.6
- Depend on bson gem >= 4.2.0.rc1
2.3.1
2.4.0.rc0
This release candidate contains support for MongoDB Server version 3.4
It contains the following new features:
- RUBY-1095 Support
maxTimeMS
option in parallelScan helper. - RUBY-1115 Support sending writeConcern for commands that write.
- RUBY-1140 Add TLS SNI support (MRI only)
- RUBY-1133 Allow new option,
max_staleness
, so users can set a limit on acceptable staleness of a secondary for a read. - RUBY-1126 Support collation option for operations.
- RUBY-1136 Implement the MongoDB Handshake protocol.
- Depend on bson gem 4.2.0.rc0 so that Decimal128 objects are supported.
2.3.0
- RUBY-1122 Change server type to unknown when authentication fails.
- RUBY-1092 Add option to check keys in inserted documents.
- RUBY-1104 Automatically kill cursors when they aren't exhausted.
- RUBY-1105 Unacknowledged writes should use legacy opts, not write commands.
- RUBY-1111 Support custom GridFS file ids
- RUBY-1130 Deprecate previous GridFS API.
- RUBY-1132 Ensure that read preference is applied to #count and #distinct.
- RUBY-1083 Support 'expire_after_seconds' in addition to 'expire_after' in Index#View
- RUBY-1135 Only allow local_threshold to be configurable at the Mongo::Client level.
- Incorporate Ruby docs in repository
- General Improvements to classes and tests.
- Depend on bson >= 4.1 so that BSON::Config::validating_keys? is an option.
2.2.7
2.2.6
This patch release has the following fixes and improvements:
- Add dependency on pry, which is required by the mongo_console (@pvalena)
- Make tests more robust. Don't assume which host and port is the primary, adjust test client options.
- Fix parsing
authSource
option in URI (@Soulou) - Ensure auth options are properly parsed in URI and make them case-insensitive.
- RUBY-1101 Check if a SSL monitor socket is connectable before connecting it.
- Retry a monitor's ismaster call once upon socket error.
- RUBY-1112 Get auth mechanism by calling ismaster on a socket when it's being connected instead of relying on the server's metadata.
- RUBY-1121 Validate usersInfo command response before parsing it.
- Ensure that a socket is disconnected when auth fails.
- RUBY-1117 Validate a response's id against the expected id (request id) when writing and reading off a socket. Disconnect a socket if an error was raised while it was used. (@jarthod and @elhu)
- RUBY-1100 Fix random authentication failures leading to
not authorized
errors: don't share SHA1 objects between threads.
2.2.5
2.2.4
2.2.3
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
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