Documentation
    Preparing search index...

    Class SceneMigrationRegistry

    The registered upgrade steps (§80), keyed by the version each upgrades from.

    An instance rather than a module-level singleton: migrations are application (and test) state, and a shared mutable chain would make one suite's registration visible to the next.

    Index
    • get versions(): readonly number[]

      The registered fromVersions in ascending order.

      Returns readonly number[]

    • The step upgrading from fromVersion, or undefined.

      Parameters

      • fromVersion: number

      Returns SceneMigration | undefined

    • Whether a step upgrading from fromVersion is registered.

      Parameters

      • fromVersion: number

      Returns boolean

    • Registers migrate as the step from fromVersion to fromVersion + 1. Returns this so registrations chain.

      Parameters

      Returns this

      FourError INVALID_APPLICATION_STATE if fromVersion is not a non-negative safe integer, or if a step is already registered for it — replacing one silently would make the upgrade path depend on module evaluation order, which §80's "deterministic" forbids.