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 CHANGED
@@ -1,6 +1,7 @@
1
1
  language: node_js
2
2
  sudo: false
3
3
  node_js:
4
+ - "8"
4
5
  - "7"
5
6
  - "6"
6
7
  - "5"
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, {depopulate: 1, _isNested: true});
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mongoose",
3
3
  "description": "Mongoose MongoDB ODM",
4
- "version": "4.13.2",
4
+ "version": "4.13.3",
5
5
  "author": "Guillermo Rauch <guillermo@learnboost.com>",
6
6
  "keywords": [
7
7
  "mongodb",