deno
deno copied to clipboard
feat(unstable): kv atomic sum on bigints and numbers
This patch allows to call kv.atomic().sum() directly on values of type bigint and number. Deno.KvU64 is no longer needed.
Also adds an option bag to sum() that allows to specify min/max value of result and behavior when this limit is exceeded (clamp or error).