Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loro-crdt

Package Overview
Dependencies
Maintainers
0
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loro-crdt - npm Package Compare versions

Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4

15

dist/loro.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc