denoland/deno · error · TypeError
Invalid mutation 'delete' with value
Error message
Invalid mutation 'delete' with value
What it means
Error "Invalid mutation 'delete' with value" thrown in denoland/deno.
Source
Thrown at ext/kv/01_db.ts:485
for (let i = 0; i < checks.length; ++i) {
const check = checks[i];
ArrayPrototypePush(this.#checks, [check.key, check.versionstamp]);
}
return this;
}
mutate(...mutations: Deno.KvMutation[]): this {
for (let i = 0; i < mutations.length; ++i) {
const mutation = mutations[i];
const key = mutation.key;
let type: string;
let value: RawValue | null;
let expireIn: number | undefined = undefined;
switch (mutation.type) {
case "delete":
type = "delete";
if (mutation.value) {
throw new TypeError("Invalid mutation 'delete' with value");
}
break;
case "set":
if (typeof mutation.expireIn === "number") {
expireIn = mutation.expireIn;
}
validateExpireIn(expireIn);
/* falls through */
case "sum":
case "min":
case "max":
type = mutation.type;
if (!ObjectHasOwn(mutation, "value")) {
throw new TypeError(`Invalid mutation '${type}' without value`);
}
value = serializeValue(mutation.value);
break;
default:View on GitHub (pinned to 89f33cbef2)
When it happens
Trigger: Thrown at ext/kv/01_db.ts:485 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of denoland/deno@89f33cbef2 (2026-08-16).
Data as JSON: /api/errors/f0819c6669050d89.
Report an issue: GitHub.