Comparing version 0.9.1 to 0.10.0
@@ -0,1 +1,11 @@ | ||
<a name="0.10.0"></a> | ||
# [0.10.0](https://github.com/boosterfuels/archetype/compare/v0.9.1...v0.10.0) (2019-08-09) | ||
### Performance Improvements | ||
* remove `cloneDeep()` to reduce memory usage for huge objects ([117c083](https://github.com/boosterfuels/archetype/commit/117c083)) | ||
<a name="0.9.1"></a> | ||
@@ -2,0 +12,0 @@ ## [0.9.1](https://github.com/boosterfuels/archetype/compare/v0.9.0...v0.9.1) (2019-06-10) |
{ | ||
"name": "archetype", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"author": "Valeri Karpov <val@boosterfuels.com>", | ||
"dependencies": { | ||
"lodash.clonedeep": "4.x", | ||
"lodash.set": "4.x", | ||
@@ -8,0 +7,0 @@ "mpath": "0.5.1", |
@@ -5,3 +5,2 @@ 'use strict'; | ||
const Type = require('./type'); | ||
const cloneDeep = require('lodash.clonedeep'); | ||
const get = require('./get'); | ||
@@ -14,3 +13,3 @@ const set = require('lodash.set'); | ||
constructor(obj) { | ||
this._obj = cloneDeep(obj); | ||
this._obj = obj; | ||
this._paths = {}; | ||
@@ -17,0 +16,0 @@ } |
'use strict'; | ||
const cloneDeep = require('lodash.clonedeep'); | ||
const unmarshal = require('./unmarshal'); | ||
@@ -8,3 +7,3 @@ | ||
constructor(obj, projection) { | ||
Object.assign(this, unmarshal(cloneDeep(obj), this.constructor.schema, projection)); | ||
Object.assign(this, unmarshal(obj, this.constructor.schema, projection)); | ||
} | ||
@@ -11,0 +10,0 @@ } |
@@ -8,3 +8,2 @@ 'use strict'; | ||
const checkRequired = require('../required'); | ||
const cloneDeep = require('lodash.clonedeep'); | ||
const getOwnProperty = require('../helpers/getOwnProperty'); | ||
@@ -34,3 +33,2 @@ const handleCast = require('./util').handleCast; | ||
} | ||
projection = cloneDeep(projection); | ||
projection.$hasExclusiveChild = {}; | ||
@@ -37,0 +35,0 @@ let inclusive = null; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41329
3
774
- Removedlodash.clonedeep@4.x
- Removedlodash.clonedeep@4.5.0(transitive)