From e1c0d1f25bf22aee2ec31ba473c5e5f11d8d36b9 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Wed, 2 Nov 2016 20:16:33 +0000 Subject: [PATCH] Release 2.0.1 --- CHANGELOG.md | 8 ++++++++ dist/index.js | 2 +- package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f45bb08..547cafa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v2.0.1](https://github.com/seegno/clean-deep/tree/v2.0.1) (2016-11-02) +[Full Changelog](https://github.com/seegno/clean-deep/compare/v2.0.0...v2.0.1) + +**Merged pull requests:** + +- Upgrade babel-eslint to avoid 'estraverse-fb' error [\#18](https://github.com/seegno/clean-deep/pull/18) ([callmevlad](https://github.com/callmevlad)) +- Fix recursive array cleaning [\#17](https://github.com/seegno/clean-deep/pull/17) ([zeke](https://github.com/zeke)) + ## [v2.0.0](https://github.com/seegno/clean-deep/tree/v2.0.0) (2016-10-02) [Full Changelog](https://github.com/seegno/clean-deep/compare/1.0.0...v2.0.0) diff --git a/dist/index.js b/dist/index.js index 4726b1b..cd67add 100644 --- a/dist/index.js +++ b/dist/index.js @@ -40,7 +40,7 @@ function cleanDeep(object) { return (0, _lodash6.default)(object, (result, value, key) => { // Recurse into objects. if ((0, _lodash4.default)(value)) { - value = cleanDeep(value, { emptyObjects: emptyObjects, emptyStrings: emptyStrings, nullValues: nullValues, undefinedValues: undefinedValues }); + value = cleanDeep(value, { emptyArrays: emptyArrays, emptyObjects: emptyObjects, emptyStrings: emptyStrings, nullValues: nullValues, undefinedValues: undefinedValues }); } // Exclude empty objects. diff --git a/package.json b/package.json index 5e54077..01b72c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clean-deep", - "version": "2.0.0", + "version": "2.0.1", "description": "Remove falsy, empty or nullable values from objects", "keywords": [ "clean",