supported
Supported public entry point. Import this entry point as @sheetwrite/core/history.
Exported symbols
Classes 4
AtomicHistoryStoragePublication, reader leases and reference-counted retention, shared by the supplied adapters.
HistoryArchiveOpt-in archive of named and automatic versions for one document.
HistoryErrorExpected archive failure; cancellation preserves the caller's abort reason.
MemoryHistoryStorageIn-memory history for one page session and for tests.
Functions 1
Interfaces 26
HistoryAddonOptionsHost identity and persistence of one grid's version history panel.
HistoryArchiveOptionsHost-controlled archive configuration.
HistoryDiffCellSource and style of one cell in one version.
HistoryDiffCellsChanged cells of one page as parallel typed columns, in sheet order and then row by row.
HistoryDiffCursorWhere the next page of a diff starts.
HistoryDiffDetailBefore and after of one changed cell of the page.
HistoryDiffPageOne bounded page of the difference between two versions.
HistoryDiffRequestOne diff request between two retained versions.
HistoryDiffSheetA sheet that was added, removed, or changed outside its cell values.
HistoryHeadDurable recorder cursor: the newest checkpoint, the log tail since it, and cadence counters.
HistoryLimitsResource and retention ceilings for an opt-in history archive.
HistoryListPageMetadata-only response in newest-first order.
HistoryListRequestBounded metadata-only page.
HistoryManifestArchive state, read without fetching any payload.
HistoryPanelArchiveThe archive calls the version history panel makes; HistoryArchive provides them.
HistoryPinRequestAcquire or release a five-minute renewable reader lease through the storage seam.
HistoryPruneRequestRetention removes automatic markers, or one explicitly selected named marker.
HistoryPublishRequestAtomically publish immutable records and a new head or version marker.
HistoryRecordMetadataMetadata for one immutable record; listings never return payload bytes.
HistoryRestoreOptionsOptions for HistoryArchive.restoreVersion.
HistoryStorageAdapterAtomic storage seam for local databases and host-owned history backends.
HistoryStorageRequestCommon document identity, ceilings, and cancellation for adapter calls.
HistoryStorageTransactionOne atomic database transaction.
HistoryStorageUsageRetained storage of one document, including headers and index entries.
HistoryStoredRecordImmutable, content-addressed history payload and the records it refers to.
HistoryVersionA durable marker at one archived revision.
Types 5
HistoryErrorCodeStable failure category for history validation, storage, and replay.
HistoryGetRequestFetch metadata or a bounded immutable payload; leased reads renew their lease.
HistoryPutRequestA storage write either publishes one complete revision or manages a reader lease.
HistoryRestoreScopeWhat a restore covers.
HistorySnapshotProviderSnapshot provider invoked only when a checkpoint is due.
Variables 4
DEFAULT_HISTORY_LIMITSDefault history limits. A host can lower any of them, or raise the storage and retention limits to what its own backend allows.
HISTORY_DIFF_NONEAuthor index for a change whose author is not known.
HistoryDiffFlagBits of HistoryDiffCells.flags; a change has one or more of them.
MAX_HISTORY_DIFF_ENTRIESLargest page a diff returns.