@zintrust/core 0.1.31 → 0.1.32
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/package.json
CHANGED
package/src/boot/Application.js
CHANGED
|
@@ -126,7 +126,7 @@ const registerFrameworkShutdownHooks = (shutdownManager) => {
|
|
|
126
126
|
.catch(() => {
|
|
127
127
|
/* ignore import failures in restrictive runtimes */
|
|
128
128
|
});
|
|
129
|
-
import('
|
|
129
|
+
import('@zintrust/workers')
|
|
130
130
|
.then((mod) => {
|
|
131
131
|
shutdownManager.add(async () => mod.WorkerShutdown.shutdown({ signal: 'APP_SHUTDOWN', timeout: 5000, forceExit: false }));
|
|
132
132
|
})
|
package/src/boot/bootstrap.js
CHANGED
|
@@ -103,7 +103,7 @@ const gracefulShutdown = async (signal) => {
|
|
|
103
103
|
// Shutdown worker management system FIRST (before database closes)
|
|
104
104
|
if (appConfig.detectRuntime() === 'nodejs' || appConfig.detectRuntime() === 'lambda') {
|
|
105
105
|
try {
|
|
106
|
-
const { WorkerShutdown } = await import('
|
|
106
|
+
const { WorkerShutdown } = await import('@zintrust/workers');
|
|
107
107
|
const workerBudgetMs = Math.min(15000, remainingMs());
|
|
108
108
|
await withTimeout(WorkerShutdown.shutdown({ signal, timeout: workerBudgetMs, forceExit: false }), workerBudgetMs, 'Worker shutdown timed out');
|
|
109
109
|
}
|
|
@@ -136,7 +136,7 @@ async function useWorkerStarter() {
|
|
|
136
136
|
// Initialize worker management system
|
|
137
137
|
let workerInit = null;
|
|
138
138
|
try {
|
|
139
|
-
const { WorkerInit } = await import('
|
|
139
|
+
const { WorkerInit } = await import('@zintrust/workers');
|
|
140
140
|
workerInit = WorkerInit;
|
|
141
141
|
await WorkerInit.initialize({
|
|
142
142
|
enableResourceMonitoring: true,
|
|
@@ -13,7 +13,7 @@ let HealthMonitor;
|
|
|
13
13
|
let ResourceMonitor;
|
|
14
14
|
let workersModulePromise;
|
|
15
15
|
const loadWorkersModule = async () => {
|
|
16
|
-
workersModulePromise ??= import('
|
|
16
|
+
workersModulePromise ??= import('@zintrust/workers');
|
|
17
17
|
try {
|
|
18
18
|
return await workersModulePromise;
|
|
19
19
|
}
|
package/src/config/redis.js
CHANGED
|
@@ -29,7 +29,7 @@ export const getRedisUrl = (config) => {
|
|
|
29
29
|
export const ensureDriver = async (type) => {
|
|
30
30
|
if (type === 'publish') {
|
|
31
31
|
// Return Redis publish client with publish() method from package
|
|
32
|
-
const mod = (await import('
|
|
32
|
+
const mod = (await import('@zintrust/queue-redis'));
|
|
33
33
|
if (mod.createRedisPublishClient) {
|
|
34
34
|
return mod.createRedisPublishClient();
|
|
35
35
|
}
|
|
@@ -41,7 +41,7 @@ export const ensureDriver = async (type) => {
|
|
|
41
41
|
}
|
|
42
42
|
catch {
|
|
43
43
|
try {
|
|
44
|
-
const mod = (await import('
|
|
44
|
+
const mod = (await import('@zintrust/queue-redis'));
|
|
45
45
|
if (mod.RedisQueue !== undefined) {
|
|
46
46
|
Queue.register('redis', mod.RedisQueue);
|
|
47
47
|
}
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @zintrust/core v0.1.
|
|
2
|
+
* @zintrust/core v0.1.32
|
|
3
3
|
*
|
|
4
4
|
* ZinTrust Framework - Production-Grade TypeScript Backend
|
|
5
5
|
* Built for performance, type safety, and exceptional developer experience
|
|
6
6
|
*
|
|
7
7
|
* Build Information:
|
|
8
|
-
* Built: 2026-01-29T09:
|
|
8
|
+
* Built: 2026-01-29T09:39:33.045Z
|
|
9
9
|
* Node: >=20.0.0
|
|
10
10
|
* License: MIT
|
|
11
11
|
*
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* Available at runtime for debugging and health checks
|
|
22
22
|
*/
|
|
23
23
|
export const ZINTRUST_VERSION = '0.1.23';
|
|
24
|
-
export const ZINTRUST_BUILD_DATE = '2026-01-29T09:
|
|
24
|
+
export const ZINTRUST_BUILD_DATE = '2026-01-29T09:39:33.006Z'; // Replaced during build
|
|
25
25
|
import { Application } from './boot/Application.js';
|
|
26
26
|
import { AwsSigV4 } from './common/index.js';
|
|
27
27
|
import { SignedRequest } from './security/SignedRequest.js';
|