@fedify/postgres 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/dist/kv.d.cts +2 -2
- package/dist/kv.d.ts +2 -2
- package/dist/mq.d.cts +5 -5
- package/dist/mq.d.ts +5 -5
- package/package.json +2 -2
package/dist/kv.d.cts
CHANGED
|
@@ -11,12 +11,12 @@ interface PostgresKvStoreOptions {
|
|
|
11
11
|
* `"fedify_kv_v2"` by default.
|
|
12
12
|
* @default `"fedify_kv_v2"`
|
|
13
13
|
*/
|
|
14
|
-
tableName?: string;
|
|
14
|
+
readonly tableName?: string;
|
|
15
15
|
/**
|
|
16
16
|
* Whether the table has been initialized. `false` by default.
|
|
17
17
|
* @default `false`
|
|
18
18
|
*/
|
|
19
|
-
initialized?: boolean;
|
|
19
|
+
readonly initialized?: boolean;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* A key–value store that uses PostgreSQL as the underlying storage.
|
package/dist/kv.d.ts
CHANGED
|
@@ -12,12 +12,12 @@ interface PostgresKvStoreOptions {
|
|
|
12
12
|
* `"fedify_kv_v2"` by default.
|
|
13
13
|
* @default `"fedify_kv_v2"`
|
|
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 PostgreSQL as the underlying storage.
|
package/dist/mq.d.cts
CHANGED
|
@@ -11,23 +11,23 @@ interface PostgresMessageQueueOptions {
|
|
|
11
11
|
* `"fedify_message_v2"` by default.
|
|
12
12
|
* @default `"fedify_message_v2"`
|
|
13
13
|
*/
|
|
14
|
-
tableName?: string;
|
|
14
|
+
readonly tableName?: string;
|
|
15
15
|
/**
|
|
16
16
|
* The channel name to use for the message queue.
|
|
17
17
|
* `"fedify_channel"` by default.
|
|
18
18
|
* @default `"fedify_channel"`
|
|
19
19
|
*/
|
|
20
|
-
channelName?: string;
|
|
20
|
+
readonly channelName?: string;
|
|
21
21
|
/**
|
|
22
22
|
* Whether the table has been initialized. `false` by default.
|
|
23
23
|
* @default `false`
|
|
24
24
|
*/
|
|
25
|
-
initialized?: boolean;
|
|
25
|
+
readonly initialized?: boolean;
|
|
26
26
|
/**
|
|
27
27
|
* The poll interval for the message queue. 5 seconds by default.
|
|
28
28
|
* @default `{ seconds: 5 }`
|
|
29
29
|
*/
|
|
30
|
-
pollInterval?: Temporal.Duration | Temporal.DurationLike;
|
|
30
|
+
readonly pollInterval?: Temporal.Duration | Temporal.DurationLike;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* A message queue that uses PostgreSQL as the underlying storage.
|
|
@@ -50,7 +50,7 @@ declare class PostgresMessageQueue implements MessageQueue {
|
|
|
50
50
|
#private;
|
|
51
51
|
constructor(sql: Sql<{}>, options?: PostgresMessageQueueOptions);
|
|
52
52
|
enqueue(message: any, options?: MessageQueueEnqueueOptions): Promise<void>;
|
|
53
|
-
enqueueMany(messages: any[], options?: MessageQueueEnqueueOptions): Promise<void>;
|
|
53
|
+
enqueueMany(messages: readonly any[], options?: MessageQueueEnqueueOptions): Promise<void>;
|
|
54
54
|
listen(handler: (message: any) => void | Promise<void>, options?: MessageQueueListenOptions): Promise<void>;
|
|
55
55
|
/**
|
|
56
56
|
* Initializes the message queue table if it does not already exist.
|
package/dist/mq.d.ts
CHANGED
|
@@ -12,23 +12,23 @@ interface PostgresMessageQueueOptions {
|
|
|
12
12
|
* `"fedify_message_v2"` by default.
|
|
13
13
|
* @default `"fedify_message_v2"`
|
|
14
14
|
*/
|
|
15
|
-
tableName?: string;
|
|
15
|
+
readonly tableName?: string;
|
|
16
16
|
/**
|
|
17
17
|
* The channel name to use for the message queue.
|
|
18
18
|
* `"fedify_channel"` by default.
|
|
19
19
|
* @default `"fedify_channel"`
|
|
20
20
|
*/
|
|
21
|
-
channelName?: string;
|
|
21
|
+
readonly channelName?: string;
|
|
22
22
|
/**
|
|
23
23
|
* Whether the table has been initialized. `false` by default.
|
|
24
24
|
* @default `false`
|
|
25
25
|
*/
|
|
26
|
-
initialized?: boolean;
|
|
26
|
+
readonly initialized?: boolean;
|
|
27
27
|
/**
|
|
28
28
|
* The poll interval for the message queue. 5 seconds by default.
|
|
29
29
|
* @default `{ seconds: 5 }`
|
|
30
30
|
*/
|
|
31
|
-
pollInterval?: Temporal.Duration | Temporal.DurationLike;
|
|
31
|
+
readonly pollInterval?: Temporal.Duration | Temporal.DurationLike;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* A message queue that uses PostgreSQL as the underlying storage.
|
|
@@ -51,7 +51,7 @@ declare class PostgresMessageQueue implements MessageQueue {
|
|
|
51
51
|
#private;
|
|
52
52
|
constructor(sql: Sql<{}>, options?: PostgresMessageQueueOptions);
|
|
53
53
|
enqueue(message: any, options?: MessageQueueEnqueueOptions): Promise<void>;
|
|
54
|
-
enqueueMany(messages: any[], options?: MessageQueueEnqueueOptions): Promise<void>;
|
|
54
|
+
enqueueMany(messages: readonly any[], options?: MessageQueueEnqueueOptions): Promise<void>;
|
|
55
55
|
listen(handler: (message: any) => void | Promise<void>, options?: MessageQueueListenOptions): Promise<void>;
|
|
56
56
|
/**
|
|
57
57
|
* Initializes the message queue table if it does not already exist.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/postgres",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.166+15dea3c0",
|
|
4
4
|
"description": "PostgreSQL drivers for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fedify",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"postgres": "^3.4.7",
|
|
77
|
-
"@fedify/fedify": "^2.0.0-dev.
|
|
77
|
+
"@fedify/fedify": "^2.0.0-dev.166+15dea3c0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@std/async": "npm:@jsr/std__async@^1.0.13",
|