DowncastStep
Defined in: src/persistence/migration/MigrationChain.ts:23
Inverse of MigrationStep — maps a current-shape payload back
to an older shape on the write path (#7). Used during rolling
deployments where v2 nodes need to keep emitting v1 events for as
long as v1 readers are still in the cluster. Steps move backward:
fromVersion > toVersion, typically toVersion = fromVersion - 1.
Type Parameters
Section titled “Type Parameters”From = unknown
To = unknown
Properties
Section titled “Properties”fromVersion
Section titled “fromVersion”
readonlyfromVersion:number
Defined in: src/persistence/migration/MigrationChain.ts:24
toVersion
Section titled “toVersion”
readonlytoVersion:number
Defined in: src/persistence/migration/MigrationChain.ts:25
Methods
Section titled “Methods”downcast()
Section titled “downcast()”downcast(
from):To
Defined in: src/persistence/migration/MigrationChain.ts:26
Parameters
Section titled “Parameters”From
Returns
Section titled “Returns”To