Skip to content

Commit fd0f8d8

Browse files
committed
refactor: rename batched_atomic export
1 parent 43bce06 commit fd0f8d8

7 files changed

+20
-11
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,9 @@ This is useful when storing keys and values in a hierarchical/tree view, where
8484
you are retrieving a list and you want to know all the unique _descendants_ of a
8585
key (and the count of keys that match that prefix) in order to be able to
8686
enumerate them or provide information about them.
87+
88+
---
89+
90+
Copyright 2023 - 2024 Kitson P. Kelly - All rights reserved.
91+
92+
MIT License.

_test_util.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { assert } from "https://deno.land/std@0.214.0/assert/assert.ts";
2-
export { delay } from "https://deno.land/std@0.214.0/async/delay.ts";
3-
export { assert } from "https://deno.land/std@0.214.0/assert/assert.ts";
4-
export { assertEquals } from "https://deno.land/std@0.214.0/assert/assert_equals.ts";
1+
import { assert } from "https://deno.land/std@0.215.0/assert/assert.ts";
2+
export { delay } from "https://deno.land/std@0.215.0/async/delay.ts";
3+
export { assert } from "https://deno.land/std@0.215.0/assert/assert.ts";
4+
export { assertEquals } from "https://deno.land/std@0.215.0/assert/assert_equals.ts";
55
export {
66
assertNotEquals,
7-
} from "https://deno.land/std@0.214.0/assert/assert_not_equals.ts";
8-
export { timingSafeEqual } from "https://deno.land/std@0.214.0/crypto/timing_safe_equal.ts";
7+
} from "https://deno.land/std@0.215.0/assert/assert_not_equals.ts";
8+
export { timingSafeEqual } from "https://deno.land/std@0.215.0/crypto/timing_safe_equal.ts";
99

1010
let kv: Deno.Kv | undefined;
1111
let path: string | undefined;

batchedAtomic.test.ts batched_atomic.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
teardown,
88
} from "./_test_util.ts";
99

10-
import { batchedAtomic } from "./batchedAtomic.ts";
10+
import { batchedAtomic } from "./batched_atomic.ts";
1111

1212
Deno.test({
1313
name: "batched atomic handles checks",

batchedAtomic.ts batched_atomic.ts

File renamed without changes.

blob.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
* @module
99
*/
1010

11-
import { batchedAtomic, type BatchedAtomicOperation } from "./batchedAtomic.ts";
11+
import {
12+
batchedAtomic,
13+
type BatchedAtomicOperation,
14+
} from "./batched_atomic.ts";
1215
import { keys } from "./keys.ts";
1316

1417
const BATCH_SIZE = 10;

deno.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "@kitsonk/kv_toolbox",
2+
"name": "@kitsonk/kv-toolbox",
33
"version": "0.6.1",
44
"exports": {
5-
"./batchedAtomic": "./batchedAtomic.ts",
5+
"./batched_atomic": "./batched_atomic.ts",
66
"./blob": "./blob.ts",
77
"./keys": "./keys.ts"
88
},

keys.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @module
2828
*/
2929

30-
import { timingSafeEqual } from "https://deno.land/std@0.203.0/crypto/timing_safe_equal.ts";
30+
import { timingSafeEqual } from "https://deno.land/std@0.215.0/crypto/timing_safe_equal.ts";
3131

3232
function addIfUnique(set: Set<Deno.KvKeyPart>, item: Uint8Array) {
3333
for (const i of set) {

0 commit comments

Comments
 (0)