loro/.changeset/popular-spoons-wash.md
Zixuan Chen d6966aca34
fix: fractional index is enabled by default now (#561)
* fix: tree should use jitter 0 by default

Otherwise, there may be inconsistency between the event and the actual data. But this will increase the cost when the index property is not used.

* chore: add changeset

* chore: fix warning

* refactor: enable tree move by default

* docs: update related docs
2024-11-18 14:32:56 +08:00

406 B

loro-crdt
patch

The fractional index in LoroTree is now enabled by default with jitter=0.

To reduce the cost of LoroTree, if the index property in LoroTree is unused, users can still call tree.disableFractionalIndex(). However, in the new version, after disabling the fractional index, tree.moveTo(), tree.moveBefore(), tree.moveAfter(), and tree.createAt() will throw an error