mirror of
https://github.com/loro-dev/loro.git
synced 2024-11-25 04:38:58 +00:00
9ecc0a90b1
This PR includes a BREAKING CHANGE. It enables you to create containers before attaching them to the document, making the API more intuitive and straightforward. A container can be either attached to a document or detached. When it's detached, its history/state does not persist. You can attach a container to a document by inserting it into an attached container. Once a container is attached, its state, along with all of its descendants's states, will be recreated in the document. After attaching, the container and its descendants, will each have their corresponding "attached" version of themselves? When a detached container x is attached to a document, you can use x.getAttached() to obtain the corresponding attached container. |
||
---|---|---|
.. | ||
benches | ||
examples | ||
fuzz | ||
proptest-regressions/dag | ||
scripts | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
deno.json | ||
deno.lock | ||
Encoding.md | ||
README.md |
loro-internal
This is the internal implementation of Loro.
Its interface subject to change. You should not use it as dependency directly.
Consider use loro
crate instead.