Skip to content

Commit

Permalink
refactor: use Awareness from y-sync instead of custom implementation
Browse files Browse the repository at this point in the history
This removes the custom Awareness implementation, and instead relies on
the one provided by the y-sync create. Resolves #82.

BREAKING CHANGE: This changes the state interface of the Awareness
instance. Instead of providing an encoded JSON string, it expects any
object that responds to #to_json.
  • Loading branch information
eliias committed Feb 8, 2023
1 parent 836f77c commit 6b8b630
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 484 deletions.
14 changes: 13 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ext/yrb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yrb"
version = "0.4.6"
version = "0.5.0"
authors = ["Hannes Moser <[email protected]>", "Hannes Moser <[email protected]>"]
edition = "2021"
homepage = "https://github.com/y-crdt/yrb"
Expand All @@ -11,6 +11,7 @@ lib0 = "0.16.2" # must match yrs version
magnus = { git = "https://github.com/matsadler/magnus", rev = "2c2024920a403daadbe23fe63270440dfac86288" }
thiserror = "1.0.38"
yrs = "0.16.2"
y-sync = "0.2.0"

[dev-dependencies]
magnus = { git = "https://github.com/matsadler/magnus", rev = "2c2024920a403daadbe23fe63270440dfac86288", features = ["embed"] }
Expand Down
Loading

0 comments on commit 6b8b630

Please sign in to comment.