Skip to content

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.

From = unknown

To = unknown

readonly fromVersion: number

Defined in: src/persistence/migration/MigrationChain.ts:24


readonly toVersion: number

Defined in: src/persistence/migration/MigrationChain.ts:25

downcast(from): To

Defined in: src/persistence/migration/MigrationChain.ts:26

From

To