loro-crdt
Advanced tools
Comparing version 0.14.3 to 0.14.4
@@ -1,2 +0,2 @@ | ||
import { AwarenessWasm, PeerID as PeerID$1, Container, ContainerID, TreeID, OpId, Delta, Value, LoroText, LoroMap, LoroTree, LoroList } from 'loro-wasm'; | ||
import { Value, AwarenessWasm, PeerID as PeerID$1, Container, ContainerID, TreeID, OpId, Delta, LoroText, LoroMap, LoroTree, LoroList } from 'loro-wasm'; | ||
export * from 'loro-wasm'; | ||
@@ -16,3 +16,3 @@ export { Loro } from 'loro-wasm'; | ||
*/ | ||
declare class Awareness<T> { | ||
declare class Awareness<T extends Value = Value> { | ||
inner: AwarenessWasm<T>; | ||
@@ -374,3 +374,3 @@ private peer; | ||
} | ||
interface AwarenessWasm<T = unknown> { | ||
interface AwarenessWasm<T extends Value = Value> { | ||
getState(peer: PeerID): T | undefined; | ||
@@ -377,0 +377,0 @@ getTimestamp(peer: PeerID): number | undefined; |
{ | ||
"name": "loro-crdt", | ||
"version": "0.14.3", | ||
"version": "0.14.4", | ||
"description": "Loro CRDTs is a high-performance CRDT framework that makes your app state synchronized, collaborative and maintainable effortlessly.", | ||
@@ -20,3 +20,3 @@ "keywords": [ | ||
"dependencies": { | ||
"loro-wasm": "0.14.3" | ||
"loro-wasm": "0.14.4" | ||
}, | ||
@@ -23,0 +23,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
import { AwarenessWasm, PeerID } from "loro-wasm"; | ||
import { AwarenessWasm, PeerID, Value } from "loro-wasm"; | ||
@@ -14,3 +14,3 @@ export type AwarenessListener = ( | ||
*/ | ||
export class Awareness<T> { | ||
export class Awareness<T extends Value = Value> { | ||
inner: AwarenessWasm<T>; | ||
@@ -17,0 +17,0 @@ private peer: PeerID; |
@@ -416,3 +416,3 @@ export * from "loro-wasm"; | ||
interface AwarenessWasm< | ||
T = unknown, | ||
T extends Value = Value, | ||
> { | ||
@@ -419,0 +419,0 @@ getState(peer: PeerID): T | undefined; |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
151384
0
+ Addedloro-wasm@0.14.4(transitive)
- Removedloro-wasm@0.14.3(transitive)
Updatedloro-wasm@0.14.4