@trafficwar/node 3.0.0 → 4.0.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.cts CHANGED
@@ -57,7 +57,7 @@ interface TrafficWarQueueOptions {
57
57
  flushIntervalMs?: number;
58
58
  /** Maximum number of unacknowledged events held by this client. */
59
59
  maxQueueSize?: number;
60
- /** Receives errors from automatic background flushes. */
60
+ /** Receives automatic event-delivery and catalog-registration errors. */
61
61
  onError?: TrafficWarErrorHandler;
62
62
  }
63
63
  interface TrafficWarOptions extends TrafficWarQueueOptions {
@@ -65,23 +65,8 @@ interface TrafficWarOptions extends TrafficWarQueueOptions {
65
65
  baseUrl?: string | URL;
66
66
  /** Print batch lifecycle diagnostics without event payloads or credentials. */
67
67
  debug?: boolean;
68
- /**
69
- * At startup, statically scan application source for `capture()` calls and
70
- * print each pair whose `event` and `label` resolve to fixed strings.
71
- * Calls with an unresolved or missing value are omitted. Defaults to `false`.
72
- */
68
+ /** Log successfully registered new event/label pairs. Defaults to false. */
73
69
  verbose?: boolean;
74
- /**
75
- * Require a complete startup catalog of fixed event/label pairs. Unresolved,
76
- * empty, or failed scans disable capture; unlisted runtime pairs are rejected.
77
- * Defaults to true. Set false to opt out. Does not depend on verbose logging.
78
- */
79
- strictCatalog?: boolean;
80
- /**
81
- * Directory scanned when `verbose` or `strictCatalog` is true. Defaults to
82
- * the process working directory.
83
- */
84
- catalogRoot?: string;
85
70
  timeoutMs?: number;
86
71
  maxRetries?: number;
87
72
  compression?: CompressionMode;
@@ -112,7 +97,6 @@ declare class TrafficWar {
112
97
  readonly baseUrl: string;
113
98
  readonly debug: boolean;
114
99
  readonly verbose: boolean;
115
- readonly strictCatalog: boolean;
116
100
  readonly timeoutMs: number;
117
101
  readonly maxRetries: number;
118
102
  readonly compression: CompressionMode;
@@ -120,8 +104,6 @@ declare class TrafficWar {
120
104
  readonly flushIntervalMs: number;
121
105
  readonly maxQueueSize: number;
122
106
  constructor(options: TrafficWarOptions);
123
- /** False when strictCatalog disabled capture at startup; recreate after fixing source. */
124
- get captureEnabled(): boolean;
125
107
  capture(eventOrEvents: TrafficWarEvent | readonly TrafficWarEvent[]): void;
126
108
  /**
127
109
  * @deprecated Pass the array directly to capture().
package/dist/index.d.ts CHANGED
@@ -57,7 +57,7 @@ interface TrafficWarQueueOptions {
57
57
  flushIntervalMs?: number;
58
58
  /** Maximum number of unacknowledged events held by this client. */
59
59
  maxQueueSize?: number;
60
- /** Receives errors from automatic background flushes. */
60
+ /** Receives automatic event-delivery and catalog-registration errors. */
61
61
  onError?: TrafficWarErrorHandler;
62
62
  }
63
63
  interface TrafficWarOptions extends TrafficWarQueueOptions {
@@ -65,23 +65,8 @@ interface TrafficWarOptions extends TrafficWarQueueOptions {
65
65
  baseUrl?: string | URL;
66
66
  /** Print batch lifecycle diagnostics without event payloads or credentials. */
67
67
  debug?: boolean;
68
- /**
69
- * At startup, statically scan application source for `capture()` calls and
70
- * print each pair whose `event` and `label` resolve to fixed strings.
71
- * Calls with an unresolved or missing value are omitted. Defaults to `false`.
72
- */
68
+ /** Log successfully registered new event/label pairs. Defaults to false. */
73
69
  verbose?: boolean;
74
- /**
75
- * Require a complete startup catalog of fixed event/label pairs. Unresolved,
76
- * empty, or failed scans disable capture; unlisted runtime pairs are rejected.
77
- * Defaults to true. Set false to opt out. Does not depend on verbose logging.
78
- */
79
- strictCatalog?: boolean;
80
- /**
81
- * Directory scanned when `verbose` or `strictCatalog` is true. Defaults to
82
- * the process working directory.
83
- */
84
- catalogRoot?: string;
85
70
  timeoutMs?: number;
86
71
  maxRetries?: number;
87
72
  compression?: CompressionMode;
@@ -112,7 +97,6 @@ declare class TrafficWar {
112
97
  readonly baseUrl: string;
113
98
  readonly debug: boolean;
114
99
  readonly verbose: boolean;
115
- readonly strictCatalog: boolean;
116
100
  readonly timeoutMs: number;
117
101
  readonly maxRetries: number;
118
102
  readonly compression: CompressionMode;
@@ -120,8 +104,6 @@ declare class TrafficWar {
120
104
  readonly flushIntervalMs: number;
121
105
  readonly maxQueueSize: number;
122
106
  constructor(options: TrafficWarOptions);
123
- /** False when strictCatalog disabled capture at startup; recreate after fixing source. */
124
- get captureEnabled(): boolean;
125
107
  capture(eventOrEvents: TrafficWarEvent | readonly TrafficWarEvent[]): void;
126
108
  /**
127
109
  * @deprecated Pass the array directly to capture().