Closed satoren closed 1 month ago
This pull request introduces significant updates across several modules in the Yex application. Key changes include enhancements to type specifications and error handling in the Yex.Awareness
module, the introduction of the Yex.DocServer
module for managing document updates, and the restructuring of the synchronization protocol in the Yex.Sync
module. Additionally, new test modules are added to validate the document server functionalities, and minor documentation updates are made in the utils.rs
file. Overall, the changes focus on improving clarity, functionality, and error management within the system.
File | Change Summary |
---|---|
lib/protocols/awareness.ex |
Updated encode_update/2 return type to {:ok, binary()} | {:error, term()} ; refined reference type in t . |
lib/server/doc_server.ex |
Introduced Yex.DocServer and Yex.DocServer.State modules; defined multiple callbacks and types for document management. |
test/protocols/shared_doc_test.exs |
Modified receive_and_handle_reply_with_timeout/2 to use SharedDoc.send_yjs_message/2 . |
test/server/doc_server_test.exs |
Added DocServerTestModule and Yex.DocServerTest for testing document server functionalities. |
native/yex/src/utils.rs |
Updated documentation for term_to_origin_binary function to simplify return description. |
lib/protocols/sync.ex |
Expanded synchronization protocol with new types and functions for message handling; improved error responses. |
lib/server/doc_server_worker.ex |
Defined Yex.DocServer.Worker module for managing document synchronization; added message processing functions. |
Yex.Awareness
module related to the apply_update
function's parameter type, enhancing handling of the origin
parameter.transaction
function in the Yex.Doc
module to accept an origin
parameter, aligning with type specification enhancements.Yex.Managed.SharedDoc
module, indirectly related to the changes in the Yex.Awareness
module, focusing on document management.🐇 In the garden where documents bloom,
A server now hums with room to zoom.
Types refined and errors tamed,
In Yex's heart, new structures named.
With tests that hop and validate,
Collaboration thrives, oh what a fate! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Release Notes
New Features
Yex.DocServer
module for managing document updates.Yex.Awareness
module.Yex.Sync
module.Bug Fixes
Yex.DocServer.Worker
module.Documentation
Tests
Yex.DocServer
functionality, ensuring synchronization and awareness messaging work as intended.