Skip to content

Commit 0f5b53e

Browse files
author
Ricardo Gama
committed
Release 1.2.2
1 parent deaa8e0 commit 0f5b53e

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
# Changelog
22

3-
## [1.2.1](https://github.com/seegno/bookshelf-json-columns/tree/HEAD)
3+
## [1.2.2](https://github.com/seegno/bookshelf-json-columns/tree/1.2.2)
44

5+
[Full Changelog](https://github.com/seegno/bookshelf-json-columns/compare/1.2.1...1.2.2)
6+
7+
**Closed issues:**
8+
9+
- issue when saving a null value [\#31](https://github.com/seegno/bookshelf-json-columns/issues/31)
10+
11+
**Merged pull requests:**
12+
13+
- Fix stringifying null values with patch option [\#32](https://github.com/seegno/bookshelf-json-columns/pull/32) ([ricardogama](https://github.com/ricardogama))
14+
15+
## [1.2.1](https://github.com/seegno/bookshelf-json-columns/tree/1.2.1) (2016-08-29)
516
[Full Changelog](https://github.com/seegno/bookshelf-json-columns/compare/1.2.0...1.2.1)
617

718
**Closed issues:**

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ exports.default = function (Bookshelf) {
112112

113113
// Stringify JSON columns.
114114
(0, _keys2.default)(attributes).forEach(function (attribute) {
115-
if (_this3.jsonColumns.indexOf(attribute) !== -1) {
115+
if (_this3.jsonColumns.indexOf(attribute) !== -1 && attributes[attribute]) {
116116
attributes[attribute] = (0, _stringify2.default)(attributes[attribute]);
117117
}
118118
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bookshelf-json-columns",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Parse JSON columns with Bookshelf.js",
55
"license": "MIT",
66
"author": {

0 commit comments

Comments
 (0)