All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.2.7 (2019-06-04)
- pool: clean up connections if pool is destroyed mid-handshake (4bd7f1c)
- server: emit "first connect" error if initial connect fails due to ECONNREFUSED (853bcfe)
3.2.6 (2019-05-23)
- connect: fixed syntax issue in connect error handler (83e224b)
- uri-parser: always treat appname as a string (238aca8)
3.2.5 (2019-05-17)
- connect: fixed syntax issue in connect error handler (83e224b)
3.2.4 (2019-05-08)
- authentication: fix auth issue with BSON promoteBuffers: true (bcb87ca)
- command_result: return entire result in toJSON (b958513)
- connect: ensure connection errors are MongoNetworkErrors (380a386)
- retryable-writes: don't add
txnNumber
for standalone servers (8489265) - transactions: send recovery token on abortTransaction (1fa5763)
3.2.3 (2019-04-05)
- uri_parser: restore original compression parsing (70a7d94)
- uri_parser: support URI Options spec tests (c067dbc)
3.2.2 (2019-03-22)
- do not attempt to auth against an arbiter (72bb011)
- connection: do not leak a connection if initial handshak fails (6cba222)
3.2.1 (2019-03-21)
3.2.0 (2019-03-21)
- command: invert boolean expression for applying
$query
(8513ad5) - command: only add
$query
to command in OP_QUERY (3e57690) - cursor: ensure that cursor id defaults to 0 (e7e1775)
- get-more: documents are already returned as raw in this case (c81f609)
- msg: support raw cursor results using OP_MSG (f91304b)
- op-msg: only include
$readPreference
if not primary (0d10317) - scram: allow errors to be passed through callbacks (dccc2ba)
- sessions: enable sessions in OP_MSG (d8bf209)
- topology: correctly pick up command options for cursors (259231e)
- topology: ensure read preferences are translated on selection (ebefb7b)
- transactions: only send recovery token on commitTransaction (923a089)
- transactions: special case non-deterministic wc errors in txns (5a2ae77)
- transactions: write concern is always majority on txn retry (7b240ea)
- with-transaction: throw a useful error on invalid return type (ae64bb4)
- make mongos write commands work the same as replset write commands (31b984f)
- auth: add authentication to handshake process (aacac68)
- error: all
hasErrorLabel
method to MongoError (32a5e74) - OP_MSG: add in parsing of OP_MSG (c310a83)
- OP_MSG: adding class for translating OP_MSG from binary (11e4132)
- OP_MSG: adding OP_MSG implementation (c5adfa3)
- op-msg: add support for
OP_MSG
to command monitoring (9124b67) - sdam: backport unified SDAM changes from
next
tomaster
(83d744c) - topology-description: always calculate commonWireVersion (5c630ab)
- transactions: tack recovery token for sharded transactions (e12ae70)
- add ability to pin server to transaction state machine (da13e55)
- update proxy selection to consider pinned server on session (189e428)
- txns: support mongos pinning in unified topology (78dab5d)
- with-transaction: provide helper for convenient txn api (478d1e7)
- withTransaction: retry transaction commit on wtimeout (2bc705c)
3.1.11 (2019-01-16)
- wire-protocol: don't allow override of
slaveOk
(8fcef69)
3.1.10 (2019-01-15)
- mongos-replset: pass connect options to child server instances (7ffb4bb)
- prettier: fix prettier file paths for Windows (00c631e)
3.1.9 (2018-11-16)
- mongos: ensure servers are properly cleaned up when destroyed (68f4fd3)
- uri_parser: uri-encoded auth handling (81b5b45)
- url-parser: support passing in
auth
to parsing options (29455ca)
3.1.8 (2018-11-05)
- sspi: correct auth process for SSPI (808ab21)
- uri_parser: add
replSet
to exemption list for number coercion (d00b1ab)
3.1.7 (2018-10-10)
- uri-parser: persist default database when authSource present (aa601d3)
3.1.6 (2018-10-09)
- srv-parsing: ensure parse options are propogated to txt lookup (923ceb0)
- uri-parser: add exemption list for number coercion in options (82896ea)
3.1.5 (2018-09-15)
- connection: Revert fast fallback due to Atlas connect issues (3133fc3)
3.1.4 (2018-09-14)
- apm: fix upconversion for OP_QUERY in apm (f969bee)
- gssapi: check lowercase and camelCase gssapiServiceName option (bf0315d)
- test: do not check deep equality when test.auth.db is null (7d3c057)
- uri_parser: use admin as default auth.db (345e6af)
- connection: Implement fast fallback (622394a)
3.1.3 (2018-08-25)
- buffer: use safe-buffer polyfill to maintain compatibility (728d897)
- EJSON: export the result of optionally requiring EJSON (645d73d)
- kerberos: bump kerberos dependency to
^1.0.0
(1155ebe) - standard-version: automate part of the release process (4c768c4)
3.1.2 (2018-08-13)
- mongos: fix connection leak when mongos reconnects (2453746)
- bson: update to bson ^1.1.x (952a2f0)
3.1.1 (2018-08-13)
- auth: prevent stalling on authentication when connected (6b4ac89)
- buffer: replace deprecated Buffer constructor (7c71e19)
- commands: check doc.cursor errors (4f2b263)
- cursor: check for session presence independently (7c76c62)
- cursor: check for sessions independently in core cursor (cb5df28)
- cursor: typo in _find() (95f7fd2)
- error: attach command response to MongoWriteConcernError (#322) (24c5d06)
- getmore-killcursor: slaveOk shall not be included on these (40fb2f4)
- kerberos: loosen restrictions on kerberos versions (c4add26)
- mongos: use
incrementTransactionNumber
directly on session (e230d54) - pool: ensure that lsid is sent in get requests to mongos (ae820f6)
- read-preference: correct server sort for
nearest
selection (dd4eb9a) - sdam: we can't use Array.includes yet (9c3b5ab)
- server: correct typo using
this
instead ofserver
(c54f040) - sessions: add
toBSON
method toClientSession
(d95a4d1) - sessions: never send
endSessions
from aClientSession
(05ffe82) - topology-description: we can't use Object.values yet (91df350)
- transactions: do not send txnNumber for non-write commands (#308) (eb67b1a)
- uri_parser: ensure default port is 27017 (426a95e)
- uri-parser: Incorrect parsing of arrays (fcff104)
- uri-parser: Parse comma separated option values (2dd1de0)
- wireprotocol: only send bypassDocumentValidation if true (a81678b)
- auth: adds saslprep and SCRAM-SHA-256 (506c087)
- cursor: implement cursor for new sdam implementation (f289226)
- cursor: store operation time from initial query (55e761e)
- error: add more specific error type for write concern errors (347c5d7)
- Error: adding error metadata field (33be560)
- kerberos: expose warning for kerberos mismatch versions (efc0e43)
- max-staleness: properly support a max staleness reducer (d9c5c16)
- MongoTimeoutError: add common class for timeout events (c5b4752)
- monitoring: add support for server monitoring to
Server
(30a394d) - op-compressed: add support for OP_COMPRESSED to new sdam impl (8deec9b)
- retryableWrites: adding more support for retries (d4c1597)
- sdam-monitoring: add basic monitoring for new Topology type (bb0c522)
- server: add
command
support to new server class (d9a8c05) - server-selection: add basic support for server selection (ccc5e1d)
- topology: introduce a single Topology type, and test runner (f35d773)
- topology-description: add helper method for server ownership (2c64c75)
- txns: add initial transaction interface for sessions (ed76be0)
3.1.0 (2018-06-27)
- auth: prevent stalling on authentication when connected (6b4ac89)
- cursor: check for session presence independently (7c76c62)
- cursor: check for sessions independently in core cursor (cb5df28)
- error: attach command response to MongoWriteConcernError (#322) (24c5d06)
- getmore-killcursor: slaveOk shall not be included on these (40fb2f4)
- kerberos: loosen restrictions on kerberos versions (c4add26)
- mongos: use
incrementTransactionNumber
directly on session (e230d54) - pool: ensure that lsid is sent in get requests to mongos (ae820f6)
- sdam: we can't use Array.includes yet (9c3b5ab)
- sessions: add
toBSON
method toClientSession
(d95a4d1) - sessions: never send
endSessions
from aClientSession
(05ffe82) - topology-description: we can't use Object.values yet (91df350)
- transactions: do not send txnNumber for non-write commands (#308) (eb67b1a)
- wireprotocol: only send bypassDocumentValidation if true (a81678b)
- auth: adds saslprep and SCRAM-SHA-256 (506c087)
- cursor: implement cursor for new sdam implementation (f289226)
- cursor: store operation time from initial query (55e761e)
- error: add more specific error type for write concern errors (347c5d7)
- Error: adding error metadata field (33be560)
- kerberos: expose warning for kerberos mismatch versions (efc0e43)
- max-staleness: properly support a max staleness reducer (d9c5c16)
- MongoTimeoutError: add common class for timeout events (c5b4752)
- op-compressed: add support for OP_COMPRESSED to new sdam impl (8deec9b)
- retryableWrites: adding more support for retries (d4c1597)
- sdam-monitoring: add basic monitoring for new Topology type (bb0c522)
- server: add
command
support to new server class (d9a8c05) - server-selection: add basic support for server selection (ccc5e1d)
- topology: introduce a single Topology type, and test runner (f35d773)
- topology-description: add helper method for server ownership (2c64c75)
- txns: add initial transaction interface for sessions (ed76be0)
3.0.6 (2018-04-09)
- 2.6-protocol: kill cursor callback is called by pool now (65f2bf7)
- evergreen: change name to id (9303e12)
- evergreen: change nvm path to local (e42ea5b)
- evergreen: pass in flag through npm scripts (85708dd)
- pool: ensure noResponse callback is only called if cb exists (5281605)
- replset: only remove primary if primary is there (1acd288)
- test-environments: ensure all servers run on separate ports (b63e5d8)
- uri_parser: support a default database on mongodb+srv uris (be01ffe)
- apm: add events for command monitoring support in core (37dce9c)
- evergreen: add evergreen config based on drivers skeleton (b71da99)
- evergreen: use evergreen flag when running tests (55dff3b)
3.0.5 (2018-03-14)
- sessions: adding implicit cursor session support (1607321)
3.0.4 (2018-03-05)
- connection: ensure socket options are applied to ssl sockets (e5ff927)
3.0.3 (2018-02-23)
- connection: make pool not try to reconnect forever when reconnectTries = 0 (#275) (2d3fa98), closes Automattic/mongoose#6028
- retryableWrites: only remove primary after retry (#274) (7ac171e)
- sessions: actually allow ending of sessions (2b81bb6)
- uri-parser: do not use
hasOwnProperty
to detect ssl (69d16c7)
- sessions: adding endAllPooledSessions helper method (d7804ed)
3.0.2 (2018-01-29)
- cursor: check for autoReconnect option only for single server (645d6df)
- mongodb+srv: add support for mongodb+srv to the uri parser (19b42ce)
- uri-parser: add initial implementation of uri parser for core (8f797a7)
- uri-parser: expose the connection string parser as api (fdeca2f)
3.0.1 (2017-12-24)
- connection: correct erroneous use of
this
in helper method (06b9388)
3.0.0 (2017-12-23)
- connection: ensure connection cleanup before fallback retry (de62615)
- mock-server: expose potential errors in message handlers (65dcca4)
- mongos: remove listener on destroy event (243e942), closes #257
- sdam: more explicit wire protocol error message (6d6d19a)
- secondaries: fixes connection with secondary readPreference (#258) (0060ad7)
- sessions: ensure that we ignore session details from arbiters (de0105c)
- sharded-tests: add
shardsvr
cmdline opt, wait for async fns (867b080)
- auth-plain: only use BSON -after- requiring it (4934adf)
- auth-scram: cache the ScramSHA1 salted passwords up to 200 entries (31ef03a)
- client-session: don't report errors for endSessions commands (c34eaf5)
- connection: default
family
to undefined rather than 4 (c1b5e04) - connection: fixing leak in 3.0.0 (#235) (fc669c0)
- cursor: avoid waiting for reconnect if reconnect disabled (43e9b23)
- cursor: callback with server response on
_find
(6999459) - errors: export MongoError and MongoNetworkError at top-level (972064a)
- errors: throw MongoNetworkError from more places (2cec239)
- errors: use subclassing for MongoNetworkError (a132830)
- errors: use util.inherits() and protect edge case (c953246)
- mocha_server_tests: rename confusing variable to fix tests (a9fbae2)
- mock-tests: ensure all servers are properly cleaned up (5dafc86)
- package: upgrade mongodb-test-runner with bug fix (5b2e99e)
- pool: check topology exists before verifying session support (0aa146d)
- pool: ensure inUse and connecting queues are cleared on reauth (aa2840d)
- pool: ensure that errors are propagated on force destroy (8f8ad56)
- pool: ensure workItem is not null before accessing properties (2143963)
- pool_tests: remove .only (8172137)
- retryable-writes: don't increment
txnNumber
on retries (e7c2242) - retryable-writes: network errors are retryable, inverted logic (2727551)
- scram: cache salted data, not the original data (0cbe95f)
- SDAM: emit SDAM events on close and reconnect (3451ff0)
- server: avoid waiting for reconnect if reconnect disabled (611a352)
- server: correct minor typo in porting 2.x patch (d92efec)
- server_tests: change 'this' to 'self' in some server tests (992d9e9)
- server_tests: fix errors in broken test (1602e4d)
- server-session-pool: don't add expired sessions to the pool (8f48b89)
- server-session-pool: ensure the queue is LIFO (ac68e76)
- utils: don't throw if no snappy (55bf2ad)
- wire-protocol: 2.6 killCursor should not way for reply (7337d91)
- cluster-time: ensure clusterTime makes it to outgoing commands (e700b79)
- cluster-time: track incoming cluster time gossiping (c910706)
- compression: implement wire protocol compression support (2356ffb)
- connection-spy: add class for monitoring active connections (6dd6db3)
- errors: create MongoNetworkError (df12740)
- inital-cluster-time: allow session to define initia value (e3a1c8b)
- mock: support a means of consistently cleaning up mock servers (ab3b70b)
- mock-server: add the ability to set a message handler (9a8b815)
- operation-time: track operationTime in relevant sessions (8d512f1)
- pool: introduce the concept of a minimum pool size (b01b1f8)
- replset: more verbose replica set errors emission (6d5eccd)
- retryable-writes: add mongos support for retryable writes (7778067)
- retryable-writes: initial support on replicasets (73ac688)
- retryable-writes: retry on "not master" stepdown errors (028aec7)
- server-check: reintroduce server version check (486aace)
- server-session-pool: implement session pool per spect (a1d5b22)
- session: allow
session
options to be passed to write cmds (5da75e4) - sessions: add equality operator to ease readability (6510d7d)
- sessions: export all sessions types on the top level (35265b3)
- sessions: support sessions with cursors with find/getMore (a016602)
- sessions: track
logicalSessionTimeoutMinutes
for sessions (11865bf) - ssl: adding ssl options ciphers and ecdhCurve (c839d5c)
- test/: convert server_tests, undefined_tests, replset_tests, replset_state_tests, and repleset_server_selection_tests to run with mongodb-test-runner (3a7c5fd)
- avoid waiting for reconnect if reconnect disabled in Server topology
- avoid waiting for reconnect if reconnect disabled in Cursor
- NODE-990 cache the ScramSHA1 salted passwords up to 200 entries
- NODE-1153 ensure that errors are propagated on force destroy
- NODE-1153 ensure inUse and connecting queues are cleared on reauth
- Emit SDAM events on close and reconnect
- NODE-1073 updates scram.js hi() algorithm to utilize crypto.pbkdf2Sync()
- NODE-1049 only include primary server if there are no secondary servers for readPrefrence secondaryPreferred
- moved
assign
polyfill to shared utils, replace usage ofextend
in tests
- NODE-1039 ensure we force destroy server instances, forcing queue to be flushed.
- Use actual server type in standalone SDAM events.
- NODE-1019 Set keepAlive to 300 seconds or 1/2 of socketTimeout if socketTimeout < keepAlive.
- Minor fix to report the correct state on error.
- NODE-1020 'family' was added to options to provide high priority for ipv6 addresses (Issue #1518, https://github.com/firej).
- Fix require_optional loading of bson-ext.
- Ensure no errors are thrown by replset if topology is destroyed before it finished connecting.
- NODE-999 SDAM fixes for Mongos and single Server event emitting.
- NODE-1014 Set socketTimeout to default to 360 seconds.
- NODE-1019 Set keepAlive to 300 seconds or 1/2 of socketTimeout if socketTimeout < keepAlive.
- NODE-987 Clear out old intervalIds on when calling topologyMonitor.
- NODE-987 Moved filtering to pingServer method and added test case.
- Check for connection destroyed just before writing out and flush out operations correctly if it is (Issue #179, https://github.com/jmholzinger).
- NODE-989 Refactored Replicaset monitoring to correcly monitor newly added servers, Also extracted setTimeout and setInterval to use custom wrappers Timeout and Interva.
- NODE-981 delegate auth to replset/mongos if inTopology is set.
- 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.
- Remove dynamic require (Issue #175, https://github.com/tellnes).
- NODE-696 Handle interrupted error for createIndexes.
- Fixed isse when user is executing find command using Server.command and it get interpreted as a wire protcol message, #172.
- NODE-966 promoteValues not being promoted correctly to getMore.
- Merged in fix for flushing out monitoring operations.
- Return lastIsMaster correctly when connecting with secondaryOnlyConnectionAllowed is set to true and only a secondary is available in replica state.
- Clone options when passed to wireProtocol handler to avoid intermittent modifications causing errors.
- Ensure SSL error propegates better for Replset connections when there is a SSL validation error.
- NODE-957 Fixed issue where < batchSize not causing cursor to be closed on execution of first batch.
- NODE-958 Store reconnectConnection on pool object to allow destroy to close immediately.
- NODE-925 ensure we reschedule operations while pool is < poolSize while pool is growing and there are no connections with not currently performing work.
- NODE-927 fixes issue where authentication was performed against arbiter instances.
- NODE-915 Normalize all host names to avoid comparison issues.
- Fixed issue where pool.destroy would never finish due to a single operation not being executed and keeping it open.
- NODE-919 ReplicaSet connection does not close immediately (Issue #156).
- NODE-901 Fixed bug when normalizing host names.
- NODE-909 Fixed readPreference issue caused by direct connection to primary.
- NODE-910 Fixed issue when bufferMaxEntries == 0 and read preference set to nearest.
- 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.
- updated bson and bson-ext dependencies to 1.0.4 to work past early node 4.x.x version having a broken Buffer.from implementation.
- updated bson and bson-ext dependencies to 1.0.3 due to util.inspect issue with ObjectId optimizations.
- 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
- Moved replicaset monitoring away from serial mode and to parallel mode.
- updated bson and bson-ext dependencies to 1.0.2.
- Delay topologyMonitoring on successful attemptReconnect as no need to run a full scan immediately.
- Emit reconnect event in primary joining when in connected status for a replicaset.
- Updated bson library to 1.0.1.
- Added optional support for bson-ext 1.0.1.
- Updated bson library to 1.0.0.
- Added optional support for bson-ext 1.0.0.
- Expose property parserType allowing for identification of currently configured parser.
- Updated bson library to 0.5.7.
- Dont leak connection.workItems elments when killCursor is called (Issue #150, https://github.com/mdlavin).
- Remove unnecessary errors formatting (Issue #149, https://github.com/akryvomaz).
- Only check isConnected against availableConnections (Issue #142).
- NODE-838 Provide better error message on failed to connect on first retry for Mongos topology.
- Set default servername to host is not passed through for sni.
- Made monitoring happen on exclusive connection and using connectionTimeout to handle the wait time before failure (Issue #148).
- NODE-859 Make minimum value of maxStalenessSeconds 90 seconds.
- NODE-852 Fix Kerberos module deprecations on linux and windows and release new kerberos version.
- NODE-850 Update Max Staleness implementation.
- NODE-849 username no longer required for MONGODB-X509 auth.
- NODE-848 BSON Regex flags must be alphabetically ordered.
- NODE-846 Create notice for all third party libraries.
- NODE-843 Executing bulk operations overwrites write concern parameter.
- NODE-842 Re-sync SDAM and SDAM Monitoring tests from Specs repo.
- NODE-840 Resync CRUD spec tests.
- Unescapable while(true) loop (Issue #152).
- Updated bson library to 0.5.6.
- Included cyclic dependency detection
- Fire callback when topology was destroyed (Issue #147, https://github.com/vkarpov15).
- Refactoring to support pipelining ala 1.4.x branch will retaining the benefits of the growing/shrinking pool (Issue #146).
- Fix typo in serverHeartbeatFailed event name (Issue #143, https://github.com/jakesjews).
- NODE-798 Driver hangs on count command in replica set with one member (Issue #141, https://github.com/isayme).
- fix debug logging message not printing server name.
- fixed application metadata being sent by wrong ismaster.
- NODE-812 Fixed mongos stall due to proxy monitoring ismaster failure causing reconnect.
- NODE-818 Replicaset timeouts in initial connect sequence can "no primary found".
- Updated bson library to 0.5.5.
- Added DBPointer up conversion to DBRef.
- NODE-803, Fixed issue in how the latency window is calculated for Mongos topology causing issues for single proxy connections.
- Avoid timeout in attemptReconnect causing multiple attemptReconnect attempts to happen (Issue #134, https://github.com/dead-horse).
- Ensure promoteBuffers is propagated in same fashion as promoteValues and promoteLongs
- Added promoteValues flag (default to true) to allow user to specify they only want wrapped BSON values back instead of promotion to native types.
- Do not close mongos proxy connection on failed ismaster check in ha process (Issue #130).
- Allow promoteLongs to be passed in through Response.parse method and overrides default set on the connection.
- NODE-798 Driver hangs on count command in replica set with one member.
- Allow promoteLongs to be passed in through Response.parse method and overrides default set on the connection.
- Allow passing in servername for TLS connections for SNI support.
- Allow execution of store operations indepent of having both a primary and secondary available (Issue #123).
- Fixed command execution issue for mongos to ensure buffering of commands when no mongos available.
- Added hashed connection names and fullResult.
- Updated bson library to 0.5.3.
- Wrap callback in nextTick to ensure exceptions are thrown correctly.
- Allow primary to be returned when secondaryPreferred is passed (Issue #117, https://github.com/dhendo).
- Added better warnings when passing in illegal seed list members to a Mongos topology.
- Minor attemptReconnect bug that would cause multiple attemptReconnect to run in parallel.
- Fix wrong opType passed to disconnectHandler.add (Issue #121, https://github.com/adrian-gierakowski)
- Implemented domain backward comp support enabled via domainsEnabled options on Server/ReplSet/Mongos and MongoClient.connect.
- Initial max staleness implementation for ReplSet and Mongos for 3.4 support.
- Added handling of collation for 3.4 support.
- Destroy connection on socket timeout due to newer node versions not closing the socket.
- Minor fixes to handle faster MongoClient connectivity from the driver, allowing single server instances to detect if they are a proxy.
- Added numberOfConsecutiveTimeouts to pool that will destroy the pool if the number of consecutive timeouts > reconnectTries.
- Print warning if seedlist servers host name does not match the one provided in it's ismaster.me field for Replicaset members.
- Fix issue where Replicaset connection would not succeeed if there the replicaset was a single primary server setup.
- Updated bson to version 0.5.1.
- 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.
- NODE-747 Polyfill for Object.assign for 0.12.x or 0.10.x.
- NODE-746 Improves replicaset errors for wrong setName.
- Implemented Server Selection Specification test suite.
- Added warning level to logger.
- Added warning message when sockeTimeout < haInterval for Replset/Mongos.
- Mongos emits close event on no proxies available or when reconnect attempt fails.
- Replset emits close event when no servers available or when attemptReconnect fails to reconnect.
- Don't throw in auth methods but return error in callback.
- Added missing logout method on mongos proxy topology.
- Fixed logger error serialization issue.
- Documentation fixes.
- Moved all authentication and handling of growing/shrinking of pool connections into actual pool.
- All authentication methods now handle both auth/reauthenticate and logout events.
- Introduced logout method to get rid of onAll option for logout command.
- Updated bson to 0.5.0 that includes Decimal128 support.
- Pool gets stuck if a connection marked for immediateRelease times out (Issue #99, https://github.com/nbrachet).
- Make authentication process retry up to authenticationRetries at authenticationRetryIntervalMS interval.
- Made ismaster replicaset calls operate with connectTimeout or monitorSocketTimeout to lower impact of big socketTimeouts on monitoring performance.
- 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).
- Make cursor getMore or killCursor correctly trigger pool reconnect to single server if pool has not been destroyed.
- Make ismaster monitoring for single server connection default to avoid user confusion due to change in behavior.
- NODE-710 Allow setting driver loggerLevel and logger function from MongoClient options.
- Minor fix for SSL errors on connection attempts, minor fix to reconnect handler for the server.
- 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.
- Fix minor issue where connectingServers would not be removed correctly causing single server connections to not auto-reconnect.
- 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.
- Set keepAlive to false by default to work around bug in node.js for Windows XP and Windows 2003.
- Ensure replicaset topology destroy is never called by SDAM.
- Ensure all paths are correctly returned on inspectServer in replset.
- Hardened cursor connection handling for getMore and killCursor to ensure mid operation connection kill does not throw null exception.
- Fixes for Node 6.0 support.
- Added improved handling of reconnect when topology is a single server.
- Added better handling of $query queries passed down for 3.2 or higher.
- Introduced getServerFrom method to topologies to let cursor grab a new pool for getMore and killCursors commands and not use connection pipelining.
- NODE-693 Move authentication to be after ismaster call to avoid authenticating against arbiters.
- Only call unref on destroy if it exists to ensure proper working destroy method on early node v0.10.x versions.
- 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.
- Fixed some situations where all connections are flushed due to a single connection in the connection pool closing.
- Ensure server inquireServerState exits immediately on server.destroy call.
- Refactored readPreference handling in 2.4, 2.6 and 3.2 wire protocol handling.
- Handle missing cursor on getMore when going through a mongos proxy by pinning to socket connection and not server.
- Mongos pickProxies fall back to closest mongos if no proxies meet latency window specified.
- isConnected method for mongos uses same selection code as getServer.
- Exceptions in cursor getServer trapped and correctly delegated to high level handler.
- SDAM Monitoring emits diff for Replicasets to simplify detecting the state changes.
- SDAM Monitoring correctly emits Mongos as serverDescriptionEvent.
- Removed monitoring exclusive connection, should resolve timeouts and reconnects on idle replicasets where haInteval > socketTimeout.
- Implements the SDAM monitoring specification.
- Fix issue where cursor would error out and not be buffered when primary is not connected.
- Fixed issue with replicasetInquirer where it could stop performing monitoring if there was no servers available.
- Fixed raise condition where multiple replicasetInquirer operations could be started in parallel creating redundant connections.
- Handle rogue SSL exceptions (Issue #85, https://github.com/durran).
- Added unref options on server, replicaset and mongos (Issue #81, https://github.com/allevo)
- cursorNotFound flag always false (Issue #83, https://github.com/xgfd)
- refactor of events emission of fullsetup and all events (Issue #84, https://github.com/xizhibei)
- Added support for promoteLongs option for command function.
- Return connection if no callback available
- Emit connect event when server reconnects after initial connection failed (Issue #76, https://github.com/vkarpov15)
- Introduced optional monitoringSocketTimeout option to allow better control of SDAM monitoring timeouts.
- Made monitoringSocketTimeout default to 30000 if no connectionTimeout value specified or if set to 0.
- Fixed issue where tailable cursor would not retry even though cursor was still alive.
- Disabled exhaust flag support to avoid issues where users could easily write code that would cause memory to run out.
- Handle the case where the first command result document returns an empty list of documents but a live cursor.
- Allow passing down off CANONICALIZE_HOST_NAME and SERVICE_REALM options for kerberos.
- Harden MessageHandler in server.js to avoid issues where we cannot find a callback for an operation.
- Ensure RequestId can never be larger than Max Number integer size.
- Removed annoying missing Kerberos error (NODE-654).
- Added raw support for the command function on topologies.
- Fixed issue where raw results that fell on batchSize boundaries failed (Issue #72)
- Copy over all the properties to the callback returned from bindToDomain, (Issue #72)
- Added connection hash id to be able to reference connection host/name without leaking it outside of driver.
- NODE-638, Cannot authenticate database user with utf-8 password.
- 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.
- Pool now grows and shrinks correctly depending on demand not causing a full pool reconnect.
- Improvements in monitoring of a Replicaset where in certain situations the inquiry process could get exited.
- Switched to using Array.push instead of concat for use cases of a lot of documents.
- Fixed issue where re-authentication could loose the credentials if whole Replicaset disconnected at once.
- Added peer optional dependencies support using require_optional module.
- Bumped bson to V0.4.21 to allow using minor optimizations.
- Allow connection to secondary if primaryPreferred or secondaryPreferred (Issue #70, https://github.com/leichter)
- Pool allocates size + 1 connections when using replicasets, reserving additional pool connection for monitoring exclusively.
- Fixes bug when all replicaset members are down, that would cause it to fail to reconnect using the originally provided seedlist.
- Correctly emit close event when calling destroy on server topology.
- Backed out Prevent Maximum call stack exceeded by calling all callbacks on nextTick, (Issue #64, https://github.com/iamruinous) as it breaks node 0.10.x support.
- Added [options.checkServerIdentity=true] {boolean|function}. Ensure we check server identify during SSL, set to false to disable checking. Only works for Node 0.12.x or higher. You can pass in a boolean or your own checkServerIdentity override function, (Issue #29).
- Prevent Maximum call stack exceeded by calling all callbacks on nextTick, (Issue #64, https://github.com/iamruinous).
- State is not defined in mongos, (Issue #63, https://github.com/flyingfisher).
- Fixed corner case issue on exhaust cursors on pre 3.0.x MongoDB.
- Converted test suite to use mongodb-topology-manager.
- Upgraded bson library to V0.4.20.
- Minor fixes for 3.2 readPreferences.
- Correctly error out when passed a seedlist of non-valid server members.
- Fix Automattic/mongoose#3481; flush callbacks on error, (Issue #57, https://github.com/vkarpov15).
- $explain query for wire protocol 2.6 and 2.4 does not set number of returned documents to -1 but to 0.
- ismaster runs against admin.$cmd instead of system.$cmd.
- Fixes to handle getMore command errors for MongoDB 3.2
- Allows the process to properly close upon a Db.close() call on the replica set by shutting down the haTimer and closing arbiter connections.
- Hardened the checking for replicaset equality checks.
- OpReplay flag correctly set on Wire protocol query.
- Mongos load balancing added, introduced localThresholdMS to control the feature.
- Kerberos now a peerDependency, making it not install it by default in Node 5.0 or higher.
- Fixed bug in arbiter connection capping code.
- NODE-599 correctly handle arrays of server tags in order of priority.
- Fix for 2.6 wire protocol handler related to readPreference handling.
- Added maxAwaitTimeMS support for 3.2 getMore to allow for custom timeouts on tailable cursors.
- Make CoreCursor check for $err before saying that 'next' succeeded (Issue #53, https://github.com/vkarpov15).
- Make batchSize always be > 0 for 3.2 wire protocol to make it work consistently with pre 3.2 servers.
- Locked to bson 0.4.19.
- Minor 3.2 fix for handling readPreferences on sharded commands.
- Minor fixes to correctly pass APM specification test suite.
- Connections to arbiters only maintain a single connection.
- Set slaveOk to true for getMore and killCursors commands.
- Don't swallow callback errors for 2.4 single server (Issue #49, https://github.com/vkarpov15).
- Apply toString('hex') to each buffer in an array when logging (Issue #48, https://github.com/nbrachet).
- NODE-547 only emit error if there are any listeners.
- Fixed APM issue with issuing readConcern.
- Added BSON serializer ignoreUndefined option for insert/update/remove/command/cursor.
- NODE-541 Added initial support for readConcern.
- NODE-535 If connectWithNoPrimary is true then primary-only connection is not allowed.
- NODE-534 Passive secondaries are not allowed for secondaryOnlyConnectionAllowed.
- Fixed filtering bug for logging (Issue 30, https://github.com/christkv/mongodb-core/issues/30).
- Added missing Mongos.prototype.parserType function.
- NODE-525 Reset connectionTimeout after it's overwritten by tls.connect.
- NODE-518 connectTimeoutMS is doubled in 2.0.39.
- Minor fix to handle 2.4.x errors better by correctly return driver layer issues.
- Refactoring to allow to tap into find/getmore/killcursor in cursors for APM monitoring in driver.
- NODE-505 Query fails to find records that have a 'result' property with an array value.
- NODE-492 correctly handle hanging replicaset monitoring connections when server is unavailable due to network partitions or firewalls dropping packets, configureable using the connectionTimeoutMS setting.
- NODE-493 staggering the socket connections to avoid overwhelming the mongod process.
- Minor bug fixes.
- Fix issue with SCRAM authentication causing authentication to return true on failed authentication (Issue 26, https://github.com/cglass17).
- Ensure serializeFunctions passed down correctly to wire protocol.
- Switching to using the 0.4.x pure JS serializer, removing dependency on C++ parser.
- Refactoring wire protocol messages to avoid expensive size calculations of documents in favor of writing out an array of buffers to the sockets.
- NODE-486 fixed issue related to limit and skip when calling toArray in 2.0 driver.
- NODE-483 throw error if capabilities of topology is queries before topology has performed connection setup.
- NODE-487 fixed issue where killcursor command was not being sent correctly on limit and skip queries.
- NODE-478 Work around authentication race condition in mongos authentication due to multi step authentication methods like SCRAM.
- After reconnect, it updates the allowable reconnect retries to the option settings (Issue #23, https://github.com/owenallenaz)
- Minor fixes for issues with re-authentication of mongos.
- Correctly emit 'all' event when primary + all secondaries have connected.
- NODE-464 Only use a single socket against arbiters and hidden servers.
- Ensure we filter out hidden servers from any server queries.
- Fixed buffer compare for electionId for < node 12.0.2
- NODE-455 Update SDAM specification support to cover electionId and Mongos load balancing.
- NODE-456 Allow mongodb-core to pipeline commands (ex findAndModify+GLE) along the same connection and handle the returned results.
- Fixes to make mongodb-core work for node 0.8.x when using scram and setImmediate.
- Handle lack of callback in crud operations when returning error on application closed.
- Error out when topology has been destroyed either by connection retries being exhausted or destroy called on topology.
- Standardizing mongoErrors and its API (Issue #14)
- Creating a new connection is slow because of 100ms setTimeout() (Issue #17, https://github.com/vkarpov15)
- remove mkdirp and rimraf dependencies (Issue #12)
- Updated default value of param options.rejectUnauthorized to match documentation (Issue #16)
- ISSUE: NODE-417 Resolution. Improving behavior of thrown errors (Issue #14, https://github.com/owenallenaz)
- Fix cursor hanging when next() called on exhausted cursor (Issue #18, https://github.com/vkarpov15)
- Minor refactorings in cursor code to make extending the cursor simpler.
- NODE-417 Resolution. Improving behavior of thrown errors using Error.captureStackTrace.
- Updated bson module to 0.3.0 that extracted the c++ parser into bson-ext and made it an optional dependency.
- NODE-395 Socket Not Closing, db.close called before full set finished initalizing leading to server connections in progress not being closed properly.
- Made kerberos module ~0.0 to allow for quicker releases due to io.js of kerberos module.
- Added support for minHeartbeatFrequencyMS on server reconnect according to the SDAM specification.
- NODE-377, fixed issue where tags would correctly be checked on secondary and nearest to filter out eligible server candidates.
- rejectUnauthorized parameter is set to true for ssl certificates by default instead of false.
- Removed check for type in replset pickserver function.
- NODE-374 correctly adding passive secondaries to the list of eligable servers for reads
- NODE-365 mongoDB native node.js driver infinite reconnect attempts (fixed issue around handling of retry attempts)
- Fixed cursor transforms for buffered document reads from cursor.
- Remove the required setName for replicaset connections, if not set it will pick the first setName returned.
- Added tranforms.doc option to cursor to allow for pr. document transformations.
- Updated BSON dependency to 0.2.18 to fix issues with io.js and node.
- Updated Kerberos dependency to 0.0.8 to fix issues with io.js and node.
- Don't treat findOne() as a command cursor.
- Refactored out state changes into methods to simplify read the next method.
- Stripped out Object.defineProperty for performance reasons
- Applied more performance optimizations.
- properties cursorBatchSize, cursorSkip, cursorLimit are not methods setCursorBatchSize/cursorBatchSize, setCursorSkip/cursorSkip, setCursorLimit/cursorLimit
- Use ns variable for getMore commands for command cursors to work properly with cursor version of listCollections and listIndexes.
- Server manager fixed to support 2.2.X servers for travis test matrix.
- Fall back to errmsg when creating MongoError for command errors
- Added transform method support for cursor (initially just for initial query results) to support listCollections/listIndexes in 2.8.
- Fixed variable leak in scram.
- Fixed server manager to deal better with killing processes.
- Bumped bson to 0.2.16.
- Fixed error handling issue with nonce generation in mongocr.
- Fixed issues with restarting servers when using ssl.
- Using strict for all classes.
- Cleaned up any escaping global variables.
- Correctly encoding UTF8 collection names on wire protocol messages.
- Added emitClose parameter to topology destroy methods to allow users to specify that they wish the topology to emit the close event to any listeners.
- Refactored code to use prototype instead of privileged methods.
- Fixed issue with auth where a runtime condition could leave replicaset members without proper authentication.
- Several deopt optimizations for v8 to improve performance and reduce GC pauses.
- Fixed issue with wrong namespace being created for command cursors.
- switched from using shift for the cursor due to bad slowdown on big batchSizes as shift causes entire array to be copied on each call.
- fixed error issuing problem on cursor.next when iterating over a huge dataset with a very small batchSize.
- fullsetup is now defined as a primary and secondary being available allowing for all read preferences to be satisfied.
- fixed issue with replset_state logging.
- Dependency issue solved
- Initial release of mongodb-core