deno
b2fd724c - feat(kv): implement custom inspect for AtomicOperation (#30077)

Commit
1 year ago
feat(kv): implement custom inspect for AtomicOperation (#30077) ## Summary Adds a custom inspect method to `AtomicOperation` to provide a readable string representation of the queued operations (checks, mutations, enqueues). This improves developer experience when debugging atomic operations by showing the internal state in a human-readable format. The implementation adds a custom `[Symbol.for("Deno.customInspect")]` method that formats the operations into a structured string showing: - Check operations with their keys and versionstamps - Mutation operations (set, delete, sum) with keys and values - Enqueue operations with payloads and options Fixes #21034
Author
Parents
Loading