Skip to content

fix(drivers): update() on a missing id answers null on MongoDB and Turso's remote face #20268

fix(drivers): update() on a missing id answers null on MongoDB and Turso's remote face

fix(drivers): update() on a missing id answers null on MongoDB and Turso's remote face #20268

Triggered via pull request September 3, 2026 11:58
Status Success
Total duration 1m 2s
Artifacts

pr-automation.yml

on: pull_request
Check PR Size
Check PR Size
Check Changeset
59s
Check Changeset
Auto Label
0s
Auto Label
Fit to window
Zoom out
Zoom in

Annotations

1 notice
Check Changeset: .changeset/driver-update-missing-id-null.md#L0
ADR-0087 exemption (no-migration-prescription): No metadata key is removed, renamed or re-shaped: the moving surfaces are two driver methods' declared return types and the value they answer for an id that names no row, so there is nothing for `objectstack migrate meta`, `spec-changes.json` or the upgrade guide to project, and this changeset prescribes no rewrite. The consumer obligation is a TypeScript narrowing at the call site, delivered by the compiler. `type-surface-only` is NOT claimable here: its predicate 4 (narrowed-from-erased) is false — neither declared return was `any` at the merge base, they were the non-null `Promise<Record<string, unknown>>` — and, independently, runtime behaviour moves in the same diff, which is more than a type surface. Same disposition and reasoning as `.changeset/driver-memory-update-upsert-honest-types.md` (PR #14434), one day earlier in this same series.