@fedify/sqlite 2.0.0-dev.237 → 2.0.0-dev.241
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 +3 -3
- package/dist/mq.d.cts +3 -3
- package/package.json +8 -7
- 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
|
|
@@ -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/mq.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PlatformDatabase } from "#sqlite";
|
|
2
2
|
import { MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions } from "@fedify/fedify";
|
|
3
3
|
|
|
4
4
|
//#region src/mq.d.ts
|
|
@@ -65,7 +65,7 @@ interface SqliteMessageQueueOptions {
|
|
|
65
65
|
*/
|
|
66
66
|
declare class SqliteMessageQueue implements MessageQueue, Disposable {
|
|
67
67
|
#private;
|
|
68
|
-
readonly db:
|
|
68
|
+
readonly db: PlatformDatabase;
|
|
69
69
|
readonly options: SqliteMessageQueueOptions;
|
|
70
70
|
/**
|
|
71
71
|
* SQLite message queue does not provide native retry mechanisms.
|
|
@@ -76,7 +76,7 @@ declare class SqliteMessageQueue implements MessageQueue, Disposable {
|
|
|
76
76
|
* @param db The SQLite database to use. Supports `node:sqlite`, `bun:sqlite`.
|
|
77
77
|
* @param options The options for the message queue.
|
|
78
78
|
*/
|
|
79
|
-
constructor(db:
|
|
79
|
+
constructor(db: PlatformDatabase, options?: SqliteMessageQueueOptions);
|
|
80
80
|
/**
|
|
81
81
|
* {@inheritDoc MessageQueue.enqueue}
|
|
82
82
|
*/
|
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.241+58c8126c",
|
|
4
4
|
"description": "SQLite drivers for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fedify",
|
|
@@ -72,19 +72,20 @@
|
|
|
72
72
|
"es-toolkit": "^1.31.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@fedify/fedify": "^2.0.0-dev.
|
|
75
|
+
"@fedify/fedify": "^2.0.0-dev.241+58c8126c"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@std/async": "npm:@jsr/std__async@^1.0.13",
|
|
79
79
|
"tsdown": "^0.12.9",
|
|
80
80
|
"typescript": "^5.9.3",
|
|
81
|
-
"@fedify/testing": "^2.0.0-dev.
|
|
81
|
+
"@fedify/testing": "^2.0.0-dev.241+58c8126c"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
|
-
"build": "tsdown",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"test
|
|
84
|
+
"build:self": "tsdown",
|
|
85
|
+
"build": "pnpm --filter @fedify/sqlite... run build:self",
|
|
86
|
+
"prepublish": "pnpm build",
|
|
87
|
+
"test": "pnpm build && node --experimental-transform-types --test",
|
|
88
|
+
"test:bun": "pnpm build && bun test --timeout=10000",
|
|
88
89
|
"test:deno": "deno task test"
|
|
89
90
|
}
|
|
90
91
|
}
|