ChangelogRelease Loro v1.3.0

New

  • UndoManager’s onPush now can access the change event.
  • add getShallowValue for each container.

LoroDoc

  • toJsonWithReplacer(replacer: (k, v)=>Value): Convert the document to a JSON value with a custom replacer function.
  • revertTo(frontiers: Frontiers): Revert the document to the given frontiers.
  • findIdSpansBetween(from: Frontiers, to: Frontiers): Find the op id spans that between the from version and the to version.
  • exportJsonInIdSpan(idSpan: IdSpan): Export the readable [Change]s in the given [IdSpan].

Fix

  • fix: prevent merging remote changes based on local changeMergeInterval config #643
  • fix: should commit before travel_change_ancestors #599
  • fix: panic when detach then attach #592
  • fix: move child in current parent #589
  • fix: panic when returned non-boolean value from text.iter(f) #578