@zintrust/core 0.1.35 → 0.1.37

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zintrust/core",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "Production-grade TypeScript backend framework for JavaScript",
5
5
  "homepage": "https://zintrust.com",
6
6
  "repository": {
@@ -105,7 +105,7 @@ const gracefulShutdown = async (signal) => {
105
105
  try {
106
106
  const { createRequire } = await import('../node-singletons/module.js');
107
107
  const require = createRequire(import.meta.url);
108
- const workers = require('../../packages/workers/src/index.js');
108
+ const workers = require('@zintrust/workers');
109
109
  const workerBudgetMs = Math.min(15000, remainingMs());
110
110
  await withTimeout(workers.WorkerShutdown.shutdown({
111
111
  signal,
@@ -144,16 +144,18 @@ async function useWorkerStarter() {
144
144
  try {
145
145
  const { createRequire } = await import('../node-singletons/module.js');
146
146
  const require = createRequire(import.meta.url);
147
- const workers = require('../../packages/workers/src/index.js');
148
- workerInit = workers.WorkerInit;
149
- await workers.WorkerInit.initialize({
150
- enableResourceMonitoring: true,
151
- enableHealthMonitoring: true,
152
- enableAutoScaling: false, // Disabled by default, enable via config
153
- registerShutdownHandlers: true,
154
- resourceMonitoringInterval: 60000,
155
- });
156
- Logger.info('Worker management system initialized');
147
+ const workers = require('@zintrust/workers');
148
+ if (workers?.WorkerInit !== undefined) {
149
+ workerInit = workers.WorkerInit;
150
+ await workers.WorkerInit.initialize({
151
+ enableResourceMonitoring: true,
152
+ enableHealthMonitoring: true,
153
+ enableAutoScaling: false, // Disabled by default, enable via config
154
+ registerShutdownHandlers: true,
155
+ resourceMonitoringInterval: 60000,
156
+ });
157
+ Logger.info('Worker management system initialized');
158
+ }
157
159
  }
158
160
  catch (error) {
159
161
  Logger.warn('Worker management system initialization failed (non-fatal)', error);
package/src/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @zintrust/core v0.1.35
2
+ * @zintrust/core v0.1.37
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-29T10:36:27.388Z
8
+ * Built: 2026-01-29T11:04:05.047Z
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-29T10:36:27.345Z'; // Replaced during build
24
+ export const ZINTRUST_BUILD_DATE = '2026-01-29T11:04:05.007Z'; // 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';