@supacloud/commands 0.11.2 → 0.12.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 +1 -1
- package/dist/typebox.d.ts +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
`@supacloud/commands/typebox` exports `createTypeBoxTransactionalCommand`.
|
|
6
6
|
Pass `schemas: { input, result }` to derive both handler types and runtime
|
|
7
7
|
validation from TypeBox. The concrete store transaction type is retained,
|
|
8
|
-
including
|
|
8
|
+
including ZModel `transaction.db`. Typed callers use `execute` / `lookup`;
|
|
9
9
|
transport adapters use `executeUnknown` / `lookupUnknown`. Both validate at
|
|
10
10
|
runtime without coercion, defaults or transforms.
|
|
11
11
|
|
package/dist/typebox.d.ts
CHANGED
|
@@ -21,10 +21,10 @@ export type TypeBoxCommandDefinition<InputSchema extends TSchema, ResultSchema e
|
|
|
21
21
|
*/
|
|
22
22
|
export declare function createTypeBoxTransactionalCommand<const InputSchema extends TSchema, const ResultSchema extends TSchema, Store extends CommandStore<unknown>>(definition: TypeBoxCommandDefinition<InputSchema, ResultSchema, Store>): Readonly<{
|
|
23
23
|
kind: "transactional";
|
|
24
|
-
execute(identity: CommandIdentity, key: string, value: Static<InputSchema>, signal?: AbortSignal): Promise<import("@supacloud/contracts").DurableCommandReceipt<
|
|
25
|
-
lookup(identity: CommandIdentity, key: string, value: Static<InputSchema>): Promise<import("@supacloud/contracts").DurableCommandReceipt<
|
|
26
|
-
executeUnknown: (identity: CommandIdentity, key: string, value: unknown, signal?: AbortSignal) => Promise<import("@supacloud/contracts").DurableCommandReceipt<
|
|
27
|
-
lookupUnknown: (identity: CommandIdentity, key: string, value: unknown) => Promise<import("@supacloud/contracts").DurableCommandReceipt<
|
|
28
|
-
lookupByReference: (identity: CommandIdentity, key: string) => Promise<import("@supacloud/contracts").DurableCommandReceipt<
|
|
24
|
+
execute(identity: CommandIdentity, key: string, value: Static<InputSchema>, signal?: AbortSignal): Promise<import("@supacloud/contracts").DurableCommandReceipt<import("typebox").StaticType<[], "Encode", {}, {}, ResultSchema>>>;
|
|
25
|
+
lookup(identity: CommandIdentity, key: string, value: Static<InputSchema>): Promise<import("@supacloud/contracts").DurableCommandReceipt<import("typebox").StaticType<[], "Encode", {}, {}, ResultSchema>> | null>;
|
|
26
|
+
executeUnknown: (identity: CommandIdentity, key: string, value: unknown, signal?: AbortSignal) => Promise<import("@supacloud/contracts").DurableCommandReceipt<import("typebox").StaticType<[], "Encode", {}, {}, ResultSchema>>>;
|
|
27
|
+
lookupUnknown: (identity: CommandIdentity, key: string, value: unknown) => Promise<import("@supacloud/contracts").DurableCommandReceipt<import("typebox").StaticType<[], "Encode", {}, {}, ResultSchema>> | null>;
|
|
28
|
+
lookupByReference: (identity: CommandIdentity, key: string) => Promise<import("@supacloud/contracts").DurableCommandReceipt<import("typebox").StaticType<[], "Encode", {}, {}, ResultSchema>> | null>;
|
|
29
29
|
}>;
|
|
30
30
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/commands",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Storage-independent durable command execution and recovery",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"prepublishOnly": "bun run build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@supacloud/contracts": "0.
|
|
34
|
+
"@supacloud/contracts": "0.16.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typebox": "1.4.3",
|
|
38
38
|
"@types/bun": "1.4.4",
|
|
39
|
-
"typescript": "7.0
|
|
39
|
+
"typescript": "7.1.0-beta"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"typebox": "1.4.3"
|