Skip to content

Releases: bookshelf/bookshelf

1.2.0

07 Jun 18:37
Compare
Choose a tag to compare

1.2.0 Jun 07, 2020 - Diff

Features

  • Add option to control auto refresh after save: #2070

Tests

  • Adds some more integration tests to Collection#fetch: #2079

Dependencies

  • Support Knex version 0.21.0 and up: #2072
  • Update some dependencies of dependencies to fix security warnings: #2078

1.1.1

28 Mar 15:26
Compare
Choose a tag to compare

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

28 Mar 15:08
Compare
Choose a tag to compare

Change Log

0.15.2 Mar 28, 2020 - Diff

Bug fixes

  • Fix attributes that are changed during event hook not being persisted: #2063

1.1.0

31 Jan 19:36
Compare
Choose a tag to compare

1.1.0 Jan 31, 2020 - Diff

Features

  • Add option to disable the count information in fetchPage: #2045

Tests

  • Small refactor to some tests: #2050

Dependencies

  • Update some dependencies to their latest versions: #2053
  • Update Knex to version 0.20.8: #2049

1.0.1

06 Oct 11:01
Compare
Choose a tag to compare

1.0.1 Oct 6, 2019 - Diff

Bug fixes

  • Fix JSON.stringify causing TypeError in some cases: #2029

Documentation

  • Add documentation for Model#id: #2031
  • Fix number of arguments in Model#save doclet: #2030

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

13 Sep 13:23
Compare
Choose a tag to compare

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

13 Jun 20:40
Compare
Choose a tag to compare

Change Log

0.15.1 Jun 13, 2019 - Diff

Dependencies

  • Update husky to version 2.4.1: #1984
  • Bump supported knex version to 0.17: #1982

0.15.0

13 Jun 20:35
Compare
Choose a tag to compare

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

  • Fix Docker-compose.yml default postgres user: #1972
  • Fix JSON tests on PostgreSQL 10+: #1955

Documentation

  • Update and fix a lot of doclets: #1951
  • Update README.md: #1940

Dependencies

  • Update mocha to version 6.1.1: #1968
  • Update eslint-config-prettier to 4.1.0: #1957
  • Update sinon to version 7.2.4: #1947
  • Update eslint to version 5.1.0: #1930

0.14.2

17 Dec 22:46
Compare
Choose a tag to compare

0.14.2 Dec 17, 2018 - Diff

Bug fixes

  • Fix crash when using groupBy with table qualifier in pagination plugin: #1928
  • Fix undefined transaction object with Knex 0.15+: #1926

Refactoring

  • Refactor logic behind .timestamp()'s decision for when to update the updated_at column: #1892

0.14.1

09 Dec 17:33
Compare
Choose a tag to compare

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