Skip to content

Add support for presence (range) transformations#4

Merged
alecgibson merged 1 commit intomasterfrom
presence-support
Mar 31, 2020
Merged

Add support for presence (range) transformations#4
alecgibson merged 1 commit intomasterfrom
presence-support

Conversation

@alecgibson
Copy link
Collaborator

This change adds support for presence transformations, which are being
added to ShareDB. In order to support presence updates, this change
adds support for the optional transformPresence method, which simply
reuses the existing transformCursor method, but also:

  • applies changes to the length of a range
  • keeps existing metadata
  • returns null if no range has been provided

This change adds support for presence transformations, which are being
[added to ShareDB][1]. In order to support presence updates, this change
adds support for the optional `transformPresence` method, which simply
reuses the existing `transformCursor` method, but also:

  - applies changes to the `length` of a range
  - keeps existing metadata
  - returns `null` if no range has been provided

[1]: share/sharedb#322
@alecgibson alecgibson merged commit 74772fa into master Mar 31, 2020
@alecgibson alecgibson deleted the presence-support branch March 31, 2020 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants