Documentation
    Preparing search index...

    Function runSceneMigrations

    • Runs the registered chain over value until it reaches the target version (§80), without validating the result against the current schema.

      The document is deep-copied and validated as JSON on the way in, and again after every step, so a step that returns something JSON cannot carry fails at that step rather than at the end of the chain.

      Parameters

      Returns JsonObject

      the migrated document, at targetVersion

      FourError SERIALIZATION_VERSION_MISMATCH if the document is newer than the target, or if a link in the chain is missing

      TypeError if the document is not representable JSON, declares no usable formatVersion, or a step returns something that is not a JSON object (or one whose formatVersion is neither the version it was handed nor the version it produces)