@vite-hub/kv 0.0.4 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +110 -14
  2. package/dist/batch--v0ri69O.js +40 -0
  3. package/dist/cli-DpPhz_Ek.d.ts +163 -0
  4. package/dist/cli.d.ts +17 -0
  5. package/dist/cli.js +469 -0
  6. package/dist/cloudflare-env-lOtHHsgP.js +46 -0
  7. package/dist/cloudflare-env-lookup-Bs0VDpU5.js +42 -0
  8. package/dist/cloudflare-kv-BIEUFzRT.js +187 -0
  9. package/dist/cloudflare-kv-local-BBw3ZT1K.js +71 -0
  10. package/dist/config-BXEVoZE3.js +250 -0
  11. package/dist/{dist-DDW1iC5f.js → create-storage-BGsrQKw3.js} +266 -115
  12. package/dist/cursor-history-BqIQePNP.js +165 -0
  13. package/dist/database-72Jk3VVk.js +250 -0
  14. package/dist/deno-kv-BM9mYdUp.js +128 -0
  15. package/dist/dev-peer-CHafxbtj.js +238 -0
  16. package/dist/driver-BwxgaQ-f.d.ts +15 -0
  17. package/dist/durability.d.ts +17 -0
  18. package/dist/durability.js +53 -0
  19. package/dist/error-diagnostics-BxqvtEIb.js +147 -0
  20. package/dist/errors-DbwufFZp.js +60 -0
  21. package/dist/errors.d.ts +23 -7
  22. package/dist/errors.js +2 -20
  23. package/dist/fs-lite-BLZId9_P.js +386 -0
  24. package/dist/fs-lite-RAoxu8L0.js +2 -0
  25. package/dist/index.d.ts +10 -4
  26. package/dist/index.js +364 -109
  27. package/dist/inspect-BIKQsqX4.js +118 -0
  28. package/dist/invariant-DolT9EEx.js +22 -0
  29. package/dist/main-F3Y22_uV.js +2353 -0
  30. package/dist/object-Da1zyPCR.js +11 -0
  31. package/dist/operation-definition-8gOe-ubD.d.ts +234 -0
  32. package/dist/operations-B-WZ7P1h.js +1351 -0
  33. package/dist/operations-Ch-gKaey.js +441 -0
  34. package/dist/operations.d.ts +75 -0
  35. package/dist/operations.js +318 -0
  36. package/dist/redis-shared-E5mahECF.js +94 -0
  37. package/dist/results-p7nPCnaJ.js +6 -0
  38. package/dist/rolldown-runtime-CMFfr-1z.js +26 -0
  39. package/dist/runtime/cloudflare-kv.d.ts +3 -4
  40. package/dist/runtime/cloudflare-kv.js +1 -23
  41. package/dist/runtime/cloudflare-request-env.d.ts +7 -0
  42. package/dist/runtime/cloudflare-request-env.js +11 -0
  43. package/dist/runtime/nitro-plugin.d.ts +12 -0
  44. package/dist/runtime/nitro-plugin.js +22 -0
  45. package/dist/runtime/redis-driver.d.ts +11 -0
  46. package/dist/runtime/redis-driver.js +113 -0
  47. package/dist/runtime/unstorage-driver.d.ts +14 -0
  48. package/dist/runtime/unstorage-driver.js +33 -0
  49. package/dist/runtime/upstash-driver.d.ts +4 -6
  50. package/dist/runtime/upstash-driver.js +60 -110
  51. package/dist/{driver-BT9WefKi.d.ts → types-Bj3EQoRg.d.ts} +16 -11
  52. package/dist/types-DEiKew_3.d.ts +312 -0
  53. package/dist/upstash-DDlqTttY.js +40 -0
  54. package/dist/utils2-FozcTsmb.js +31 -0
  55. package/dist/virtual-module.d.ts +2 -0
  56. package/dist/virtual.d.ts +1 -1
  57. package/dist/vite.d.ts +159 -14
  58. package/dist/vite.js +1329 -2898
  59. package/package.json +68 -19
  60. package/dist/config-aM9Ae7tH.js +0 -110
  61. package/dist/deno-kv-cJx3jU10.js +0 -69
  62. package/dist/fs-lite-BxzdiJSi.js +0 -79
  63. package/dist/types-CO0DRjJa.d.ts +0 -78
@@ -0,0 +1,53 @@
1
+ //#region src/durability.ts
2
+ const sharedStores = {
3
+ "cloudflare": "A Cloudflare KV namespace that every Worker reads.",
4
+ "deno-kv": "Deno KV, which Deno Deploy shares between isolates.",
5
+ "redis": "Redis.",
6
+ "upstash": "Upstash Redis over HTTP."
7
+ };
8
+ function classify(store, context) {
9
+ const shared = sharedStores[store.driver];
10
+ if (shared) return {
11
+ store: store.driver,
12
+ scope: "shared",
13
+ reason: shared
14
+ };
15
+ if (store.driver === "database") {
16
+ const name = store.database ?? "default";
17
+ const database = context.find("database", name);
18
+ if (!database) return {
19
+ store: "database",
20
+ scope: "process",
21
+ reason: `The ${name} Database is off.`,
22
+ fix: "Turn on the Database, or use a Redis store."
23
+ };
24
+ return {
25
+ store: `database (${database.store})`,
26
+ scope: database.scope,
27
+ reason: `Rows in the ${name} Database. ${database.reason}`,
28
+ ...database.fix ? { fix: database.fix } : {}
29
+ };
30
+ }
31
+ if (store.driver === "memory") return {
32
+ store: "memory",
33
+ scope: "process",
34
+ reason: "Values live in the memory of this process.",
35
+ fix: "Set `kv: { driver: \"redis\" }` and supply REDIS_URL to every instance, or use a Postgres Default Database."
36
+ };
37
+ return {
38
+ store: store.driver,
39
+ scope: "host",
40
+ reason: `Files in ${store.base ?? "the KV folder"} on this host.`,
41
+ fix: "Set `kv: { driver: \"redis\" }` and supply REDIS_URL to every instance, or select a shared Database store."
42
+ };
43
+ }
44
+ /** The durability of each KV store, from its driver. A `database` store follows the Database that holds its rows. */
45
+ function kvDurability(input, context) {
46
+ return Object.entries(input.stores).map(([name, store]) => ({
47
+ primitive: "kv",
48
+ ...name === "default" ? {} : { name },
49
+ ...classify(store, context)
50
+ }));
51
+ }
52
+ //#endregion
53
+ export { kvDurability };
@@ -0,0 +1,147 @@
1
+ import { defineErrors } from "@vite-hub/runtime";
2
+ //#region src/error-diagnostics.ts
3
+ const cursorProblems = {
4
+ "expired": "The list cursor has expired.",
5
+ "foreign": "The list cursor belongs to a different storage backend.",
6
+ "in-use": "The list cursor is already in use.",
7
+ "invalid": "The list cursor is invalid or exceeds the maximum size."
8
+ };
9
+ const kvErrorDiagnostics = /*#__PURE__*/ defineErrors({
10
+ docs: "https://vitehub.dev/docs/kv/diagnostics",
11
+ codes: {
12
+ KV_INVALID_CURSOR: {
13
+ why: ({ problem }) => cursorProblems[problem],
14
+ fix: "Pass the `cursor` of the previous page once, to the same store. If it fails, start again without `cursor`."
15
+ },
16
+ KV_INVALID_LIMIT: {
17
+ why: "`limit` must be a positive integer.",
18
+ fix: "Pass a positive integer, for example `kv.list({ limit: 100 })`."
19
+ },
20
+ KV_INVALID_OPTION: {
21
+ why: ({ operation, option }) => `kv.${operation}() does not accept the option \`${option}\`. It accepts only \`ttl\`.`,
22
+ fix: "Pass `{ ttl: seconds }` to expire the value, or no options to keep it. KV has no Cloudflare `expirationTtl`, `expiration`, or `metadata` option."
23
+ },
24
+ KV_INVALID_TTL: {
25
+ why: "`ttl` must be a positive number of seconds within the safe integer range.",
26
+ fix: "Pass the TTL in seconds, for example `kv.set('session', value, { ttl: 60 })`."
27
+ },
28
+ KV_INVALID_VALUE: {
29
+ why: ({ operation, problem }) => problem === "missing" ? `kv.${operation}() needs a value. Use kv.delete() to remove a key.` : "KV cannot serialize this value.",
30
+ fix: "Pass a string, a number, a boolean, `null`, an array, a plain object, or an object with `toJSON()` to `kv.setIfAbsent()` or `kv.deleteIfEquals()`. Use `kv.delete()` to remove a key."
31
+ },
32
+ KV_INVALID_WAIT: {
33
+ why: "`wait` must be zero or a positive number of seconds.",
34
+ fix: "Pass the wait in seconds, for example `kv.lock('jobs:report', { ttl: 60, wait: 5 })`, or omit `wait` to return at once."
35
+ },
36
+ KV_KEY_TOO_LONG: {
37
+ why: ({ bytes, limit }) => `The key is ${bytes} bytes in UTF-8. Cloudflare KV accepts keys of at most ${limit} bytes.`,
38
+ fix: "Use a shorter key. To keep a long identifier, store a hash of it as the key."
39
+ },
40
+ KV_VALUE_TOO_LARGE: {
41
+ why: ({ bytes, limit }) => `The value is ${bytes} bytes. Cloudflare KV accepts values of at most ${limit} bytes (25 MiB).`,
42
+ fix: "Store large files in Blob, and keep the Blob pathname in KV."
43
+ },
44
+ KV_OPERATION_FAILED: {
45
+ why: ({ operation, store }) => `kv.${operation}() failed on the "${store}" store.`,
46
+ fix: "Read `error.cause` for the provider error. Retry when the provider is available again."
47
+ },
48
+ KV_UNSUPPORTED_OPERATION: {
49
+ why: ({ operation, store }) => operation === "setIfAbsent" ? `kv.setIfAbsent() needs an atomic write, and the "${store}" store cannot give one. Cloudflare KV is eventually consistent, so two requests can both see a missing key.` : operation === "lock" ? `kv.lock() needs \`setIfAbsent()\` with a TTL and \`deleteIfEquals()\`, and the "${store}" store does not support both.` : `kv.${operation}() needs atomic operations, and the "${store}" store does not support them.`,
50
+ fix: ({ operation }) => operation === "setIfAbsent" ? "On Cloudflare, keep single-use tokens in D1 with `INSERT ... ON CONFLICT DO NOTHING`, or in a Durable Object. Otherwise use the `redis`, `database`, `upstash`, `deno-kv`, or `fs-lite` driver for this store." : operation === "lock" ? "Use the `redis`, `database`, or `upstash` driver for this store. On Cloudflare, use a Durable Object or a D1 row as the lock." : "Use the `redis`, `database`, or `upstash` driver for this store. For request budgets, use the Rate Limit primitive."
51
+ },
52
+ KV_INVALID_INPUT: {
53
+ why: ({ limit, operation, problem }) => ({
54
+ "key": `The ${operation} operation requires a key.`,
55
+ "key-length": "The key is too long.",
56
+ "limit": `limit must be at most ${limit}.`,
57
+ "prefix-length": "The prefix is too long.",
58
+ "ttl": "Upstash TTL must be at least 1 second.",
59
+ "value": "The set operation requires a value."
60
+ })[problem],
61
+ fix: "Pass a `key` and a `prefix` of at most 2,048 characters, a `limit` of at most 1,000, and, for `kv.set`, a `value`. On Upstash, pass a `ttl` of at least 1 second."
62
+ },
63
+ KV_RESERVED_KEY: {
64
+ why: ({ key, operation }) => `The ${operation} operation cannot change ${key}. ViteHub owns the keys that start with \`vitehub:\`.`,
65
+ fix: "Use another key. Read access (get, has, list) stays open."
66
+ },
67
+ KV_VALUE_UNSUPPORTED: {
68
+ why: "The stored value cannot be represented by the KV inspection protocol.",
69
+ fix: "Read the value in the app with `kv.get()`. The `kv.get` operation shows JSON values, bigint values, and bytes, without getters, symbols, or class instances."
70
+ },
71
+ KV_DATABASE_UNAVAILABLE: {
72
+ why: ({ database, problem }) => problem === "missing" ? `The KV \`database\` driver keeps keys in the Database "${database}", and the app has no Database with that name.` : `The KV \`database\` driver needs the Database "${database}" on Postgres or libSQL. It does not support D1.`,
73
+ fix: ({ problem }) => problem === "missing" ? "Add a Database Definition, for example `server/database.ts` with `defineDatabase({ dialect: 'postgresql', schema: {} })`, or select another KV driver." : "On Cloudflare, use the `cloudflare` driver. Elsewhere, point the Database at Postgres or libSQL."
74
+ },
75
+ KV_DENO_KV_UNAVAILABLE: {
76
+ why: "The `deno-kv` driver needs `Deno.openKv()`, and this runtime does not have it.",
77
+ fix: "Run on Deno with KV enabled, or select another KV driver."
78
+ },
79
+ KV_DISABLED: {
80
+ why: "KV is not configured in this runtime.",
81
+ fix: "Set `kv` in `vitehub()` to `true` or to a KV config. With `@vite-hub/kv` alone, add `hubKV()` to the Vite plugins and do not pass `false` to it."
82
+ },
83
+ KV_INVALID_CONFIG: {
84
+ why: ({ path }) => `\`${path}\` must be a plain object.`,
85
+ fix: "Pass an object, for example `kv: { driver: 'fs-lite' }`."
86
+ },
87
+ KV_INVALID_DRIVER: {
88
+ why: ({ driver, renamed }) => renamed ? `\`kv.driver\` is ${driver}. ViteHub renamed this driver to "${renamed}", and it does not read ${driver}.` : `\`kv.driver\` ${driver} is not a KV driver.`,
89
+ fix: ({ renamed }) => renamed ? `Set \`kv: { driver: "${renamed}" }\`, or run \`npx @vite-hub/codemods driver-key\` to rename it in every config file.` : "Set `kv.driver` to \"cloudflare\", \"database\", \"deno-kv\", \"fs-lite\", \"redis\", or \"upstash\"."
90
+ },
91
+ KV_INVALID_REMOTE: {
92
+ why: ({ store }) => `\`remote\` of the KV store "${store}" must be \`true\` or \`false\`.`,
93
+ fix: "Set `remote: true` to use the real store in `vite dev`, or remove `remote` to keep the store local."
94
+ },
95
+ KV_REMOTE_CONFLICT: {
96
+ why: ({ driver, remote, store }) => remote ? `The KV store "${store}" sets \`remote: true\`, but it uses the local \`${driver}\` driver in \`vite dev\`.` : `The KV store "${store}" sets \`remote: false\`, but the \`${driver}\` driver is always remote.`,
97
+ fix: ({ remote }) => remote ? "Remove `remote: true`, or select a remote store: the `upstash` or `cloudflare` driver, Upstash env, or the Vercel or Cloudflare host." : "Remove `remote: false`, or select a local driver such as `fs-lite` for `vite dev`."
98
+ },
99
+ KV_INVALID_BATCH: {
100
+ why: ({ operation }) => operation === "getMany" ? "`kv.getMany()` needs an array of keys." : "`kv.setMany()` needs an array of `{ key, value }` entries.",
101
+ fix: ({ operation }) => operation === "getMany" ? "Pass an array, for example `kv.getMany(['a', 'b'])`." : "Pass an array, for example `kv.setMany([{ key: 'a', value: 1 }])`."
102
+ },
103
+ KV_INVALID_STORE_MODE: {
104
+ why: ({ mode }) => `\`kv.store()\` mode ${mode} is not "read" or "write".`,
105
+ fix: "Pass `{ mode: 'read' }` for a read-only handle, or omit `mode` for a writable one."
106
+ },
107
+ KV_MISSING_DEFAULT_STORE: {
108
+ why: "`kv.stores.default` is missing.",
109
+ fix: "Add a `default` store when you configure named KV stores."
110
+ },
111
+ KV_MISSING_ENV: {
112
+ why: ({ driver, names }) => `${driver === "redis" ? "Redis" : "Upstash"} KV needs the runtime environment variable ${names}.`,
113
+ fix: ({ driver }) => driver === "redis" ? "Set the variable in the server environment, or set `url` in the KV config." : "Set the variable in the host environment, or set `url` and `token` in the KV config."
114
+ },
115
+ KV_STORE_NOT_FOUND: {
116
+ why: ({ store, stores }) => stores ? `KV store "${store}" was not found. Stores: ${stores}.` : `The KV store "${store}" is not configured.`,
117
+ fix: "Add the store under `kv.stores`, or use the name of a configured store."
118
+ },
119
+ KV_INVALID_COUNTER: {
120
+ why: "kv.increment() needs a stored integer below 9007199254740991. The value did not change.",
121
+ fix: "Delete the key or replace its value with a canonical integer below Number.MAX_SAFE_INTEGER, then retry kv.increment()."
122
+ },
123
+ KV_CLI_USAGE: {
124
+ why: ({ problem }) => problem,
125
+ fix: "Run `vitehub kv --help` to see the commands and options."
126
+ },
127
+ KV_PROVIDER_INVALID_RESPONSE: {
128
+ why: ({ problem }) => `The KV provider returned a response that ViteHub cannot use. ${problem}`,
129
+ fix: "Retry the operation. If it fails again, open a ViteHub issue with the driver name."
130
+ },
131
+ KV_PROVISION_FAILED: {
132
+ why: ({ problem }) => `Cloudflare KV provisioning failed. ${problem}`,
133
+ fix: "Run `vitehub provision run --host cloudflare --dry-run` and check the Cloudflare token permissions."
134
+ }
135
+ }
136
+ });
137
+ /** Codes that a KV operation throws because the code or the deployment must change. */
138
+ const kvConfigErrorCodes = /* @__PURE__ */ new Set([
139
+ "KV_DATABASE_UNAVAILABLE",
140
+ "KV_INVALID_BATCH",
141
+ "KV_DENO_KV_UNAVAILABLE",
142
+ "KV_DISABLED",
143
+ "KV_MISSING_ENV",
144
+ "KV_STORE_NOT_FOUND"
145
+ ]);
146
+ //#endregion
147
+ export { kvErrorDiagnostics as n, kvConfigErrorCodes as t };
@@ -0,0 +1,60 @@
1
+ import { n as kvErrorDiagnostics, t as kvConfigErrorCodes } from "./error-diagnostics-BxqvtEIb.js";
2
+ import { isRuntimeDiagnostic, toResultError } from "@vite-hub/runtime";
3
+ //#region src/store-mode.ts
4
+ /**
5
+ * Returns the handle that `kv.store(name, options)` gives. An unknown mode throws, so a typo never gives a writable handle.
6
+ * The read-only handle has only the read methods; write methods are absent, not stubbed.
7
+ */
8
+ function kvStoreWithMode(storage, options) {
9
+ const mode = options?.mode === void 0 ? "write" : options.mode;
10
+ if (mode !== "read" && mode !== "write") throw kvErrorDiagnostics.KV_INVALID_STORE_MODE({ mode: JSON.stringify(mode) });
11
+ if (mode === "write") return storage;
12
+ return {
13
+ get: storage.get,
14
+ getMany: storage.getMany,
15
+ has: storage.has,
16
+ keys: storage.keys,
17
+ list: storage.list
18
+ };
19
+ }
20
+ //#endregion
21
+ //#region src/errors.ts
22
+ function hasCode(error, codes) {
23
+ return codes.some((code) => code === error.code);
24
+ }
25
+ /**
26
+ * Runs one KV operation and returns `[error, data]`.
27
+ * A KV error with one of `codes` is returned with Runtime's public serializer. A config error is thrown.
28
+ * Any other failure becomes `KV_OPERATION_FAILED` with the failure in `cause`.
29
+ */
30
+ async function kvResult(operation, store, run, codes = []) {
31
+ try {
32
+ return [void 0, await run()];
33
+ } catch (cause) {
34
+ if (kvErrorDiagnostics.is(cause) && kvConfigErrorCodes.has(cause.code)) throw cause;
35
+ if (isRuntimeDiagnostic(cause) && hasCode(cause, codes)) return [toResultError(cause), void 0];
36
+ return [kvErrorDiagnostics.KV_OPERATION_FAILED({
37
+ cause,
38
+ operation,
39
+ store
40
+ }), void 0];
41
+ }
42
+ }
43
+ function kvStoreNotFoundError(store) {
44
+ return kvErrorDiagnostics.KV_STORE_NOT_FOUND({ store });
45
+ }
46
+ function kvUnsupportedOperationError(operation, store) {
47
+ return kvErrorDiagnostics.KV_UNSUPPORTED_OPERATION({
48
+ operation,
49
+ store
50
+ });
51
+ }
52
+ function kvInvalidLimitError() {
53
+ return kvErrorDiagnostics.KV_INVALID_LIMIT();
54
+ }
55
+ /** Codes that a Cloudflare KV store returns for a key above the host limit. */
56
+ const kvKeyLimitCodes = ["KV_KEY_TOO_LONG"];
57
+ /** Codes that a Cloudflare KV store returns for a write above the host limits. */
58
+ const kvWriteLimitCodes = ["KV_KEY_TOO_LONG", "KV_VALUE_TOO_LARGE"];
59
+ //#endregion
60
+ export { kvUnsupportedOperationError as a, kvStoreNotFoundError as i, kvKeyLimitCodes as n, kvWriteLimitCodes as o, kvResult as r, kvStoreWithMode as s, kvInvalidLimitError as t };
package/dist/errors.d.ts CHANGED
@@ -1,8 +1,24 @@
1
- import { a as KVErrorDetails, l as KVOperation, u as KVResult } from "./types-CO0DRjJa.js";
2
- import { ViteHubError } from "@vite-hub/runtime";
3
-
4
- //#region src/errors.d.ts
5
- declare function kvError(operation: KVOperation, store: string, cause: unknown): ViteHubError<"KV_OPERATION_FAILED", KVErrorDetails>;
6
- declare function kvResult<TResult>(operation: KVOperation, store: string, run: () => Promise<TResult>): Promise<KVResult<TResult>>;
1
+ import { O as KVStoreOptions, S as KVOperation, T as KVStorage, d as KVErrorCode, k as ReadonlyKVStorage } from "./types-DEiKew_3.js";
2
+ import { Result, ResultError } from "@vite-hub/runtime";
3
+ //#region src/store-mode.d.ts
4
+ /**
5
+ * Returns the handle that `kv.store(name, options)` gives. An unknown mode throws, so a typo never gives a writable handle.
6
+ * The read-only handle has only the read methods; write methods are absent, not stubbed.
7
+ */
8
+ export declare function kvStoreWithMode(storage: KVStorage, options: KVStoreOptions | undefined): KVStorage | ReadonlyKVStorage;
7
9
  //#endregion
8
- export { kvError, kvResult };
10
+ //#region src/errors.d.ts
11
+ /**
12
+ * Runs one KV operation and returns `[error, data]`.
13
+ * A KV error with one of `codes` is returned with Runtime's public serializer. A config error is thrown.
14
+ * Any other failure becomes `KV_OPERATION_FAILED` with the failure in `cause`.
15
+ */
16
+ export declare function kvResult<TData, TCode extends KVErrorCode = never>(operation: KVOperation, store: string, run: () => Promise<TData>, codes?: readonly TCode[]): Promise<Result<TData, TCode | "KV_OPERATION_FAILED">>;
17
+ export declare function kvStoreNotFoundError(store: string): ResultError<"KV_STORE_NOT_FOUND">;
18
+ export declare function kvUnsupportedOperationError(operation: KVOperation, store: string): ResultError<"KV_UNSUPPORTED_OPERATION">;
19
+ export declare function kvInvalidLimitError(): ResultError<"KV_INVALID_LIMIT">;
20
+ /** Codes that a Cloudflare KV store returns for a key above the host limit. */
21
+ export declare const kvKeyLimitCodes: readonly ["KV_KEY_TOO_LONG"];
22
+ /** Codes that a Cloudflare KV store returns for a write above the host limits. */
23
+ export declare const kvWriteLimitCodes: readonly ["KV_KEY_TOO_LONG", "KV_VALUE_TOO_LARGE"];
24
+ //#endregion
package/dist/errors.js CHANGED
@@ -1,20 +1,2 @@
1
- import { ViteHubError } from "@vite-hub/runtime";
2
- //#region src/errors.ts
3
- function kvError(operation, store, cause) {
4
- return new ViteHubError("KV_OPERATION_FAILED", "KV storage operation failed.", {
5
- cause,
6
- details: {
7
- operation,
8
- store
9
- }
10
- });
11
- }
12
- async function kvResult(operation, store, run) {
13
- try {
14
- return [null, await run()];
15
- } catch (cause) {
16
- return [kvError(operation, store, cause), void 0];
17
- }
18
- }
19
- //#endregion
20
- export { kvError, kvResult };
1
+ import { a as kvUnsupportedOperationError, i as kvStoreNotFoundError, n as kvKeyLimitCodes, o as kvWriteLimitCodes, r as kvResult, s as kvStoreWithMode, t as kvInvalidLimitError } from "./errors-DbwufFZp.js";
2
+ export { kvInvalidLimitError, kvKeyLimitCodes, kvResult, kvStoreNotFoundError, kvStoreWithMode, kvUnsupportedOperationError, kvWriteLimitCodes };