{"record":{"id":"c2503b5b8d380598","repo":"denoland/deno","slug":"invalid-mutation-type-without-value","errorCode":null,"errorMessage":"Invalid mutation '${type}' without value","messagePattern":"Invalid mutation '(.+?)' without value","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"ext/kv/01_db.ts","lineNumber":499,"sourceCode":"      switch (mutation.type) {\n        case \"delete\":\n          type = \"delete\";\n          if (mutation.value) {\n            throw new TypeError(\"Invalid mutation 'delete' with value\");\n          }\n          break;\n        case \"set\":\n          if (typeof mutation.expireIn === \"number\") {\n            expireIn = mutation.expireIn;\n          }\n          validateExpireIn(expireIn);\n          /* falls through */\n        case \"sum\":\n        case \"min\":\n        case \"max\":\n          type = mutation.type;\n          if (!ObjectHasOwn(mutation, \"value\")) {\n            throw new TypeError(`Invalid mutation '${type}' without value`);\n          }\n          value = serializeValue(mutation.value);\n          break;\n        default:\n          throw new TypeError(\"Invalid mutation type\");\n      }\n      ArrayPrototypePush(this.#mutations, [key, type, value, expireIn]);\n    }\n    return this;\n  }\n\n  sum(key: Deno.KvKey, n: bigint): this {\n    ArrayPrototypePush(this.#mutations, [\n      key,\n      \"sum\",\n      serializeValue(new KvU64(n)),\n      undefined,\n    ]);","sourceCodeStart":481,"sourceCodeEnd":517,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/ext/kv/01_db.ts#L481-L517","documentation":"Error \"Invalid mutation '${type}' without value\" thrown in denoland/deno.","triggerScenarios":"Thrown at ext/kv/01_db.ts:499 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"89f33cbef296a2b287f323d42de54c871fa69c77","analyzedAt":"2026-08-16T07:54:21.310Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}