From 0ecde4c9e7cd063d11076fa70413a78005479ab6 Mon Sep 17 00:00:00 2001 From: Ricardo Gama Date: Wed, 1 Mar 2017 14:58:53 +0000 Subject: [PATCH] Release 2.1.0 --- CHANGELOG.md | 13 +++++++++++++ dist/index.js | 2 +- package.json | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 355588f..69b29ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [2.1.0](https://github.com/seegno/bookshelf-json-columns/tree/2.1.0) (2017-03-01) +[Full Changelog](https://github.com/seegno/bookshelf-json-columns/compare/2.0.1...2.1.0) + +**Closed issues:** + +- Why is parse on fetch limited to sqlite? [\#46](https://github.com/seegno/bookshelf-json-columns/issues/46) + +**Merged pull requests:** + +- Stringify on save for MySQL [\#48](https://github.com/seegno/bookshelf-json-columns/pull/48) ([pandapaul](https://github.com/pandapaul)) +- Add support for MySQL [\#47](https://github.com/seegno/bookshelf-json-columns/pull/47) ([ricardogama](https://github.com/ricardogama)) +- Add lcov reporter to .nycrc [\#45](https://github.com/seegno/bookshelf-json-columns/pull/45) ([abelsoares](https://github.com/abelsoares)) + ## [2.0.1](https://github.com/seegno/bookshelf-json-columns/tree/2.0.1) (2016-11-11) [Full Changelog](https://github.com/seegno/bookshelf-json-columns/compare/2.0.0...2.0.1) diff --git a/dist/index.js b/dist/index.js index 186b456..e0751f2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -58,7 +58,7 @@ function parse(model, response) { exports.default = Bookshelf => { const Model = Bookshelf.Model.prototype; const client = Bookshelf.knex.client.config.client; - const parseOnFetch = client === 'sqlite' || client === 'sqlite3'; + const parseOnFetch = client === 'sqlite' || client === 'sqlite3' || client === 'mysql'; Bookshelf.Model = Bookshelf.Model.extend({ initialize: function initialize() { diff --git a/package.json b/package.json index 9d08d9c..4ea1131 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bookshelf-json-columns", - "version": "2.0.1", + "version": "2.1.0", "description": "Parse JSON columns with Bookshelf.js", "license": "MIT", "author": {