Comparing version 3.0.13 to 3.0.14
@@ -83,3 +83,3 @@ const debug = require('debug')('cosa:db'); | ||
useNewUrlParser: true, | ||
useUnifiedTopology: false // https://jira.mongodb.org/projects/NODE/issues/NODE-2231 | ||
useUnifiedTopology: true | ||
}); | ||
@@ -86,0 +86,0 @@ this._db = await this._client.db(dbName); |
{ | ||
"name": "cosa", | ||
"version": "3.0.13", | ||
"version": "3.0.14", | ||
"description": "Cosa Models for MongoDB", | ||
@@ -44,3 +44,3 @@ "main": "lib/index.js", | ||
"@hapi/joi": "^15.1.1", | ||
"mongodb": "~3.3.2", | ||
"mongodb": "~3.5.2", | ||
"mongodb-extended-json": "~1.10.1", | ||
@@ -47,0 +47,0 @@ "object-assign": "^4.1.1", |
@@ -11,3 +11,5 @@ # Cosa | ||
$ yarn add cosa | ||
```bash | ||
yarn add cosa | ||
``` | ||
@@ -18,3 +20,3 @@ ## Usage | ||
``` javascript | ||
```javascript | ||
const { Model } = require('cosa'); | ||
@@ -35,3 +37,3 @@ | ||
```javascript | ||
const newUser = UserModel.create({ | ||
const newUser = UserModel.create({ | ||
name: 'John Smith', | ||
@@ -56,6 +58,6 @@ email: 'jsmith@example.com' | ||
- [Cosa API Documentation](API.md) | ||
- [MongoDB API Documentation](http://mongodb.github.io/node-mongodb-native/3.1/api/) | ||
- [MongoDB API Documentation](http://mongodb.github.io/node-mongodb-native/3.5/api/) | ||
## License | ||
The module is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). | ||
The module is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60
57210
+ Addedbl@2.2.1(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddenque@1.5.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedmongodb@3.5.11(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removedmongodb@3.3.5(transitive)
Updatedmongodb@~3.5.2