unnbound-logger-sdk 3.1.1 → 3.2.0-beta.1

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
@@ -15,5 +15,5 @@ export { startSpan } from './span';
15
15
  export type { UnnboundContext } from './storage';
16
16
  export { storage, withStorage } from './storage';
17
17
  export { getTraceId, withTrace } from './trace';
18
- export type { As2Operation, As2Outcome, As2Payload, EdiFormat, EdiOperation, EdiPayload, EdiX12Operation, EdiX12Payload, EventSource, HttpMethod, HttpPayload, Log, LogLevel, LogType, Maybe, SftpPayload, } from './types';
18
+ export type { As2Operation, As2Outcome, As2Payload, EdiEdifactOperation, EdiEdifactPayload, EdiFormat, EdiOperation, EdiPayload, EdiTransactionPayload, EdiX12Operation, EdiX12Payload, EventSource, HttpMethod, HttpPayload, Log, LogLevel, LogType, Maybe, SftpPayload, } from './types';
19
19
  export { defaultMessageHeaderKey, defaultTraceHeaderKey } from './types';
package/dist/types.d.ts CHANGED
@@ -53,16 +53,24 @@ export interface SftpPayload {
53
53
  exists?: string | false;
54
54
  }
55
55
  export type EdiX12Operation = 'fromX12' | 'toX12' | 'validateX12' | 'acknowledgeX12';
56
- export type EdiOperation = EdiX12Operation;
57
- export type EdiFormat = 'x12';
58
- export interface EdiX12Payload {
56
+ export type EdiEdifactOperation = 'fromEdifact' | 'toEdifact' | 'validateEdifact' | 'acknowledgeEdifact';
57
+ export type EdiOperation = EdiX12Operation | EdiEdifactOperation;
58
+ export type EdiFormat = 'x12' | 'edifact';
59
+ export interface EdiTransactionPayload {
59
60
  input: unknown;
60
61
  output: unknown;
61
62
  }
63
+ /** @deprecated Use EdiTransactionPayload — the shape is identical across formats. */
64
+ export type EdiX12Payload = EdiTransactionPayload;
65
+ /** @deprecated Use EdiTransactionPayload — the shape is identical across formats. */
66
+ export type EdiEdifactPayload = EdiTransactionPayload;
62
67
  export interface EdiPayload {
63
68
  operation: EdiOperation;
64
69
  type: EdiFormat;
65
- x12?: EdiX12Payload;
70
+ /** The exchanged transaction; `type` discriminates the format. */
71
+ transaction?: EdiTransactionPayload;
72
+ /** Legacy key written by pre-EDIFACT SDK versions — read-only. */
73
+ x12?: EdiTransactionPayload;
66
74
  }
67
75
  export type As2Operation = 'send' | 'deliver' | 'receive' | 'acknowledge' | 'mdn-generate' | 'mdn-deliver' | 'mdn-verify';
68
76
  export type As2Outcome = 'confirmed' | 'failed' | 'pending' | 'received' | 'duplicate' | 'inFlight' | 'parked' | 'delivered' | 'generated' | 'verified';
package/package.json CHANGED
@@ -1,19 +1,9 @@
1
1
  {
2
2
  "name": "unnbound-logger-sdk",
3
3
  "description": "A structured logging library with TypeScript support using Pino. Provides consistent, well-typed logging with automatic logId, workflowId, traceId, and deploymentId tracking across operational contexts.",
4
- "version": "3.1.1",
4
+ "version": "3.2.0-beta.1",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "scripts": {
8
- "build": "tsc",
9
- "test": "vitest run src",
10
- "typecheck": "tsc --noEmit",
11
- "format": "biome format --write .",
12
- "format:check": "biome format .",
13
- "prepublishOnly": "npm run build",
14
- "start:example": "tsx watch examples/node-express.ts",
15
- "version:bump": "npm version patch"
16
- },
17
7
  "keywords": [
18
8
  "logging",
19
9
  "structured-logging",
@@ -66,5 +56,14 @@
66
56
  "engines": {
67
57
  "node": ">=22"
68
58
  },
69
- "sideEffects": false
70
- }
59
+ "sideEffects": false,
60
+ "scripts": {
61
+ "build": "tsc",
62
+ "test": "vitest run src",
63
+ "typecheck": "tsc --noEmit",
64
+ "format": "biome format --write .",
65
+ "format:check": "biome format .",
66
+ "start:example": "tsx watch examples/node-express.ts",
67
+ "version:bump": "npm version patch"
68
+ }
69
+ }