mongoose 6.1.7 → 6.2.0

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,48 @@
1
+ 6.2.0 / 2022-02-02
2
+ ==================
3
+ * feat(connection+mongoose): add support for continueOnError for syncIndexes #11266 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
4
+ * feat(query): cast literals in `$expr` where possible #10663
5
+ * feat(schema+mongoose): add pluginTags to allow applying global plugins to only schemas with matching tags #9780
6
+ * feat(discriminator): support overwriteModels:true to reuse discriminator names #11244 #10931 [IslandRhythms](https://github.com/IslandRhythms)
7
+ * feat(index.d.ts): add DocType generic param to Model functions that return queries to better support projections #11156
8
+ * feat(error): export MongooseServerSelectionError #11202
9
+ * feat(schematype): add validators, path, isRequired to public API and TypeScript types #11139
10
+ * fix(model): make exists(...) return lean document with _id or null instead of boolean #11142 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
11
+ * fix(model): support storing versionKey in nested paths #10980
12
+ * fix(index.d.ts): add options to `bulkSave()` type def #11201 [Uzlopak](https://github.com/Uzlopak)
13
+ * fix(index.d.ts): better support for query projections #11210 [EugeneKorshenko](https://github.com/EugeneKorshenko)
14
+
15
+ 6.1.10 / 2022-02-01
16
+ ===================
17
+ * fix(mongoose): correctly handle destructured isValidObjectId #11304
18
+ * fix(mongoose): defer to MongoDB driver isValid() for `isValidObjectId()` #11227
19
+
20
+ 6.1.9 / 2022-01-31
21
+ ==================
22
+ * fix(query): respect nested schema strict as default when casting query filters #11291
23
+ * fix(mongoose): make isValidObjectId() consistent with isValid(), make `ObjectId()` casting more flexible #11209
24
+ * fix(setDefaultsOnInsert): ignore defaults underneath maps #11235
25
+ * fix(query): avoid setting nested schema properties that are stripped out by strictQuery to undefined in query filter #11291
26
+ * fix: check for all flags in a regex deepequal #11242 [Uzlopak](https://github.com/Uzlopak)
27
+ * fix: replace substr with substring #11278 [Uzlopak](https://github.com/Uzlopak)
28
+ * docs: port for documentation testing in CONTRIBUTING.md #11273 [Uzlopak](https://github.com/Uzlopak)
29
+
30
+ 6.1.8 / 2022-01-24
31
+ ==================
32
+ * fix(connection): stop leaking sessions in .transaction() #11259 #11256 [Uzlopak](https://github.com/Uzlopak)
33
+ * perf: remove sliced in favor of Array.prototype.slice() #11238 [Uzlopak](https://github.com/Uzlopak)
34
+ * perf: improve setDottedPath #11264 [Uzlopak](https://github.com/Uzlopak)
35
+ * fix(document): handle edge case where NestJS sets String.type = String, mixing up schema definitions #11199
36
+ * fix: remove obsolete code after upgrading to bson4 #11265 [Uzlopak](https://github.com/Uzlopak)
37
+ * fix: remove util.isArray in favor of Array.isArray #11234 [Uzlopak](https://github.com/Uzlopak)
38
+ * fix(index.d.ts): avoid UnpackedIntersection making `findOne().populate()` result non-nullable #11041
39
+ * docs(migration): add note to change default functions to schema #11245 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
40
+ * docs: updated docs and issue templates for new FAQs #11171 [IslandRhythms](https://github.com/IslandRhythms)
41
+ * chore: fix casting benchmark #11262 [Uzlopak](https://github.com/Uzlopak)
42
+ * chore: add mongodb-memory-server to test easier locally #11255 [Uzlopak](https://github.com/Uzlopak)
43
+ * chore: fix testing tsconfig #11243 [Uzlopak](https://github.com/Uzlopak)
44
+ * refactor: move utils.random to test folder #11239 [Uzlopak](https://github.com/Uzlopak)
45
+
1
46
  6.1.7 / 2022-01-17
2
47
  ==================
3
48
  * fix(model): correct handling for $push on a nested array #11108