Comparing version 3.0.0-rc.8 to 3.0.0-rc.9
@@ -0,1 +1,6 @@ | ||
##### 3.0.0-rc.9 - 22 February 2017 | ||
###### Bug fixes | ||
- `Schema#pick` no longer incorrectly infers values for objects and arrays | ||
##### 3.0.0-rc.8 - 21 February 2017 | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "js-data", | ||
"description": "Robust, framework-agnostic in-memory data store.", | ||
"version": "3.0.0-rc.8", | ||
"version": "3.0.0-rc.9", | ||
"homepage": "http://www.js-data.io", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -1186,4 +1186,6 @@ import utils from './utils' | ||
pick (value) { | ||
if (value === undefined) { | ||
return | ||
} | ||
if (this.type === 'object') { | ||
value || (value = {}) | ||
let copy = {} | ||
@@ -1209,3 +1211,2 @@ const properties = this.properties | ||
} else if (this.type === 'array') { | ||
value || (value = []) | ||
return value.map((item) => { | ||
@@ -1212,0 +1213,0 @@ const _copy = this.items ? this.items.pick(item) : {} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
3011197
40826