mongoose 5.13.1 → 5.13.5

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,42 @@
1
+ 5.13.5 / 2021-07-30
2
+ ===================
3
+ * perf(index.d.ts): improve typescript type checking performance #10515 [andreialecu](https://github.com/andreialecu)
4
+ * fix(index.d.ts): fix debug type in MongooseOptions #10510 [thiagokisaki](https://github.com/thiagokisaki)
5
+ * docs(api): clarify that `depopulate()` with no args depopulates all #10501 [gfrancz](https://github.com/gfrancz)
6
+
7
+ 5.13.4 / 2021-07-28
8
+ ===================
9
+ * fix: avoid pulling non-schema paths from documents into nested paths #10449
10
+ * fix(update): support overwriting nested map paths #10485
11
+ * fix(update): apply timestamps to subdocs that would be newly created by `$setOnInsert` #10460
12
+ * fix(map): correctly clone subdocs when calling toObject() on a map #10486
13
+ * fix(cursor): cap parallel batchSize for populate at 5000 #10449
14
+ * fix(index.d.ts): improve autocomplete for new Model() by making `doc` an object with correct keys #10475
15
+ * fix(index.d.ts): add MongooseOptions interface #10471 [thiagokisaki](https://github.com/thiagokisaki)
16
+ * fix(index.d.ts): make LeanDocument work with PopulatedDoc #10494
17
+ * docs(mongoose+connection): correct default value for bufferTimeoutMS #10476
18
+ * chore: remove unnecessary 'eslint-disable' comments #10466 [thiagokisaki](https://github.com/thiagokisaki)
19
+
20
+ 5.13.3 / 2021-07-16
21
+ ===================
22
+ * fix(model): avoid throwing error when bulkSave() called on a document with no changes #10437
23
+ * fix(timestamps): apply timestamps when creating new subdocs with `$addToSet` and with positional operator #10447
24
+ * fix(schema): allow calling Schema#loadClass() with class that has a static getter with no setter #10436
25
+ * fix(model): handle re-applying object defaults after explicitly unsetting #10442 [semirturgay](https://github.com/semirturgay)
26
+ * fix: bump mongodb driver -> 3.6.10 #10440 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
27
+ * fix(index.d.ts): consistently use NativeDate instead of Date for Date validators and timestamps functions #10426
28
+ * fix(index.d.ts): allow calling `discriminator()` with non-document #10452 #10421 [DouglasGabr](https://github.com/DouglasGabr)
29
+ * fix(index.d.ts): allow passing ResultType generic to Schema#path() #10435
30
+
31
+ 5.13.2 / 2021-07-03
32
+ ===================
33
+ * fix: hardcode @types/node version for now to avoid breaking changes from DefinitelyTyped/DefinitelyTyped#53669 #10415
34
+ * fix(index.d.ts): allow using type: Date with Date paths in SchemaDefinitionType #10409
35
+ * fix(index.d.ts): allow extra VirtualTypeOptions for better plugin support #10412
36
+ * docs(api): add SchemaArray to docs #10397
37
+ * docs(schema+validation): fix broken links #10396
38
+ * docs(transactions): add note about creating a connection to transactions docs #10406
39
+
1
40
  5.13.1 / 2021-07-02
2
41
  ===================
3
42
  * fix(discriminator): allow using array as discriminator key in schema and as tied value #10303