Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v0.20.0 #487

Merged
merged 1 commit into from
Aug 25, 2024
Merged

release v0.20.0 #487

merged 1 commit into from
Aug 25, 2024

Conversation

Horusiath
Copy link
Collaborator

@Horusiath Horusiath commented Aug 25, 2024

New features

Breaking changes

  • yffi: renamed YDeltaYDeltaOut.
  • yrs::Doc::options is no longer available. Instead options fields like auto_load/should_load etc. are now dedicated methods on Doc object.
  • Doc::collection_id type changed: StringArc<str>.
  • yrs::Transact: transact/transact_mut/transact_mut_with methods will no longer panic when transaction cannot be acquired. Instead we'll force waiting at the current thread (which can potentially cause a deadlock). If previous behavior is desired, it can be achieved via doc.try_transact().unwrap() call.
  • y-sync Protocol methods no longer use &mut Awareness parameter: due to make Awareness thread-safe by default #482 all Awareness method can be called on &Awareness alone.
  • Awareness no longer exposes clients and meta hashmaps. If you need to access all clients or metas, you can use Awareness::iter instead.
  • Awareness::local_state/Awareness::state generic constraint changed: Deserialize<'de>DeserializeOwned.

@Horusiath Horusiath merged commit 318cd05 into main Aug 25, 2024
9 of 10 checks 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