Bookshelf v1.0.0 Release Notes

Release Date: 2019-09-13 // over 4 years ago
  • 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
    • 0๏ธโƒฃ 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, [email protected]
    • ๐Ÿ›  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