mongoose 6.2.5 → 6.2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ 6.2.8 / 2022-03-22
2
+ ==================
3
+ * fix(document): handle casting array of spread docs #11522
4
+ * fix(document): avoid setting nested properties on top-level document when initing with strict: false #11526
5
+ * fix(document): correctly handle deeply nested subdocuments when getting paths to validate #11501
6
+ * fix(types): avoid making TInstanceMethods any by default leading to `this = any` in middleware #11435
7
+ * fix(types): allow defining array default if using Types.Array<> in document interface #11391
8
+ * docs(migrating_to_6): describe breaking change in Mongoose 6 about default query populate model #11289
9
+ * docs(middleware): fix typo #11537 [x1489](https://github.com/x1489)
10
+
11
+ 6.2.7 / 2022-03-16
12
+ ==================
13
+ * perf(document): avoid running validation on every array element if there's no validators to run #11380
14
+ * fix(cursor): correctly populate in batches when batchSize is set #11509
15
+ * fix(connection): avoid setting MongoClient on useDb() connections until after setting on base connection #11445
16
+ * fix(schema): throw more helpful error when using schema from a different version of Mongoose module #10453
17
+ * fix: add missing timeseries expiration handling #11489 #11229 [Uzlopak](https://github.com/Uzlopak)
18
+ * docs: correct Model.findOneAndReplace docs param naming #11524 [anatolykopyl](https://github.com/anatolykopyl)
19
+
20
+ 6.2.6 / 2022-03-11
21
+ ==================
22
+ * fix(types): correct reference to cursor TypeScript bindings #11513 [SimonHausdorf](https://github.com/SimonHausdorf)
23
+ * fix(types): allow calling Query.prototype.populate() with array of strings #11518
24
+ * fix(types): export and refactor types of PreMiddlewareFunction, PreSaveMiddlewareFunction, PostMiddlewareFunction, ErrorHandlingMiddlewareFunction #11485 [Uzlopak](https://github.com/Uzlopak)
25
+
1
26
  6.2.5 / 2022-03-09
2
27
  ==================
3
28
  * fix(mongoose): add isObjectIdOrHexString() to better capture the most common use case for `isValidObjectId()` #11419