@zakodium/lucid-mongo
Advanced tools
Comparing version 4.0.0-2 to 4.0.0
@@ -5,3 +5,3 @@ { | ||
"main": "index.js", | ||
"version": "4.0.0-2", | ||
"version": "4.0.0", | ||
"scripts": { | ||
@@ -39,11 +39,11 @@ "pretest": "npm run test:cleanup && npm run lint", | ||
"@adonisjs/generic-exceptions": "^3.0.1", | ||
"chance": "^1.0.18", | ||
"chance": "^1.1.0", | ||
"debug": "^4.1.1", | ||
"geo-point": "^1.2.0", | ||
"lodash": "^4.17.11", | ||
"geo-point": "^1.2.1", | ||
"lodash": "^4.17.15", | ||
"moment": "^2.24.0", | ||
"mongo-uri-builder": "^2.0.0", | ||
"mongodb": "^3.2.6", | ||
"mongodb": "^3.3.2", | ||
"mongodb-url": "^3.0.2", | ||
"mquery": "^3.2.0", | ||
"mquery": "^3.2.2", | ||
"pluralize": "^8.0.0", | ||
@@ -57,5 +57,5 @@ "pretty-hrtime": "^1.0.3", | ||
"@adonisjs/sink": "^1.0.17", | ||
"conventional-changelog-cli": "^2.0.21", | ||
"conventional-changelog-cli": "^2.0.23", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"fs-extra": "^8.0.1", | ||
"fs-extra": "^8.1.0", | ||
"japa": "^2.0.10", | ||
@@ -62,0 +62,0 @@ "japa-cli": "^1.0.1" |
@@ -129,3 +129,4 @@ 'use strict'; | ||
{ | ||
useNewUrlParser: true | ||
useNewUrlParser: true, | ||
useUnifiedTopology: true, | ||
}, | ||
@@ -487,3 +488,3 @@ config.connectionOptions || {} | ||
const collection = connection.collection(this.collectionName); | ||
return collection.insert(row); | ||
return collection.insertOne(row); | ||
} | ||
@@ -490,0 +491,0 @@ |
@@ -460,3 +460,3 @@ 'use strict'; | ||
const collection = await this.db.getCollection(this.collection); | ||
return collection.insert(attributes); | ||
return collection.insertOne(attributes); | ||
} | ||
@@ -463,0 +463,0 @@ |
@@ -81,3 +81,3 @@ 'use strict' | ||
_addLock () { | ||
return this.db.collection(this._lockCollection).insert({ is_locked: true }) | ||
return this.db.collection(this._lockCollection).insertOne({ is_locked: true }) | ||
} | ||
@@ -154,3 +154,3 @@ | ||
_addForBatch (name, batch) { | ||
return this.db.collection(this._migrationsCollection).insert({ name, batch }) | ||
return this.db.collection(this._migrationsCollection).insertOne({ name, batch }) | ||
} | ||
@@ -172,3 +172,3 @@ | ||
_remove (name) { | ||
return this.db.collection(this._migrationsCollection).delete({ name }) | ||
return this.db.collection(this._migrationsCollection).deleteOne({ name }) | ||
} | ||
@@ -175,0 +175,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
307676
10446
1
Updatedchance@^1.1.0
Updatedgeo-point@^1.2.1
Updatedlodash@^4.17.15
Updatedmongodb@^3.3.2
Updatedmquery@^3.2.2