From 0f5b53e4b0f5745794d716fd3fbb4b158ff53238 Mon Sep 17 00:00:00 2001 From: Ricardo Gama Date: Tue, 20 Sep 2016 10:39:58 +0100 Subject: [PATCH] Release 1.2.2 --- CHANGELOG.md | 13 ++++++++++++- dist/index.js | 2 +- package.json | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71486da..2cfcdc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,18 @@ # Changelog -## [1.2.1](https://github.com/seegno/bookshelf-json-columns/tree/HEAD) +## [1.2.2](https://github.com/seegno/bookshelf-json-columns/tree/1.2.2) +[Full Changelog](https://github.com/seegno/bookshelf-json-columns/compare/1.2.1...1.2.2) + +**Closed issues:** + +- issue when saving a null value [\#31](https://github.com/seegno/bookshelf-json-columns/issues/31) + +**Merged pull requests:** + +- Fix stringifying null values with patch option [\#32](https://github.com/seegno/bookshelf-json-columns/pull/32) ([ricardogama](https://github.com/ricardogama)) + +## [1.2.1](https://github.com/seegno/bookshelf-json-columns/tree/1.2.1) (2016-08-29) [Full Changelog](https://github.com/seegno/bookshelf-json-columns/compare/1.2.0...1.2.1) **Closed issues:** diff --git a/dist/index.js b/dist/index.js index 7cda746..d40adf5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -112,7 +112,7 @@ exports.default = function (Bookshelf) { // Stringify JSON columns. (0, _keys2.default)(attributes).forEach(function (attribute) { - if (_this3.jsonColumns.indexOf(attribute) !== -1) { + if (_this3.jsonColumns.indexOf(attribute) !== -1 && attributes[attribute]) { attributes[attribute] = (0, _stringify2.default)(attributes[attribute]); } }); diff --git a/package.json b/package.json index 8f4fdae..f1a9513 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bookshelf-json-columns", - "version": "1.2.1", + "version": "1.2.2", "description": "Parse JSON columns with Bookshelf.js", "license": "MIT", "author": {