Skip to content

Commit 8bf1660

Browse files
dmealingclaude
andcommitted
feat(migrate-ts): export snapshot-integrity API (checksum, verifyReplay, baseline marker)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 92bf8c5 commit 8bf1660

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • server/typescript/packages/migrate-ts/src

server/typescript/packages/migrate-ts/src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export {
2424
parseSnapshot,
2525
SNAPSHOT_FORMAT_VERSION,
2626
} from "./snapshot/serialize.js";
27+
export { snapshotChecksum } from "./snapshot/checksum.js";
2728
export { snapshotPath, readSnapshot, writeSnapshot } from "./snapshot/store.js";
2829
export { planOffline, baselineFromMetadata } from "./snapshot/plan.js";
2930
export type { PlanOfflineArgs, PlanOfflineResult } from "./snapshot/plan.js";
@@ -81,6 +82,9 @@ export {
8182
deleteApplied,
8283
appliedNames,
8384
appliedRecords,
85+
recordBaseline,
86+
baselineRecord,
87+
BASELINE_NAME,
8488
MIGRATIONS_TABLE,
8589
DEFAULT_LEDGER_SCHEMA,
8690
type LedgerRow,
@@ -96,6 +100,10 @@ export {
96100
type RollbackToResult,
97101
} from "./apply/apply.js";
98102

103+
// Snapshot-integrity: replay migrations and assert == committed snapshot.
104+
export { verifyReplay } from "./verify/replay.js";
105+
export type { VerifyReplayArgs, VerifyReplayResult } from "./verify/replay.js";
106+
99107
// Wrangler config helpers
100108
export {
101109
findWranglerConfig,

0 commit comments

Comments
 (0)