@stacksjs/queue 0.75.529 → 0.75.535
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/batch-payload.d.ts +2 -2
- package/dist/job.d.ts +0 -13
- package/package.json +12 -12
package/dist/batch-payload.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** A terminal handler carries batch context, rather than membership in its lifecycle. */
|
|
2
2
|
export declare function batchMembershipId(payload: unknown): string | undefined;
|
|
3
3
|
/** Reserved membership metadata always wins over the caller's payload. */
|
|
4
|
-
export declare function batchMemberPayload(payload: unknown, batchId: string, index: number): {};
|
|
4
|
+
export declare function batchMemberPayload(payload: unknown, batchId: string, index: number): Record<string, unknown> & { _batchId: string, _batchIndex: number, _batchTerminalHandler: false };
|
|
5
5
|
/** Keep the existing identifier available to the handler without enrolling it again. */
|
|
6
|
-
export declare function batchTerminalPayload(payload: unknown, batchId: string): {};
|
|
6
|
+
export declare function batchTerminalPayload(payload: unknown, batchId: string): Record<string, unknown> & { _batchId: string, _batchTerminalHandler: true };
|
package/dist/job.d.ts
CHANGED
|
@@ -82,19 +82,6 @@ export declare function runJob(name: string, options?: { payload?: any; context?
|
|
|
82
82
|
* // Immediate (synchronous) execution, ignoring the queue
|
|
83
83
|
* await Jobs.dispatchNow('SendNotification', { message: 'Hello' })
|
|
84
84
|
* ```
|
|
85
|
-
* @defaultValue
|
|
86
|
-
* ```ts
|
|
87
|
-
* {
|
|
88
|
-
* make: <const N extends JobName>(name: N, payload?: JobPayload<N>) => JobBuilder,
|
|
89
|
-
* dispatch: <const N extends JobName>(name: N, payload?: JobPayload<N>) => Promise<void>,
|
|
90
|
-
* dispatchIf: <const N extends JobName>(condition: boolean, name: N, payload?: JobPayload<N>) => Promise<void>,
|
|
91
|
-
* dispatchUnless: <const N extends JobName>(condition: boolean, name: N, payload?: JobPayload<N>) => Promise<void>,
|
|
92
|
-
* dispatchNow: <const N extends JobName>(name: N, payload?: JobPayload<N>) => Promise<void>,
|
|
93
|
-
* dispatchAfter: <const N extends JobName>(seconds: number, name: N, payload?: JobPayload<N>) => JobBuilder,
|
|
94
|
-
* dispatchOnce: <const N extends JobName>(key: string, name: N, payload?: JobPayload<N>) => Promise<void>,
|
|
95
|
-
* dispatchAfterCommit: <const N extends JobName>(name: N, payload?: JobPayload<N>) => Promise<void>
|
|
96
|
-
* }
|
|
97
|
-
* ```
|
|
98
85
|
*/
|
|
99
86
|
export declare const Jobs: {
|
|
100
87
|
/** Construct a builder without dispatching — for chained option calls. */
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/queue",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.535",
|
|
6
6
|
"description": "The Stacks Queue system powered by bun-queue.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -63,23 +63,23 @@
|
|
|
63
63
|
"prepublishOnly": "bun run build"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@stacksjs/action-runner": "0.75.
|
|
66
|
+
"@stacksjs/action-runner": "0.75.535",
|
|
67
67
|
"@stacksjs/bun-queue": "^0.1.8",
|
|
68
|
-
"@stacksjs/cache": "0.75.
|
|
69
|
-
"@stacksjs/config": "0.75.
|
|
70
|
-
"@stacksjs/cron": "0.75.
|
|
71
|
-
"@stacksjs/database": "0.75.
|
|
72
|
-
"@stacksjs/env": "0.75.
|
|
73
|
-
"@stacksjs/error-handling": "0.75.
|
|
74
|
-
"@stacksjs/logging": "0.75.
|
|
75
|
-
"@stacksjs/path": "0.75.
|
|
68
|
+
"@stacksjs/cache": "0.75.535",
|
|
69
|
+
"@stacksjs/config": "0.75.535",
|
|
70
|
+
"@stacksjs/cron": "0.75.535",
|
|
71
|
+
"@stacksjs/database": "0.75.535",
|
|
72
|
+
"@stacksjs/env": "0.75.535",
|
|
73
|
+
"@stacksjs/error-handling": "0.75.535",
|
|
74
|
+
"@stacksjs/logging": "0.75.535",
|
|
75
|
+
"@stacksjs/path": "0.75.535"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"better-dx": "^0.2.24"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@stacksjs/email": "0.75.
|
|
82
|
-
"@stacksjs/router": "0.75.
|
|
81
|
+
"@stacksjs/email": "0.75.535",
|
|
82
|
+
"@stacksjs/router": "0.75.535"
|
|
83
83
|
},
|
|
84
84
|
"peerDependenciesMeta": {
|
|
85
85
|
"@stacksjs/email": {
|