@automerge/automerge
Advanced tools
Comparing version 2.2.7 to 2.2.8
@@ -39,3 +39,3 @@ /** | ||
import { unstableConflictAt } from "./conflicts.js"; | ||
export { view, free, getHeads, change, changeAt, emptyChange, loadIncremental, saveIncremental, save, merge, getActorId, getLastLocalChange, getChanges, getAllChanges, applyChanges, getHistory, equals, encodeSyncState, decodeSyncState, generateSyncMessage, receiveSyncMessage, hasOurChanges, initSyncState, encodeChange, decodeChange, encodeSyncMessage, decodeSyncMessage, getMissingDeps, dump, toJS, isAutomerge, getObjectId, diff, insertAt, deleteAt, saveSince, initializeWasm, initializeBase64Wasm, wasmInitialized, isWasmInitialized, hasHeads, topoHistoryTraversal, inspectChange, } from "./stable.js"; | ||
export { view, free, getHeads, change, changeAt, emptyChange, loadIncremental, saveIncremental, save, merge, getActorId, getLastLocalChange, getChanges, getAllChanges, applyChanges, getHistory, equals, encodeSyncState, decodeSyncState, generateSyncMessage, receiveSyncMessage, hasOurChanges, initSyncState, encodeChange, decodeChange, encodeSyncMessage, decodeSyncMessage, getMissingDeps, dump, toJS, isAutomerge, getObjectId, diff, insertAt, deleteAt, saveSince, initializeWasm, initializeBase64Wasm, wasmInitialized, isWasmInitialized, hasHeads, topoHistoryTraversal, inspectChange, stats, } from "./stable.js"; | ||
import * as stable from "./stable.js"; | ||
@@ -42,0 +42,0 @@ export { RawString } from "./raw_string.js"; |
@@ -962,1 +962,8 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
} | ||
/** | ||
* Return some internal statistics about the document | ||
*/ | ||
export function stats(doc) { | ||
const state = _state(doc); | ||
return state.handle.stats(); | ||
} |
@@ -44,3 +44,3 @@ /** | ||
export type { ActorId, Change, ChangeOptions, Prop, DecodedChange, DecodedSyncMessage, ApplyOptions, ChangeFn, ChangeAtResult, MaterializeValue, SyncState, } from "./stable.js"; | ||
export { view, free, getHeads, change, changeAt, emptyChange, loadIncremental, saveIncremental, save, merge, getActorId, getLastLocalChange, getChanges, getAllChanges, applyChanges, getHistory, equals, encodeSyncState, decodeSyncState, generateSyncMessage, receiveSyncMessage, hasOurChanges, initSyncState, encodeChange, decodeChange, encodeSyncMessage, decodeSyncMessage, getMissingDeps, dump, toJS, isAutomerge, getObjectId, diff, insertAt, deleteAt, saveSince, initializeWasm, initializeBase64Wasm, wasmInitialized, isWasmInitialized, hasHeads, topoHistoryTraversal, inspectChange, } from "./stable.js"; | ||
export { view, free, getHeads, change, changeAt, emptyChange, loadIncremental, saveIncremental, save, merge, getActorId, getLastLocalChange, getChanges, getAllChanges, applyChanges, getHistory, equals, encodeSyncState, decodeSyncState, generateSyncMessage, receiveSyncMessage, hasOurChanges, initSyncState, encodeChange, decodeChange, encodeSyncMessage, decodeSyncMessage, getMissingDeps, dump, toJS, isAutomerge, getObjectId, diff, insertAt, deleteAt, saveSince, initializeWasm, initializeBase64Wasm, wasmInitialized, isWasmInitialized, hasHeads, topoHistoryTraversal, inspectChange, stats, } from "./stable.js"; | ||
export type InitOptions<T> = { | ||
@@ -47,0 +47,0 @@ /** The actor ID to use for this document, a random one will be generated if `null` is passed */ |
@@ -581,1 +581,8 @@ /** @hidden **/ | ||
export declare function inspectChange(doc: Doc<unknown>, changeHash: string): DecodedChange | null; | ||
/** | ||
* Return some internal statistics about the document | ||
*/ | ||
export declare function stats(doc: Doc<unknown>): { | ||
numChanges: number; | ||
numOps: number; | ||
}; |
@@ -304,2 +304,4 @@ export type Actor = string; | ||
topoHistoryTraversal(): Hash[]; | ||
stats(): {numChanges: number, numOps: number}; | ||
} | ||
@@ -306,0 +308,0 @@ |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "2.2.7", | ||
"version": "2.2.8", | ||
"description": "Javascript implementation of automerge, backed by @automerge/automerge-wasm", | ||
@@ -10,0 +10,0 @@ "homepage": "https://github.com/automerge/automerge/tree/main/javascript", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
89701
23822342