chore(deps): update dependency loro-crdt to v1 #727
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.4.1
->^1.0.0
Release Notes
loro-dev/loro (loro-crdt)
v1.0.9
Compare Source
Patch Changes
7bf6db7
: Addpush
to LoroText andpushContainer
to LoroList LoroMovableList9b60d01
: Define the behavior ofdoc.fork()
when the doc is detachedIt will fork at the current state_frontiers, which is equivalent to calling
doc.fork_at(&doc.state_frontiers())
v1.0.8
Compare Source
Patch Changes
62a3a93
: Merge two js packagesv1.0.7
: v1.0Compare Source
We are very excited to announce the release of Loro v1.0, a major milestone.
It has a stable encoding format, faster document import and export speed, better version control capabilities, and a shallow snapshot. For more information, please check the blog.
The following are the specific API changes:
New
LoroDoc
getChange(id: ID)
: getChangeMeta
byID
.setDetachedEditing(flag: boolean)
: Enables editing in detached mode, which is disabled by default.isDetachedEditingEnabled()
: Whether the editing is enabled in detached mode.setNextCommitMessage(msg: string)
: Set the commit message of the next commit.shallowSinceVV()
: The doc only contains the history since this version.shallowSinceFrontiers()
: The doc only contains the history since this version.export(mode: ExportMode)
: Export the document based on the specified ExportMode. see more details here.getDeepValueWithID()
: Get deep value of the document with container id.subscribeLocalUpdates(callback:(bytes: Uint8Array) => void)
: Subscribe to updates from local edits.getPathToContainer(id: ContainerID)
: Get the path from the root to the container.JSONPath(jsonPath: string)
: Evaluate JSONPath against a LoroDoc.forkAt(frontiers: Frontiers): LoroDoc
: Creates a new LoroDoc at a specified version (Frontiers)getPendingTxnLength():number
: Get the number of operations in the pending transaction.travelChangeAncestors(ids: ID[], callback: (meta: ChangeMeta)->bool)
: Iterate over all changes including the input id in order, and stop iterating if the callback returns false.LoroText
updateByLine(text: string)
: Update the current text based on the provided text line by line like git.LoroList
toArray(): ValueOrContainer[]
: Get elements of the list. If the value is a child container, the correspondingContainer
will be returned.clear()
: Delete all elements in the list.LoroMovableList
toArray(): ValueOrContainer[]
: Get elements of the list. If the value is a child container, the correspondingContainer
will be returned.clear()
: Delete all elements in the list.LoroMap
clear()
: Delete all key-value pairs in the map.LoroTree
enableFractionalIndex(jitter: number)
: Set whether to generate a fractional index for Tree Position.disableFractionalIndex()
: Disable the fractional index generation for Tree Position whenyou don't need the Tree's siblings to be sorted. The fractional index will always be the default.
isFractionalIndexEnabled()
: Whether the tree enables the fractional index generation.isNodeDeleted(id: TreeID)
: Returnundefined
if the node does not exist; otherwise, returntrue
if the node is deleted.getNodes(prop: getNodesProp): LoroTreeNode[]
: Get the flat array of the forest. Ifwith_deleted
is true, the deleted nodes will be included.UndoManager
clear()
: Clear the Undo and Redo stack ofUndoManager
Changes
LoroDoc
setFractionalIndexJitter()
toLoroTree
; you can set whether to enable or disable it for eachTree Container
.import()
,importWith()
, andimportJsonUpdates
will returnImportStatus
, which indicates which ops have been successfully applied and which ops are pending.doc.version()
doc.frontiers()
doc.oplogVersion()
anddoc.oplogFrontiers()
even if ops has not been committed, it indicates the latest version of all operations.Loro
toLoroDoc
.LoroTree
contains(id: TreeID)
: Return true even if the node exists in the internal state and has been deleted.nodes()
: deleted nodes will be included now. You can useisDeleted()
to filter.toJSON()
: Now use the hierarchical approach to express the tree structure.Deprecation
LoroDoc
exportFrom(version)
andexportSnapshot()
are deprecated, useexport(mode: ExportMode)
instead.v0.16.12
Compare Source
Patch Changes
46e21fc
: Fix tree move issues46e21fc
]v0.16.11
Compare Source
Patch Changes
dce00ab
: Make loro-wasm work in cloudflare workerdce00ab
]v0.16.10
Compare Source
Patch Changes
7cf54e8
: Fix batch importing with snapshot7cf54e8
]v0.16.9
Compare Source
Patch Changes
a761430
: Fix build scripta761430
]v0.16.8
Compare Source
Patch Changes
38b4bcf
: Add text update API🐛 Bug Fixes
📚 Documentation
🎨 Styling
⚙️ Miscellaneous Tasks
38b4bcf
]v0.16.7
Compare Source
Patch Changes
45c98d5
: Better text APIs and bug fixes🚀 Features
🐛 Bug Fixes
📚 Documentation
⚙️ Miscellaneous Tasks
45c98d5
]v0.16.6
Compare Source
Patch Changes
1e94248
: Add.fork()
to duplicate the doc1e94248
]v0.16.5
Compare Source
Patch Changes
439e4e9
: Update pkg desc439e4e9
]v0.16.4
Compare Source
Patch Changes
afac347
: feat: implementCounter
and expose it to js sideafac347
]v0.16.3
Compare Source
Patch Changes
6d47015
: Make cursors transformation better in undo/redo loopdc55055
: Perf(wasm) cache text.toDelta6d47015
]dc55055
]v0.16.2
Compare Source
Patch Changes
34f6064
: Better undo events & transform cursors by undo manager (#369)🧪 Testing
34f6064
]v0.16.1
Compare Source
Patch Changes
5cd80b0
: Refine undo implUpdated dependencies [
5cd80b0
]v0.16.0
Compare Source
Minor Changes
c12c2b9
: Movable Tree Children & Undo🐛 Bug Fixes
🧪 Testing
Feat
🐛 Bug Fixes
Patch Changes
c12c2b9
]v0.15.4
Compare Source
v0.15.3
Compare Source
Patch Changes
43506cc
: Fix unsound issue caused by wasm-bindgen🐛 Bug Fixes
📚 Documentation
43506cc
]v0.15.2
Compare Source
Patch Changes
e30678d
: Perf: fix deletions merge🐛 Bug Fixes
⚡ Performance
⚙️ Miscellaneous Tasks
e30678d
]v0.15.1
Compare Source
Patch Changes
04c6290
: Bug fixes and improvements.🐛 Bug Fixes
📚 Documentation
⚙️ Miscellaneous Tasks
04c6290
]v0.15.0
Compare Source
Minor Changes
35b9b6e
: Movable List (#293)Loro's List supports insert and delete operations but lacks built-in methods for
set
andmove
. To simulate set and move, developers might combine delete and insert. However, this approach can lead to issues during concurrent operations on the same element, often resulting in duplicate entries upon merging.For instance, consider a list [0, 1, 2]. If user A moves the element '0' to position 1, while user B moves it to position 2, the ideal merged outcome should be either [1, 0, 2] or [1, 2, 0]. However, using the delete-insert method to simulate a move results in [1, 0, 2, 0], as both users delete '0' from its original position and insert it independently at new positions.
To address this, we introduce a MovableList container. This new container type directly supports move and set operations, aligning more closely with user expectations and preventing the issues associated with simulated moves.
Example
Patch Changes
35b9b6e
]v0.14.6
Compare Source
Patch Changes
24cf9b9
: Bug Fix🐛 Bug Fixes
24cf9b9
]v0.14.5
Compare Source
Patch Changes
73e3ba5
: Bug Fix🐛 Bug Fixes
🚜 Refactor
73e3ba5
]v0.14.4
Compare Source
Patch Changes
598d97e
: ### 🚜 Refactor📚 Documentation
598d97e
]v0.14.3
Compare Source
Patch Changes
a1fc2e3
: Feat: Awareness (#318)a1fc2e3
]v0.14.2
Compare Source
v0.14.1
Compare Source
v0.14.0
Compare Source
v0.13.1
Compare Source
v0.13.0
Compare Source
v0.12.0
Compare Source
v0.11.1
Compare Source
v0.11.0
Compare Source
v0.10.1
Compare Source
v0.10.0
Compare Source
v0.9.4
Compare Source
v0.9.3
Compare Source
v0.9.2
Compare Source
v0.9.1
Compare Source
v0.9.0
Compare Source
v0.8.0
Compare Source
v0.7.1
Compare Source
v0.7.0
Compare Source
v0.6.5
Compare Source
v0.6.4
Compare Source
v0.6.3
Compare Source
v0.6.2
Compare Source
v0.6.1
Compare Source
v0.6.0
Compare Source
v0.5.0
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.