WarUI

Versioned state envelope

GRID-A21-F09P0beyond-baselinePlanned

Wraps all state in an envelope containing a schema version, the grid library version, an optional application-defined version and a column-definition fingerprint. Versioning lets the grid detect incompatible or outdated state and route it to migrations instead of failing silently.

Planned. This page shows the specification from issue #201. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid with an envelope viewer showing meta.schemaVersion, meta.appVersion and meta.columnFingerprint.

Expected behavior

Pasting state with an older appVersion triggers onStateVersionMismatch, which is shown in an event log. Pasting state whose schemaVersion is newer than the library supports is rejected with a clear error and no partial application.

Planned API surface

getState().metastateSchemaVersionappStateVersioncolumnFingerprintonStateVersionMismatch

Acceptance criteria

  • Every getState() output includes meta.schemaVersion as an integer. (pending)
  • State with a newer, unsupported schemaVersion is rejected atomically and the grid remains unchanged. (pending)
  • The column fingerprint changes whenever column ids are added, removed or renamed, and does not change when only labels change. (pending)
  • onStateVersionMismatch receives the from and to versions and can cancel the restore. (pending)
  • State without an envelope is treated as legacy version 0. (pending)