mongoose 5.13.4 → 5.13.5

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 CHANGED
@@ -1,3 +1,9 @@
1
+ 5.13.5 / 2021-07-30
2
+ ===================
3
+ * perf(index.d.ts): improve typescript type checking performance #10515 [andreialecu](https://github.com/andreialecu)
4
+ * fix(index.d.ts): fix debug type in MongooseOptions #10510 [thiagokisaki](https://github.com/thiagokisaki)
5
+ * docs(api): clarify that `depopulate()` with no args depopulates all #10501 [gfrancz](https://github.com/gfrancz)
6
+
1
7
  5.13.4 / 2021-07-28
2
8
  ===================
3
9
  * fix: avoid pulling non-schema paths from documents into nested paths #10449
package/index.d.ts CHANGED
@@ -188,7 +188,7 @@ declare module 'mongoose' {
188
188
  debug?:
189
189
  | boolean
190
190
  | { color?: boolean; shell?: boolean }
191
- | WritableStream
191
+ | stream.Writable
192
192
  | ((collectionName: string, methodName: string, ...methodArgs: any[]) => void);
193
193
 
194
194
  /** If set, attaches [maxTimeMS](https://docs.mongodb.com/manual/reference/operator/meta/maxTimeMS/) to every query */
@@ -2494,9 +2494,9 @@ declare module 'mongoose' {
2494
2494
  ? mongodb.Condition<T[P]>
2495
2495
  : mongodb.Condition<T[P] | string>;
2496
2496
  } &
2497
- mongodb.RootQuerySelector<T>;
2497
+ mongodb.RootQuerySelector<DocumentDefinition<T>>;
2498
2498
 
2499
- export type FilterQuery<T> = _FilterQuery<DocumentDefinition<T>>;
2499
+ export type FilterQuery<T> = _FilterQuery<T>;
2500
2500
 
2501
2501
  type NumericTypes = number | mongodb.Decimal128 | mongodb.Double | mongodb.Int32 | mongodb.Long;
2502
2502
 
package/lib/document.js CHANGED
@@ -4146,7 +4146,7 @@ Document.prototype.populated = function(path, val, options) {
4146
4146
  * console.log(doc.author); // '5144cf8050f071d979c118a7'
4147
4147
  * })
4148
4148
  *
4149
- * If the path was not populated, this is a no-op.
4149
+ * If the path was not provided, then all populated fields are returned to their unpopulated state.
4150
4150
  *
4151
4151
  * @param {String} path
4152
4152
  * @return {Document} this
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mongoose",
3
3
  "description": "Mongoose MongoDB ODM",
4
- "version": "5.13.4",
4
+ "version": "5.13.5",
5
5
  "author": "Guillermo Rauch <guillermo@learnboost.com>",
6
6
  "keywords": [
7
7
  "mongodb",
@@ -20,7 +20,6 @@
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
22
  "@types/mongodb": "^3.5.27",
23
- "@types/node": "14.x || 15.x",
24
23
  "bson": "^1.1.4",
25
24
  "kareem": "2.3.2",
26
25
  "mongodb": "3.6.10",