loro-crdt
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
@@ -169,5 +169,6 @@ import { Value, AwarenessWasm, PeerID as PeerID$1, Container, ContainerID, TreeID, LoroDoc, OpId, Delta, LoroText, LoroMap, LoroTree, LoroList, LoroCounter, ContainerType } from 'loro-wasm'; | ||
declare function getType<T>(value: T): T extends LoroText ? "Text" : T extends LoroMap<any> ? "Map" : T extends LoroTree<any> ? "Tree" : T extends LoroList<any> ? "List" : T extends LoroCounter ? "Counter" : "Json"; | ||
type Subscription = () => void; | ||
declare module "loro-wasm" { | ||
interface LoroDoc { | ||
subscribe(listener: Listener): number; | ||
subscribe(listener: Listener): Subscription; | ||
} | ||
@@ -322,3 +323,3 @@ interface UndoManager { | ||
push<V extends T>(value: Exclude<V, Container>): void; | ||
subscribe(listener: Listener): number; | ||
subscribe(listener: Listener): Subscription; | ||
getAttached(): undefined | LoroList<T>; | ||
@@ -395,3 +396,3 @@ } | ||
push<V extends T>(value: Exclude<V, Container>): void; | ||
subscribe(listener: Listener): number; | ||
subscribe(listener: Listener): Subscription; | ||
getAttached(): undefined | LoroMovableList<T>; | ||
@@ -509,3 +510,3 @@ /** | ||
delete(key: string): void; | ||
subscribe(listener: Listener): number; | ||
subscribe(listener: Listener): Subscription; | ||
} | ||
@@ -516,3 +517,3 @@ interface LoroText { | ||
delete(pos: number, len: number): void; | ||
subscribe(listener: Listener): number; | ||
subscribe(listener: Listener): Subscription; | ||
} | ||
@@ -549,3 +550,3 @@ interface LoroTree<T extends Record<string, unknown> = Record<string, unknown>> { | ||
getNodeByID(target: TreeID): LoroTreeNode<T>; | ||
subscribe(listener: Listener): number; | ||
subscribe(listener: Listener): Subscription; | ||
} | ||
@@ -600,2 +601,2 @@ interface LoroTreeNode<T extends Record<string, unknown> = Record<string, unknown>> { | ||
export { Awareness, CounterDiff, Diff, Frontiers, ListDiff, Loro, LoroEvent, LoroEventBatch, MapDiff, Path, TextDiff, TreeDiff, TreeDiffItem, getType, isContainer, isContainerId, newContainerID, newRootContainerID }; | ||
export { Awareness, CounterDiff, Diff, Frontiers, ListDiff, Loro, LoroEvent, LoroEventBatch, MapDiff, Path, Subscription, TextDiff, TreeDiff, TreeDiffItem, getType, isContainer, isContainerId, newContainerID, newRootContainerID }; |
{ | ||
"name": "loro-crdt", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.4", | ||
"description": "Loro CRDTs is a high-performance CRDT framework that makes your app state synchronized, collaborative and maintainable effortlessly.", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"dependencies": { | ||
"loro-wasm": "1.0.0-alpha.3" | ||
"loro-wasm": "1.0.0-alpha.4" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88225
829
+ Addedloro-wasm@1.0.0-alpha.4(transitive)
- Removedloro-wasm@1.0.0-alpha.3(transitive)
Updatedloro-wasm@1.0.0-alpha.4