Skip to main content

Interface: BlockDrift

Defined in: packages/core/src/compatibility.types.ts:42

One block's version delta, as it appears under a block-drift incompatibility. Enough to act on without reading the artifact: the name, what the page needs, and what the registry holds.

Example

import type { BlockDrift } from "@nubbin/core";

const drift: BlockDrift = { block: "Hero", live: 1, registered: 2 };

Properties

block

block: string

Defined in: packages/core/src/compatibility.types.ts:44

The block's registered name, as blockVersions keys it.


live

live: number

Defined in: packages/core/src/compatibility.types.ts:47

The version the live page needs — restore this to make the route renderable again.


registered

registered: number | null

Defined in: packages/core/src/compatibility.types.ts:50

The version the registry holds now, or null when the block is no longer registered.