@zintrust/core 1.6.3 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zintrust/core",
3
- "version": "1.6.3",
3
+ "version": "1.7.0",
4
4
  "description": "Production-grade TypeScript backend framework for JavaScript",
5
5
  "homepage": "https://zintrust.com",
6
6
  "repository": {
package/src/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @zintrust/core v1.6.3
2
+ * @zintrust/core v1.7.0
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-04-30T17:02:09.486Z
8
+ * Built: 2026-04-30T21:18:49.322Z
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.41';
24
- export const ZINTRUST_BUILD_DATE = '2026-04-30T17:02:09.450Z'; // Replaced during build
24
+ export const ZINTRUST_BUILD_DATE = '2026-04-30T21:18:49.289Z'; // Replaced during build
25
25
  export { Application } from './boot/Application.js';
26
26
  export { AwsSigV4 } from './common/index.js';
27
27
  export { SignedRequest } from './security/SignedRequest.js';
@@ -1 +1 @@
1
- {"version":3,"file":"trace-runtime.d.ts","sourceRoot":"","sources":["../../../../src/runtime/plugins/trace-runtime.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG;QAAE,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxE,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,cAAc,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC;CACtC,CAAC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O,MAAM,YAAY,EAAE,eAIzB,CAAC;AAEH,eAAO,MAAM,sBAAsB,GACjC,QAAQ,OAAO,EACf,UAAU;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAAE,KAClE,IAEF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,OAAO,EACf,SAAS,OAAO,EAChB,UAAU;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAAE,KAClE,IAEF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,OAAO,OAAO,EACd,UAAU;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAChF,IASF,CAAC;AAWF,eAAO,MAAM,2BAA2B,QAAa,OAAO,CAAC,IAAI,CAqBhE,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { isNullish } from '../../helper/index.js';
1
2
  const fallbackTraceConfig = Object.freeze({
2
3
  merge: () => ({ enabled: false }),
3
4
  });
@@ -55,16 +56,27 @@ export const captureTraceException = (error, context) => {
55
56
  (module?.captureTraceException ?? fallbackCaptureTraceException)(error, context);
56
57
  });
57
58
  };
58
- const tryImportTraceRegisterModule = async (modulePath) => (await import(modulePath).catch(() => undefined));
59
+ const tryImport = async (specifier) => {
60
+ try {
61
+ const load = (await import(specifier));
62
+ return load;
63
+ }
64
+ catch {
65
+ return undefined;
66
+ }
67
+ };
59
68
  export const ensureSystemTraceRegistered = async () => {
60
69
  const module = await loadSystemTraceModule();
61
70
  if (module === undefined)
62
71
  return;
63
- let registerModule = await tryImportTraceRegisterModule('@zintrust/trace/register');
64
- registerModule ??= await tryImportTraceRegisterModule('@zintrust/trace/dist/register.js');
65
- registerModule ??= await tryImportTraceRegisterModule('../../../packages/trace/src/register.js');
72
+ let registerModule = await tryImport('@zintrust/trace/register');
73
+ if (isNullish(registerModule)) {
74
+ registerModule = (await import('@zintrust/' + 'trace/register').catch(() => undefined));
75
+ }
66
76
  const registerReady = registerModule?.registerTraceReady ?? registerModule?.default?.registerTraceReady;
67
- if (typeof registerReady !== 'function')
77
+ if (typeof registerReady === 'function') {
78
+ await Promise.resolve(registerReady()).catch(() => undefined);
68
79
  return;
69
- await Promise.resolve(registerReady()).catch(() => undefined);
80
+ }
81
+ await Promise.resolve(registerReady).catch(() => undefined);
70
82
  };
@@ -10,7 +10,7 @@ const tryImport = async (specifier) => {
10
10
  const loadTracePlugin = async () => {
11
11
  const importedPackagePlugin = await tryImport('@zintrust/trace/plugin');
12
12
  if (!importedPackagePlugin) {
13
- await import('../../../packages/trace/src/plugin.js').catch(() => undefined);
13
+ await import('@zintrust/' + 'trace/plugin').catch(() => undefined);
14
14
  }
15
15
  };
16
16
  export const ready = loadTracePlugin();
@@ -1,10 +1,7 @@
1
1
  /**
2
- * ZinTrust plugin auto-imports
3
- *
4
- * In real projects, this file is managed by `zin plugin install` and contains
5
- * side-effect imports (e.g. `@zintrust/db-sqlite/register`) that register
6
- * optional adapters/drivers into core registries.
7
- *
2
+ * Auto-generated fallback module.
3
+ * This file is created by scripts/ensure-worker-plugins.mjs when missing.
4
+ * It allows optional runtime plugin imports to resolve in CI/scaffolded setups.
8
5
  */
9
6
  export type {};
10
7
  export declare const __zintrustGeneratedPluginStub = "zintrust.plugins.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"zintrust.plugins.d.ts","sourceRoot":"","sources":["../../src/zintrust.plugins.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,YAAY,EAAE,CAAC;AAgBf,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;;AACnE,wBAAkB"}
1
+ {"version":3,"file":"zintrust.plugins.d.ts","sourceRoot":"","sources":["../../src/zintrust.plugins.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,YAAY,EAAE,CAAC;AAgBf,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;;AACnE,wBAAkB"}
@@ -1,10 +1,7 @@
1
1
  /**
2
- * ZinTrust plugin auto-imports
3
- *
4
- * In real projects, this file is managed by `zin plugin install` and contains
5
- * side-effect imports (e.g. `@zintrust/db-sqlite/register`) that register
6
- * optional adapters/drivers into core registries.
7
- *
2
+ * Auto-generated fallback module.
3
+ * This file is created by scripts/ensure-worker-plugins.mjs when missing.
4
+ * It allows optional runtime plugin imports to resolve in CI/scaffolded setups.
8
5
  */
9
6
  import * as TraceRuntime from './runtime/plugins/trace-runtime.js';
10
7
  globalThis.__zintrust_system_trace_plugin_requested__ = true;