mongoose 5.11.12 → 5.11.16

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,47 @@
1
+ 5.11.16 / 2021-02-12
2
+ ====================
3
+ * fix(document): skip applying array element setters when init-ing an array #9889
4
+ * fix: upgrade to mongodb driver 3.6.4 #9893 [jooeycheng](https://github.com/jooeycheng)
5
+ * fix: avoid copying Object.prototype properties when cloning #9876
6
+ * fix(aggregate): automatically convert functions to strings when using `$function` operator #9897
7
+ * fix: call pre-remove hooks for subdocuments #9895 #9885 [IslandRhythms](https://github.com/IslandRhythms)
8
+ * docs: fix confusing sentence in Schema docs #9914 [namenyi](https://github.com/namenyi)
9
+
10
+ 5.11.15 / 2021-02-03
11
+ ====================
12
+ * fix(document): fix issues with `isSelected` as an path in a nested schema #9884 #9873 [IslandRhythms](https://github.com/IslandRhythms)
13
+ * fix(index.d.ts): better support for `SchemaDefinition` generics when creating schema #9863 #9862 #9789
14
+ * fix(index.d.ts): allow required function in array definition #9888 [Ugzuzg](https://github.com/Ugzuzg)
15
+ * fix(index.d.ts): reorder create typings to allow array desctructuring #9890 [Ugzuzg](https://github.com/Ugzuzg)
16
+ * fix(index.d.ts): add missing overload to Model.validate #9878 #9877 [jonamat](https://github.com/jonamat)
17
+ * fix(index.d.ts): throw compiler error if schema says path is a String, but interface says path is a number #9857
18
+ * fix(index.d.ts): make `Query` a class, allow calling `Query#where()` with object argument and with no arguments #9856
19
+ * fix(index.d.ts): support calling `Schema#pre()` and `Schema#post()` with options and array of hooked function names #9844
20
+ * docs(faq): mention other debug options than console #9887 [dandv](https://github.com/dandv)
21
+ * docs(connections): clarify that Mongoose can emit 'error' both during initial connection and after initial connection #9853
22
+
23
+ 5.11.14 / 2021-01-28
24
+ ====================
25
+ * fix(populate): avoid inferring `justOne` from parent when populating a POJO with a manually populated path #9833 [IslandRhythms](https://github.com/IslandRhythms)
26
+ * fix(document): apply setters on each element of the array when setting a populated array #9838
27
+ * fix(map): handle change tracking on maps of subdocs #9811 [IslandRhythms](https://github.com/IslandRhythms)
28
+ * fix(document): remove dependency on `documentIsSelected` symbol #9841 [IslandRhythms](https://github.com/IslandRhythms)
29
+ * fix(error): make ValidationError.toJSON to include the error name correctly #9849 [hanzki](https://github.com/hanzki)
30
+ * fix(index.d.ts): indicate that `Document#remove()` returns a promise, not a query #9826
31
+ * fix(index.d.ts): allow setting `SchemaType#enum` to TypeScript enum with `required: true` #9546
32
+
33
+ 5.11.13 / 2021-01-20
34
+ ====================
35
+ * fix(map): handle change tracking on map of arrays #9813
36
+ * fix(connection): allow passing options to `Connection#transaction()` #9834 [pnutmath](https://github.com/pnutmath)
37
+ * fix(index.d.ts): make `Query#options#rawResult` take precedence over `new`+`upsert` #9816
38
+ * fix(index.d.ts): changed setOptions's 'overwrite' argument to optional #9824 [pierissimo](https://github.com/pierissimo)
39
+ * fix(index.d.ts): allow setting `mongoose.Promise` #9820
40
+ * fix(index.d.ts): add `Aggregate#replaceRoot()` #9814
41
+ * fix(index.d.ts): make `Model.create()` with a spread return a promise of array rather than single doc #9817
42
+ * fix(index.d.ts): use SchemaDefinitionProperty generic for SchemaTypeOptions if specified #9815
43
+ * docs(populate): add note about setting `toObject` for populate virtuals #9822
44
+
1
45
  5.11.12 / 2021-01-14
2
46
  ====================
3
47
  * fix(document): handle using `db` as a document path #9798