Skip to content

Commit

Permalink
Release 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Gama committed Sep 20, 2016
1 parent deaa8e0 commit 0f5b53e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:**
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 0f5b53e

Please # to comment.