Skip to content

Conversation

@lawrence-forooghian
Copy link
Collaborator

Written by Claude based on JS at ably/ably-js@194aed7 (i.e. the commit into which path-based API was merged in ably/ably-js@a9aea33).

Note: There are two commits here. The first contains an direct translation of the JS code, the second is functionally equivalent but IMO easier to understand. See which you prefer (my preference is the latter) and I'll then rebase accordingly.

@lawrence-forooghian lawrence-forooghian force-pushed the AIT-255-fix-replace-data-events branch from 2a53268 to ae32ba3 Compare January 15, 2026 17:32
@lawrence-forooghian lawrence-forooghian force-pushed the AIT-255-fix-replace-data-events branch from ae32ba3 to 3f86319 Compare January 16, 2026 11:32
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jan 16, 2026
This implements the changes spec from [1] at 3f86319. That is, the
update events emitted by a sync are now calculated from the before/after
diff of the object state, as opposed to just being calculated from the
createOp.

Written by Claude based on the spec.

[1] ably/specification#414
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jan 16, 2026
This implements the spec changes from [1] at 3f86319. That is, the
update events emitted by a sync are now calculated from the before/after
diff of the object state, as opposed to just being calculated from the
createOp.

Written by Claude based on the spec.

[1] ably/specification#414
lawrence-forooghian added a commit to ably/ably-liveobjects-swift-plugin that referenced this pull request Jan 16, 2026
This implements the spec changes from [1] at 3f86319. That is, the
update events emitted by a sync are now calculated from the before/after
diff of the object state, as opposed to just being calculated from the
createOp.

Written by Claude based on the spec.

[1] ably/specification#414
Copy link
Contributor

@VeskeR VeskeR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!
I like the simplified version too, that's a nice observation re considering only non-tombstone properties.

Written by Claude based on JS at 194aed7 (i.e. the commit into which the
path-based API was merged in a9aea33).
@lawrence-forooghian lawrence-forooghian force-pushed the AIT-255-fix-replace-data-events branch from 3f86319 to 37220d4 Compare January 22, 2026 13:07
@lawrence-forooghian lawrence-forooghian merged commit a78eedc into main Jan 22, 2026
2 checks passed
@lawrence-forooghian lawrence-forooghian deleted the AIT-255-fix-replace-data-events branch January 22, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants