@aranova/tracking-next 0.7.0 → 0.7.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/server.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as TrackingParams } from './types-D0Vm9WRC.mjs';
1
+ import { c as TrackingParams } from './types-BPJLgMsG.mjs';
2
2
 
3
3
  /**
4
4
  * Read captured attribution params from Next.js server cookies.
package/dist/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as TrackingParams } from './types-D0Vm9WRC.js';
1
+ import { c as TrackingParams } from './types-BPJLgMsG.js';
2
2
 
3
3
  /**
4
4
  * Read captured attribution params from Next.js server cookies.
@@ -68,8 +68,14 @@ interface TrackingClientContext {
68
68
  page_title: string | null;
69
69
  /** Browser document referrer at client creation time. */
70
70
  referrer: string | null;
71
- /** Deployment environment label, e.g. `'production'`, `'development'`. */
72
- environment: TrackingEnvironment | null;
71
+ /**
72
+ * Deployment environment label, e.g. `'production'`, `'development'`.
73
+ *
74
+ * Always set — defaults to `'production'` when the consumer doesn't
75
+ * pass `environment` to the factory. Sending `null` would fail the
76
+ * backend's strict enum validation.
77
+ */
78
+ environment: TrackingEnvironment;
73
79
  /** All active gtag IDs loaded on this page, keyed by label. */
74
80
  active_gtag_ids: Record<string, string> | null;
75
81
  }
@@ -68,8 +68,14 @@ interface TrackingClientContext {
68
68
  page_title: string | null;
69
69
  /** Browser document referrer at client creation time. */
70
70
  referrer: string | null;
71
- /** Deployment environment label, e.g. `'production'`, `'development'`. */
72
- environment: TrackingEnvironment | null;
71
+ /**
72
+ * Deployment environment label, e.g. `'production'`, `'development'`.
73
+ *
74
+ * Always set — defaults to `'production'` when the consumer doesn't
75
+ * pass `environment` to the factory. Sending `null` would fail the
76
+ * backend's strict enum validation.
77
+ */
78
+ environment: TrackingEnvironment;
73
79
  /** All active gtag IDs loaded on this page, keyed by label. */
74
80
  active_gtag_ids: Record<string, string> | null;
75
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aranova/tracking-next",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "private": false,
5
5
  "description": "Next.js tracking utilities for Aranova client sites",
6
6
  "files": [