@myvitalrx/metadata-runtime 1.6.0 → 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/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { StructuredLogger } from '@api-hub/observability';
2
3
  import { S3Client } from '@aws-sdk/client-s3';
3
4
 
4
5
  /**
@@ -460,30 +461,6 @@ interface ProjectionCurrentPointer {
460
461
  projectionVersion: string;
461
462
  }
462
463
 
463
- interface LogEntry {
464
- event?: string;
465
- message?: string;
466
- err?: unknown;
467
- error?: unknown;
468
- [key: string]: unknown;
469
- }
470
-
471
- /**
472
- * Structured logger compatible with legacy `@api-hub/logger` {@link LogEntry} call style
473
- * (`logger.info({ event: 'x', ... } )`), backed by {@link getLogger} and AsyncLocalStorage context.
474
- */
475
- declare class StructuredLogger {
476
- private readonly persistentKeys;
477
- constructor(persistentKeys?: Record<string, unknown>);
478
- getPersistentKeys(): Record<string, unknown>;
479
- info(entry: LogEntry): void;
480
- warn(entry: LogEntry): void;
481
- error(entry: LogEntry): void;
482
- debug(entry: LogEntry): void;
483
- http(entry: LogEntry): void;
484
- verbose(entry: LogEntry): void;
485
- }
486
-
487
464
  declare const PUBLISHED_VALUE_SORT: {
488
465
  readonly SORT_ORDER: "sortOrder";
489
466
  readonly VALUE_CODE: "valueCode";
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
3
3
  import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb';
4
4
  import crypto, { createHash } from 'crypto';
5
- import { createLogger, createPerformanceTimer, getContext } from '@myvitalrx/platform-tools/observability';
5
+ import { createLogger, createPerformanceTimer, getContext } from '@api-hub/observability';
6
6
  import { AsyncLocalStorage } from 'async_hooks';
7
7
  import { GetObjectCommand, S3Client } from '@aws-sdk/client-s3';
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myvitalrx/metadata-runtime",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "MyVitalRx metadata runtime: projection cache, resolution, and refresh without calling the metadata registry",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",