Skip to content

Commit 461c76e

Browse files
committed
Updated version and history to V2.2.10
1 parent 64d53ee commit 461c76e

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

HISTORY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2.2.10 2016-09-15
2+
-----------------
3+
* Updated mongodb-core to 2.0.12.
4+
* fix debug logging message not printing server name.
5+
* fixed application metadata being sent by wrong ismaster.
6+
* NODE-812 Fixed mongos stall due to proxy monitoring ismaster failure causing reconnect.
7+
* NODE-818 Replicaset timeouts in initial connect sequence can "no primary found".
8+
* Updated bson library to 0.5.5.
9+
* Added DBPointer up conversion to DBRef.
10+
* MongoDB 3.4-RC Pass **appname** through MongoClient.connect uri or options to allow metadata to be passed.
11+
* MongoDB 3.4-RC Pass collation options on update, findOne, find, createIndex, aggregate.
12+
* MongoDB 3.4-RC Allow write concerns to be passed to all supporting server commands.
13+
* MongoDB 3.4-RC Allow passing of **servername** as SSL options to support SNI.
14+
115
2.2.9 2016-08-29
216
----------------
317
* Updated mongodb-core to 2.0.11.

lib/collection.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,7 @@ var updateDocuments = function(self, selector, document, options, callback) {
10611061
* @param {boolean} [options.upsert=false] Update operation is an upsert.
10621062
* @param {boolean} [options.multi=false] Update one/all documents with operation.
10631063
* @param {boolean} [options.bypassDocumentValidation=false] Allow driver to bypass schema validation in MongoDB 3.2 or higher.
1064+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
10641065
* @param {Collection~writeOpCallback} [callback] The command result callback
10651066
* @throws {MongoError}
10661067
* @return {Promise} returns Promise if no callback passed
@@ -1372,6 +1373,7 @@ define.classMethod('save', {callback: true, promise:true});
13721373
* @param {(ReadPreference|string)} [options.readPreference=null] The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
13731374
* @param {boolean} [options.partial=false] Specify if the cursor should return partial results when querying against a sharded system
13741375
* @param {number} [options.maxTimeMS=null] Number of miliseconds to wait before aborting the query.
1376+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
13751377
* @param {Collection~resultCallback} [callback] The command result callback
13761378
* @return {Promise} returns Promise if no callback passed
13771379
*/
@@ -1574,6 +1576,7 @@ define.classMethod('isCapped', {callback: true, promise:true});
15741576
* @param {number} [options.v=null] Specify the format version of the indexes.
15751577
* @param {number} [options.expireAfterSeconds=null] Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)
15761578
* @param {number} [options.name=null] Override the autogenerated index name (useful if the resulting name is larger than 128 bytes)
1579+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
15771580
* @param {Collection~resultCallback} [callback] The command result callback
15781581
* @return {Promise} returns Promise if no callback passed
15791582
*/
@@ -1863,6 +1866,7 @@ define.classMethod('listIndexes', {callback: false, promise:false, returns: [Com
18631866
* @param {number} [options.v=null] Specify the format version of the indexes.
18641867
* @param {number} [options.expireAfterSeconds=null] Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher)
18651868
* @param {number} [options.name=null] Override the autogenerated index name (useful if the resulting name is larger than 128 bytes)
1869+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
18661870
* @param {Collection~resultCallback} [callback] The command result callback
18671871
* @return {Promise} returns Promise if no callback passed
18681872
*/
@@ -2564,6 +2568,7 @@ function decorateWithCollation(command, self, options) {
25642568
* @param {boolean} [options.promoteLongs=true] Promotes Long values to number if they fit inside the 53 bits resolution.
25652569
* @param {boolean} [options.promoteValues=true] Promotes BSON values to native types where possible, set to false to only receive wrapper types.
25662570
* @param {boolean} [options.promoteBuffers=false] Promotes Binary BSON values to native Node Buffers.
2571+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
25672572
* @param {Collection~resultCallback} callback The command result callback
25682573
* @return {(null|AggregationCursor)}
25692574
*/
@@ -2614,7 +2619,7 @@ Collection.prototype.aggregate = function(pipeline, options, callback) {
26142619

26152620
// Decorate command with writeConcern if out has been specified
26162621
if(pipeline.length > 0 && pipeline[pipeline.length - 1]['$out']) {
2617-
decorateWithWriteConcern(command, self, options);
2622+
decorateWithWriteConcern(command, self, options);
26182623
}
26192624

26202625
// Have we specified collation

lib/cursor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ define.classMethod('batchSize', {callback: false, promise:false, returns: [Curso
581581
/**
582582
* Set the collation options for the cursor.
583583
* @method
584-
* @param {object} value The cursor collation options
584+
* @param {object} value The cursor collation options (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
585585
* @throws {MongoError}
586586
* @return {Cursor}
587587
*/

lib/db.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ var createCollection = function(self, name, options, callback) {
551551
* @param {number} [options.size=null] The size of the capped collection in bytes.
552552
* @param {number} [options.max=null] The maximum number of documents in the capped collection.
553553
* @param {boolean} [options.autoIndexId=true] Create an index on the _id field of the document, True by default on MongoDB 2.2 or higher off for version < 2.2.
554+
* @param {object} [options.collation=null] Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).
554555
* @param {Db~collectionResultCallback} [callback] The results callback
555556
* @return {Promise} returns Promise if no callback passed
556557
*/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mongodb",
3-
"version": "2.2.9",
3+
"version": "2.2.10",
44
"description": "The official MongoDB driver for Node.js",
55
"main": "index.js",
66
"repository": {
@@ -14,7 +14,7 @@
1414
],
1515
"dependencies": {
1616
"es6-promise": "3.2.1",
17-
"mongodb-core": "christkv/mongodb-core#2.0",
17+
"mongodb-core": "2.0.12",
1818
"readable-stream": "2.1.5"
1919
},
2020
"devDependencies": {

0 commit comments

Comments
 (0)