Releases: PaulUithol/Backbone-relational
Releases · PaulUithol/Backbone-relational
0.10.0
0.9.0
Changes
- 42b158d Add
getIdsToFetch
toBackbone.RelationalModel
- b7e7123
getAsync
(the successor offetchRelated
) now return a single promise, instead of an array of request objects. - #467: Improve lazy loading implementation. Add
getAsync
toBackbone.RelationalModel
, which always return a single promise that resolves with the attribute's content, and removefetchRelated
Breaking Changes
- Removed
fetchRelated
in favor ofgetAsync
0.8.8
Changes
- #419: Proper return values for single models on collection methods for Backbone 1.1.0
- 4113c69
Backbone.Relational.store.unregister
now also accepts a collection or a model type - #427: Fix firing explicit
change
events - #215 Add direct support for AMD, CommonJS, require, etc.
Potentially Breaking Changes
- #411: Don't add models without an id to the store
0.8.7
0.8.6
Changes
- #322: Remove
keySource
value after a `setl - #345: Add
find
, a shortcut tofindOrCreate
withcreate: false
- #345: Add lodash compatibility (doesn't have an explicit
findWhere
) - #349: Event ordering: maintain the originally intended order when process gets called more than once.
- #362: Add support for deep
subModelType
hierarchies. - #380: Fix pop on an empty collection.
- #370: Relations can now be a property or a function.
- 7f1dc51:
relatedModel
andcollectionType
can now be defined as a function as well.
0.8.5
Changes
- Supports Backbone 1.0.0
- #191: if
includeInJSON
is equal to the model'sidAttribute
, "missing" models will be included in the JSON to avoid data loss - #201: Added
Backbone.Store.removeModelScope
method - #273: Improve merging of relations between super/subModels
- #295: Check (and error on) duplicate ids when explicitly setting the
idAttribute
- #320: Use
merge: true
by default onCollection.reset
0.8.0
Changes
- General performance improvements, refactored HasMany.onChange to eliminate unnecessary events.
- Implemented the
add
,merge
andremove
options onCollection.add
when working withRelationalModels
. This also works when usingset
to change the key on nested relations. findOrCreate
now takes aparse
option, analogous to theBackbone.Model
constructor. It defaults tofalse
- Added a
parse
option torelations
Breaking Changes
- The
update:<key>
event has been removed, in favor of handling everything using "standard"change:<key>
events. - The
update
option onfindOrCreate
has been renamed tomerge
, since its behavior corresponds withmerge
onCollection.add
(and not withupdate
onCollection.reset
).