Releases: mongodb/mongo-ruby-driver
Releases · mongodb/mongo-ruby-driver
2.4.2
This patch release has the follow changes:
- RUBY-1208 Verify that time remaining is positive or nil when checking if socket connect timed out.
- RUBY-1196 Resync CRUD spec tests and adjust n_modified to be nil on legacy updates to comply with spec.
- RUBY-1206 Convert connect type to Symbol so that Strings can be handled (which result from parsing mongoid config files)
- RUBY-1211 Set Socket KeepAlive (@mikeantonelli)
- RUBY-1212 Don't ping when selecting server for count or distinct operations.
- RUBY-1201 Raise error when instantiating client and min pool size is greater than provided or default max size
- Fix warnings (@amatsuda)
- Improve the recoverability of failed reads and writes due to network issues (@reidmorrison)
- Fix SSL options typo (@andreychernih)
2.4.1
This patch level release has the following changes:
- Require at least bson gem version 4.2.1 for important fix on BigEndian systems RUBY-1173
- RUBY-1188 Improve SDAM test mocking to not require localhost:27017 to be unreachable
- Ensure that collation option on a Collection::View is applied to methods called on the View. This is a necessary change for Mongoid to support collations.
2.4.0
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.