Registry of migrations indexed by the FROM-version. To migrate a
version: 1 snapshot up to v3, we apply migrations[1] then
migrations[2] in order. There is intentionally no v0 entry —
pre-1.0 prereleases are unsupported and the user must re-create
their layout from scratch.
Today there are no historical versions (v1 is the only release).
Once v2 ships, add an entry like:
Registry of migrations indexed by the FROM-version. To migrate a
version: 1snapshot up to v3, we applymigrations[1]thenmigrations[2]in order. There is intentionally no v0 entry — pre-1.0 prereleases are unsupported and the user must re-create their layout from scratch.Today there are no historical versions (v1 is the only release). Once v2 ships, add an entry like:
migrations[1] = (s) => ({ ...s, version: 2, // ...new fields });