@stacksjs/queue 0.75.80 → 0.75.81
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/index.d.ts +1 -1
- package/dist/job.d.ts +12 -2
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type { JobEnvelope, JobEnvelopeOptions, ParsedEnvelope } from './envelope
|
|
|
14
14
|
// at import time. Reach it through `getRedisQueue()` rather than a subpath: the
|
|
15
15
|
// package has one public entry, and the driver moving files should not be a
|
|
16
16
|
// breaking change for anyone.
|
|
17
|
-
export declare function getRedisQueue(): Promise<
|
|
17
|
+
export declare function getRedisQueue(): Promise<unknown>;
|
|
18
18
|
/**
|
|
19
19
|
* @stacksjs/queue
|
|
20
20
|
*
|
package/dist/job.d.ts
CHANGED
|
@@ -90,7 +90,8 @@ export declare function runJob(name: string, options?: { payload?: any; context?
|
|
|
90
90
|
* dispatchUnless: <const N extends JobName>(condition: boolean, name: N, payload?: JobPayload<N>) => Promise<void>,
|
|
91
91
|
* dispatchNow: <const N extends JobName>(name: N, payload?: JobPayload<N>) => Promise<void>,
|
|
92
92
|
* dispatchAfter: <const N extends JobName>(seconds: number, name: N, payload?: JobPayload<N>) => JobBuilder,
|
|
93
|
-
* dispatchOnce: <const N extends JobName>(key: string, name: N, payload?: JobPayload<N>) => Promise<void
|
|
93
|
+
* dispatchOnce: <const N extends JobName>(key: string, name: N, payload?: JobPayload<N>) => Promise<void>,
|
|
94
|
+
* dispatchAfterCommit: <const N extends JobName>(name: N, payload?: JobPayload<N>) => Promise<void>
|
|
94
95
|
* }
|
|
95
96
|
* ```
|
|
96
97
|
*/
|
|
@@ -112,7 +113,16 @@ export declare const Jobs: {
|
|
|
112
113
|
* (stacksjs/stacks#1872 Q-8). Equivalent to
|
|
113
114
|
* `Jobs.make(name, payload).withIdempotencyKey(key).dispatch()`.
|
|
114
115
|
*/
|
|
115
|
-
dispatchOnce: <const N extends JobName>(key: string, name: N, payload?: JobPayload<N>) => Promise<void
|
|
116
|
+
dispatchOnce: <const N extends JobName>(key: string, name: N, payload?: JobPayload<N>) => Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Explicitly defer to the surrounding transaction's commit
|
|
119
|
+
* (stacksjs/stacks#1882). Equivalent to
|
|
120
|
+
* `Jobs.make(name, payload).afterCommit().dispatch()`. Inside a
|
|
121
|
+
* `db.transaction(...)` this is the default behaviour — the
|
|
122
|
+
* helper exists for callers that want the intent visible at the
|
|
123
|
+
* call site for readability.
|
|
124
|
+
*/
|
|
125
|
+
dispatchAfterCommit: <const N extends JobName>(name: N, payload?: JobPayload<N>) => Promise<void>
|
|
116
126
|
};
|
|
117
127
|
/**
|
|
118
128
|
* Options for job dispatch
|
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.81",
|
|
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.81",
|
|
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.81",
|
|
69
|
+
"@stacksjs/config": "0.75.81",
|
|
70
|
+
"@stacksjs/cron": "0.75.81",
|
|
71
|
+
"@stacksjs/database": "0.75.81",
|
|
72
|
+
"@stacksjs/env": "0.75.81",
|
|
73
|
+
"@stacksjs/error-handling": "0.75.81",
|
|
74
|
+
"@stacksjs/logging": "0.75.81",
|
|
75
|
+
"@stacksjs/path": "0.75.81"
|
|
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.81",
|
|
82
|
+
"@stacksjs/router": "0.75.81"
|
|
83
83
|
},
|
|
84
84
|
"peerDependenciesMeta": {
|
|
85
85
|
"@stacksjs/email": {
|