Releases: bookshelf/bookshelf
Releases · bookshelf/bookshelf
1.2.0
1.1.1
1.1.1 Mar 28, 2020 - Diff
Bug fixes
- Fix attributes that are changed during event hook not being persisted: #2062
- Fix incorrect query object being sent to event handlers with
morphTo
: #2059 - Fix non-object attributes being passed to
model.parse()
in some cases: #2056
Documentation
- Fix typo in doclet: #2057
0.15.2
1.1.0
1.0.1
1.0.1 Oct 6, 2019 - Diff
Bug fixes
- Fix JSON.stringify causing TypeError in some cases: #2029
Documentation
Dependencies
- Update js-yaml to version 3.13.1: #2023
- Update handlebars to version 4.2.1: #2022
- Update uuid to version 3.3.3: #2021
- Update sqlite3 to version 4.1.0: #2021
- Update sinon to 7.4.2: #2021
- Update prettier to 1.18.2: #2021
- Update mocha to version 6.2.0: #2021
- Update lint-staged to version 9.2.5: #2021
- Update jsdoc to version 3.6.3: #2021
- Update husky to version 3.0.5: #2021
- Update eslint-plugin-prettier to version 3.1.1: #2021
- Update eslint-config-prettier to version 6.3.0: #2021
- Update eslint to version 6.4.0: #2021
- Update chai to 4.2.0: #2021
- Update eslint-utils from 1.3.1 to 1.4.2: #2020
1.0.0
1.0.0 Sep 13, 2019 - Diff
This is a big step in Bookshelf's development process. Although there are a lot of breaking changes in this release, the API will be kept stable for some time now and work will be focused on backwards compatible features and bug fixes. It's possible that Node.js 6 support will be dropped in the near future but that will be the biggest change.
There is a migration guide in the wiki to help with all of the changes in this version.
Breaking changes
- This version requires Node.js 8+ if using a Knex version greater than 0.18.4, otherwise Node.js 6 is still supported: #1991
- Make
require: true
the default for Model#fetch: #2006 - Remove some Model and Collection lodash based methods: #2005
- Change Collection#where so it behaves like Model#where: #2001
- Move all plugins to their own repositories: #2000
- Promote some useful plugins to core: #1992, #1993, #1996
Enhancements
- Refresh model attributes after a save operation: #2012
Bug fixes
- Fix missing columns after save: #2012
- Fix Case Converter plugin overriding any previously defined parse methods: #2000, case-converter-plugin@1.0.0
- Fix registry saving models inadvertently across different bookshelf instances: #1996
Documentation
- Add example of how to use custom collections: #2015
- Improve documentation related to debug mode: #2014
- Add note that count methods return String with Postgres: #2013
- Fix typo in Readme: #1998
- Better Plugin Docs: #1992, #1993, #1996, #2000
Dependencies
- Update lint-staged to version 9.1.0: #1994
- Update bluebird to 3.5.5: #1991
- Update lodash to 4.17.14: #1991
- Update mocha to version 6.1.4: #1991
- Update mysql to version 2.17.1: #1991
- Update pg to version 7.11.0: #1991
- Update sinon to version 7.3.2: #1991
- Update sinon-chai to version 3.3.0: #1991
- Update sqlite3 to version 4.0.9: #1991
- Update uuid to version 3.3.2: #1991
- Update eslint-config-prettier to 6.0.0: #1957
- Update eslint to version 6.0.0: #1986
0.15.1
0.15.0
0.15.0 Jun 13, 2019 - Diff
Breaking changes
- This version requires Node.js 6+
- Remove code that has been deprecated for a long time: #1956
Bug fixes
once
removes all events after it has been triggered: #1972- Pagination details are wrong when selecting distinct values of a column: #1950
- Fix missing attributes in some events: #1934
Test Suite
Documentation
Dependencies
0.14.2
0.14.1
0.14.1 Dec 09, 2018 - Diff
Enhancements
- Allow passing custom options to the pagination plugin's internal count method. This is useful for better interoperability with other plugins: #1914
Bug fixes
- Fix
withRelated
fetch option not always grouping properly when using binary primary keys: #1918
Documentation
- Add a basic Events guide and fix some issues with the events doclets: #1917