mongoose 5.7.4 → 5.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/History.md +40 -0
- package/lib/aggregate.js +3 -3
- package/lib/cast.js +8 -0
- package/lib/connection.js +29 -17
- package/lib/cursor/AggregationCursor.js +10 -0
- package/lib/document.js +98 -13
- package/lib/error/validation.js +4 -2
- package/lib/helpers/cursor/eachAsync.js +54 -50
- package/lib/helpers/updateValidators.js +3 -0
- package/lib/index.js +9 -0
- package/lib/model.js +9 -7
- package/lib/options/SchemaArrayOptions.js +13 -0
- package/lib/options/SchemaBufferOptions.js +13 -0
- package/lib/options/SchemaDateOptions.js +13 -0
- package/lib/options/SchemaNumberOptions.js +13 -0
- package/lib/options/SchemaObjectIdOptions.js +13 -0
- package/lib/options/SchemaStringOptions.js +39 -0
- package/lib/options/SchemaTypeOptions.js +22 -5
- package/lib/query.js +1 -1
- package/lib/queryhelpers.js +1 -1
- package/lib/schema/SingleNestedPath.js +5 -3
- package/lib/schema/array.js +2 -2
- package/lib/schema/documentarray.js +42 -17
- package/lib/schema/string.js +23 -12
- package/lib/schema.js +7 -13
- package/lib/schematype.js +3 -3
- package/lib/types/core_array.js +4 -1
- package/lib/types/documentarray.js +81 -0
- package/lib/types/subdocument.js +13 -0
- package/package.json +3 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mongoose",
|
|
3
3
|
"description": "Mongoose MongoDB ODM",
|
|
4
|
-
"version": "5.7.
|
|
4
|
+
"version": "5.7.8",
|
|
5
5
|
"author": "Guillermo Rauch <guillermo@learnboost.com>",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mongodb",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"bson": "~1.1.1",
|
|
23
23
|
"kareem": "2.3.1",
|
|
24
|
-
"mongodb": "3.3.
|
|
24
|
+
"mongodb": "3.3.3",
|
|
25
25
|
"mongoose-legacy-pluralize": "1.0.2",
|
|
26
26
|
"mpath": "0.6.0",
|
|
27
27
|
"mquery": "3.2.2",
|
|
@@ -102,10 +102,6 @@
|
|
|
102
102
|
},
|
|
103
103
|
"rules": {
|
|
104
104
|
"comma-style": "error",
|
|
105
|
-
"consistent-this": [
|
|
106
|
-
"error",
|
|
107
|
-
"_this"
|
|
108
|
-
],
|
|
109
105
|
"indent": [
|
|
110
106
|
"error",
|
|
111
107
|
2,
|
|
@@ -118,6 +114,7 @@
|
|
|
118
114
|
"no-buffer-constructor": "warn",
|
|
119
115
|
"no-console": "off",
|
|
120
116
|
"no-multi-spaces": "error",
|
|
117
|
+
"no-constant-condition": "off",
|
|
121
118
|
"func-call-spacing": "error",
|
|
122
119
|
"no-trailing-spaces": "error",
|
|
123
120
|
"quotes": [
|