@fedify/sqlite 2.0.0-dev.161 → 2.0.0-dev.166
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/deno.json +1 -1
- package/dist/kv.d.cts +5 -5
- package/dist/kv.d.ts +2 -2
- package/package.json +2 -2
- package/src/kv.ts +2 -2
- package/dist/dist/sqlite.node.d.cts +0 -2
package/deno.json
CHANGED
package/dist/kv.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PlatformDatabase } from "#sqlite";
|
|
2
2
|
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions } from "@fedify/fedify";
|
|
3
3
|
|
|
4
4
|
//#region src/kv.d.ts
|
|
@@ -12,12 +12,12 @@ interface SqliteKvStoreOptions {
|
|
|
12
12
|
* `"fedify_kv"` by default.
|
|
13
13
|
* @default `"fedify_kv"`
|
|
14
14
|
*/
|
|
15
|
-
tableName?: string;
|
|
15
|
+
readonly tableName?: string;
|
|
16
16
|
/**
|
|
17
17
|
* Whether the table has been initialized. `false` by default.
|
|
18
18
|
* @default `false`
|
|
19
19
|
*/
|
|
20
|
-
initialized?: boolean;
|
|
20
|
+
readonly initialized?: boolean;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* A key–value store that uses SQLite as the underlying storage.
|
|
@@ -37,14 +37,14 @@ interface SqliteKvStoreOptions {
|
|
|
37
37
|
*/
|
|
38
38
|
declare class SqliteKvStore implements KvStore {
|
|
39
39
|
#private;
|
|
40
|
-
readonly db:
|
|
40
|
+
readonly db: PlatformDatabase;
|
|
41
41
|
readonly options: SqliteKvStoreOptions;
|
|
42
42
|
/**
|
|
43
43
|
* Creates a new SQLite key–value store.
|
|
44
44
|
* @param db The SQLite database to use. Supports `node:sqlite` and `bun:sqlite`.
|
|
45
45
|
* @param options The options for the key–value store.
|
|
46
46
|
*/
|
|
47
|
-
constructor(db:
|
|
47
|
+
constructor(db: PlatformDatabase, options?: SqliteKvStoreOptions);
|
|
48
48
|
/**
|
|
49
49
|
* {@inheritDoc KvStore.get}
|
|
50
50
|
*/
|
package/dist/kv.d.ts
CHANGED
|
@@ -13,12 +13,12 @@ interface SqliteKvStoreOptions {
|
|
|
13
13
|
* `"fedify_kv"` by default.
|
|
14
14
|
* @default `"fedify_kv"`
|
|
15
15
|
*/
|
|
16
|
-
tableName?: string;
|
|
16
|
+
readonly tableName?: string;
|
|
17
17
|
/**
|
|
18
18
|
* Whether the table has been initialized. `false` by default.
|
|
19
19
|
* @default `false`
|
|
20
20
|
*/
|
|
21
|
-
initialized?: boolean;
|
|
21
|
+
readonly initialized?: boolean;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* A key–value store that uses SQLite as the underlying storage.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/sqlite",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.166+15dea3c0",
|
|
4
4
|
"description": "SQLite drivers for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fedify",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"es-toolkit": "^1.31.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@fedify/fedify": "^2.0.0-dev.
|
|
65
|
+
"@fedify/fedify": "^2.0.0-dev.166+15dea3c0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@std/async": "npm:@jsr/std__async@^1.0.13",
|
package/src/kv.ts
CHANGED
|
@@ -21,13 +21,13 @@ export interface SqliteKvStoreOptions {
|
|
|
21
21
|
* `"fedify_kv"` by default.
|
|
22
22
|
* @default `"fedify_kv"`
|
|
23
23
|
*/
|
|
24
|
-
tableName?: string;
|
|
24
|
+
readonly tableName?: string;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Whether the table has been initialized. `false` by default.
|
|
28
28
|
* @default `false`
|
|
29
29
|
*/
|
|
30
|
-
initialized?: boolean;
|
|
30
|
+
readonly initialized?: boolean;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|