Skip to content

feat: implement pluggable serialization for patches and conditions#37

Merged
brunoga merged 1 commit intomainfrom
feature/pluggable-serialization
Feb 20, 2026
Merged

feat: implement pluggable serialization for patches and conditions#37
brunoga merged 1 commit intomainfrom
feature/pluggable-serialization

Conversation

@brunoga
Copy link
Copy Markdown
Owner

@brunoga brunoga commented Feb 20, 2026

  • Added MarshalSerializable method to Patch[T] and Condition[T] interfaces.
  • Provided high-level PatchToSerializable/PatchFromSerializable and ConditionToSerializable/ConditionFromSerializable helpers.
  • Unified JSON and Gob serialization to use the new serializable representation.
  • Implemented MarshalSerializable for CRDT textPatch.
  • Re-privatized internal surrogate types to keep the public API clean.

- Added MarshalSerializable method to Patch[T] and Condition[T] interfaces.
- Provided high-level PatchToSerializable/PatchFromSerializable and ConditionToSerializable/ConditionFromSerializable helpers.
- Unified JSON and Gob serialization to use the new serializable representation.
- Implemented MarshalSerializable for CRDT textPatch.
- Re-privatized internal surrogate types to keep the public API clean.
@brunoga brunoga merged commit 3975799 into main Feb 20, 2026
1 check passed
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.

1 participant