프로젝트

일반

사용자정보

통계
| 개정판:

root / HServer / 00.Server / 00.Program / node_modules / mongodb / HISTORY.md

이력 | 보기 | 이력해설 | 다운로드 (106 KB)

1 39 HKM
<a name="3.0.4"></a>
2
## [3.0.4](https://github.com/mongodb/node-mongodb-native/compare/v3.0.2...v3.0.4) (2018-03-05)
3
4
5
### Bug Fixes
6
7
* **collection:** fix error when calling remove with no args ([#1657](https://github.com/mongodb/node-mongodb-native/issues/1657)) ([4c9b0f8](https://github.com/mongodb/node-mongodb-native/commit/4c9b0f8))
8
* **executeOperation:** don't mutate options passed to commands ([934a43a](https://github.com/mongodb/node-mongodb-native/commit/934a43a))
9
* **jsdoc:** mark db.collection callback as optional + typo fix ([#1658](https://github.com/mongodb/node-mongodb-native/issues/1658)) ([c519b9b](https://github.com/mongodb/node-mongodb-native/commit/c519b9b))
10
* **sessions:** move active session tracking to topology base ([#1665](https://github.com/mongodb/node-mongodb-native/issues/1665)) ([b1f296f](https://github.com/mongodb/node-mongodb-native/commit/b1f296f))
11
* **utils:** fixes executeOperation to clean up sessions ([04e6ef6](https://github.com/mongodb/node-mongodb-native/commit/04e6ef6))
12
13
14
### Features
15
16
* **default-db:** use dbName from uri if none provided ([23b1938](https://github.com/mongodb/node-mongodb-native/commit/23b1938))
17
* **mongodb-core:** update to mongodb-core 3.0.4 ([1fdbaa5](https://github.com/mongodb/node-mongodb-native/commit/1fdbaa5))
18
19
20
21
<a name="3.0.3"></a>
22
## [3.0.3](https://github.com/mongodb/node-mongodb-native/compare/v3.0.2...v3.0.3) (2018-02-23)
23
24
25
### Bug Fixes
26
27
* **collection:** fix error when calling remove with no args ([#1657](https://github.com/mongodb/node-mongodb-native/issues/1657)) ([4c9b0f8](https://github.com/mongodb/node-mongodb-native/commit/4c9b0f8))
28
* **executeOperation:** don't mutate options passed to commands ([934a43a](https://github.com/mongodb/node-mongodb-native/commit/934a43a))
29
* **jsdoc:** mark db.collection callback as optional + typo fix ([#1658](https://github.com/mongodb/node-mongodb-native/issues/1658)) ([c519b9b](https://github.com/mongodb/node-mongodb-native/commit/c519b9b))
30
* **sessions:** move active session tracking to topology base ([#1665](https://github.com/mongodb/node-mongodb-native/issues/1665)) ([b1f296f](https://github.com/mongodb/node-mongodb-native/commit/b1f296f))
31
32
33
34
<a name="3.0.2"></a>
35
## [3.0.2](https://github.com/mongodb/node-mongodb-native/compare/v3.0.1...v3.0.2) (2018-01-29)
36
37
38
### Bug Fixes
39
40
* **collection:** ensure dynamic require of `db` is wrapped in parentheses ([efa78f0](https://github.com/mongodb/node-mongodb-native/commit/efa78f0))
41
* **db:** only callback with MongoError NODE-1293 ([#1652](https://github.com/mongodb/node-mongodb-native/issues/1652)) ([45bc722](https://github.com/mongodb/node-mongodb-native/commit/45bc722))
42
* **topology base:** allow more than 10 event listeners ([#1630](https://github.com/mongodb/node-mongodb-native/issues/1630)) ([d9fb750](https://github.com/mongodb/node-mongodb-native/commit/d9fb750))
43
* **url parser:** preserve auth creds when composing conn string  ([#1640](https://github.com/mongodb/node-mongodb-native/issues/1640)) ([eddca5e](https://github.com/mongodb/node-mongodb-native/commit/eddca5e))
44
45
46
### Features
47
48
* **bulk:** forward 'checkKeys' option for ordered and unordered bulk operations ([421a6b2](https://github.com/mongodb/node-mongodb-native/commit/421a6b2))
49
* **collection:** expose `dbName` property of collection ([6fd05c1](https://github.com/mongodb/node-mongodb-native/commit/6fd05c1))
50
51
52
53
<a name="3.0.1"></a>
54
## [3.0.1](https://github.com/mongodb/node-mongodb-native/compare/v3.0.0...v3.0.1) (2017-12-24)
55
56
* update mongodb-core to 3.0.1
57
58
<a name="3.0.0"></a>
59
# [3.0.0](https://github.com/mongodb/node-mongodb-native/compare/v3.0.0-rc0...v3.0.0) (2017-12-24)
60
61
62
### Bug Fixes
63
64
* **aggregate:** remove support for inline results for aggregate ([#1620](https://github.com/mongodb/node-mongodb-native/issues/1620)) ([84457ec](https://github.com/mongodb/node-mongodb-native/commit/84457ec))
65
* **topologies:** unify topologies connect API ([#1615](https://github.com/mongodb/node-mongodb-native/issues/1615)) ([0fb4658](https://github.com/mongodb/node-mongodb-native/commit/0fb4658))
66
67
68
### Features
69
70
* **keepAlive:** make keepAlive options consistent ([#1612](https://github.com/mongodb/node-mongodb-native/issues/1612)) ([f608f44](https://github.com/mongodb/node-mongodb-native/commit/f608f44))
71
72
73
### BREAKING CHANGES
74
75
* **topologies:** Function signature for `.connect` method on replset and mongos has changed. You shouldn't have been using this anyway, but if you were, you only should pass `options` and `callback`.
76
77
Part of NODE-1089
78
* **keepAlive:** option `keepAlive` is now split into boolean `keepAlive` and
79
number `keepAliveInitialDelay`
80
81
Fixes NODE-998
82
83
84
85
<a name="3.0.0-rc0"></a>
86
# [3.0.0-rc0](https://github.com/mongodb/node-mongodb-native/compare/v2.2.31...v3.0.0-rc0) (2017-12-05)
87
88
89
### Bug Fixes
90
91
* **aggregation:** ensure that the `cursor` key is always present ([f16f314](https://github.com/mongodb/node-mongodb-native/commit/f16f314))
92
* **apm:** give users access to raw server responses ([88b206b](https://github.com/mongodb/node-mongodb-native/commit/88b206b))
93
* **apm:** only rebuilt cursor if reply is non-null ([96052c8](https://github.com/mongodb/node-mongodb-native/commit/96052c8))
94
* **apm:** rebuild lost `cursor` info on pre-OP_QUERY responses ([4242d49](https://github.com/mongodb/node-mongodb-native/commit/4242d49))
95
* **bulk-unordered:** add check for ignoreUndefined ([f38641a](https://github.com/mongodb/node-mongodb-native/commit/f38641a))
96
* **change stream examples:** use timeouts, cleanup ([c5fec5f](https://github.com/mongodb/node-mongodb-native/commit/c5fec5f))
97
* **change-streams:** ensure a majority read concern on initial agg ([23011e9](https://github.com/mongodb/node-mongodb-native/commit/23011e9))
98
* **changeStreams:** fixing node4 issue with util.inherits ([#1587](https://github.com/mongodb/node-mongodb-native/issues/1587)) ([168bb3d](https://github.com/mongodb/node-mongodb-native/commit/168bb3d))
99
* **collection:** allow { upsert: 1 } for findOneAndUpdate() and update() ([5bcedd6](https://github.com/mongodb/node-mongodb-native/commit/5bcedd6))
100
* **collection:** allow passing `noCursorTimeout` as an option to `find()` ([e9c4ffc](https://github.com/mongodb/node-mongodb-native/commit/e9c4ffc))
101
* **collection:** make the parameters of findOne very explicit ([3054f1a](https://github.com/mongodb/node-mongodb-native/commit/3054f1a))
102
* **cursor:** `hasNext` should propagate errors when using callback ([6339625](https://github.com/mongodb/node-mongodb-native/commit/6339625))
103
* **cursor:** close readable on `null` response for dead cursor ([6aca2c5](https://github.com/mongodb/node-mongodb-native/commit/6aca2c5))
104
* **dns txt records:** check options are set ([e5caf4f](https://github.com/mongodb/node-mongodb-native/commit/e5caf4f))
105
* **docs:** Represent each valid option in docs in both places ([fde6e5d](https://github.com/mongodb/node-mongodb-native/commit/fde6e5d))
106
* **grid-store:** add missing callback ([66a9a05](https://github.com/mongodb/node-mongodb-native/commit/66a9a05))
107
* **grid-store:** move into callback scope ([b53f65f](https://github.com/mongodb/node-mongodb-native/commit/b53f65f))
108
* **GridFS:**  fix TypeError: doc.data.length is not a function ([#1570](https://github.com/mongodb/node-mongodb-native/issues/1570)) ([22a4628](https://github.com/mongodb/node-mongodb-native/commit/22a4628))
109
* **list-collections:** ensure default of primary ReadPreference ([4a0cfeb](https://github.com/mongodb/node-mongodb-native/commit/4a0cfeb))
110
* **mongo client:** close client before calling done ([c828aab](https://github.com/mongodb/node-mongodb-native/commit/c828aab))
111
* **mongo client:** do not connect if url parse error ([cd10084](https://github.com/mongodb/node-mongodb-native/commit/cd10084))
112
* **mongo client:** send error to cb ([eafc9e2](https://github.com/mongodb/node-mongodb-native/commit/eafc9e2))
113
* **mongo-client:** move to inside of callback ([68b0fca](https://github.com/mongodb/node-mongodb-native/commit/68b0fca))
114
* **mongo-client:** options should not be passed to `connect` ([474ac65](https://github.com/mongodb/node-mongodb-native/commit/474ac65))
115
* **tests:** migrate 2.x tests to 3.x ([3a5232a](https://github.com/mongodb/node-mongodb-native/commit/3a5232a))
116
* **updateOne/updateMany:** ensure that update documents contain atomic operators ([8b4255a](https://github.com/mongodb/node-mongodb-native/commit/8b4255a))
117
* **url parser:** add check for options as cb ([52b6039](https://github.com/mongodb/node-mongodb-native/commit/52b6039))
118
* **url parser:** compare srv address and parent domains ([daa186d](https://github.com/mongodb/node-mongodb-native/commit/daa186d))
119
* **url parser:** compare string from first period on ([9e5d77e](https://github.com/mongodb/node-mongodb-native/commit/9e5d77e))
120
* **url parser:** default to ssl true for mongodb+srv ([0fbca4b](https://github.com/mongodb/node-mongodb-native/commit/0fbca4b))
121
* **url parser:** error when multiple hostnames used ([c1aa681](https://github.com/mongodb/node-mongodb-native/commit/c1aa681))
122
* **url parser:** keep original uri options and default to ssl true ([e876a72](https://github.com/mongodb/node-mongodb-native/commit/e876a72))
123
* **url parser:** log instead of throw error for unsupported url options ([155de2d](https://github.com/mongodb/node-mongodb-native/commit/155de2d))
124
* **url parser:** make sure uri has 3 parts ([aa9871b](https://github.com/mongodb/node-mongodb-native/commit/aa9871b))
125
* **url parser:** only 1 txt record allowed with 2 possible options ([d9f4218](https://github.com/mongodb/node-mongodb-native/commit/d9f4218))
126
* **url parser:** only check for multiple hostnames with srv protocol ([5542bcc](https://github.com/mongodb/node-mongodb-native/commit/5542bcc))
127
* **url parser:** remove .only from test ([642e39e](https://github.com/mongodb/node-mongodb-native/commit/642e39e))
128
* **url parser:** return callback ([6096afc](https://github.com/mongodb/node-mongodb-native/commit/6096afc))
129
* **url parser:** support single text record with multiple strings ([356fa57](https://github.com/mongodb/node-mongodb-native/commit/356fa57))
130
* **url parser:** try catch bug, not actually returning from try loop ([758892b](https://github.com/mongodb/node-mongodb-native/commit/758892b))
131
* **url parser:** use warn instead of info ([40ed27d](https://github.com/mongodb/node-mongodb-native/commit/40ed27d))
132
* **url-parser:** remove comment, send error to cb ([d44420b](https://github.com/mongodb/node-mongodb-native/commit/d44420b))
133
134
135
### Features
136
137
* **aggregate:** support hit field for aggregate command ([aa7da15](https://github.com/mongodb/node-mongodb-native/commit/aa7da15))
138
* **aggregation:** adds support for comment in aggregation command ([#1571](https://github.com/mongodb/node-mongodb-native/issues/1571)) ([4ac475c](https://github.com/mongodb/node-mongodb-native/commit/4ac475c))
139
* **aggregation:** fail aggregation on explain + readConcern/writeConcern ([e0ca1b4](https://github.com/mongodb/node-mongodb-native/commit/e0ca1b4))
140
* **causal-consistency:** support `afterClusterTime` in readConcern ([a9097f7](https://github.com/mongodb/node-mongodb-native/commit/a9097f7))
141
* **change-streams:** add support for change streams ([c02d25c](https://github.com/mongodb/node-mongodb-native/commit/c02d25c))
142
* **collection:** updating find API ([f26362d](https://github.com/mongodb/node-mongodb-native/commit/f26362d))
143
* **execute-operation:** implementation for common op execution ([67c344f](https://github.com/mongodb/node-mongodb-native/commit/67c344f))
144
* **listDatabases:** add support for nameOnly option to listDatabases ([eb79b5a](https://github.com/mongodb/node-mongodb-native/commit/eb79b5a))
145
* **maxTimeMS:** adding maxTimeMS option to createIndexes and dropIndexes ([90d4a63](https://github.com/mongodb/node-mongodb-native/commit/90d4a63))
146
* **mongo-client:** implement `MongoClient.prototype.startSession` ([bce5adf](https://github.com/mongodb/node-mongodb-native/commit/bce5adf))
147
* **retryable-writes:** add support for `retryWrites` cs option ([2321870](https://github.com/mongodb/node-mongodb-native/commit/2321870))
148
* **sessions:** MongoClient will now track sessions and release ([6829f47](https://github.com/mongodb/node-mongodb-native/commit/6829f47))
149
* **sessions:** support passing sessions via objects in all methods ([a531f05](https://github.com/mongodb/node-mongodb-native/commit/a531f05))
150
* **shared:** add helper utilities for assertion and suite setup ([b6cc34e](https://github.com/mongodb/node-mongodb-native/commit/b6cc34e))
151
* **ssl:** adds missing ssl options ssl options for `ciphers` and `ecdhCurve` ([441b7b1](https://github.com/mongodb/node-mongodb-native/commit/441b7b1))
152
* **test-shared:** add `notEqual` assertion ([41d93fd](https://github.com/mongodb/node-mongodb-native/commit/41d93fd))
153
* **test-shared:** add `strictEqual` assertion method ([cad8e19](https://github.com/mongodb/node-mongodb-native/commit/cad8e19))
154
* **topologies:** expose underlaying `logicalSessionTimeoutMinutes' ([1609a37](https://github.com/mongodb/node-mongodb-native/commit/1609a37))
155
* **url parser:** better error message for slash in hostname ([457bc29](https://github.com/mongodb/node-mongodb-native/commit/457bc29))
156
157
158
### BREAKING CHANGES
159
160
* **aggregation:** If you use aggregation, and try to use the explain flag while you
161
have a readConcern or writeConcern, your query will fail
162
* **collection:** `find` and `findOne` no longer support the `fields` parameter.
163
You can achieve the same results as the `fields` parameter by
164
either using `Cursor.prototype.project`, or by passing the `projection`
165
property in on the `options` object. Additionally, `find` does not
166
support individual options like `skip` and `limit` as positional
167
parameters. You must pass in these parameters in the `options` object
168
169
170
171
3.0.0 2017-??-??
172
----------------
173
* NODE-1043 URI-escaping authentication and hostname details in connection string
174
175
2.2.31 2017-08-08
176
-----------------
177
* update mongodb-core to 2.2.15
178
* allow auth option in MongoClient.connect
179
* remove duplicate option `promoteLongs` from MongoClient's `connect`
180
* bulk operations should not throw an error on empty batch
181
182
2.2.30 2017-07-07
183
-----------------
184
* Update mongodb-core to 2.2.14
185
* MongoClient
186
  * add `appname` to list of valid option names
187
  * added test for passing appname as option
188
* NODE-1052 ensure user options are applied while parsing connection string uris
189
190
2.2.29 2017-06-19
191
-----------------
192
* Update mongodb-core to 2.1.13
193
  * NODE-1039 ensure we force destroy server instances, forcing queue to be flushed.
194
  *  Use actual server type in standalone SDAM events.
195
* Allow multiple map calls (Issue #1521, https://github.com/Robbilie).
196
* Clone insertMany options before mutating (Issue #1522, https://github.com/vkarpov15).
197
* NODE-1034 Fix GridStore issue caused by Node 8.0.0 breaking backward compatible fs.read API.
198
* NODE-1026, use  operator instead of skip function in order to avoid useless fetch stage.
199
200
2.2.28 2017-06-02
201
-----------------
202
* Update mongodb-core to 2.1.12
203
  * NODE-1019 Set keepAlive to 300 seconds or 1/2 of socketTimeout if socketTimeout < keepAlive.
204
  * Minor fix to report the correct state on error.
205
  * NODE-1020 'family' was added to options to provide high priority for ipv6 addresses (Issue #1518, https://github.com/firej).
206
  * Fix require_optional loading of bson-ext.
207
  * Ensure no errors are thrown by replset if topology is destroyed before it finished connecting.
208
  * NODE-999 SDAM fixes for Mongos and single Server event emitting.
209
  * NODE-1014 Set socketTimeout to default to 360 seconds.
210
  * NODE-1019 Set keepAlive to 300 seconds or 1/2 of socketTimeout if socketTimeout < keepAlive.
211
* Just handle Collection name errors distinctly from general callback errors avoiding double callbacks in Db.collection.
212
* NODE-999 SDAM fixes for Mongos and single Server event emitting.
213
* NODE-1000 Added guard condition for upload.js checkDone function in case of race condition caused by late arriving chunk write.
214
215
2.2.27 2017-05-22
216
-----------------
217
* Updated mongodb-core to 2.1.11
218
    * NODE-987 Clear out old intervalIds on when calling topologyMonitor.
219
    * NODE-987 Moved filtering to pingServer method and added test case.
220
    * Check for connection destroyed just before writing out and flush out operations correctly if it is (Issue #179, https://github.com/jmholzinger).
221
    * NODE-989 Refactored Replicaset monitoring to correcly monitor newly added servers, Also extracted setTimeout and setInterval to use custom wrappers Timeout and Interval.
222
* NODE-985 Deprecated Db.authenticate and Admin.authenticate and moved auth methods into authenticate.js to ensure MongoClient.connect does not print deprecation warnings.
223
* NODE-988 Merged readConcern and hint correctly on collection(...).find(...).count()
224
* Fix passing the readConcern option to MongoClient.connect (Issue #1514, https://github.com/bausmeier).
225
* NODE-996 Propegate all events up to a MongoClient instance.
226
* Allow saving doc with null `_id` (Issue #1517, https://github.com/vkarpov15).
227
* NODE-993 Expose hasNext for command cursor and add docs for both CommandCursor and Aggregation Cursor.
228
229
2.2.26 2017-04-18
230
-----------------
231
* Updated mongodb-core to 2.1.10
232
    * NODE-981 delegate auth to replset/mongos if inTopology is set.
233
    * NODE-978 Wrap connection.end in try/catch for node 0.10.x issue causing exceptions to be thrown, Also surfaced getConnection for mongos and replset.
234
    * Remove dynamic require (Issue #175, https://github.com/tellnes).
235
    * NODE-696 Handle interrupted error for createIndexes.
236
    * Fixed isse when user is executing find command using Server.command and it get interpreted as a wire protcol message, #172.
237
    * NODE-966 promoteValues not being promoted correctly to getMore.
238
    * Merged in fix for flushing out monitoring operations.
239
* NODE-983 Add cursorId to aggregate and listCollections commands (Issue, #1510).
240
* Mark group and profilingInfo as deprecated methods
241
* NODE-956 DOCS Examples.
242
* Update readable-stream to version 2.2.7.
243
* NODE-978 Added test case to uncover connection.end issue for node 0.10.x.
244
* NODE-972 Fix(db): don't remove database name if collectionName == dbName (Issue, #1502)
245
* Fixed merging of writeConcerns on db.collection method.
246
* NODE-970 mix in readPreference for strict mode listCollections callback.
247
* NODE-966 added testcase for promoteValues being applied to getMore commands.
248
* NODE-962 Merge in ignoreUndefined from collection level for find/findOne.
249
* Remove multi option from updateMany tests/docs (Issue #1499, https://github.com/spratt).
250
* NODE-963 Correctly handle cursor.count when using APM.
251
252
2.2.25 2017-03-17
253
-----------------
254
* Don't rely on global toString() for checking if object (Issue #1494, https://github.com/vkarpov15).
255
* Remove obsolete option uri_decode_auth (Issue #1488, https://github.com/kamagatos).
256
* NODE-936 Correctly translate ReadPreference to CoreReadPreference for mongos queries.
257
* Exposed BSONRegExp type.
258
* NODE-950 push correct index for INSERT ops (https://github.com/mbroadst).
259
* NODE-951 Added support for sslCRL option and added a test case for it.
260
* NODE-953 Made batchSize issue general at cursor level.
261
* NODE-954 Remove write concern from reindex helper as it will not be supported in 3.6.
262
* Updated mongodb-core to 2.1.9.
263
    * Return lastIsMaster correctly when connecting with secondaryOnlyConnectionAllowed is set to true and only a secondary is available in replica state.
264
    * Clone options when passed to wireProtocol handler to avoid intermittent modifications causing errors.
265
    * Ensure SSL error propegates better for Replset connections when there is a SSL validation error.
266
    * NODE-957 Fixed issue where < batchSize not causing cursor to be closed on execution of first batch.
267
    * NODE-958 Store reconnectConnection on pool object to allow destroy to close immediately.
268
269
2.2.24 2017-02-14
270
-----------------
271
* NODE-935, NODE-931 Make MongoClient strict options validation optional and instead print annoying console.warn entries.
272
273
2.2.23 2017-02-13
274
-----------------
275
* Updated mongodb-core to 2.1.8.
276
  * NODE-925 ensure we reschedule operations while pool is < poolSize while pool is growing and there are no connections with not currently performing work.
277
  * NODE-927 fixes issue where authentication was performed against arbiter instances.
278
  * NODE-915 Normalize all host names to avoid comparison issues.
279
  * Fixed issue where pool.destroy would never finish due to a single operation not being executed and keeping it open.
280
* NODE-931 Validates all the options for MongoClient.connect and fixes missing connection settings.
281
* NODE-929 Update SSL tutorial to correctly reflect the non-need for server/mongos/replset subobjects
282
* Fix sensitive command check (Issue #1473, https://github.com/Annoraaq)
283
284
2.2.22 2017-01-24
285
-----------------
286
* Updated mongodb-core to 2.1.7.
287
  * NODE-919 ReplicaSet connection does not close immediately (Issue #156).
288
  * NODE-901 Fixed bug when normalizing host names.
289
  * NODE-909 Fixed readPreference issue caused by direct connection to primary.
290
  * NODE-910 Fixed issue when bufferMaxEntries == 0 and read preference set to nearest.
291
* Add missing unref implementations for replset, mongos (Issue #1455, https://github.com/zbjornson)
292
293
2.2.21 2017-01-13
294
-----------------
295
* Updated mongodb-core to 2.1.6.
296
  * NODE-908 Keep auth contexts in replset and mongos topology to ensure correct application of authentication credentials when primary is first server to be detected causing an immediate connect event to happen.
297
298
2.2.20 2017-01-11
299
-----------------
300
* Updated mongodb-core to 2.1.5 to include bson 1.0.4 and bson-ext 1.0.4 due to Buffer.from being broken in early node 4.x versions.
301
302
2.2.19 2017-01-03
303
-----------------
304
* Corrupted Npm release fix.
305
306
2.2.18 2017-01-03
307
-----------------
308
* Updated mongodb-core to 2.1.4 to fix bson ObjectId toString issue with utils.inspect messing with toString parameters in node 6.
309
310
2.2.17 2017-01-02
311
-----------------
312
* updated createCollection doc options and linked to create command.
313
* Updated mongodb-core to 2.1.3.
314
  * Monitoring operations are re-scheduled in pool if it cannot find a connection that does not already have scheduled work on it, this is to avoid the monitoring socket timeout being applied to any existing operations on the socket due to pipelining
315
  * Moved replicaset monitoring away from serial mode and to parallel mode.
316
  * updated bson and bson-ext dependencies to 1.0.2.
317
318
2.2.16 2016-12-13
319
-----------------
320
* NODE-899 reversed upsertedId change to bring back old behavior.
321
322
2.2.15 2016-12-10
323
-----------------
324
* Updated mongodb-core to 2.1.2.
325
  * Delay topologyMonitoring on successful attemptReconnect as no need to run a full scan immediately.
326
  * Emit reconnect event in primary joining when in connected status for a replicaset (Fixes mongoose reconnect issue).
327
328
2.2.14 2016-12-08
329
-----------------
330
* Updated mongodb-core to 2.1.1.
331
* NODE-892 Passthrough options.readPreference to mongodb-core ReplSet instance.
332
333
2.2.13 2016-12-05
334
-----------------
335
* Updated mongodb-core to 2.1.0.
336
* NODE-889 Fixed issue where legacy killcursor wire protocol messages would not be sent when APM is enabled.
337
* Expose parserType as property on topology objects.
338
339
2.2.12 2016-11-29
340
-----------------
341
* Updated mongodb-core to 2.0.14.
342
  * Updated bson library to 0.5.7.
343
  * Dont leak connection.workItems elments when killCursor is called (Issue #150, https://github.com/mdlavin).
344
  * Remove unnecessary errors formatting (Issue #149, https://github.com/akryvomaz).
345
  * Only check isConnected against availableConnections (Issue #142).
346
  * NODE-838 Provide better error message on failed to connect on first retry for Mongos topology.
347
  * Set default servername to host is not passed through for sni.
348
  * Made monitoring happen on exclusive connection and using connectionTimeout to handle the wait time before failure (Issue #148).
349
  * NODE-859 Make minimum value of maxStalenessSeconds 90 seconds.
350
  * NODE-852 Fix Kerberos module deprecations on linux and windows and release new kerberos version.
351
  * NODE-850 Update Max Staleness implementation.
352
  * NODE-849 username no longer required for MONGODB-X509 auth.
353
  * NODE-848 BSON Regex flags must be alphabetically ordered.
354
  * NODE-846 Create notice for all third party libraries.
355
  * NODE-843 Executing bulk operations overwrites write concern parameter.
356
  * NODE-842 Re-sync SDAM and SDAM Monitoring tests from Specs repo.
357
  * NODE-840 Resync CRUD spec tests.
358
  * Unescapable while(true) loop (Issue #152).
359
* NODE-864 close event not emits during network issues using single server topology.
360
* Introduced maxStalenessSeconds.
361
* NODE-840 Added CRUD specification test cases and fix minor issues with upserts reporting matchedCount > 0.
362
* Don't ignore Db-level authSource when using auth method.  (https://github.com/donaldguy).
363
364
2.2.11 2016-10-21
365
-----------------
366
* Updated mongodb-core to 2.0.13.
367
  - Fire callback when topology was destroyed (Issue #147, https://github.com/vkarpov15).
368
  - Refactoring to support pipelining ala 1.4.x branch will retaining the benefits of the growing/shrinking pool (Issue #146).
369
  - Fix typo in serverHeartbeatFailed event name (Issue #143, https://github.com/jakesjews).
370
  - NODE-798 Driver hangs on count command in replica set with one member (Issue #141, https://github.com/isayme).
371
* Updated bson library to 0.5.6.
372
  - Included cyclic dependency detection
373
* Fix typo in serverHeartbeatFailed event name (Issue #1418, https://github.com/jakesjews).
374
* NODE-824, readPreference "nearest" does not work when specified at collection level.
375
* NODE-822, GridFSBucketWriteStream end method does not handle optional parameters.
376
* NODE-823, GridFSBucketWriteStream end: callback is invoked with invalid parameters.
377
* NODE-829, Using Start/End offset option in GridFSBucketReadStream doesn't return the right sized buffer.
378
379
2.2.10 2016-09-15
380
-----------------
381
* Updated mongodb-core to 2.0.12.
382
* fix debug logging message not printing server name.
383
* fixed application metadata being sent by wrong ismaster.
384
* NODE-812 Fixed mongos stall due to proxy monitoring ismaster failure causing reconnect.
385
* NODE-818 Replicaset timeouts in initial connect sequence can "no primary found".
386
* Updated bson library to 0.5.5.
387
* Added DBPointer up conversion to DBRef.
388
* MongoDB 3.4-RC Pass **appname** through MongoClient.connect uri or options to allow metadata to be passed.
389
* MongoDB 3.4-RC Pass collation options on update, findOne, find, createIndex, aggregate.
390
* MongoDB 3.4-RC Allow write concerns to be passed to all supporting server commands.
391
* MongoDB 3.4-RC Allow passing of **servername** as SSL options to support SNI.
392
393
2.2.9 2016-08-29
394
----------------
395
* Updated mongodb-core to 2.0.11.
396
* NODE-803, Fixed issue in how the latency window is calculated for Mongos topology causing issues for single proxy connections.
397
* Avoid timeout in attemptReconnect causing multiple attemptReconnect attempts to happen (Issue #134, https://github.com/dead-horse).
398
* Ensure promoteBuffers is propegated in same fashion as promoteValues and promoteLongs.
399
* Don't treat ObjectId as object for mapReduce scope (Issue #1397, https://github.com/vkarpov15).
400
401
2.2.8 2016-08-23
402
----------------
403
* Updated mongodb-core to 2.0.10.
404
* Added promoteValues flag (default to true) to allow user to specify they only want wrapped BSON values back instead of promotion to native types.
405
* Do not close mongos proxy connection on failed ismaster check in ha process (Issue #130).
406
407
2.2.7 2016-08-19
408
----------------
409
* If only a single mongos is provided in the seedlist, fix issue where it would be assigned as single standalone server instead of mongos topology (Issue #130).
410
* Updated mongodb-core to 2.0.9.
411
* Allow promoteLongs to be passed in through Response.parse method and overrides default set on the connection.
412
* NODE-798 Driver hangs on count command in replica set with one member.
413
* Allow promoteLongs to be passed in through Response.parse method and overrides default set on the connection.
414
* Allow passing in servername for TLS connections for SNI support.
415
416
2.2.6 2016-08-16
417
----------------
418
* Updated mongodb-core to 2.0.8.
419
* Allow execution of store operations independent of having both a primary and secondary available (Issue #123).
420
* Fixed command execution issue for mongos to ensure buffering of commands when no mongos available.
421
* Allow passing in an array of tags to ReadPreference constructor (Issue #1382, https://github.com/vkarpov15)
422
* Added hashed connection names and fullResult.
423
* Updated bson library to 0.5.3.
424
* Enable maxTimeMS in count, distinct, findAndModify.
425
426
2.2.5 2016-07-28
427
----------------
428
* Updated mongodb-core to 2.0.7.
429
* Allow primary to be returned when secondaryPreferred is passed (Issue #117, https://github.com/dhendo).
430
* Added better warnings when passing in illegal seed list members to a Mongos topology.
431
* Minor attemptReconnect bug that would cause multiple attemptReconnect to run in parallel.
432
* Fix wrong opType passed to disconnectHandler.add (Issue #121, https://github.com/adrian-gierakowski)
433
* Implemented domain backward comp support enabled via domainsEnabled options on Server/ReplSet/Mongos and MongoClient.connect.
434
435
2.2.4 2016-07-19
436
----------------
437
* NPM corrupted upload fix.
438
439
2.2.3 2016-07-19
440
----------------
441
* Updated mongodb-core to 2.0.6.
442
* Destroy connection on socket timeout due to newer node versions not closing the socket.
443
444
2.2.2 2016-07-15
445
----------------
446
* Updated mongodb-core to 2.0.5.
447
* Minor fixes to handle faster MongoClient connectivity from the driver, allowing single server instances to detect if they are a proxy.
448
* Added numberOfConsecutiveTimeouts to pool that will destroy the pool if the number of consecutive timeouts > reconnectTries.
449
* Print warning if seedlist servers host name does not match the one provided in it's ismaster.me field for Replicaset members.
450
* Fix issue where Replicaset connection would not succeeed if there the replicaset was a single primary server setup.
451
452
2.2.1 2016-07-11
453
----------------
454
* Updated mongodb-core to 2.0.4.
455
* handle situation where user is providing seedlist names that do not match host list. fix allows for a single full discovery connection sweep before erroring out.
456
* NODE-747 Polyfill for Object.assign for 0.12.x or 0.10.x.
457
* NODE-746 Improves replicaset errors for wrong setName.
458
459
2.2.0 2016-07-05
460
----------------
461
* Updated mongodb-core to 2.0.3.
462
* Moved all authentication and handling of growing/shrinking of pool connections into actual pool.
463
* All authentication methods now handle both auth/reauthenticate and logout events.
464
* Introduced logout method to get rid of onAll option for logout command.
465
* Updated bson to 0.5.0 that includes Decimal128 support.
466
* Fixed logger error serialization issue.
467
* Documentation fixes.
468
* Implemented Server Selection Specification test suite.
469
* Added warning level to logger.
470
* Added warning message when sockeTimeout < haInterval for Replset/Mongos.
471
* Mongos emits close event on no proxies available or when reconnect attempt fails.
472
* Replset emits close event when no servers available or when attemptReconnect fails to reconnect.
473
* Don't throw in auth methods but return error in callback.
474
475
2.1.21 2016-05-30
476
-----------------
477
* Updated mongodb-core to 1.3.21.
478
* Pool gets stuck if a connection marked for immediateRelease times out (Issue #99, https://github.com/nbrachet).
479
* Make authentication process retry up to authenticationRetries at authenticationRetryIntervalMS interval.
480
* Made ismaster replicaset calls operate with connectTimeout or monitorSocketTimeout to lower impact of big socketTimeouts on monitoring performance.
481
* Make sure connections mark as "immediateRelease" don't linger the inUserConnections list. Otherwise, after that connection times out, getAll() incorrectly returns more connections than are effectively present, causing the pool to not get restarted by reconnectServer. (Issue #99, https://github.com/nbrachet).
482
* Make cursor getMore or killCursor correctly trigger pool reconnect to single server if pool has not been destroyed.
483
* Make ismaster monitoring for single server connection default to avoid user confusion due to change in behavior.
484
485
2.1.20 2016-05-25
486
-----------------
487
* Refactored MongoClient options handling to simplify the logic, unifying it.
488
* NODE-707 Implemented openUploadStreamWithId on GridFS to allow for custom fileIds so users are able to customize shard key and shard distribution.
489
* NODE-710 Allow setting driver loggerLevel and logger function from MongoClient options.
490
* Updated mongodb-core to 1.3.20.
491
* Minor fix for SSL errors on connection attempts, minor fix to reconnect handler for the server.
492
* Don't write to socket before having registered the callback for commands, work around for windows issuing error events twice on node.js when socket gets destroyed by firewall.
493
* Fix minor issue where connectingServers would not be removed correctly causing single server connections to not auto-reconnect.
494
495
2.1.19 2016-05-17
496
----------------
497
* Handle situation where a server connection in a replicaset sometimes fails to be destroyed properly due to being in the middle of authentication when the destroy method is called on the replicaset causing it to be orphaned and never collected.
498
* Ensure replicaset topology destroy is never called by SDAM.
499
* Ensure all paths are correctly returned on inspectServer in replset.
500
* Updated mongodb-core to 1.3.19 to fix minor connectivity issue on quick open/close of MongoClient connections on auth enabled mongodb Replicasets.
501
502
2.1.18 2016-04-27
503
-----------------
504
* Updated mongodb-core to 1.3.18 to fix Node 6.0 issues.
505
506
2.1.17 2016-04-26
507
-----------------
508
* Updated mongodb-core to 1.3.16 to work around issue with early versions of node 0.10.x due to missing unref method on ClearText streams.
509
* INT-1308: Allow listIndexes to inherit readPreference from Collection or DB.
510
* Fix timeout issue using new flags #1361.
511
* Updated mongodb-core to 1.3.17.
512
* Better handling of unique createIndex error.
513
* Emit error only if db instance has an error listener.
514
* DEFAULT authMechanism; don't throw error if explicitly set by user.
515
516
2.1.16 2016-04-06
517
-----------------
518
* Updated mongodb-core to 1.3.16.
519
520
2.1.15 2016-04-06
521
-----------------
522
* Updated mongodb-core to 1.3.15.
523
* Set ssl, sslValidate etc to mongosOptions on url_parser (Issue #1352, https://github.com/rubenstolk).
524
- NODE-687 Fixed issue where a server object failed to be destroyed if the replicaset state did not update successfully. This could leave active connections accumulating over time.
525
- Fixed some situations where all connections are flushed due to a single connection in the connection pool closing.
526
527
2.1.14 2016-03-29
528
-----------------
529
* Updated mongodb-core to 1.3.13.
530
* Handle missing cursor on getMore when going through a mongos proxy by pinning to socket connection and not server.
531
532
2.1.13 2016-03-29
533
-----------------
534
* Updated mongodb-core to 1.3.12.
535
536
2.1.12 2016-03-29
537
-----------------
538
* Updated mongodb-core to 1.3.11.
539
* Mongos setting acceptableLatencyMS exposed to control the latency women for mongos selection.
540
* Mongos pickProxies fall back to closest mongos if no proxies meet latency window specified.
541
* isConnected method for mongos uses same selection code as getServer.
542
* Exceptions in cursor getServer trapped and correctly delegated to high level handler.
543
544
2.1.11 2016-03-23
545
-----------------
546
* Updated mongodb-core to 1.3.10.
547
* Introducing simplified connections settings.
548
549
2.1.10 2016-03-21
550
-----------------
551
* Updated mongodb-core to 1.3.9.
552
* Fixing issue that prevented mapReduce stats from being resolved (Issue #1351, https://github.com/davidgtonge)
553
* Forwards SDAM monitoring events from mongodb-core.
554
555
2.1.9 2016-03-16
556
----------------
557
* Updated mongodb-core to 1.3.7 to fix intermittent race condition that causes some users to experience big amounts of socket connections.
558
* Makde bson parser in ordered/unordered bulk be directly from mongodb-core to avoid intermittent null error on mongoose.
559
560
2.1.8 2016-03-14
561
----------------
562
* Updated mongodb-core to 1.3.5.
563
* NODE-660 TypeError: Cannot read property 'noRelease' of undefined.
564
* Harden MessageHandler in server.js to avoid issues where we cannot find a callback for an operation.
565
* Ensure RequestId can never be larger than Max Number integer size.
566
* NODE-661 typo in url_parser.js resulting in replSetServerOptions is not defined when connecting over ssl.
567
* Confusing error with invalid partial index filter (Issue #1341, https://github.com/vkarpov15).
568
* NODE-669 Should only error out promise for bulkWrite when error is a driver level error not a write error or write concern error.
569
* NODE-662 shallow copy options on methods that are not currently doing it to avoid passed in options mutiation.
570
* NODE-663 added lookup helper on aggregation cursor.
571
* NODE-585 Result object specified incorrectly for findAndModify?.
572
* NODE-666 harden validation for findAndModify CRUD methods.
573
574
2.1.7 2016-02-09
575
----------------
576
* NODE-656 fixed corner case where cursor count command could be left without a connection available.
577
* NODE-658 Work around issue that bufferMaxEntries:-1 for js gets interpreted wrongly due to double nature of Javascript numbers.
578
* Fix: GridFS always returns the oldest version due to incorrect field name (Issue #1338, https://github.com/mdebruijne).
579
* NODE-655 GridFS stream support for cancelling upload streams and download streams (Issue #1339, https://github.com/vkarpov15).
580
* NODE-657 insertOne don`t return promise in some cases.
581
* Added destroy alias for abort function on GridFSBucketWriteStream.
582
583
2.1.6 2016-02-05
584
----------------
585
* Updated mongodb-core to 1.3.1.
586
587
2.1.5 2016-02-04
588
----------------
589
* Updated mongodb-core to 1.3.0.
590
* Added raw support for the command function on topologies.
591
* Fixed issue where raw results that fell on batchSize boundaries failed (Issue #72)
592
* Copy over all the properties to the callback returned from bindToDomain, (Issue #72)
593
* Added connection hash id to be able to reference connection host/name without leaking it outside of driver.
594
* NODE-638, Cannot authenticate database user with utf-8 password.
595
* Refactored pool to be worker queue based, minimizing the impact a slow query have on throughput as long as # slow queries < # connections in the pool.
596
* Pool now grows and shrinks correctly depending on demand not causing a full pool reconnect.
597
* Improvements in monitoring of a Replicaset where in certain situations the inquiry process could get exited.
598
* Switched to using Array.push instead of concat for use cases of a lot of documents.
599
* Fixed issue where re-authentication could loose the credentials if whole Replicaset disconnected at once.
600
* Added peer optional dependencies support using require_optional module.
601
* Bug is listCollections for collection names that start with db name (Issue #1333, https://github.com/flyingfisher)
602
* Emit error before closing stream (Issue #1335, https://github.com/eagleeye)
603
604
2.1.4 2016-01-12
605
----------------
606
* Restricted node engine to >0.10.3 (https://jira.mongodb.org/browse/NODE-635).
607
* Multiple database names ignored without a warning (https://jira.mongodb.org/browse/NODE-636, Issue #1324, https://github.com/yousefhamza).
608
* Convert custom readPreference objects in collection.js (Issue #1326, https://github.com/Machyne).
609
610
2.1.3 2016-01-04
611
----------------
612
* Updated mongodb-core to 1.2.31.
613
* Allow connection to secondary if primaryPreferred or secondaryPreferred (Issue #70, https://github.com/leichter)
614
615
2.1.2 2015-12-23
616
----------------
617
* Updated mongodb-core to 1.2.30.
618
* Pool allocates size + 1 connections when using replicasets, reserving additional pool connection for monitoring exclusively.
619
* Fixes bug when all replicaset members are down, that would cause it to fail to reconnect using the originally provided seedlist.
620
621
2.1.1 2015-12-13
622
----------------
623
* Surfaced checkServerIdentity options for MongoClient, Server, ReplSet and Mongos to allow for control of the checkServerIdentity method available in Node.s 0.12.x or higher.
624
* Added readPreference support to listCollections and listIndexes helpers.
625
* Updated mongodb-core to 1.2.28.
626
627
2.1.0 2015-12-06
628
----------------
629
* Implements the connection string specification, https://github.com/mongodb/specifications/blob/master/source/connection-string/connection-string-spec.rst.
630
* Implements the new GridFS specification, https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.rst.
631
* Full MongoDB 3.2 support.
632
* NODE-601 Added maxAwaitTimeMS support for 3.2 getMore to allow for custom timeouts on tailable cursors.
633
* Updated mongodb-core to 1.2.26.
634
* Return destination in GridStore pipe function.
635
* NODE-606 better error handling on destroyed topology for db.js methods.
636
* Added isDestroyed method to server, replset and mongos topologies.
637
* Upgraded test suite to run using mongodb-topology-manager.
638
639
2.0.53 2015-12-23
640
-----------------
641
* Updated mongodb-core to 1.2.30.
642
* Pool allocates size + 1 connections when using replicasets, reserving additional pool connection for monitoring exclusively.
643
* Fixes bug when all replicaset members are down, that would cause it to fail to reconnect using the originally provided seedlist.
644
645
2.0.52 2015-12-14
646
-----------------
647
* removed remove from Gridstore.close.
648
649
2.0.51 2015-12-13
650
-----------------
651
* Surfaced checkServerIdentity options for MongoClient, Server, ReplSet and Mongos to allow for control of the checkServerIdentity method available in Node.s 0.12.x or higher.
652
* Added readPreference support to listCollections and listIndexes helpers.
653
* Updated mongodb-core to 1.2.28.
654
655
2.0.50 2015-12-06
656
-----------------
657
* Updated mongodb-core to 1.2.26.
658
659
2.0.49 2015-11-20
660
-----------------
661
* Updated mongodb-core to 1.2.24 with several fixes.
662
  * Fix Automattic/mongoose#3481; flush callbacks on error, (Issue #57, https://github.com/vkarpov15).
663
  * $explain query for wire protocol 2.6 and 2.4 does not set number of returned documents to -1 but to 0.
664
  * ismaster runs against admin.$cmd instead of system.$cmd.
665
  * Fixes to handle getMore command errors for MongoDB 3.2
666
  * Allows the process to properly close upon a Db.close() call on the replica set by shutting down the haTimer and closing arbiter connections.
667
668
2.0.48 2015-11-07
669
-----------------
670
* GridFS no longer performs any deletes when writing a brand new file that does not have any previous <db>.fs.chunks or <db>.fs.files documents.
671
* Updated mongodb-core to 1.2.21.
672
* Hardened the checking for replicaset equality checks.
673
* OpReplay flag correctly set on Wire protocol query.
674
* Mongos load balancing added, introduced localThresholdMS to control the feature.
675
* Kerberos now a peerDependency, making it not install it by default in Node 5.0 or higher.
676
677
2.0.47 2015-10-28
678
-----------------
679
* Updated mongodb-core to 1.2.20.
680
* Fixed bug in arbiter connection capping code.
681
* NODE-599 correctly handle arrays of server tags in order of priority.
682
* Fix for 2.6 wire protocol handler related to readPreference handling.
683
* Added maxAwaitTimeMS support for 3.2 getMore to allow for custom timeouts on tailable cursors.
684
* Make CoreCursor check for $err before saying that 'next' succeeded (Issue #53, https://github.com/vkarpov15).
685
686
2.0.46 2015-10-15
687
-----------------
688
* Updated mongodb-core to 1.2.19.
689
* NODE-578 Order of sort fields is lost for numeric field names.
690
* Expose BSON Map (ES6 Map or polyfill).
691
* Minor fixes for APM support to pass extended APM test suite.
692
693
2.0.45 2015-09-30
694
-----------------
695
* NODE-566 Fix issue with rewind on capped collections causing cursor state to be reset on connection loss.
696
697
2.0.44 2015-09-28
698
-----------------
699
* Bug fixes for APM upconverting of legacy INSERT/UPDATE/REMOVE wire protocol messages.
700
* NODE-562, fixed issue where a Replicaset MongoDB URI with a single seed and replSet name set would cause a single direct connection instead of topology discovery.
701
* Updated mongodb-core to 1.2.14.
702
* NODE-563 Introduced options.ignoreUndefined for db class and MongoClient db options, made serialize undefined to null default again but allowing for overrides on insert/update/delete operations.
703
* Use handleCallback if result is an error for count queries. (Issue #1298, https://github.com/agclever)
704
* Rewind cursor to correctly force reconnect on capped collections when first query comes back empty.
705
* NODE-571 added code 59 to legacy server errors when SCRAM-SHA-1 mechanism fails.
706
* NODE-572 Remove examples that use the second parameter to `find()`.
707
708
2.0.43 2015-09-14
709
-----------------
710
* Propagate timeout event correctly to db instances.
711
* Application Monitoring API (APM) implemented.
712
* NOT providing replSet name in MongoClient connection URI will force single server connection. Fixes issue where it was impossible to directly connect to a replicaset member server.
713
* Updated mongodb-core to 1.2.12.
714
* NODE-541 Initial Support "read committed" isolation level where "committed" means confimed by the voting majority of a replica set.
715
* GridStore doesn't share readPreference setting from connection string. (Issue #1295, https://github.com/zhangyaoxing)
716
* fixed forceServerObjectId calls (Issue #1292, https://github.com/d-mon-)
717
* Pass promise library through to DB function (Issue #1294, https://github.com/RovingCodeMonkey)
718
719
2.0.42 2015-08-18
720
-----------------
721
* Added test case to exercise all non-crud methods on mongos topologies, fixed numberOfConnectedServers on mongos topology instance.
722
723
2.0.41 2015-08-14
724
-----------------
725
* Added missing Mongos.prototype.parserType function.
726
* Updated mongodb-core to 1.2.10.
727
728
2.0.40 2015-07-14
729
-----------------
730
* Updated mongodb-core to 1.2.9 for 2.4 wire protocol error handler fix.
731
* NODE-525 Reset connectionTimeout after it's overwritten by tls.connect.
732
* NODE-518 connectTimeoutMS is doubled in 2.0.39.
733
* NODE-506 Ensures that errors from bulk unordered and ordered are instanceof Error (Issue #1282, https://github.com/owenallenaz).
734
* NODE-526 Unique index not throwing duplicate key error.
735
* NODE-528 Ignore undefined fields in Collection.find().
736
* NODE-527 The API example for collection.createIndex shows Db.createIndex functionality.
737
738
2.0.39 2015-07-14
739
-----------------
740
* Updated mongodb-core to 1.2.6 for NODE-505.
741
742
2.0.38 2015-07-14
743
-----------------
744
* NODE-505 Query fails to find records that have a 'result' property with an array value.
745
746
2.0.37 2015-07-14
747
-----------------
748
* NODE-504 Collection * Default options when using promiseLibrary.
749
* NODE-500 Accidental repeat of hostname in seed list multiplies total connections persistently.
750
* Updated mongodb-core to 1.2.5 to fix NODE-492.
751
752
2.0.36 2015-07-07
753
-----------------
754
* Fully promisified allowing the use of ES6 generators and libraries like co. Also allows for BYOP (Bring your own promises).
755
* NODE-493 updated mongodb-core to 1.2.4 to ensure we cannot DDOS the mongod or mongos process on large connection pool sizes.
756
757
2.0.35 2015-06-17
758
-----------------
759
* Upgraded to mongodb-core 1.2.2 including removing warnings when C++ bson parser is not available and a fix for SCRAM authentication.
760
761
2.0.34 2015-06-17
762
-----------------
763
* Upgraded to mongodb-core 1.2.1 speeding up serialization and removing the need for the c++ bson extension.
764
* NODE-486 fixed issue related to limit and skip when calling toArray in 2.0 driver.
765
* NODE-483 throw error if capabilities of topology is queries before topology has performed connection setup.
766
* NODE-482 fixed issue where MongoClient.connect would incorrectly identify a replset seed list server as a non replicaset member.
767
* NODE-487 fixed issue where killcursor command was not being sent correctly on limit and skip queries.
768
769
2.0.33 2015-05-20
770
-----------------
771
* Bumped mongodb-core to 1.1.32.
772
773
2.0.32 2015-05-19
774
-----------------
775
* NODE-463 db.close immediately executes its callback.
776
* Don't only emit server close event once (Issue #1276, https://github.com/vkarpov15).
777
* NODE-464 Updated mongodb-core to 1.1.31 that uses a single socket connection to arbiters and hidden servers as well as emitting all event correctly.
778
779
2.0.31 2015-05-08
780
-----------------
781
* NODE-461 Tripping on error "no chunks found for file, possibly corrupt" when there is no error.
782
783
2.0.30 2015-05-07
784
-----------------
785
* NODE-460 fix; don't set authMechanism for user in db.authenticate() to avoid mongoose authentication issue.
786
787
2.0.29 2015-05-07
788
-----------------
789
* NODE-444 Possible memory leak, too many listeners added.
790
* NODE-459 Auth failure using Node 0.8.28, MongoDB 3.0.2 & mongodb-node-native 1.4.35.
791
* Bumped mongodb-core to 1.1.26.
792
793
2.0.28 2015-04-24
794
-----------------
795
* Bumped mongodb-core to 1.1.25
796
* Added Cursor.prototype.setCursorOption to allow for setting node specific cursor options for tailable cursors.
797
* NODE-430 Cursor.count() opts argument masked by var opts = {}
798
* NODE-406 Implemented Cursor.prototype.map function tapping into MongoClient cursor transforms.
799
* NODE-438 replaceOne is not returning the result.ops property as described in the docs.
800
* NODE-433 _read, pipe and write all open gridstore automatically if not open.
801
* NODE-426 ensure drain event is emitted after write function returns, fixes intermittent issues in writing files to gridstore.
802
* NODE-440 GridStoreStream._read() doesn't check GridStore.read() error.
803
* Always use readPreference = primary for findAndModify command (ignore passed in read preferences) (Issue #1274, https://github.com/vkarpov15).
804
* Minor fix in GridStore.exists for dealing with regular expressions searches.
805
806
2.0.27 2015-04-07
807
-----------------
808
* NODE-410 Correctly handle issue with pause/resume in Node 0.10.x that causes exceptions when using the Node 0.12.0 style streams.
809
810
2.0.26 2015-04-07
811
-----------------
812
* Implements the Common Index specification Standard API at https://github.com/mongodb/specifications/blob/master/source/index-management.rst.
813
* NODE-408 Expose GridStore.currentChunk.chunkNumber.
814
815
2.0.25 2015-03-26
816
-----------------
817
* Upgraded mongodb-core to 1.1.21, making the C++ bson code an optional dependency to the bson module.
818
819
2.0.24 2015-03-24
820
-----------------
821
* NODE-395 Socket Not Closing, db.close called before full set finished initalizing leading to server connections in progress not being closed properly.
822
* Upgraded mongodb-core to 1.1.20.
823
824
2.0.23 2015-03-21
825
-----------------
826
* NODE-380 Correctly return MongoError from toError method.
827
* Fixed issue where addCursorFlag was not correctly setting the flag on the command for mongodb-core.
828
* NODE-388 Changed length from method to property on order.js/unordered.js bulk operations.
829
* Upgraded mongodb-core to 1.1.19.
830
831
2.0.22 2015-03-16
832
-----------------
833
* NODE-377, fixed issue where tags would correctly be checked on secondary and nearest to filter out eligible server candidates.
834
* Upgraded mongodb-core to 1.1.17.
835
836
2.0.21 2015-03-06
837
-----------------
838
* Upgraded mongodb-core to 1.1.16 making sslValidate default to true to force validation on connection unless overriden by the user.
839
840
2.0.20 2015-03-04
841
-----------------
842
* Updated mongodb-core 1.1.15 to relax pickserver method.
843
844
2.0.19 2015-03-03
845
-----------------
846
* NODE-376 Fixes issue * Unordered batch incorrectly tracks batch size when switching batch types (Issue #1261, https://github.com/meirgottlieb)
847
* NODE-379 Fixes bug in cursor.count() that causes the result to always be zero for dotted collection names (Issue #1262, https://github.com/vsivsi)
848
* Expose MongoError from mongodb-core (Issue #1260, https://github.com/tjconcept)
849
850
2.0.18 2015-02-27
851
-----------------
852
* Bumped mongodb-core 1.1.14 to ensure passives are correctly added as secondaries.
853
854
2.0.17 2015-02-27
855
-----------------
856
* NODE-336 Added length function to ordered and unordered bulk operations to be able know the amount of current operations in bulk.
857
* Bumped mongodb-core 1.1.13 to ensure passives are correctly added as secondaries.
858
859
2.0.16 2015-02-16
860
-----------------
861
* listCollection now returns filtered result correctly removing db name for 2.6 or earlier servers.
862
* Bumped mongodb-core 1.1.12 to correctly work for node 0.12.0 and io.js.
863
* Add ability to get collection name from cursor (Issue #1253, https://github.com/vkarpov15)
864
865
2.0.15 2015-02-02
866
-----------------
867
* Unified behavior of listCollections results so 3.0 and pre 3.0 return same type of results.
868
* Bumped mongodb-core to 1.1.11 to support per document tranforms in cursors as well as relaxing the setName requirement.
869
* NODE-360 Aggregation cursor and command correctly passing down the maxTimeMS property.
870
* Added ~1.0 mongodb-tools module for test running.
871
* Remove the required setName for replicaset connections, if not set it will pick the first setName returned.
872
873
2.0.14 2015-01-21
874
-----------------
875
* Fixed some MongoClient.connect options pass through issues and added test coverage.
876
* Bumped mongodb-core to 1.1.9 including fixes for io.js
877
878
2.0.13 2015-01-09
879
-----------------
880
* Bumped mongodb-core to 1.1.8.
881
* Optimized query path for performance, moving Object.defineProperty outside of constructors.
882
883
2.0.12 2014-12-22
884
-----------------
885
* Minor fixes to listCollections to ensure correct querying of a collection when using a string.
886
887
2.0.11 2014-12-19
888
-----------------
889
* listCollections filters out index namespaces on < 2.8 correctly
890
* Bumped mongo-client to 1.1.7
891
892
2.0.10 2014-12-18
893
-----------------
894
* NODE-328 fixed db.open return when no callback available issue and added test.
895
* NODE-327 Refactored listCollections to return cursor to support 2.8.
896
* NODE-327 Added listIndexes method and refactored internal methods to use the new command helper.
897
* NODE-335 Cannot create index for nested objects fixed by relaxing key checking for createIndex helper.
898
* Enable setting of connectTimeoutMS (Issue #1235, https://github.com/vkarpov15)
899
* Bumped mongo-client to 1.1.6
900
901
2.0.9 2014-12-01
902
----------------
903
* Bumped mongodb-core to 1.1.3 fixing global leaked variables and introducing strict across all classes.
904
* All classes are now strict (Issue #1233)
905
* NODE-324 Refactored insert/update/remove and all other crud opts to rely on internal methods to avoid any recursion.
906
* Fixed recursion issues in debug logging due to JSON.stringify()
907
* Documentation fixes (Issue #1232, https://github.com/wsmoak)
908
* Fix writeConcern in Db.prototype.ensureIndex (Issue #1231, https://github.com/Qard)
909
910
2.0.8 2014-11-28
911
----------------
912
* NODE-322 Finished up prototype refactoring of Db class.
913
* NODE-322 Exposed Cursor in index.js for New Relic.
914
915
2.0.7 2014-11-20
916
----------------
917
* Bumped mongodb-core to 1.1.2 fixing a UTF8 encoding issue for collection names.
918
* NODE-318 collection.update error while setting a function with serializeFunctions option.
919
* Documentation fixes.
920
921
2.0.6 2014-11-14
922
----------------
923
* Refactored code to be prototype based instead of privileged methods.
924
* Bumped mongodb-core to 1.1.1 to take advantage of the prototype based refactorings.
925
* Implemented missing aspects of the CRUD specification.
926
* Fixed documentation issues.
927
* Fixed global leak REFERENCE_BY_ID in gridfs grid_store (Issue #1225, https://github.com/j)
928
* Fix LearnBoost/mongoose#2313: don't let user accidentally clobber geoNear params (Issue #1223, https://github.com/vkarpov15)
929
930
2.0.5 2014-10-29
931
----------------
932
* Minor fixes to documentation and generation of documentation.
933
* NODE-306 (No results in aggregation cursor when collection name contains a dot), Merged code for cursor and aggregation cursor.
934
935
2.0.4 2014-10-23
936
----------------
937
* Allow for single replicaset seed list with no setName specified (Issue #1220, https://github.com/imaman)
938
* Made each rewind on each call allowing for re-using the cursor.
939
* Fixed issue where incorrect iterations would happen on each for extensive batchSizes.
940
* NODE-301 specifying maxTimeMS on find causes all fields to be omitted from result.
941
942
2.0.3 2014-10-14
943
----------------
944
* NODE-297 Aggregate Broken for case of pipeline with no options.
945
946
2.0.2 2014-10-08
947
----------------
948
* Bumped mongodb-core to 1.0.2.
949
* Fixed bson module dependency issue by relying on the mongodb-core one.
950
* Use findOne instead of find followed by nextObject (Issue #1216, https://github.com/sergeyksv)
951
952
2.0.1 2014-10-07
953
----------------
954
* Dependency fix
955
956
2.0.0 2014-10-07
957
----------------
958
* First release of 2.0 driver
959
960
2.0.0-alpha2 2014-10-02
961
-----------------------
962
* CRUD API (insertOne, insertMany, updateOne, updateMany, removeOne, removeMany, bulkWrite, findOneAndDelete, findOneAndUpdate, findOneAndReplace)
963
* Cluster Management Spec compatible.
964
965
2.0.0-alpha1 2014-09-08
966
-----------------------
967
* Insert method allows only up 1000 pr batch for legacy as well as 2.6 mode
968
* Streaming behavior is 0.10.x or higher with backwards compatibility using readable-stream npm package
969
* Gridfs stream only available through .stream() method due to overlapping names on Gridstore object and streams in 0.10.x and higher of node
970
* remove third result on update and remove and return the whole result document instead (getting rid of the weird 3 result parameters)
971
    * Might break some application
972
* Returns the actual mongodb-core result instead of just the number of records changed for insert/update/remove
973
* MongoClient only has the connect method (no ability instantiate with Server, ReplSet or similar)
974
* Removed Grid class
975
* GridStore only supports w+ for metadata updates, no appending to file as it's not thread safe and can cause corruption of the data
976
    + seek will fail if attempt to use with w or w+
977
    + write will fail if attempted with w+ or r
978
    + w+ only works for updating metadata on a file
979
* Cursor toArray and each resets and re-runs the cursor
980
* FindAndModify returns whole result document instead of just value
981
* Extend cursor to allow for setting all the options via methods instead of dealing with the current messed up find
982
* Removed db.dereference method
983
* Removed db.cursorInfo method
984
* Removed db.stats method
985
* Removed db.collectionNames not needed anymore as it's just a specialized case of listCollections
986
* Removed db.collectionInfo removed due to not being compatible with new storage engines in 2.8 as they need to use the listCollections command due to system collections not working for namespaces.
987
* Added db.listCollections to replace several methods above
988
989
1.4.10 2014-09-04
990
-----------------
991
* Fixed BSON and Kerberos compilation issues
992
* Bumped BSON to ~0.2 always installing latest BSON 0.2.x series
993
* Fixed Kerberos and bumped to 0.0.4
994
995
1.4.9 2014-08-26
996
----------------
997
* Check _bsonType for Binary (Issue #1202, https://github.com/mchapman)
998
* Remove duplicate Cursor constructor (Issue #1201, https://github.com/KenPowers)
999
* Added missing parameter in the documentation (Issue #1199, https://github.com/wpjunior)
1000
* Documented third parameter on the update callback(Issue #1196, https://github.com/gabmontes)
1001
* NODE-240 Operations on SSL connection hang on node 0.11.x
1002
* NODE-235 writeResult is not being passed on when error occurs in insert
1003
* NODE-229 Allow count to work with query hints
1004
* NODE-233 collection.save() does not support fullResult
1005
* NODE-244 Should parseError also emit a `disconnected` event?
1006
* NODE-246 Cursors are inefficiently constructed and consequently cannot be promisified.
1007
* NODE-248 Crash with X509 auth
1008
* NODE-252 Uncaught Exception in Base.__executeAllServerSpecificErrorCallbacks
1009
* Bumped BSON parser to 0.2.12
1010
1011
1012
1.4.8 2014-08-01
1013
----------------
1014
* NODE-205 correctly emit authenticate event
1015
* NODE-210 ensure no undefined connection error when checking server state
1016
* NODE-212 correctly inherit socketTimeoutMS from replicaset when HA process adds new servers or reconnects to existing ones
1017
* NODE-220 don't throw error if ensureIndex errors out in Gridstore
1018
* Updated bson to 0.2.11 to ensure correct toBSON behavior when returning non object in nested classes
1019
* Fixed test running filters
1020
* Wrap debug log in a call to format (Issue #1187, https://github.com/andyroyle)
1021
* False option values should not trigger w:1 (Issue #1186, https://github.com/jsdevel)
1022
* Fix aggregatestream.close(Issue #1194, https://github.com/jonathanong)
1023
* Fixed parsing issue for w:0 in url parser when in connection string
1024
* Modified collection.geoNear to support a geoJSON point or legacy coordinate pair (Issue #1198, https://github.com/mmacmillan)
1025
1026
1.4.7 2014-06-18
1027
----------------
1028
* Make callbacks to be executed in right domain when server comes back up (Issue #1184, https://github.com/anton-kotenko)
1029
* Fix issue where currentOp query against mongos would fail due to mongos passing through $readPreference field to mongod (CS-X)
1030
1031
1.4.6 2014-06-12
1032
----------------
1033
* Added better support for MongoClient IP6 parsing (Issue #1181, https://github.com/micovery)
1034
* Remove options check on index creation (Issue #1179, Issue #1183, https://github.com/jdesboeufs, https://github.com/rubenvereecken)
1035
* Added missing type check before calling optional callback function (Issue #1180)
1036
1037
1.4.5 2014-05-21
1038
----------------
1039
* Added fullResult flag to insert/update/remove which will pass raw result document back. Document contents will vary depending on the server version the driver is talking to. No attempt is made to coerce a joint response.
1040
* Fix to avoid MongoClient.connect hanging during auth when secondaries building indexes pre 2.6.
1041
* return the destination stream in GridStore.pipe (Issue #1176, https://github.com/iamdoron)
1042
1043
1.4.4 2014-05-13
1044
----------------
1045
* Bumped BSON version to use the NaN 1.0 package, fixed strict comparison issue for ObjectID
1046
* Removed leaking global variable (Issue #1174, https://github.com/dainis)
1047
* MongoClient respects connectTimeoutMS for initial discovery process (NODE-185)
1048
* Fix bug with return messages larger than 16MB but smaller than max BSON Message Size (NODE-184)
1049
1050
1.4.3 2014-05-01
1051
----------------
1052
* Clone options for commands to avoid polluting original options passed from Mongoose (Issue #1171, https://github.com/vkarpov15)
1053
* Made geoNear and geoHaystackSearch only clean out allowed options from command generation (Issue #1167)
1054
* Fixed typo for allowDiskUse (Issue #1168, https://github.com/joaofranca)
1055
* A 'mapReduce' function changed 'function' to instance '\<Object\>' of 'Code' class (Issue #1165, https://github.com/exabugs)
1056
* Made findAndModify set sort only when explicitly set (Issue #1163, https://github.com/sars)
1057
* Rewriting a gridStore file by id should use a new filename if provided (Issue #1169, https://github.com/vsivsi)
1058
1059
1.4.2 2014-04-15
1060
----------------
1061
* Fix for inheritance of readPreferences from MongoClient NODE-168/NODE-169
1062
* Merged in fix for ping strategy to avoid hitting non-pinged servers (Issue #1161, https://github.com/vaseker)
1063
* Merged in fix for correct debug output for connection messages (Issue #1158, https://github.com/vaseker)
1064
* Fixed global variable leak (Issue #1160, https://github.com/vaseker)
1065
1066
1.4.1 2014-04-09
1067
----------------
1068
* Correctly emit joined event when primary change
1069
* Add _id to documents correctly when using bulk operations
1070
1071
1.4.0 2014-04-03
1072
----------------
1073
* All node exceptions will no longer be caught if on('error') is defined
1074
* Added X509 auth support
1075
* Fix for MongoClient connection timeout issue (NODE-97)
1076
* Pass through error messages from parseError instead of just text (Issue #1125)
1077
* Close db connection on error (Issue #1128, https://github.com/benighted)
1078
* Fixed documentation generation
1079
* Added aggregation cursor for 2.6 and emulated cursor for pre 2.6 (uses stream2)
1080
* New Bulk API implementation using write commands for 2.6 and down converts for pre 2.6
1081
* Insert/Update/Remove using new write commands when available
1082
* Added support for new roles based API's in 2.6 for addUser/removeUser
1083
* Added bufferMaxEntries to start failing if the buffer hits the specified number of entries
1084
* Upgraded BSON parser to version 0.2.7 to work with < 0.11.10 C++ API changes
1085
* Support for OP_LOG_REPLAY flag (NODE-94)
1086
* Fixes for SSL HA ping and discovery.
1087
* Uses createIndexes if available for ensureIndex/createIndex
1088
* Added parallelCollectionScan method to collection returning CommandCursor instances for cursors
1089
* Made CommandCursor behave as Readable stream.
1090
* Only Db honors readPreference settings, removed Server.js legacy readPreference settings due to user confusion.
1091
* Reconnect event emitted by ReplSet/Mongos/Server after reconnect and before replaying of buffered operations.
1092
* GridFS buildMongoObject returns error on illegal md5 (NODE-157, https://github.com/iantocristian)
1093
* Default GridFS chunk size changed to (255 * 1024) bytes to optimize for collections defaulting to power of 2 sizes on 2.6.
1094
* Refactored commands to all go through command function ensuring consistent command execution.
1095
* Fixed issues where readPreferences where not correctly passed to mongos.
1096
* Catch error == null and make err detection more prominent (NODE-130)
1097
* Allow reads from arbiter for single server connection (NODE-117)
1098
* Handle error coming back with no documents (NODE-130)
1099
* Correctly use close parameter in Gridstore.write() (NODE-125)
1100
* Throw an error on a bulk find with no selector (NODE-129, https://github.com/vkarpov15)
1101
* Use a shallow copy of options in find() (NODE-124, https://github.com/vkarpov15)
1102
* Fix statistical strategy (NODE-158, https://github.com/vkarpov15)
1103
* GridFS off-by-one bug in lastChunkNumber() causes uncaught throw and data loss (Issue #1154, https://github.com/vsivsi)
1104
* GridStore drops passed `aliases` option, always results in `null` value in GridFS files (Issue #1152, https://github.com/vsivsi)
1105
* Remove superfluous connect object copying in index.js (Issue #1145, https://github.com/thomseddon)
1106
* Do not return false when the connection buffer is still empty (Issue #1143, https://github.com/eknkc)
1107
* Check ReadPreference object on ReplSet.canRead (Issue #1142, https://github.com/eknkc)
1108
* Fix unpack error on _executeQueryCommand (Issue #1141, https://github.com/eknkc)
1109
* Close db on failed connect so node can exit (Issue #1128, https://github.com/benighted)
1110
* Fix global leak with _write_concern (Issue #1126, https://github.com/shanejonas)
1111
1112
1.3.19 2013-08-21
1113
-----------------
1114
* Correctly rethrowing errors after change from event emission to callbacks, compatibility with 0.10.X domains without breaking 0.8.X support.
1115
* Small fix to return the entire findAndModify result as the third parameter (Issue #1068)
1116
* No removal of "close" event handlers on server reconnect, emits "reconnect" event when reconnection happens. Reconnect Only applies for single server connections as of now as semantics for ReplSet and Mongos is not clear (Issue #1056)
1117
1118
1.3.18 2013-08-10
1119
-----------------
1120
* Fixed issue when throwing exceptions in MongoClient.connect/Db.open (Issue #1057)
1121
* Fixed an issue where _events is not cleaned up correctly causing a slow steady memory leak.
1122
1123
1.3.17 2013-08-07
1124
-----------------
1125
* Ignore return commands that have no registered callback
1126
* Made collection.count not use the db.command function
1127
* Fix throw exception on ping command (Issue #1055)
1128
1129
1.3.16 2013-08-02
1130
-----------------
1131
* Fixes connection issue where lots of connections would happen if a server is in recovery mode during connection (Issue #1050, NODE-50, NODE-51)
1132
* Bug in unlink mulit filename (Issue #1054)
1133
1134
1.3.15 2013-08-01
1135
-----------------
1136
* Memory leak issue due to node Issue #4390 where _events[id] is set to undefined instead of deleted leading to leaks in the Event Emitter over time
1137
1138
1.3.14 2013-08-01
1139
-----------------
1140
* Fixed issue with checkKeys where it would error on X.X
1141
1142
1.3.13 2013-07-31
1143
-----------------
1144
* Added override for checkKeys on insert/update (Warning will expose you to injection attacks) (Issue #1046)
1145
* BSON size checking now done pre serialization (Issue #1037)
1146
* Added isConnected returns false when no connection Pool exists (Issue #1043)
1147
* Unified command handling to ensure same handling (Issue #1041, #1042)
1148
* Correctly emit "open" and "fullsetup" across all Db's associated with Mongos, ReplSet or Server (Issue #1040)
1149
* Correctly handles bug in authentication when attempting to connect to a recovering node in a replicaset.
1150
* Correctly remove recovering servers from available servers in replicaset. Piggybacks on the ping command.
1151
* Removed findAndModify chaining to be compliant with behavior in other official drivers and to fix a known mongos issue.
1152
* Fixed issue with Kerberos authentication on Windows for re-authentication.
1153
* Fixed Mongos failover behavior to correctly throw out old servers.
1154
* Ensure stored queries/write ops are executed correctly after connection timeout
1155
* Added promoteLongs option for to allow for overriding the promotion of Longs to Numbers and return the actual Long.
1156
1157
1.3.12 2013-07-19
1158
-----------------
1159
* Fixed issue where timeouts sometimes would behave wrongly (Issue #1032)
1160
* Fixed bug with callback third parameter on some commands (Issue #1033)
1161
* Fixed possible issue where killcursor command might leave hanging functions
1162
* Fixed issue where Mongos was not correctly removing dead servers from the pool of eligable servers
1163
* Throw error if dbName or collection name contains null character (at command level and at collection level)
1164
* Updated bson parser to 0.2.1 with security fix and non-promotion of Long values to javascript Numbers (once a long always a long)
1165
1166
1.3.11 2013-07-04
1167
-----------------
1168
* Fixed errors on geoNear and geoSearch (Issue #1024, https://github.com/ebensing)
1169
* Add driver version to export (Issue #1021, https://github.com/aheckmann)
1170
* Add text to readpreference obedient commands (Issue #1019)
1171
* Drivers should check the query failure bit even on getmore response (Issue #1018)
1172
* Map reduce has incorrect expectations of 'inline' value for 'out' option (Issue #1016, https://github.com/rcotter)
1173
* Support SASL PLAIN authentication (Issue #1009)
1174
* Ability to use different Service Name on the driver for Kerberos Authentication (Issue #1008)
1175
* Remove unnecessary octal literal to allow the code to run in strict mode (Issue #1005, https://github.com/jamesallardice)
1176
* Proper handling of recovering nodes (when they go into recovery and when they return from recovery, Issue #1027)
1177
1178
1.3.10 2013-06-17
1179
-----------------
1180
* Guard against possible undefined in server::canCheckoutWriter (Issue #992, https://github.com/willyaranda)
1181
* Fixed some duplicate test names (Issue #993, https://github.com/kawanet)
1182
* Introduced write and read concerns for GridFS (Issue #996)
1183
* Fixed commands not correctly respecting Collection level read preference (Issue #995, #999)
1184
* Fixed issue with pool size on replicaset connections (Issue #1000)
1185
* Execute all query commands on master switch (Issue #1002, https://github.com/fogaztuc)
1186
1187
1.3.9 2013-06-05
1188
----------------
1189
* Fixed memory leak when findAndModify errors out on w>1 and chained callbacks not properly cleaned up.
1190
1191
1.3.8 2013-05-31
1192
----------------
1193
* Fixed issue with socket death on windows where it emits error event instead of close event (Issue #987)
1194
* Emit authenticate event on db after authenticate method has finished on db instance (Issue #984)
1195
* Allows creation of MongoClient and do new MongoClient().connect(..). Emits open event when connection correct allowing for apps to react on event.
1196
1197
1.3.7 2013-05-29
1198
----------------
1199
* After reconnect, tailable getMores go on inconsistent connections (Issue #981, #982, https://github.com/glasser)
1200
* Updated Bson to 0.1.9 to fix ARM support (Issue #985)
1201
1202
1.3.6 2013-05-21
1203
----------------
1204
* Fixed issue where single server reconnect attempt would throw due to missing options variable (Issue #979)
1205
* Fixed issue where difference in ismaster server name and seed list caused connections issues, (Issue #976)
1206
1207
1.3.5 2013-05-14
1208
----------------
1209
* Fixed issue where HA for replicaset would pick the same broken connection when attempting to ping the replicaset causing the replicaset to never recover.
1210
1211
1.3.4 2013-05-14
1212
----------------
1213
* Fixed bug where options not correctly passed in for uri parser (Issue #973, https://github.com/supershabam)
1214
* Fixed bug when passing a named index hint (Issue #974)
1215
1216
1.3.3 2013-05-09
1217
----------------
1218
* Fixed auto-reconnect issue with single server instance.
1219
1220
1.3.2 2013-05-08
1221
----------------
1222
* Fixes for an issue where replicaset would be pronounced dead when high priority primary caused double elections.
1223
1224
1.3.1 2013-05-06
1225
----------------
1226
* Fix for replicaset consisting of primary/secondary/arbiter with priority applied failing to reconnect properly
1227
* Applied auth before server instance is set as connected when single server connection
1228
* Throw error if array of documents passed to save method
1229
1230
1.3.0 2013-04-25
1231
----------------
1232
* Whole High availability handling for Replicaset, Server and Mongos connections refactored to ensure better handling of failover cases.
1233
* Fixed issue where findAndModify would not correctly skip issuing of chained getLastError (Issue #941)
1234
* Fixed throw error issue on errors with findAndModify during write out operation (Issue #939, https://github.com/autopulated)
1235
* Gridstore.prototype.writeFile now returns gridstore object correctly (Issue #938)
1236
* Kerberos support is now an optional module that allows for use of GSSAPI authentication using MongoDB Subscriber edition
1237
* Fixed issue where cursor.toArray could blow the stack on node 0.10.X (#950)
1238
1239
1.2.14 2013-03-14
1240
-----------------
1241
* Refactored test suite to speed up running of replicaset tests
1242
* Fix of async error handling when error happens in callback (Issue #909, https://github.com/medikoo)
1243
* Corrected a slaveOk setting issue (Issue #906, #905)
1244
* Fixed HA issue where ping's would not go to correct server on HA server connection failure.
1245
* Uses setImmediate if on 0.10 otherwise nextTick for cursor stream
1246
* Fixed race condition in Cursor stream (NODE-31)
1247
* Fixed issues related to node 0.10 and process.nextTick now correctly using setImmediate where needed on node 0.10
1248
* Added support for maxMessageSizeBytes if available (DRIVERS-1)
1249
* Added support for authSource (2.4) to MongoClient URL and db.authenticate method (DRIVER-69/NODE-34)
1250
* Fixed issue in GridStore seek and GridStore read to correctly work on multiple seeks (Issue #895)
1251
1252
1.2.13 2013-02-22
1253
-----------------
1254
* Allow strategy 'none' for repliaset if no strategy wanted (will default to round robin selection of servers on a set readPreference)
1255
* Fixed missing MongoErrors on some cursor methods (Issue #882)
1256
* Correctly returning a null for the db instance on MongoClient.connect when auth fails (Issue #890)
1257
* Added dropTarget option support for renameCollection/rename (Issue #891, help from https://github.com/jbottigliero)
1258
* Fixed issue where connection using MongoClient.connect would fail if first server did not exist (Issue #885)
1259
1260
1.2.12 2013-02-13
1261
-----------------
1262
* Added limit/skip options to Collection.count (Issue #870)
1263
* Added applySkipLimit option to Cursor.count (Issue #870)
1264
* Enabled ping strategy as default for Replicaset if none specified (Issue #876)
1265
* Should correctly pick nearest server for SECONDARY/SECONDARY_PREFERRED/NEAREST (Issue #878)
1266
1267
1.2.11 2013-01-29
1268
-----------------
1269
* Added fixes for handling type 2 binary due to PHP driver (Issue #864)
1270
* Moved callBackStore to Base class to have single unified store (Issue #866)
1271
* Ping strategy now reuses sockets unless they are closed by the server to avoid overhead
1272
1273
1.2.10 2013-01-25
1274
-----------------
1275
* Merged in SSL support for 2.4 supporting certificate validation and presenting certificates to the server.
1276
* Only open a new HA socket when previous one dead (Issue #859, #857)
1277
* Minor fixes
1278
1279
1.2.9 2013-01-15
1280
----------------
1281
* Fixed bug in SSL support for MongoClient/Db.connect when discovering servers (Issue #849)
1282
* Connection string with no db specified should default to admin db (Issue #848)
1283
* Support port passed as string to Server class (Issue #844)
1284
* Removed noOpen support for MongoClient/Db.connect as auto discovery of servers for Mongod/Mongos makes it not possible (Issue #842)
1285
* Included toError wrapper code moved to utils.js file (Issue #839, #840)
1286
* Rewrote cursor handling to avoid process.nextTick using trampoline instead to avoid stack overflow, speedup about 40%
1287
1288
1.2.8 2013-01-07
1289
----------------
1290
* Accept function in a Map Reduce scope object not only a function string (Issue #826, https://github.com/aheckmann)
1291
* Typo in db.authenticate caused a check (for provided connection) to return false, causing a connection AND onAll=true to be passed into __executeQueryCommand downstream (Issue #831, https://github.com/m4tty)
1292
* Allow gridfs objects to use non ObjectID ids (Issue #825, https://github.com/nailgun)
1293
* Removed the double wrap, by not passing an Error object to the wrap function (Issue #832, https://github.com/m4tty)
1294
* Fix connection leak (gh-827) for HA replicaset health checks (Issue #833, https://github.com/aheckmann)
1295
* Modified findOne to use nextObject instead of toArray avoiding a nextTick operation (Issue #836)
1296
* Fixes for cursor stream to avoid multiple getmore issues when one in progress (Issue #818)
1297
* Fixes .open replaying all backed up commands correctly if called after operations performed, (Issue #829 and #823)
1298
1299
1.2.7 2012-12-23
1300
----------------
1301
* Rolled back batches as they hang in certain situations
1302
* Fixes for NODE-25, keep reading from secondaries when primary goes down
1303
1304
1.2.6 2012-12-21
1305
----------------
1306
* domain sockets shouldn't require a port arg (Issue #815, https://github.com/aheckmann)
1307
* Cannot read property 'info' of null (Issue #809, https://github.com/thesmart)
1308
* Cursor.each should work in batches (Issue #804, https://github.com/Swatinem)
1309
* Cursor readPreference bug for non-supported read preferences (Issue #817)
1310
1311
1.2.5 2012-12-12
1312
----------------
1313
* Fixed ssl regression, added more test coverage (Issue #800)
1314
* Added better error reporting to the Db.connect if no valid serverConfig setup found (Issue #798)
1315
1316
1.2.4 2012-12-11
1317
----------------
1318
* Fix to ensure authentication is correctly applied across all secondaries when using MongoClient.
1319
1320
1.2.3 2012-12-10
1321
----------------
1322
* Fix for new replicaset members correctly authenticating when being added (Issue #791, https://github.com/m4tty)
1323
* Fixed seek issue in gridstore when using stream (Issue #790)
1324
1325
1.2.2 2012-12-03
1326
----------------
1327
* Fix for journal write concern not correctly being passed under some circumstances.
1328
* Fixed correct behavior and re-auth for servers that get stepped down (Issue #779).
1329
1330
1.2.1 2012-11-30
1331
----------------
1332
* Fix for double callback on insert with w:0 specified (Issue #783)
1333
* Small cleanup of urlparser.
1334
1335
1.2.0 2012-11-27
1336
----------------
1337
* Honor connectTimeoutMS option for replicasets (Issue #750, https://github.com/aheckmann)
1338
* Fix ping strategy regression (Issue #738, https://github.com/aheckmann)
1339
* Small cleanup of code (Issue #753, https://github.com/sokra/node-mongodb-native)
1340
* Fixed index declaration using objects/arrays from other contexts (Issue #755, https://github.com/sokra/node-mongodb-native)
1341
* Intermittent (and rare) null callback exception when using ReplicaSets (Issue #752)
1342
* Force correct setting of read_secondary based on the read preference (Issue #741)
1343
* If using read preferences with secondaries queries will not fail if primary is down (Issue #744)
1344
* noOpen connection for Db.connect removed as not compatible with autodetection of Mongo type
1345
* Mongos connection with auth not working (Issue #737)
1346
* Use the connect method directly from the require. require('mongodb')("mongodb://localhost:27017/db")
1347
* new MongoClient introduced as the point of connecting to MongoDB's instead of the Db
1348
  * open/close/db/connect methods implemented
1349
* Implemented common URL connection format using MongoClient.connect allowing for simialar interface across all drivers.
1350
* Fixed a bug with aggregation helper not properly accepting readPreference
1351
1352
1.1.11 2012-10-10
1353
-----------------
1354
* Removed strict mode and introduced normal handling of safe at DB level.
1355
1356
1.1.10 2012-10-08
1357
-----------------
1358
* fix Admin.serverStatus (Issue #723, https://github.com/Contra)
1359
* logging on connection open/close(Issue #721, https://github.com/asiletto)
1360
* more fixes for windows bson install (Issue #724)
1361
1362
1.1.9 2012-10-05
1363
----------------
1364
* Updated bson to 0.1.5 to fix build problem on sunos/windows.
1365
1366
1.1.8 2012-10-01
1367
----------------
1368
* Fixed db.eval to correctly handle system.js global javascript functions (Issue #709)
1369
* Cleanup of non-closing connections (Issue #706)
1370
* More cleanup of connections under replicaset (Issue #707, https://github.com/elbert3)
1371
* Set keepalive on as default, override if not needed
1372
* Cleanup of jsbon install to correctly build without install.js script (https://github.com/shtylman)
1373
* Added domain socket support new Server("/tmp/mongodb.sock") style
1374
1375
1.1.7 2012-09-10
1376
----------------
1377
* Protect against starting PingStrategy being called more than once (Issue #694, https://github.com/aheckmann)
1378
* Make PingStrategy interval configurable (was 1 second, relaxed to 5) (Issue #693, https://github.com/aheckmann)
1379
* Made PingStrategy api more consistant, callback to start/stop methods are optional (Issue #693, https://github.com/aheckmann)
1380
* Proper stopping of strategy on replicaset stop
1381
* Throw error when gridstore file is not found in read mode (Issue #702, https://github.com/jbrumwell)
1382
* Cursor stream resume now using nextTick to avoid duplicated records (Issue #696)
1383
1384
1.1.6 2012-09-01
1385
----------------
1386
* Fix for readPreference NEAREST for replicasets (Issue #693, https://github.com/aheckmann)
1387
* Emit end correctly on stream cursor (Issue #692, https://github.com/Raynos)
1388
1389
1.1.5 2012-08-29
1390
----------------
1391
* Fix for eval on replicaset Issue #684
1392
* Use helpful error msg when native parser not compiled (Issue #685, https://github.com/aheckmann)
1393
* Arbiter connect hotfix (Issue #681, https://github.com/fengmk2)
1394
* Upgraded bson parser to 0.1.2 using gyp, deprecated support for node 0.4.X
1395
* Added name parameter to createIndex/ensureIndex to be able to override index names larger than 128 bytes
1396
* Added exhaust option for find for feature completion (not recommended for normal use)
1397
* Added tailableRetryInterval to find for tailable cursors to allow to control getMore retry time interval
1398
* Fixes for read preferences when using MongoS to correctly handle no read preference set when iterating over a cursor (Issue #686)
1399
1400
1.1.4 2012-08-12
1401
----------------
1402
* Added Mongos connection type with a fallback list for mongos proxies, supports ha (on by default) and will attempt to reconnect to failed proxies.
1403
* Documents can now have a toBSON method that lets the user control the serialization behavior for documents being saved.
1404
* Gridstore instance object now works as a readstream or writestream (thanks to code from Aaron heckmann (https://github.com/aheckmann/gridfs-stream)).
1405
* Fix gridfs readstream (Issue #607, https://github.com/tedeh).
1406
* Added disableDriverBSONSizeCheck property to Server.js for people who wish to push the inserts to the limit (Issue #609).
1407
* Fixed bug where collection.group keyf given as Code is processed as a regular object (Issue #608, https://github.com/rrusso2007).
1408
* Case mismatch between driver's ObjectID and mongo's ObjectId, allow both (Issue #618).
1409
* Cleanup map reduce (Issue #614, https://github.com/aheckmann).
1410
* Add proper error handling to gridfs (Issue #615, https://github.com/aheckmann).
1411
* Ensure cursor is using same connection for all operations to avoid potential jump of servers when using replicasets.
1412
* Date identification handled correctly in bson js parser when running in vm context.
1413
* Documentation updates
1414
* GridStore filename not set on read (Issue #621)
1415
* Optimizations on the C++ bson parser to fix a potential memory leak and avoid non-needed calls
1416
* Added support for awaitdata for tailable cursors (Issue #624)
1417
* Implementing read preference setting at collection and cursor level
1418
   * collection.find().setReadPreference(Server.SECONDARY_PREFERRED)
1419
   * db.collection("some", {readPreference:Server.SECONDARY})
1420
* Replicaset now returns when the master is discovered on db.open and lets the rest of the connections happen asynchronous.
1421
  * ReplSet/ReplSetServers emits "fullsetup" when all servers have been connected to
1422
* Prevent callback from executing more than once in getMore function (Issue #631, https://github.com/shankar0306)
1423
* Corrupt bson messages now errors out to all callbacks and closes up connections correctly, Issue #634
1424
* Replica set member status update when primary changes bug (Issue #635, https://github.com/alinsilvian)
1425
* Fixed auth to work better when multiple connections are involved.
1426
* Default connection pool size increased to 5 connections.
1427
* Fixes for the ReadStream class to work properly with 0.8 of Node.js
1428
* Added explain function support to aggregation helper
1429
* Added socketTimeoutMS and connectTimeoutMS to socket options for repl_set.js and server.js
1430
* Fixed addUser to correctly handle changes in 2.2 for getLastError authentication required
1431
* Added index to gridstore chunks on file_id (Issue #649, https://github.com/jacobbubu)
1432
* Fixed Always emit db events (Issue #657)
1433
* Close event not correctly resets DB openCalled variable to allow reconnect
1434
* Added open event on connection established for replicaset, mongos and server
1435
* Much faster BSON C++ parser thanks to Lucasfilm Singapore.
1436
* Refactoring of replicaset connection logic to simplify the code.
1437
* Add `options.connectArbiter` to decide connect arbiters or not (Issue #675)
1438
* Minor optimization for findAndModify when not using j,w or fsync for safe
1439
1440
1.0.2 2012-05-15
1441
----------------
1442
* Reconnect functionality for replicaset fix for mongodb 2.0.5
1443
1444
1.0.1 2012-05-12
1445
----------------
1446
* Passing back getLastError object as 3rd parameter on findAndModify command.
1447
* Fixed a bunch of performance regressions in objectId and cursor.
1448
* Fixed issue #600 allowing for single document delete to be passed in remove command.
1449
1450
1.0.0 2012-04-25
1451
----------------
1452
* Fixes to handling of failover on server error
1453
* Only emits error messages if there are error listeners to avoid uncaught events
1454
* Server.isConnected using the server state variable not the connection pool state
1455
1456
0.9.9.8 2012-04-12
1457
------------------
1458
* _id=0 is being turned into an ObjectID (Issue #551)
1459
* fix for error in GridStore write method (Issue #559)
1460
* Fix for reading a GridStore from arbitrary, non-chunk aligned offsets, added test (Issue #563, https://github.com/subroutine)
1461
* Modified limitRequest to allow negative limits to pass through to Mongo, added test (Issue #561)
1462
* Corrupt GridFS files when chunkSize < fileSize, fixed concurrency issue (Issue #555)
1463
* Handle dead tailable cursors (Issue #568, https://github.com/aheckmann)
1464
* Connection pools handles closing themselves down and clearing the state
1465
* Check bson size of documents against maxBsonSize and throw client error instead of server error, (Issue #553)
1466
* Returning update status document at the end of the callback for updates, (Issue #569)
1467
* Refactor use of Arguments object to gain performance (Issue #574, https://github.com/AaronAsAChimp)
1468
1469
0.9.9.7 2012-03-16
1470
------------------
1471
* Stats not returned from map reduce with inline results (Issue #542)
1472
* Re-enable testing of whether or not the callback is called in the multi-chunk seek, fix small GridStore bug (Issue #543, https://github.com/pgebheim)
1473
* Streaming large files from GridFS causes truncation (Issue #540)
1474
* Make callback type checks agnostic to V8 context boundaries (Issue #545)
1475
* Correctly throw error if an attempt is made to execute an insert/update/remove/createIndex/ensureIndex with safe enabled and no callback
1476
* Db.open throws if the application attemps to call open again without calling close first
1477
1478
0.9.9.6 2012-03-12
1479
------------------
1480
* BSON parser is externalized in it's own repository, currently using git master
1481
* Fixes for Replicaset connectivity issue (Issue #537)
1482
* Fixed issues with node 0.4.X vs 0.6.X (Issue #534)
1483
* Removed SimpleEmitter and replaced with standard EventEmitter
1484
* GridStore.seek fails to change chunks and call callback when in read mode (Issue #532)
1485
1486
0.9.9.5 2012-03-07
1487
------------------
1488
* Merged in replSetGetStatus helper to admin class (Issue #515, https://github.com/mojodna)
1489
* Merged in serverStatus helper to admin class (Issue #516, https://github.com/mojodna)
1490
* Fixed memory leak in C++ bson parser (Issue #526)
1491
* Fix empty MongoError "message" property (Issue #530, https://github.com/aheckmann)
1492
* Cannot save files with the same file name to GridFS (Issue #531)
1493
1494
0.9.9.4 2012-02-26
1495
------------------
1496
* bugfix for findAndModify: Error: corrupt bson message < 5 bytes long (Issue #519)
1497
1498
0.9.9.3 2012-02-23
1499
------------------
1500
* document: save callback arguments are both undefined, (Issue #518)
1501
* Native BSON parser install error with npm, (Issue #517)
1502
1503
0.9.9.2 2012-02-17
1504
------------------
1505
* Improved detection of Buffers using Buffer.isBuffer instead of instanceof.
1506
* Added wrap error around db.dropDatabase to catch all errors (Issue #512)
1507
* Added aggregate helper to collection, only for MongoDB >= 2.1
1508
1509
0.9.9.1 2012-02-15
1510
------------------
1511
* Better handling of safe when using some commands such as createIndex, ensureIndex, addUser, removeUser, createCollection.
1512
* Mapreduce now throws error if out parameter is not specified.
1513
1514
0.9.9 2012-02-13
1515
----------------
1516
* Added createFromTime method on ObjectID to allow for queries against _id more easily using the timestamp.
1517
* Db.close(true) now makes connection unusable as it's been force closed by app.
1518
* Fixed mapReduce and group functions to correctly send slaveOk on queries.
1519
* Fixes for find method to correctly work with find(query, fields, callback) (Issue #506).
1520
* A fix for connection error handling when using the SSL on MongoDB.
1521
1522
0.9.8-7 2012-02-06
1523
------------------
1524
* Simplified findOne to use the find command instead of the custom code (Issue #498).
1525
* BSON JS parser not also checks for _bsonType variable in case BSON object is in weird scope (Issue #495).
1526
1527
0.9.8-6 2012-02-04
1528
------------------
1529
* Removed the check for replicaset change code as it will never work with node.js.
1530
1531
0.9.8-5 2012-02-02
1532
------------------
1533
* Added geoNear command to Collection.
1534
* Added geoHaystackSearch command to Collection.
1535
* Added indexes command to collection to retrieve the indexes on a Collection.
1536
* Added stats command to collection to retrieve the statistics on a Collection.
1537
* Added listDatabases command to admin object to allow retrieval of all available dbs.
1538
* Changed createCreateIndexCommand to work better with options.
1539
* Fixed dereference method on Db class to correctly dereference Db reference objects.
1540
* Moved connect object onto Db class(Db.connect) as well as keeping backward compatibility.
1541
* Removed writeBuffer method from gridstore, write handles switching automatically now.
1542
* Changed readBuffer to read on Gridstore, Gridstore now only supports Binary Buffers no Strings anymore.
1543
* Moved Long class to bson directory.
1544
1545
0.9.8-4 2012-01-28
1546
------------------
1547
* Added reIndex command to collection and db level.
1548
* Added support for $returnKey, $maxScan, $min, $max, $showDiskLoc, $comment to cursor and find/findOne methods.
1549
* Added dropDups and v option to createIndex and ensureIndex.
1550
* Added isCapped method to Collection.
1551
* Added indexExists method to Collection.
1552
* Added findAndRemove method to Collection.
1553
* Fixed bug for replicaset connection when no active servers in the set.
1554
* Fixed bug for replicaset connections when errors occur during connection.
1555
* Merged in patch for BSON Number handling from Lee Salzman, did some small fixes and added test coverage.
1556
1557
0.9.8-3 2012-01-21
1558
------------------
1559
* Workaround for issue with Object.defineProperty (Issue #484)
1560
* ObjectID generation with date does not set rest of fields to zero (Issue #482)
1561
1562
0.9.8-2 2012-01-20
1563
------------------
1564
* Fixed a missing this in the ReplSetServers constructor.
1565
1566
0.9.8-1 2012-01-17
1567
------------------
1568
* FindAndModify bug fix for duplicate errors (Issue #481)
1569
1570
0.9.8 2012-01-17
1571
----------------
1572
* Replicasets now correctly adjusts to live changes in the replicaset configuration on the servers, reconnecting correctly.
1573
  * Set the interval for checking for changes setting the replicaSetCheckInterval property when creating the ReplSetServers instance or on db.serverConfig.replicaSetCheckInterval. (default 1000 miliseconds)
1574
* Fixes formattedOrderClause in collection.js to accept a plain hash as a parameter (Issue #469) https://github.com/tedeh
1575
* Removed duplicate code for formattedOrderClause and moved to utils module
1576
* Pass in poolSize for ReplSetServers to set default poolSize for new replicaset members
1577
* Bug fix for BSON JS deserializer. Isolating the eval functions in separate functions to avoid V8 deoptimizations
1578
* Correct handling of illegal BSON messages during deserialization
1579
* Fixed Infinite loop when reading GridFs file with no chunks (Issue #471)
1580
* Correctly update existing user password when using addUser (Issue #470)
1581
1582
0.9.7.3-5 2012-01-04
1583
--------------------
1584
* Fix for RegExp serialization for 0.4.X where typeof /regexp/ == 'function' vs in 0.6.X typeof /regexp/ == 'object'
1585
* Don't allow keepAlive and setNoDelay for 0.4.X as it throws errors
1586
1587
0.9.7.3-4 2012-01-04
1588
--------------------
1589
* Chased down potential memory leak on findAndModify, Issue #467 (node.js removeAllListeners leaves the key in the _events object, node.js bug on eventlistener?, leads to extremely slow memory leak on listener object)
1590
* Sanity checks for GridFS performance with benchmark added
1591
1592
0.9.7.3-3 2012-01-04
1593
--------------------
1594
* Bug fixes for performance issues going form 0.9.6.X to 0.9.7.X on linux
1595
* BSON bug fixes for performance
1596
1597
0.9.7.3-2 2012-01-02
1598
--------------------
1599
* Fixed up documentation to reflect the preferred way of instantiating bson types
1600
* GC bug fix for JS bson parser to avoid stop-and-go GC collection
1601
1602
0.9.7.3-1 2012-01-02
1603
--------------------
1604
* Fix to make db.bson_serializer and db.bson_deserializer work as it did previously
1605
1606
0.9.7.3 2011-12-30
1607
--------------------
1608
* Moved BSON_BINARY_SUBTYPE_DEFAULT from BSON object to Binary object and removed the BSON_BINARY_ prefixes
1609
* Removed Native BSON types, C++ parser uses JS types (faster due to cost of crossing the JS-C++ barrier for each call)
1610
* Added build fix for 0.4.X branch of Node.js where GetOwnPropertyNames is not defined in v8
1611
* Fix for wire protocol parser for corner situation where the message is larger than the maximum socket buffer in node.js (Issue #464, #461, #447)
1612
* Connection pool status set to connected on poolReady, isConnected returns false on anything but connected status (Issue #455)
1613
1614
0.9.7.2-5 2011-12-22
1615
--------------------
1616
* Brand spanking new Streaming Cursor support Issue #458 (https://github.com/christkv/node-mongodb-native/pull/458) thanks to Mr Aaron Heckmann
1617
1618
0.9.7.2-4 2011-12-21
1619
--------------------
1620
* Refactoring of callback code to work around performance regression on linux
1621
* Fixed group function to correctly use the command mode as default
1622
1623
0.9.7.2-3 2011-12-18
1624
--------------------
1625
* Fixed error handling for findAndModify while still working for mongodb 1.8.6 (Issue #450).
1626
* Allow for force send query to primary, pass option (read:'primary') on find command.
1627
    * ``find({a:1}, {read:'primary'}).toArray(function(err, items) {});``
1628
1629
0.9.7.2-2 2011-12-16
1630
--------------------
1631
* Fixes infinite streamRecords QueryFailure fix when using Mongos (Issue #442)
1632
1633
0.9.7.2-1 2011-12-16
1634
--------------------
1635
* ~10% perf improvement for ObjectId#toHexString (Issue #448, https://github.com/aheckmann)
1636
* Only using process.nextTick on errors emitted on callbacks not on all parsing, reduces number of ticks in the driver
1637
* Changed parsing off bson messages to use process.nextTick to do bson parsing in batches if the message is over 10K as to yield more time to the event look increasing concurrency on big mongoreply messages with multiple documents
1638
1639
0.9.7.2 2011-12-15
1640
------------------
1641
* Added SSL support for future version of mongodb (VERY VERY EXPERIMENTAL)
1642
    * pass in the ssl:true option to the server or replicaset server config to enable
1643
    * a bug either in mongodb or node.js does not allow for more than 1 connection pr db instance (poolSize:1).
1644
* Added getTimestamp() method to objectID that returns a date object
1645
* Added finalize function to collection.group
1646
    * function group (keys, condition, initial, reduce, finalize, command, callback)
1647
* Reaper no longer using setTimeout to handle reaping. Triggering is done in the general flow leading to predictable behavior.
1648
    * reaperInterval, set interval for reaper (default 10000 miliseconds)
1649
    * reaperTimeout, set timeout for calls (default 30000 miliseconds)
1650
    * reaper, enable/disable reaper (default false)
1651
* Work around for issues with findAndModify during high concurrency load, insure that the behavior is the same across the 1.8.X branch and 2.X branch of MongoDb
1652
* Reworked multiple db's sharing same connection pool to behave correctly on error, timeout and close
1653
* EnsureIndex command can be executed without a callback (Issue #438)
1654
* Eval function no accepts options including nolock (Issue #432)
1655
    * eval(code, parameters, options, callback) (where options = {nolock:true})
1656
1657
0.9.7.1-4 2011-11-27
1658
--------------------
1659
* Replaced install.sh with install.js to install correctly on all supported os's
1660
1661
0.9.7.1-3 2011-11-27
1662
--------------------
1663
* Fixes incorrect scope for ensureIndex error wrapping (Issue #419) https://github.com/ritch
1664
1665
0.9.7.1-2 2011-11-27
1666
--------------------
1667
* Set statistical selection strategy as default for secondary choice.
1668
1669
0.9.7.1-1 2011-11-27
1670
--------------------
1671
* Better handling of single server reconnect (fixes some bugs)
1672
* Better test coverage of single server failure
1673
* Correct handling of callbacks on replicaset servers when firewall dropping packets, correct reconnect
1674
1675
0.9.7.1 2011-11-24
1676
------------------
1677
* Better handling of dead server for single server instances
1678
* FindOne and find treats selector == null as {}, Issue #403
1679
* Possible to pass in a strategy for the replicaset to pick secondary reader node
1680
    * parameter strategy
1681
        * ping (default), pings the servers and picks the one with the lowest ping time
1682
        * statistical, measures each request and pick the one with the lowest mean and std deviation
1683
* Set replicaset read preference replicaset.setReadPreference()
1684
    * Server.READ_PRIMARY (use primary server for reads)
1685
    * Server.READ_SECONDARY (from a secondary server (uses the strategy set))
1686
    * tags, {object of tags}
1687
* Added replay of commands issued to a closed connection when the connection is re-established
1688
* Fix isConnected and close on unopened connections. Issue #409, fix by (https://github.com/sethml)
1689
* Moved reaper to db.open instead of constructor (Issue #406)
1690
* Allows passing through of socket connection settings to Server or ReplSetServer under the option socketOptions
1691
    * timeout = set seconds before connection times out (default 0)
1692
    * noDelay = Disables the Nagle algorithm (default true)
1693
    * keepAlive = Set if keepAlive is used (default 0, which means no keepAlive, set higher than 0 for keepAlive)
1694
    * encoding = ['ascii', 'utf8', or 'base64'] (default null)
1695
* Fixes for handling of errors during shutdown off a socket connection
1696
* Correctly applies socket options including timeout
1697
* Cleanup of test management code to close connections correctly
1698
* Handle parser errors better, closing down the connection and emitting an error
1699
* Correctly emit errors from server.js only wrapping errors that are strings
1700
1701
0.9.7 2011-11-10
1702
----------------
1703
* Added priority setting to replicaset manager
1704
* Added correct handling of passive servers in replicaset
1705
* Reworked socket code for simpler clearer handling
1706
* Correct handling of connections in test helpers
1707
* Added control of retries on failure
1708
    * control with parameters retryMiliSeconds and numberOfRetries when creating a db instance
1709
* Added reaper that will timeout and cleanup queries that never return
1710
    * control with parameters reaperInterval and reaperTimeout when creating a db instance
1711
* Refactored test helper classes for replicaset tests
1712
* Allows raw (no bson parser mode for insert, update, remove, find and findOne)
1713
    * control raw mode passing in option raw:true on the commands
1714
    * will return buffers with the binary bson objects
1715
* Fixed memory leak in cursor.toArray
1716
* Fixed bug in command creation for mongodb server with wrong scope of call
1717
* Added db(dbName) method to db.js to allow for reuse of connections against other databases
1718
* Serialization of functions in an object is off by default, override with parameter
1719
    * serializeFunctions [true/false] on db level, collection level or individual insert/update/findAndModify
1720
* Added Long.fromString to c++ class and fixed minor bug in the code (Test case for $gt operator on 64-bit integers, Issue #394)
1721
* FindOne and find now share same code execution and will work in the same manner, Issue #399
1722
* Fix for tailable cursors, Issue #384
1723
* Fix for Cursor rewind broken, Issue #389
1724
* Allow Gridstore.exist to query using regexp, Issue #387, fix by (https://github.com/kaij)
1725
* Updated documentation on https://github.com/christkv/node-mongodb-native
1726
* Fixed toJSON methods across all objects for BSON, Binary return Base64 Encoded data
1727
1728
0.9.6-22 2011-10-15
1729
-------------------
1730
* Fixed bug in js bson parser that could cause wrong object size on serialization, Issue #370
1731
* Fixed bug in findAndModify that did not throw error on replicaset timeout, Issue #373
1732
1733
0.9.6-21 2011-10-05
1734
-------------------
1735
* Reworked reconnect code to work correctly
1736
* Handling errors in different parts of the code to ensure that it does not lock the connection
1737
* Consistent error handling for Object.createFromHexString for JS and C++
1738
1739
0.9.6-20 2011-10-04
1740
-------------------
1741
* Reworked bson.js parser to get rid off Array.shift() due to it allocating new memory for each call. Speedup varies between 5-15% depending on doc
1742
* Reworked bson.cc to throw error when trying to serialize js bson types
1743
* Added MinKey, MaxKey and Double support for JS and C++ parser
1744
* Reworked socket handling code to emit errors on unparsable messages
1745
* Added logger option for Db class, lets you pass in a function in the shape
1746
    {
1747
        log : function(message, object) {},
1748
        error : function(errorMessage, errorObject) {},
1749
        debug : function(debugMessage, object) {},
1750
    }
1751
1752
  Usage is new Db(new Server(..), {logger: loggerInstance})
1753
1754
0.9.6-19 2011-09-29
1755
-------------------
1756
* Fixing compatibility issues between C++ bson parser and js parser
1757
* Added Symbol support to C++ parser
1758
* Fixed socket handling bug for seldom misaligned message from mongodb
1759
* Correctly handles serialization of functions using the C++ bson parser
1760
1761
0.9.6-18 2011-09-22
1762
-------------------
1763
* Fixed bug in waitForConnection that would lead to 100% cpu usage, Issue #352
1764
1765
0.9.6-17 2011-09-21
1766
-------------------
1767
* Fixed broken exception test causing bamboo to hang
1768
* Handling correctly command+lastError when both return results as in findAndModify, Issue #351
1769
1770
0.9.6-16 2011-09-14
1771
-------------------
1772
* Fixing a bunch of issues with compatibility with MongoDB 2.0.X branch. Some fairly big changes in behavior from 1.8.X to 2.0.X on the server.
1773
* Error Connection MongoDB V2.0.0 with Auth=true, Issue #348
1774
1775
0.9.6-15 2011-09-09
1776
-------------------
1777
* Fixed issue where pools would not be correctly cleaned up after an error, Issue #345
1778
* Fixed authentication issue with secondary servers in Replicaset, Issue #334
1779
* Duplicate replica-set servers when omitting port, Issue #341
1780
* Fixing findAndModify to correctly work with Replicasets ensuring proper error handling, Issue #336
1781
* Merged in code from (https://github.com/aheckmann) that checks for global variable leaks
1782
1783
0.9.6-14 2011-09-05
1784
-------------------
1785
* Minor fixes for error handling in cursor streaming (https://github.com/sethml), Issue #332
1786
* Minor doc fixes
1787
* Some more cursor sort tests added, Issue #333
1788
* Fixes to work with 0.5.X branch
1789
* Fix Db not removing reconnect listener from serverConfig, (https://github.com/sbrekken), Issue #337
1790
* Removed node_events.h includes (https://github.com/jannehietamaki), Issue #339
1791
* Implement correct safe/strict mode for findAndModify.
1792
1793
0.9.6-13 2011-08-24
1794
-------------------
1795
* Db names correctly error checked for illegal characters
1796
1797
0.9.6-12 2011-08-24
1798
-------------------
1799
* Nasty bug in GridFS if you changed the default chunk size
1800
* Fixed error handling bug in findOne
1801
1802
0.9.6-11 2011-08-23
1803
-------------------
1804
* Timeout option not correctly making it to the cursor, Issue #320, Fix from (https://github.com/year2013)
1805
* Fixes for memory leaks when using buffers and C++ parser
1806
* Fixes to make tests pass on 0.5.X
1807
* Cleanup of bson.js to remove duplicated code paths
1808
* Fix for errors occurring in ensureIndex, Issue #326
1809
* Removing require.paths to make tests work with the 0.5.X branch
1810
1811
0.9.6-10 2011-08-11
1812
-------------------
1813
* Specific type Double for capped collections (https://github.com/mbostock), Issue #312
1814
* Decorating Errors with all all object info from Mongo (https://github.com/laurie71), Issue #308
1815
* Implementing fixes for mongodb 1.9.1 and higher to make tests pass
1816
* Admin validateCollection now takes an options argument for you to pass in full option
1817
* Implemented keepGoing parameter for mongodb 1.9.1 or higher, Issue #310
1818
* Added test for read_secondary count issue, merged in fix from (https://github.com/year2013), Issue #317
1819
1820
0.9.6-9
1821
-------
1822
* Bug fix for bson parsing the key '':'' correctly without crashing
1823
1824
0.9.6-8
1825
-------
1826
* Changed to using node.js crypto library MD5 digest
1827
* Connect method support documented mongodb: syntax by (https://github.com/sethml)
1828
* Support Symbol type for BSON, serializes to it's own type Symbol, Issue #302, #288
1829
* Code object without scope serializing to correct BSON type
1830
* Lot's of fixes to avoid double callbacks (https://github.com/aheckmann) Issue #304
1831
* Long deserializes as Number for values in the range -2^53 to 2^53, Issue #305 (https://github.com/sethml)
1832
* Fixed C++ parser to reflect JS parser handling of long deserialization
1833
* Bson small optimizations
1834
1835
0.9.6-7 2011-07-13
1836
------------------
1837
* JS Bson deserialization bug #287
1838
1839
0.9.6-6 2011-07-12
1840
------------------
1841
* FindAndModify not returning error message as other methods Issue #277
1842
* Added test coverage for $push, $pushAll and $inc atomic operations
1843
* Correct Error handling for non 12/24 bit ids on Pure JS ObjectID class Issue #276
1844
* Fixed terrible deserialization bug in js bson code #285
1845
* Fix by andrewjstone to avoid throwing errors when this.primary not defined
1846
1847
0.9.6-5 2011-07-06
1848
------------------
1849
* Rewritten BSON js parser now faster than the C parser on my core2duo laptop
1850
* Added option full to indexInformation to get all index info Issue #265
1851
* Passing in ObjectID for new Gridstore works correctly Issue #272
1852
1853
0.9.6-4 2011-07-01
1854
------------------
1855
* Added test and bug fix for insert/update/remove without callback supplied
1856
1857
0.9.6-3 2011-07-01
1858
------------------
1859
* Added simple grid class called Grid with put, get, delete methods
1860
* Fixed writeBuffer/readBuffer methods on GridStore so they work correctly
1861
* Automatic handling of buffers when using write method on GridStore
1862
* GridStore now accepts a ObjectID instead of file name for write and read methods
1863
* GridStore.list accepts id option to return of file ids instead of filenames
1864
* GridStore close method returns document for the file allowing user to reference _id field
1865
1866
0.9.6-2 2011-06-30
1867
------------------
1868
* Fixes for reconnect logic for server object (replays auth correctly)
1869
* More testcases for auth
1870
* Fixes in error handling for replicaset
1871
* Fixed bug with safe parameter that would fail to execute safe when passing w or wtimeout
1872
* Fixed slaveOk bug for findOne method
1873
* Implemented auth support for replicaset and test cases
1874
* Fixed error when not passing in rs_name
1875
1876
0.9.6-1 2011-06-25
1877
------------------
1878
* Fixes for test to run properly using c++ bson parser
1879
* Fixes for dbref in native parser (correctly handles ref without db component)
1880
* Connection fixes for replicasets to avoid runtime conditions in cygwin (https://github.com/vincentcr)
1881
* Fixes for timestamp in js bson parser (distinct timestamp type now)
1882
1883
0.9.6 2011-06-21
1884
----------------
1885
* Worked around npm version handling bug
1886
* Race condition fix for cygwin (https://github.com/vincentcr)
1887
1888
0.9.5-1 2011-06-21
1889
------------------
1890
* Extracted Timestamp as separate class for bson js parser to avoid instanceof problems
1891
* Fixed driver strict mode issue
1892
1893
0.9.5 2011-06-20
1894
----------------
1895
* Replicaset support (failover and reading from secondary servers)
1896
* Removed ServerPair and ServerCluster
1897
* Added connection pool functionality
1898
* Fixed serious bug in C++ bson parser where bytes > 127 would generate 2 byte sequences
1899
* Allows for forcing the server to assign ObjectID's using the option {forceServerObjectId: true}
1900
1901
0.6.8
1902
-----
1903
* Removed multiple message concept from bson
1904
* Changed db.open(db) to be db.open(err, db)
1905
1906
0.1 2010-01-30
1907
--------------
1908
* Initial release support of driver using native node.js interface
1909
* Supports gridfs specification
1910
* Supports admin functionality