@fixback/node 0.4.1 โ†’ 0.5.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/README.md CHANGED
@@ -8,7 +8,7 @@ Backend errors authenticate with the Project **secret key**, so they arrive
8
8
  **Internal** tier and tagged `platform: node`. Fleet-wide crash-loops collapse into a
9
9
  single Issue with a rising occurrence count instead of flooding your queue.
10
10
 
11
- > ๐Ÿ“– **Full documentation: [docs.fixback.dev/sdk/node](https://docs.fixback.dev/sdk/node)** โ€” guides, concepts, and the complete API reference.
11
+ > ๐Ÿ“– **Full documentation: [fixback-docs.dev.wemuda.com/sdk/node](https://fixback-docs.dev.wemuda.com/sdk/node)** โ€” guides, concepts, and the complete API reference.
12
12
 
13
13
  ## Install
14
14
 
@@ -43,6 +43,12 @@ That single call wires:
43
43
  `captureUncaughtException` / `captureUnhandledRejection` individually);
44
44
  - and the manual capture API below.
45
45
 
46
+ `apiUrl` (or `FIXBACK_API_URL`) defaults to `https://api.fixback.dev` โ€” the
47
+ eventual public origin, **not yet live**. Until it is, set it to the origin that
48
+ minted your secret key: the current wemuda-hosted API is
49
+ `https://fixback-api.dev.wemuda.com`, or your own origin for a self-hosted or
50
+ local deployment.
51
+
46
52
  ### Manual capture
47
53
 
48
54
  ```ts
package/dist/client.js CHANGED
@@ -146,13 +146,19 @@ class FixbackClient {
146
146
  }
147
147
  exports.FixbackClient = FixbackClient;
148
148
  /**
149
- * The built-in default scrub: re-sweep frame URLs through the shared-core scrubber,
150
- * and โ€” under the `captureBodies` opt-in โ€” redact PII (emails, bearer tokens, long
151
- * digit runs) from the captured request/response bodies before they leave the
152
- * process. Masking is the SDK's job (spec 0003 ยงC); ingest re-scrubs the same fields
153
- * as defence-in-depth.
149
+ * The built-in default scrub: redact PII from the error message (and name) now that
150
+ * they reach the wire (ADR 2026-09-17), re-sweep frame URLs through the shared-core
151
+ * scrubber, and โ€” under the `captureBodies` opt-in โ€” redact PII (emails, bearer
152
+ * tokens, long digit runs) from the captured request/response bodies before they
153
+ * leave the process. Masking is the SDK's job (spec 0003 ยงC); ingest re-scrubs the
154
+ * same fields as defence-in-depth. The fingerprint was computed from the raw text
155
+ * before this, so scrubbing never changes grouping.
154
156
  */
155
157
  function applyDefaultScrub(event) {
158
+ // The message can interpolate user data (`โ€ฆ for jane@acme.app`); the name is a
159
+ // class identifier, swept the same way for parity with the browser choke point.
160
+ event.type = (0, sdk_core_1.redactPii)(event.type);
161
+ event.value = (0, sdk_core_1.redactPii)(event.value);
156
162
  if (event.errorFrames && event.errorFrames.length > 0) {
157
163
  event.errorFrames = event.errorFrames.map((frame) => ({
158
164
  ...frame,
@@ -173,9 +179,17 @@ function applyDefaultScrub(event) {
173
179
  };
174
180
  }
175
181
  }
176
- /** Project the event onto the wire payload, dropping the event-only fields. */
182
+ /**
183
+ * Project the event onto the wire payload. The error class + message ride as the
184
+ * renamed `errorName` / `errorMessage` (ADR 2026-09-17) โ€” already scrubbed by
185
+ * {@link applyDefaultScrub}; `level` stays event-only. An empty message is dropped.
186
+ */
177
187
  function toPayload(event) {
178
188
  const payload = { errorSignature: event.errorSignature };
189
+ if (event.type)
190
+ payload.errorName = event.type;
191
+ if (event.value)
192
+ payload.errorMessage = event.value;
179
193
  if (event.handled !== undefined)
180
194
  payload.handled = event.handled;
181
195
  if (event.environment !== undefined)
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAsOH,oBAqBC;AAGD,8BAEC;AAGD,4CAEC;AAGD,wCAEC;AAGD,sBAEC;AAGD,sBAOC;AAvRD,gDAAqG;AAErG,qCAAgF;AAChF,uCAAiD;AACjD,uCAAqE;AACrE,mCAAuC;AACvC,2CAA+D;AA+B/D,wFAAwF;AACxF,SAAS,kBAAkB,CACzB,IAA+B,EAC/B,QAAmC;IAEnC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ;QAAE,OA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,8DAA8D;AAC9D,SAAgB,KAAK;IACnB,OAAO,YAAY,EAAE,KAAK,EAAE,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;AACpD,CAAC;AAED,8FAA8F;AAC9F,SAAgB,KAAK;IACnB,MAAM,OAAO,GAAG,YAAY,CAAC;IAC7B,MAAM,SAAS,GAAG,eAAe,CAAC;IAClC,YAAY,GAAG,IAAI,CAAC;IACpB,eAAe,GAAG,IAAI,CAAC;IACvB,IAAI,SAAS;QAAE,SAAS,EAAE,CAAC;IAC3B,OAAO,OAAO,EAAE,KAAK,EAAE,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;AAC/C,CAAC"}
package/dist/version.d.ts CHANGED
@@ -10,4 +10,4 @@
10
10
  * ever drift. Do not hand-edit this line to a value other than `package.json`'s
11
11
  * version.
12
12
  */
13
- export declare const NODE_SDK_VERSION = "0.4.1";
13
+ export declare const NODE_SDK_VERSION = "0.5.0";
package/dist/version.js CHANGED
@@ -13,5 +13,5 @@ exports.NODE_SDK_VERSION = void 0;
13
13
  * ever drift. Do not hand-edit this line to a value other than `package.json`'s
14
14
  * version.
15
15
  */
16
- exports.NODE_SDK_VERSION = "0.4.1";
16
+ exports.NODE_SDK_VERSION = "0.5.0";
17
17
  //# sourceMappingURL=version.js.map
package/dist/wire.d.ts CHANGED
@@ -55,10 +55,11 @@ export interface ServerContext {
55
55
  * `beforeSend` hook (spec ยงC) before transport. The hook may mutate it (to redact)
56
56
  * or return `null` to drop the event entirely.
57
57
  *
58
- * `type` and `value` (the error class and message) are here for the hook to inspect
59
- * and for the fingerprint, but are **not** put on the wire โ€” the ingest contract has
60
- * no slot for them (the fingerprint already encodes them, and error text is treated
61
- * as untrusted-derived, ADR-0016). `level` likewise rides only on the event.
58
+ * `type` and `value` (the error class and message) drive the fingerprint and are
59
+ * offered to the hook to inspect, and since ADR 2026-09-17 they also reach the wire โ€”
60
+ * renamed to `errorName` / `errorMessage`, scrubbed at the choke point โ€” so the
61
+ * server can title from the readable headline rather than the opaque fingerprint.
62
+ * `level` still rides only on the event (the ingest contract has no slot for it).
62
63
  */
63
64
  export interface FixbackErrorEvent {
64
65
  /** The cross-surface fingerprint (shared-core signature, ADR-0028) โ€” the fold key. */
@@ -99,6 +100,16 @@ export type BeforeSend = (event: FixbackErrorEvent) => FixbackErrorEvent | null;
99
100
  */
100
101
  export interface ServerErrorPayload {
101
102
  readonly errorSignature: string;
103
+ /**
104
+ * The error class / name (`TypeError`) and message, carried as first-class,
105
+ * scrubbed fields (ADR 2026-09-17). Previously the wire deliberately omitted them
106
+ * โ€” but the fingerprint that "already encoded them" is the opaque hash the server
107
+ * cannot title from, so the readable headline now rides here, redacted at the
108
+ * scrub choke point and fenced as Evidence server-side (ADR-0016). The message is
109
+ * omitted when the error carried none.
110
+ */
111
+ readonly errorName?: string;
112
+ readonly errorMessage?: string;
102
113
  readonly handled?: boolean;
103
114
  readonly environment?: string;
104
115
  readonly release?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fixback/node",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "The Fixback backend error SDK for Node servers โ€” one-call init, batched secret-key capture, process handlers, and Express + NestJS adapters.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,13 +44,13 @@
44
44
  "url": "git+https://github.com/wemuda/fixback.git",
45
45
  "directory": "packages/node"
46
46
  },
47
- "homepage": "https://docs.fixback.dev/sdk/node",
48
- "bugs": "https://docs.fixback.dev",
47
+ "homepage": "https://fixback-docs.dev.wemuda.com/sdk/node",
48
+ "bugs": "https://fixback-docs.dev.wemuda.com",
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@fixback/sdk-core": "0.7.0"
53
+ "@fixback/sdk-core": "0.8.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@nestjs/common": ">=10.0.0",