mongodb-core
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -0,1 +1,18 @@ | ||
<a name="3.0.2"></a> | ||
## [3.0.2](https://github.com/mongodb-js/mongodb-core/compare/v3.0.1...v3.0.2) (2018-01-29) | ||
### Bug Fixes | ||
* **cursor:** check for autoReconnect option only for single server ([645d6df](https://github.com/mongodb-js/mongodb-core/commit/645d6df)) | ||
### Features | ||
* **mongodb+srv:** add support for mongodb+srv to the uri parser ([19b42ce](https://github.com/mongodb-js/mongodb-core/commit/19b42ce)) | ||
* **uri-parser:** add initial implementation of uri parser for core ([8f797a7](https://github.com/mongodb-js/mongodb-core/commit/8f797a7)) | ||
* **uri-parser:** expose the connection string parser as api ([fdeca2f](https://github.com/mongodb-js/mongodb-core/commit/fdeca2f)) | ||
<a name="3.0.1"></a> | ||
@@ -2,0 +19,0 @@ ## [3.0.1](https://github.com/mongodb-js/mongodb-core/compare/v3.0.0...v3.0.1) (2017-12-24) |
@@ -35,3 +35,5 @@ 'use strict'; | ||
GSSAPI: require('./lib/auth/gssapi'), | ||
ScramSHA1: require('./lib/auth/scram') | ||
ScramSHA1: require('./lib/auth/scram'), | ||
// Utilities | ||
parseConnectionString: require('./lib/uri_parser') | ||
}; |
@@ -578,3 +578,5 @@ 'use strict'; | ||
if (!self.topology.isConnected(self.options)) { | ||
if (!self.cursorState.reconnect) { | ||
// Only need this for single server, because repl sets and mongos | ||
// will always continue trying to reconnect | ||
if (self.topology._type === 'server' && !self.topology.s.options.reconnect) { | ||
// Reconnect is disabled, so we'll never reconnect | ||
@@ -581,0 +583,0 @@ return callback(new MongoError('no connection available')); |
@@ -42,3 +42,3 @@ 'use strict'; | ||
* @return {MongoError} A MongoError instance | ||
* @deprecated Use new MongoError() instead. | ||
* @deprecated Use `new MongoError()` instead. | ||
*/ | ||
@@ -64,5 +64,21 @@ MongoError.create = function(options) { | ||
/** | ||
* An error used when attempting to parse a value (like a connection string) | ||
* | ||
* @class | ||
* @param {Error|string|object} message The error message | ||
* @property {string} message The error message | ||
* @return {MongoParseError} A MongoNetworkError instance | ||
* @extends {MongoError} | ||
*/ | ||
const MongoParseError = function(message) { | ||
MongoError.call(this, message); | ||
this.name = 'MongoParseError'; | ||
}; | ||
util.inherits(MongoParseError, MongoError); | ||
module.exports = { | ||
MongoError: MongoError, | ||
MongoNetworkError: MongoNetworkError | ||
MongoNetworkError: MongoNetworkError, | ||
MongoParseError: MongoParseError | ||
}; |
{ | ||
"name": "mongodb-core", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications", | ||
@@ -32,2 +32,3 @@ "main": "index.js", | ||
"jsdoc": "3.5.4", | ||
"mongodb-mock-server": "^1.0.0", | ||
"mongodb-test-runner": "^1.1.18", | ||
@@ -34,0 +35,0 @@ "prettier": "^1.6.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
582022
39
11843
10
3