Skip to content

0.5.3

Compare
Choose a tag to compare
@dgeb dgeb released this 17 Oct 12:35
· 2236 commits to main since this release

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 as actsAsSet 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 any hasOne relationship and any hasMany relationship flagged as actsAsSet (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 the Source code.
  • New isObject utility method

Full changelog