Release 1.1.X features compatibility for MongoDB 2.2 as well as a slew of bug fixes and improvements.
- Added Mongos connection type with a fallback list for mongos proxies, supports ha (on by default) and will attempt to reconnect to failed proxies.
- Documents can now have a toBSON method that lets the user control the serialization behavior for documents being saved.
- Added disableDriverBSONSizeCheck property to Server.js for people who wish to push the inserts to the limit (Issue #609).
- Case mismatch between driver's ObjectID and mongo's ObjectId, allow both (Issue #618).
- Ensure cursor is using same connection for all operations to avoid potential jump of servers when using replicasets.
- Date identification handled correctly in bson js parser when running in vm context.
- Documentation updates
- GridStore filename not set on read (Issue #621)
- Optimizations on the C++ bson parser to fix a potential memory leak and avoid non-needed calls
- Added support for awaitdata for tailable cursors (Issue #624)
- Implementing read preference setting at collection and cursor level
* collection.find().setReadPreference(Server.SECONDARY_PREFERRED)
* db.collection("some", {readPreference:Server.SECONDARY})
- Replicaset now returns when the master is discovered on db.open and lets the rest of the connections happen asynchronous.
- ReplSet/ReplSetServers emits "fullsetup" when all servers have been connected to
- Corrupt bson messages now errors out to all callbacks and closes up connections correctly, Issue #634
- Fixed auth to work better when multiple connections are involved.
- Default connection pool size increased to 5 connections.
- Fixes for the ReadStream class to work properly with 0.8 of Node.js
- Added explain function support to aggregation helper
- Added socketTimeoutMS and connectTimeoutMS to socket options for repl_set.js and server.js
- Fixed addUser to correctly handle changes in 2.2 for getLastError authentication required
- Fixed Always emit db events (Issue #657)
- Close event not correctly resets DB openCalled variable to allow reconnect
- Added open event on connection established for replicaset, mongos and server
- Much faster BSON C++ parser thanks to Lucasfilm Singapore.
- Refactoring of replicaset connection logic to simplify the code.
- Add `options.connectArbiter` to decide connect arbiters or not (Issue #675)
- Minor optimization for findAndModify when not using j,w or fsync for safe