A simple Node.js ORM for PostgreSQL, MySQL and SQLite3 built on top of Knex.js
MIT License
Bot releases are visible (Hide)
Published by ricardograca over 4 years ago
1.1.1 Mar 28, 2020 - Diff
morphTo
: #2059
model.parse()
in some cases: #2056
Published by ricardograca over 4 years ago
Published by ricardograca about 5 years ago
1.0.1 Oct 6, 2019 - Diff
Published by ricardograca about 5 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.
require: true
the default for Model#fetch: #2006
Published by ricardograca over 5 years ago
0.15.0 Jun 13, 2019 - Diff
once
removes all events after it has been triggered: #1972
Published by ricardograca almost 6 years ago
Published by ricardograca almost 6 years ago
0.14.1 Dec 09, 2018 - Diff
withRelated
fetch option not always grouping properly when using binary primary keys: #1918
Published by ricardograca almost 6 years ago
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
Published by ricardograca over 6 years ago
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
Published by ricardograca over 6 years ago
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
Published by ricardograca almost 7 years ago
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: #1457Published by mrhwick almost 7 years ago
0.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.Published by mrhwick almost 7 years ago
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
Published by Playrom over 7 years ago
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