File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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 )
4
4
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)
5
16
[ Full Changelog] ( https://github.com/seegno/bookshelf-json-columns/compare/1.2.0...1.2.1 )
6
17
7
18
** Closed issues:**
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ exports.default = function (Bookshelf) {
112
112
113
113
// Stringify JSON columns.
114
114
( 0 , _keys2 . default ) ( attributes ) . forEach ( function ( attribute ) {
115
- if ( _this3 . jsonColumns . indexOf ( attribute ) !== - 1 ) {
115
+ if ( _this3 . jsonColumns . indexOf ( attribute ) !== - 1 && attributes [ attribute ] ) {
116
116
attributes [ attribute ] = ( 0 , _stringify2 . default ) ( attributes [ attribute ] ) ;
117
117
}
118
118
} ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " bookshelf-json-columns" ,
3
- "version" : " 1.2.1 " ,
3
+ "version" : " 1.2.2 " ,
4
4
"description" : " Parse JSON columns with Bookshelf.js" ,
5
5
"license" : " MIT" ,
6
6
"author" : {
You can’t perform that action at this time.
0 commit comments