@vite-hub/kv 0.4.1 → 0.5.0
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.
- package/README.md +6 -2
- package/dist/{cli-DpPhz_Ek.d.ts → cli-CLomw9ml.d.ts} +1 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +22 -11
- package/dist/{cloudflare-env-lOtHHsgP.js → cloudflare-env-Dl349h_9.js} +2 -1
- package/dist/{cloudflare-kv-C3NO4C21.js → cloudflare-kv-DQJhmGof.js} +8 -10
- package/dist/{cloudflare-kv-local-C2sbIrFy.js → cloudflare-kv-local-COjgHweC.js} +3 -7
- package/dist/{config-LfpUj9hs.js → config-pfyPiPrI.js} +47 -12
- package/dist/{create-storage-BORQm2a8.js → create-storage-DQ1BbFqH.js} +1 -1
- package/dist/{cursor-history-DRHh5bO5.js → cursor-history-CAT4mpP1.js} +7 -3
- package/dist/{deno-kv-D_VtffFv.js → deno-kv-Cf0ZveeN.js} +43 -7
- package/dist/driver-Du6Eh9p2.d.ts +47 -0
- package/dist/{error-diagnostics-C54QQEhN.js → error-diagnostics-C4VTHInS.js} +6 -2
- package/dist/{errors-DzD6YNEH.js → errors-BpiM-Vmh.js} +41 -4
- package/dist/errors.d.ts +8 -1
- package/dist/errors.js +2 -2
- package/dist/{fs-lite-BaklCLuV.js → fs-lite-BTcBUP6B.js} +1 -1
- package/dist/fs-lite-C8yXCVDM.js +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +27 -55
- package/dist/{operation-definition-nmRu_O3V.d.ts → operation-definition-CI2PJGqu.d.ts} +8 -2
- package/dist/{operations-CtrWLmPK.js → operations-CqKs7Ykc.js} +22 -37
- package/dist/{operations-D2iI9oN4.js → operations-nAaONxzh.js} +38 -8
- package/dist/operations.d.ts +2 -2
- package/dist/operations.js +3 -3
- package/dist/out-BbXG-yVX.js +21755 -0
- package/dist/{redis-shared-5ogRd3-Y.js → redis-shared-1M0IaguQ.js} +1 -1
- package/dist/request-log-Dj9Vw7qG.js +105 -0
- package/dist/{results-p7nPCnaJ.js → results-D6jfPtCk.js} +0 -1
- package/dist/rolldown-runtime-CMFfr-1z.js +26 -0
- package/dist/runtime/cloudflare-kv.d.ts +1 -1
- package/dist/runtime/cloudflare-kv.js +1 -1
- package/dist/runtime/cloudflare-request-env.js +1 -1
- package/dist/runtime/database.d.ts +2 -0
- package/dist/{database-oJdy0ZVX.js → runtime/database.js} +68 -37
- package/dist/runtime/nitro-plugin.js +10 -6
- package/dist/runtime/redis-driver.d.ts +2 -2
- package/dist/runtime/redis-driver.js +2 -5
- package/dist/runtime/upstash-driver.d.ts +2 -2
- package/dist/runtime/upstash-driver.js +2 -6
- package/dist/{types-Dv-OSXZC.d.ts → types-Cp6IBhSN.d.ts} +3 -17
- package/dist/{upstash-B-vaUYqO.js → upstash-5sTbIR35.js} +2 -2
- package/dist/vite.d.ts +8 -5
- package/dist/vite.js +2102 -46
- package/package.json +9 -4
- package/dist/driver-R4Z5Z5fl.d.ts +0 -15
- package/dist/fs-lite-BAgpmNAF.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-hub/kv",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Vite-first key-value storage primitives and integration for ViteHub.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -46,6 +46,11 @@
|
|
|
46
46
|
"import": "./dist/durability.js",
|
|
47
47
|
"default": "./dist/durability.js"
|
|
48
48
|
},
|
|
49
|
+
"./runtime/database": {
|
|
50
|
+
"types": "./dist/runtime/database.d.ts",
|
|
51
|
+
"import": "./dist/runtime/database.js",
|
|
52
|
+
"default": "./dist/runtime/database.js"
|
|
53
|
+
},
|
|
49
54
|
"./runtime/redis-driver": {
|
|
50
55
|
"types": "./dist/runtime/redis-driver.d.ts",
|
|
51
56
|
"import": "./dist/runtime/redis-driver.js",
|
|
@@ -70,7 +75,7 @@
|
|
|
70
75
|
},
|
|
71
76
|
"dependencies": {
|
|
72
77
|
"@valibot/to-json-schema": "^1.8.0",
|
|
73
|
-
"@vite-hub/runtime": "0.
|
|
78
|
+
"@vite-hub/runtime": "0.5.0",
|
|
74
79
|
"birpc": "^4.2.0",
|
|
75
80
|
"defu": "^6.1.7",
|
|
76
81
|
"destr": "^2.0.5",
|
|
@@ -83,7 +88,7 @@
|
|
|
83
88
|
"devDependencies": {
|
|
84
89
|
"@types/node": "^24.19.1",
|
|
85
90
|
"@libsql/client": "^0.18.0",
|
|
86
|
-
"@vite-hub/database": "0.
|
|
91
|
+
"@vite-hub/database": "0.5.0",
|
|
87
92
|
"@types/proper-lockfile": "4.1.4",
|
|
88
93
|
"@vite-hub/internal": "0.0.1",
|
|
89
94
|
"ofetch": "^1.5.1",
|
|
@@ -96,7 +101,7 @@
|
|
|
96
101
|
},
|
|
97
102
|
"peerDependencies": {
|
|
98
103
|
"@upstash/redis": "^1.39.0",
|
|
99
|
-
"@vite-hub/database": "0.
|
|
104
|
+
"@vite-hub/database": "0.5.0",
|
|
100
105
|
"vite": ">=8.0.0"
|
|
101
106
|
},
|
|
102
107
|
"peerDependenciesMeta": {
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { i as TransactionOptions, t as Driver } from "./types-Bj3EQoRg.js";
|
|
2
|
-
import { T as KVPageOptions, _ as KVListPage } from "./types-Dv-OSXZC.js";
|
|
3
|
-
//#region src/runtime/driver.d.ts
|
|
4
|
-
type KVRuntimeDriver = Driver & Record<string, unknown> & {
|
|
5
|
-
validateBatch?: (items: Parameters<NonNullable<Driver["setItems"]>>[0], removals: string[], options?: TransactionOptions) => void | Promise<void>;
|
|
6
|
-
/** Deletes the key when it holds the serialized `expected` value. Resolves `true` when this call deleted it. */
|
|
7
|
-
deleteIfEqualsItem?: (key: string, expected: string) => Promise<boolean>;
|
|
8
|
-
getAndDeleteItem?: <T = unknown>(key: string) => Promise<T | null>;
|
|
9
|
-
incrementItem?: (key: string, ttl: number) => Promise<number>;
|
|
10
|
-
listKeys: (options: KVPageOptions) => Promise<KVListPage>;
|
|
11
|
-
/** Writes the serialized value only when the key is missing. Resolves `true` when this call wrote it. */
|
|
12
|
-
setIfAbsentItem?: (key: string, value: string, ttl?: number) => Promise<boolean>;
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
export { KVRuntimeDriver as t };
|
package/dist/fs-lite-BAgpmNAF.js
DELETED