0.5.3
Significant changes:
- Individual transforms are now processed thoroughly before other queued transforms are processed. This includes resultant
didTransform
events and subsequent actions, which will be processed immediately instead of being pushed to the end of the transform queue. This allows consecutive transforms to be applied to a Transformable source without explicitly settling each transform in between. This change also eliminates the need for a separate transformQueue to be maintained on the TransformConnector. hasMany
relationships can now be flagged asactsAsSet
to indicate that they should be updated together as a set. This is used by the JSONAPISource to send complete arrays of ids when any member has changed.- New
Requestable
interface method in OC:updateLink
. This is used to update a relationship completely. It can be used with anyhasOne
relationship and anyhasMany
relationship flagged asactsAsSet
(see above). - New
rollbackTransformsOnFailure
option for TransformConnector will automatically rollback changes on the source when corresponding transforms on the target fail. OC.Source
gains new helper methods:_normalizeId
and_normalizeLink
. These methods extract id values given objects, arrays, or strings, and greatly clean up theSource
code.- New
isObject
utility method