Skip to content

Commit

Permalink
Bump 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Jan 19, 2017
1 parent 8d532f8 commit e684187
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v2.4.0

* Handling non-enumerable properties [@BrendanAnnable](https://github.com/BrendanAnnable).

## v2.3.4

* Fixing an issue concerning objects created through `Object.create(null)` ([@fmal](https://github.com/fmal)).
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "baobab",
"main": "build/baobab.min.js",
"version": "2.3.4",
"version": "2.4.0",
"homepage": "https://github.com/Yomguithereal/baobab",
"author": {
"name": "Guillaume Plique",
Expand Down
21 changes: 15 additions & 6 deletions build/baobab.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Baobab
*
* Homepage: https://github.com/Yomguithereal/baobab
* Version: 2.3.4
* Version: 2.4.0
* Author: Yomguithereal (Guillaume Plique)
* License: MIT
*/
Expand Down Expand Up @@ -1146,7 +1146,7 @@ Baobab.helpers = helpers;
/**
* Version
*/
Baobab.VERSION = '2.3.4';
Baobab.VERSION = '2.4.0';
module.exports = exports['default'];

},{"./cursor":3,"./helpers":4,"./monkey":5,"./type":6,"./update":7,"./watcher":8,"emmett":1}],3:[function(require,module,exports){
Expand Down Expand Up @@ -2229,18 +2229,27 @@ function cloner(deep, item) {
if (_type2['default'].object(item)) {
var o = {};

var k = undefined;
var i = undefined,
l = undefined,
k = undefined;

// NOTE: could be possible to erase computed properties through `null`.
for (k in item) {
var props = Object.getOwnPropertyNames(item);
for (i = 0, l = props.length; i < l; i++) {
k = props[i];
if (_type2['default'].lazyGetter(item, k)) {
Object.defineProperty(o, k, {
get: Object.getOwnPropertyDescriptor(item, k).get,
enumerable: true,
configurable: true
});
} else if (hasOwnProp.call(item, k)) {
o[k] = deep ? cloner(true, item[k]) : item[k];
} else {
Object.defineProperty(o, k, {
value: deep ? cloner(true, item[k]) : item[k],
enumerable: Object.getOwnPropertyDescriptor(item, k).enumerable,
writable: true,
configurable: true
});
}
}
return o;
Expand Down
6 changes: 3 additions & 3 deletions build/baobab.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "baobab",
"version": "2.3.4",
"version": "2.4.0",
"description": "JavaScript persistent data tree with cursors.",
"main": "./dist/baobab.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/baobab.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,4 +591,4 @@ Baobab.helpers = helpers;
/**
* Version
*/
Baobab.VERSION = '2.3.4';
Baobab.VERSION = '2.4.0';

0 comments on commit e684187

Please sign in to comment.