Skip to content

Commit

Permalink
Release 0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Oct 16, 2024
1 parent 738b6bf commit e73c4b1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# kv-toolbox change log

## Version 0.21.0

- feat: make sizeOf public (738b6bf)

`sizeOf()` was previously just internal, but it is generally useful when
working with Deno KV to be able to estimate the size of keys and values. The
Deno KV documentation currently suggests using the length of
`JSON.stringify()` string, which can be very problematic when dealing with
complex values that don't serialize to JSON but are storable in Deno KV.

## Version 0.20.1

- fix: make json module browser compatible (422df76)
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kitsonk/kv-toolbox",
"version": "0.20.1",
"version": "0.21.0",
"exports": {
".": "./toolbox.ts",
"./batched_atomic": "./batched_atomic.ts",
Expand Down
1 change: 1 addition & 0 deletions toolbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ import {
} from "./ndjson.ts";

export { generateKey } from "./crypto.ts";
export { sizeOf } from "./size_of.ts";

/**
* A toolbox for interacting with a Deno KV store.
Expand Down

0 comments on commit e73c4b1

Please sign in to comment.