A simple Node.js ORM for PostgreSQL, MySQL and SQLite3 built on top of Knex.js
0.14.0 Dec 09, 2018 - Diff
previous()
and previousAttributes()
methods were changed so that whenever a model is saved or destroyed the previous attributes are no longer reset to the current attributes. Since the old behavior wasn't very useful it's likely this won't cause issues for many people. There's a migration guide in case you are affected by this change. #1848
hasOne
relation will now return null
instead of {}
when serialized: #1839. There's a migration guide in the rare event this causes you problems.morphTo
data: #1824. There's a migration guide in case you are affected by this.updated_at
attribute: #1798. Checkout the migration guide in case you are affected by this.previousAttributes()
: #1876
rowCount
value when using groupBy
with fetchPage()
: #1852
parse
/format
: #1838
timestamp()
setting a key named "null"
in some cases: #1820
withRelated
inside events: #1853
hasOne
's doc: #1890
Model.load()
relations param: #1834
fetchPage()
: #1803
0.13.3 Mar 26, 2018 - Diff
updated_at
attribute. This was included in a patch release because the chances of any applications depending on this behavior are very small: #1798
0.13.0 Mar 18, 2018 - Diff
require: true
the default when deleting models: #1779
saving
and creating
events to reflect the documentation: #1142
returning
attribute if client supports returning
: #1770
idAttribute
on save and delete: #1680
withSchema
option to all database operations: #1638
model.id
if attributes being .set()
contain a parsed version of idAttribute
: #1760
fetchPage()
ignoring or hanging with transactions: #1625
fetchPage()
from pagination plugin not working for relation collections: #1561
idAttribute
if it hasn't changed: #1260
parentId
is not undefined when using fetchAll
with relations: #1769
0.12.1 Jan 8, 2018 - Diff
.detach()
: #1720model.has()
: #1712fetching:collection
and fetched:collection
not being generated or visible on the navigation bar: #1114super()
on model's initialize()
: #1529fetchAll()
: #1716previousAttributes
for related models: #14570.12.0 Nov 27, 2017 - Diff
hidden
and visible
attributes #1699.
<model>.toJSON({ visibility: false })
node_modules
to speed up travis-ci builds #1695.postpublish
work regardless of git remote config #1697.0.11.1 Nov 15, 2017 — Diff
postinstall
postinstall
script can be run as a part of npm prepublish
script.0.11.0 Nov 15, 2017 — Diff
.babelrc
-> src/.babelrc
#1470
m.save({item: 'test'}, { date: dateInThePast })
morphValues
for morphTo
relation. #1326
Changes in this version:
Full changelog: https://github.com/bookshelf/bookshelf/compare/0.10.2...0.10.3
Changes in this version:
visible
and hidden
behaviour for toJSON functiontimestamp
function: respect updated_at/created_at being part of the queryfetchPage
on Collection (pagination plugin)omitNew=true
Full changelog:
https://github.com/bookshelf/bookshelf/compare/0.10.3...0.10.4