mongoose 5.12.9 → 5.12.13

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,45 @@
1
+ 5.12.13 / 2021-06-04
2
+ ====================
3
+ * perf(document): avoid creating nested paths when running `$getAllSubdocs()` #10275
4
+ * fix: make returnDocument option work with `findOneAndUpdate()` #10232 #10231 [cnwangjie](https://github.com/cnwangjie)
5
+ * fix(document): correctly reset subdocument when resetting a map subdocument underneath a single nested subdoc after save #10295
6
+ * perf(query): avoid setting non-null sessions to avoid overhead from $getAllSubdocs() #10275
7
+ * perf(document): pre split schematype paths when compiling schema to avoid extra overhead of splitting when hydrating documents #10275
8
+ * perf(schema): pre-calculate mapPaths to avoid looping over every path for each path when initing doc #10275
9
+ * fix(index.d.ts): drill down into nested arrays when creating LeanDocument type #10293
10
+
11
+ 5.12.12 / 2021-05-28
12
+ ====================
13
+ * fix(documentarray): retain atomics when setting to a new array #10272
14
+ * fix(query+model): fix deprecation warning for `returnOriginal` with `findOneAndUpdate()` #10298 #10297 #10292 #10285 [IslandRhythms](https://github.com/IslandRhythms)
15
+ * fix(index.d.ts): make `map()` result an array if used over an array #10288 [quantumsheep](https://github.com/quantumsheep)
16
+
17
+ 5.12.11 / 2021-05-24
18
+ ====================
19
+ * fix(populate): skip applying setters when casting arrays for populate() to avoid issues with arrays of immutable elements #10264
20
+ * perf(schematype): avoid cloning setters every time we run setters #9588
21
+ * perf(get): add benchmarks and extra cases to speed up get() #9588
22
+ * perf(array): improve array constructor performance on small arrays to improve nested array perf #9588
23
+ * fix(index.d.ts): allow using type: [String] with string[] when using SchemaDefinition with generic #10261
24
+ * fix(index.d.ts): support ReadonlyArray as well as regular array where possible in schema definitions #10260
25
+ * docs(connection): document noListener option to useDb #10278 [stuartpb](https://github.com/stuartpb)
26
+ * docs: migrate raw tutorial content from pug / JS to markdown #10271
27
+ * docs: fix typo #10269 [sanjib](https://github.com/sanjib)
28
+
29
+ 5.12.10 / 2021-05-18
30
+ ====================
31
+ * fix(query): allow setting `defaults` option on result documents from query options #7287 [IslandRhythms](https://github.com/IslandRhythms)
32
+ * fix(populate): handle populating embedded discriminator with custom tiedValue #10231
33
+ * fix(document): allow passing space-delimited string of `pathsToValidate` to `validate()` and `validateSync()` #10258
34
+ * fix(model+schema): support `loadClass()` on classes that have `collection` as a static property #10257 #10254 [IslandRhythms](https://github.com/IslandRhythms)
35
+ * fix(SchemaArrayOptions): correct property name #10236
36
+ * fix(index.d.ts): add any to all query operators to minimize likelihood of "type instantiation is excessively deep" when querying docs with 4-level deep subdocs #10189
37
+ * fix(index.d.ts): add $parent() in addition to parent() in TS definitions
38
+ * fix(index.d.ts): correct async iterator return type for QueryCursor #10253 #10252 #10251 [borfig](https://github.com/borfig)
39
+ * fix(index.d.ts): add `virtualsOnly` parameter to `loadClass()` function signature [IslandRhythms](https://github.com/IslandRhythms)
40
+ * docs(typescript): add typescript populate docs #10212
41
+ * docs: switch from AWS to Azure Functions for search #10244
42
+
1
43
  5.12.9 / 2021-05-13
2
44
  ===================
3
45
  * fix(schema): ensure add() overwrites existing schema paths by default #10208 #10203