Skip to content

Commit

Permalink
updated README for v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-oloughlin committed May 29, 2023
1 parent b0c3466 commit a3d7755
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Optional and nullable properties are allowed. If you wish to use Zod, you can
create your Zod object schema and use its type as your model.

```ts
import type { Model } from "https://deno.land/x/kvdex@v0.2.0/mod.ts"
import type { Model } from "https://deno.land/x/kvdex@v0.2.1/mod.ts"

interface User extends Model {
username: string
Expand All @@ -35,7 +35,7 @@ The "createDb" function is used for creating a new database instance. It takes a
Deno KV instance and a schema builder function as arguments.

```ts
import { createDb } from "https://deno.land/x/kvdex@v0.2.0/mod.ts"
import { createDb } from "https://deno.land/x/kvdex@v0.2.1/mod.ts"

const kv = await Deno.openKv()

Expand Down Expand Up @@ -424,7 +424,7 @@ result will be an object containing: id, versionstamp and all the entries in the
document value.

```ts
import { flatten } from "https://deno.land/x/kvdex@v0.2.0/mod.ts"
import { flatten } from "https://deno.land/x/kvdex@v0.2.1/mod.ts"

// We assume the document exists in the KV store
const doc = await db.users.find(123n)
Expand Down

0 comments on commit a3d7755

Please sign in to comment.