Hyperlinkv0.9.0-beta.0

WorkPool

WorkPool.withSchemaVersionconstsrc/internal/workPool.ts:253
<S extends Schema.Top>(schema: S, version: number): S["Rebuild"]

Stamp an item schema with its version. Bump it on any breaking change to the item shape; evolve additively within a version (so a newer receiver still accepts same-version entries from an older sender). The version flows into makeQueueItemCodecDescriptor's id (…/item@vN) and version, making every released/handoff entry self-describing.

export const withSchemaVersion = <S extends Schema.Top>(
  schema: S,
  version: number,
): S["Rebuild"] => schema.annotate({ schemaVersion: version });