mongoose 6.2.7 → 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 +10 -0
- package/dist/browser.umd.js +56 -56
- package/lib/browserDocument.js +1 -0
- package/lib/cursor/AggregationCursor.js +0 -1
- package/lib/document.js +13 -8
- package/lib/helpers/document/handleSpreadDoc.js +19 -1
- package/lib/helpers/query/castFilterPath.js +0 -1
- package/lib/model.js +1 -1
- package/lib/schema/SubdocumentPath.js +4 -1
- package/lib/schema/array.js +1 -0
- package/lib/schema/documentarray.js +14 -7
- package/lib/types/array/methods/index.js +2 -0
- package/lib/virtualtype.js +1 -0
- package/package.json +3 -2
- package/types/document.d.ts +3 -0
- package/types/index.d.ts +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
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
|
+
|
|
1
11
|
6.2.7 / 2022-03-16
|
|
2
12
|
==================
|
|
3
13
|
* perf(document): avoid running validation on every array element if there's no validators to run #11380
|