mongoose 5.12.1 → 5.12.2
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 +14 -0
- package/dist/browser.umd.js +27 -27
- package/index.d.ts +47 -37
- package/lib/browser.js +8 -5
- package/lib/cursor/QueryCursor.js +2 -2
- package/lib/document.js +0 -1
- package/lib/helpers/model/castBulkWrite.js +3 -3
- package/lib/index.js +8 -5
- package/lib/queryhelpers.js +5 -1
- package/lib/schema/array.js +4 -0
- package/lib/schema.js +5 -0
- package/package.json +1 -1
package/History.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
5.12.2 / 2021-03-22
|
|
2
|
+
===================
|
|
3
|
+
* fix(QueryCursor): consistently execute `post('find')` hooks with an array of docs #10015 #9982 [IslandRhythms](https://github.com/IslandRhythms)
|
|
4
|
+
* fix(schema): support setting `ref` as an option on an array SchemaType #10029
|
|
5
|
+
* fix(query): apply schema-level `select` option from array schematypes #10029
|
|
6
|
+
* fix(schema): avoid possible prototype pollution with `Schema()` constructor #10035 [zpbrent](https://github.com/zpbrent)
|
|
7
|
+
* fix(model): make bulkWrite skip timestamps with timestamps: false #10050 [SoftwareSing](https://github.com/SoftwareSing)
|
|
8
|
+
* fix(index.d.ts): make query methods return `QueryWithHelpers` so query helpers pass through chaining #10040
|
|
9
|
+
* fix(index.d.ts): add `upserted` array to `updateOne()`, `updateMany()`, `update()` result #10042
|
|
10
|
+
* fix(index.d.ts): add back `Aggregate#project()` types that were mistakenly removed in 5.12.0 #10043
|
|
11
|
+
* fix(index.d.ts): always allow setting `type` in Schema to a SchemaType class or a Schema instance #10030
|
|
12
|
+
* docs(transactions): introduce `session.withTransaction()` before `session.startTransaction()` because `withTransaction()` is the recommended approach #10008
|
|
13
|
+
* docs(mongoose+browser): fix broken links to info about `mongoose.Types` #10016
|
|
14
|
+
|
|
1
15
|
5.12.1 / 2021-03-18
|
|
2
16
|
===================
|
|
3
17
|
* fix: update mongodb -> 3.6.5 to fix circular dependency warning #9900
|