@djangocfg/monitor 2.1.224 → 2.1.225

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": "@djangocfg/monitor",
3
- "version": "2.1.224",
3
+ "version": "2.1.225",
4
4
  "description": "Browser error and event monitoring SDK for django-cfg backends. Captures JS errors, network failures, console logs, and performance metrics.",
5
5
  "keywords": [
6
6
  "django",
@@ -83,7 +83,7 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@djangocfg/typescript-config": "^2.1.224",
86
+ "@djangocfg/typescript-config": "^2.1.225",
87
87
  "p-retry": "^6.2.0",
88
88
  "@types/node": "^24.7.2",
89
89
  "@types/react": "^19.1.0",
@@ -30,6 +30,7 @@ export function installJsErrorCapture(): () => void {
30
30
  user_agent: navigator.userAgent,
31
31
  project_name: config.project,
32
32
  environment: config.environment,
33
+ build_id: config.buildId ?? '',
33
34
  })
34
35
  } catch { /* never crash */ }
35
36
  }
@@ -55,6 +56,7 @@ export function installJsErrorCapture(): () => void {
55
56
  user_agent: navigator.userAgent,
56
57
  project_name: config.project,
57
58
  environment: config.environment,
59
+ build_id: config.buildId ?? '',
58
60
  })
59
61
  } catch { /* never crash */ }
60
62
  }
@@ -9,6 +9,8 @@ export interface MonitorConfig {
9
9
  project?: string
10
10
  /** Environment tag: production / staging / development */
11
11
  environment?: string
12
+ /** Next.js BUILD_ID for server-side source map deminification */
13
+ buildId?: string
12
14
  /** Flush interval in ms. Default: 5000 */
13
15
  flushInterval?: number
14
16
  /** Max events in buffer before immediate flush. Default: 20 */