mongoose 5.9.24 → 5.9.28

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,40 @@
1
+ 5.9.28 / 2020-08-07
2
+ ===================
3
+ * fix(connection): consistently stop buffering when "reconnected" is emitted #9295
4
+ * fix(error): ensure `name` and `message` show up on individual ValidatorErrors when calling JSON.stringify() on a ValidationError #9296
5
+ * fix(document): keeps manually populated paths when setting a nested path to itself #9293
6
+ * fix(document): allow saving after setting document array to itself #9266
7
+ * fix(schema): handle `match` schema validator with `/g` flag #9287
8
+ * docs(guide): refactor transactions examples to async/await #9204
9
+
10
+ 5.9.27 / 2020-07-31
11
+ ===================
12
+ * fix: upgrade mongodb driver -> 3.5.10 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
13
+ * docs(transactions): make transactions docs use async/await for readability #9204
14
+
15
+ 5.9.26 / 2020-07-27
16
+ ===================
17
+ * fix(document): allow unsetting boolean field by setting the field to `undefined` #9275
18
+ * fix(document): throw error when overwriting a single nested subdoc changes an immutable path within the subdoc #9281
19
+ * fix(timestamps): apply timestamps to `bulkWrite()` updates when not using `$set` #9268
20
+ * fix(browser): upgrade babel to v7 to work around an issue with `extends Error` #9273
21
+ * fix: make subdocument's `invalidate()` methods have the same return value as top-level document #9271
22
+ * docs(model): make `create()` docs use async/await, and add another warning about how `create()` with options requires array syntax #9280
23
+ * docs(connections): clarify that Mongoose can emit 'connected' when reconnecting after losing connectivity #9240
24
+ * docs(populate): clarify that you can't filter based on foreign document properties when populating #9279
25
+ * docs(document+model): clarify how `validateModifiedOnly` option works #9263
26
+ * docs: remove extra poolSize option in comment #9270 [shahvicky](https://github.com/shahvicky)
27
+ * docs: point bulkWrite() link to mongoose docs instead of localhost #9284
28
+
29
+ 5.9.25 / 2020-07-17
30
+ ===================
31
+ * fix(discriminator): allow passing a compiled model's schema as a parameter to `discriminator()` #9238
32
+ * fix(connection): throw more readable error when querying db before initial connection when `bufferCommands = false` #9239
33
+ * fix(indexes): don't unnecessarily drop text indexes when running `syncIndexes()` #9225
34
+ * fix: make Boolean _castNullish respect omitUndefined #9242 [ehpc](https://github.com/ehpc)
35
+ * fix(populate): populate single nested discriminator underneath doc array when populated docs have different model but same id #9244
36
+ * docs(mongoose): correct formatting typo #9247 [JNa0](https://github.com/JNa0)
37
+
1
38
  5.9.24 / 2020-07-13
2
39
  ===================
3
40
  * fix(connection): respect connection-level `bufferCommands` option if `mongoose.connect()` is called after `mongoose.model()` #9179