bunqueue 1.6.8 → 1.8.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/dist/application/queueManager.d.ts +4 -0
- package/dist/application/queueManager.d.ts.map +1 -1
- package/dist/application/queueManager.js +24 -2
- package/dist/application/queueManager.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +1 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/queue.d.ts +25 -5
- package/dist/client/queue.d.ts.map +1 -1
- package/dist/client/queue.js +285 -41
- package/dist/client/queue.js.map +1 -1
- package/dist/client/tcpClient.d.ts +72 -0
- package/dist/client/tcpClient.d.ts.map +1 -0
- package/dist/client/tcpClient.js +371 -0
- package/dist/client/tcpClient.js.map +1 -0
- package/dist/client/tcpPool.d.ts +41 -0
- package/dist/client/tcpPool.d.ts.map +1 -0
- package/dist/client/tcpPool.js +110 -0
- package/dist/client/tcpPool.js.map +1 -0
- package/dist/client/types.d.ts +24 -1
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/types.js.map +1 -1
- package/dist/client/worker.d.ts +37 -5
- package/dist/client/worker.d.ts.map +1 -1
- package/dist/client/worker.js +320 -45
- package/dist/client/worker.js.map +1 -1
- package/dist/domain/types/command.d.ts +16 -1
- package/dist/domain/types/command.d.ts.map +1 -1
- package/dist/infrastructure/backup/s3Backup.d.ts.map +1 -1
- package/dist/infrastructure/backup/s3Backup.js +2 -1
- package/dist/infrastructure/backup/s3Backup.js.map +1 -1
- package/dist/infrastructure/server/handler.d.ts.map +1 -1
- package/dist/infrastructure/server/handler.js +7 -1
- package/dist/infrastructure/server/handler.js.map +1 -1
- package/dist/infrastructure/server/handlers/core.d.ts +1 -1
- package/dist/infrastructure/server/handlers/core.d.ts.map +1 -1
- package/dist/infrastructure/server/handlers/core.js +12 -3
- package/dist/infrastructure/server/handlers/core.js.map +1 -1
- package/dist/infrastructure/server/handlers/monitoring.d.ts +4 -1
- package/dist/infrastructure/server/handlers/monitoring.d.ts.map +1 -1
- package/dist/infrastructure/server/handlers/monitoring.js +18 -0
- package/dist/infrastructure/server/handlers/monitoring.js.map +1 -1
- package/dist/infrastructure/server/http.d.ts.map +1 -1
- package/dist/infrastructure/server/http.js +2 -1
- package/dist/infrastructure/server/http.js.map +1 -1
- package/dist/infrastructure/server/rateLimiter.js +1 -1
- package/dist/infrastructure/server/rateLimiter.js.map +1 -1
- package/dist/mcp/index.js +2 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/shared/version.d.ts +1 -1
- package/dist/shared/version.d.ts.map +1 -1
- package/dist/shared/version.js +3 -27
- package/dist/shared/version.js.map +1 -1
- package/package.json +2 -2
package/dist/shared/version.js
CHANGED
|
@@ -1,30 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Package version -
|
|
2
|
+
* Package version - imported from package.json
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
function getVersion() {
|
|
7
|
-
try {
|
|
8
|
-
// Try to read from package.json in different possible locations
|
|
9
|
-
const paths = [
|
|
10
|
-
join(dirname(import.meta.dir), '..', 'package.json'),
|
|
11
|
-
join(process.cwd(), 'package.json'),
|
|
12
|
-
];
|
|
13
|
-
for (const path of paths) {
|
|
14
|
-
try {
|
|
15
|
-
const pkg = JSON.parse(readFileSync(path, 'utf-8'));
|
|
16
|
-
if (pkg.version)
|
|
17
|
-
return pkg.version;
|
|
18
|
-
}
|
|
19
|
-
catch {
|
|
20
|
-
// Try next path
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
catch {
|
|
25
|
-
// Fallback
|
|
26
|
-
}
|
|
27
|
-
return '1.6.0'; // Fallback version
|
|
28
|
-
}
|
|
29
|
-
export const VERSION = getVersion();
|
|
4
|
+
import pkg from '../../package.json';
|
|
5
|
+
export const VERSION = pkg.version;
|
|
30
6
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/shared/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/shared/version.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunqueue",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "High-performance job queue server written in Bun. SQLite persistence, cron scheduling, priorities, retries, DLQ, webhooks. Minimal dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"start": "bun run src/main.ts",
|
|
44
44
|
"build": "bun build --compile --minify src/main.ts --outfile dist/bunqueue",
|
|
45
45
|
"build:lib": "tsc -p tsconfig.build.json",
|
|
46
|
-
"test": "bun test",
|
|
46
|
+
"test": "BUNQUEUE_EMBEDDED=1 bun test",
|
|
47
47
|
"bench": "bun run bench/throughput.ts && bun run bench/latency.ts",
|
|
48
48
|
"bench:throughput": "bun run bench/throughput.ts",
|
|
49
49
|
"bench:latency": "bun run bench/latency.ts",
|