Skip to main content

VersionedPatch

@webda/versioning


Type Alias: VersionedPatch

VersionedPatch = object

Defined in: packages/versioning/src/history.ts:9

A Delta with commit-like bookkeeping attached. Use when you need to record when a change was made, by whom, and optionally correlate it with an external id. The engine operates on bare Delta; this type is for history/replication layers that sit on top.

Properties​

author?​

readonly optional author?: string

Defined in: packages/versioning/src/history.ts:14

Free-form identifier for the actor that authored the change (email, user id, service name).


delta​

readonly delta: Delta

Defined in: packages/versioning/src/history.ts:10


id?​

readonly optional id?: string

Defined in: packages/versioning/src/history.ts:18

Caller-supplied stable identifier (useful for dedup, replay, correlation).


message?​

readonly optional message?: string

Defined in: packages/versioning/src/history.ts:16

Short human-readable note, analogous to a git commit message.


timestamp​

readonly timestamp: number

Defined in: packages/versioning/src/history.ts:12

Milliseconds since epoch. Numeric for easy sort + monotonic math.