mongoose 4.13.2 → 4.13.3
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/.travis.yml +1 -0
- package/History.md +5 -0
- package/lib/model.js +7 -1
- package/package.json +1 -1
package/.travis.yml
CHANGED
package/History.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
4.13.3 / 2017-11-15
|
|
2
|
+
===================
|
|
3
|
+
* chore: add node 8 to travis #5818 [superheri](https://github.com/superheri)
|
|
4
|
+
* fix(document): don't apply transforms to nested docs when updating already saved doc #5807
|
|
5
|
+
|
|
1
6
|
4.13.2 / 2017-11-11
|
|
2
7
|
===================
|
|
3
8
|
* feat(buffer): add support for subtype prop #5530
|
package/lib/model.js
CHANGED
|
@@ -553,7 +553,13 @@ Model.prototype.$__delta = function() {
|
|
|
553
553
|
value = value.toObject();
|
|
554
554
|
operand(this, where, delta, data, value);
|
|
555
555
|
} else {
|
|
556
|
-
value = utils.clone(value, {
|
|
556
|
+
value = utils.clone(value, {
|
|
557
|
+
depopulate: true,
|
|
558
|
+
transform: false,
|
|
559
|
+
virtuals: false,
|
|
560
|
+
retainKeyOrder: true,
|
|
561
|
+
_isNested: true
|
|
562
|
+
});
|
|
557
563
|
operand(this, where, delta, data, value);
|
|
558
564
|
}
|
|
559
565
|
}
|