@spotify-confidence/csr-common 0.17.2 → 0.17.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.17.3](https://github.com/spotify/confidence-sdk-js/compare/csr-common-v0.17.2...csr-common-v0.17.3) (2026-06-16)
4
+
5
+
6
+ ### ✨ New Features
7
+
8
+ * emit flag evaluations into session recordings ([#369](https://github.com/spotify/confidence-sdk-js/issues/369)) ([3728c6d](https://github.com/spotify/confidence-sdk-js/commit/3728c6d682f97c3b2f18c8979dc91c50328b2345))
9
+
3
10
  ## [0.17.2](https://github.com/spotify/confidence-sdk-js/compare/csr-common-v0.17.1...csr-common-v0.17.2) (2026-06-15)
4
11
 
5
12
 
package/dist/index.d.cts CHANGED
@@ -198,6 +198,13 @@ type MeasurePluginData = {
198
198
  value?: number;
199
199
  };
200
200
  };
201
+ type FlagEvaluationPluginData = {
202
+ plugin: "csr:flagEvaluation";
203
+ payload: {
204
+ flagKey: string;
205
+ variant: string;
206
+ };
207
+ };
201
208
  /**
202
209
  * Closed union of every Custom event we emit. Add a new variant here when
203
210
  * introducing a new tag — emitting an unregistered tag is a TS error.
@@ -236,4 +243,4 @@ declare function validateKey(key: string): string | null;
236
243
  declare function validateTagValue(value: string | undefined): string | null;
237
244
  declare function validateMeasureValue(value: number | undefined): string | null;
238
245
  //#endregion
239
- export { type ClickCustomData, type ClientContext, type ConsoleLogLevel, type ConsoleLogPluginData, type CustomEventData, type DeadClickCustomData, type ElementDescriptor, type FormFieldReEditCustomData, type Frame, IncrementalSource, type InputCustomData, MAX_DISTINCT_KEYS, MAX_KEY_LENGTH, MAX_TAG_VALUE_LENGTH, MAX_VALUES_PER_KEY, type MeasurePluginData, MouseInteractions, type NetworkRequestInitiator, type NetworkRequestPluginData, type RageClickCustomData, type RecordingEvent, RecordingEventType, type RouteChangeCustomData, type RouteChangePayload, type RouteChangePluginData, type RouteChangeTrigger, type ScrollBackCustomData, SerializedNodeType, type TabRefocusCustomData, type TabUnfocusCustomData, type TabVisibilityPluginData, type TagPluginData, type UserAgentContext, stripUrl, validateKey, validateMeasureValue, validateTagValue };
246
+ export { type ClickCustomData, type ClientContext, type ConsoleLogLevel, type ConsoleLogPluginData, type CustomEventData, type DeadClickCustomData, type ElementDescriptor, type FlagEvaluationPluginData, type FormFieldReEditCustomData, type Frame, IncrementalSource, type InputCustomData, MAX_DISTINCT_KEYS, MAX_KEY_LENGTH, MAX_TAG_VALUE_LENGTH, MAX_VALUES_PER_KEY, type MeasurePluginData, MouseInteractions, type NetworkRequestInitiator, type NetworkRequestPluginData, type RageClickCustomData, type RecordingEvent, RecordingEventType, type RouteChangeCustomData, type RouteChangePayload, type RouteChangePluginData, type RouteChangeTrigger, type ScrollBackCustomData, SerializedNodeType, type TabRefocusCustomData, type TabUnfocusCustomData, type TabVisibilityPluginData, type TagPluginData, type UserAgentContext, stripUrl, validateKey, validateMeasureValue, validateTagValue };
package/dist/index.d.ts CHANGED
@@ -198,6 +198,13 @@ type MeasurePluginData = {
198
198
  value?: number;
199
199
  };
200
200
  };
201
+ type FlagEvaluationPluginData = {
202
+ plugin: "csr:flagEvaluation";
203
+ payload: {
204
+ flagKey: string;
205
+ variant: string;
206
+ };
207
+ };
201
208
  /**
202
209
  * Closed union of every Custom event we emit. Add a new variant here when
203
210
  * introducing a new tag — emitting an unregistered tag is a TS error.
@@ -236,4 +243,4 @@ declare function validateKey(key: string): string | null;
236
243
  declare function validateTagValue(value: string | undefined): string | null;
237
244
  declare function validateMeasureValue(value: number | undefined): string | null;
238
245
  //#endregion
239
- export { type ClickCustomData, type ClientContext, type ConsoleLogLevel, type ConsoleLogPluginData, type CustomEventData, type DeadClickCustomData, type ElementDescriptor, type FormFieldReEditCustomData, type Frame, IncrementalSource, type InputCustomData, MAX_DISTINCT_KEYS, MAX_KEY_LENGTH, MAX_TAG_VALUE_LENGTH, MAX_VALUES_PER_KEY, type MeasurePluginData, MouseInteractions, type NetworkRequestInitiator, type NetworkRequestPluginData, type RageClickCustomData, type RecordingEvent, RecordingEventType, type RouteChangeCustomData, type RouteChangePayload, type RouteChangePluginData, type RouteChangeTrigger, type ScrollBackCustomData, SerializedNodeType, type TabRefocusCustomData, type TabUnfocusCustomData, type TabVisibilityPluginData, type TagPluginData, type UserAgentContext, stripUrl, validateKey, validateMeasureValue, validateTagValue };
246
+ export { type ClickCustomData, type ClientContext, type ConsoleLogLevel, type ConsoleLogPluginData, type CustomEventData, type DeadClickCustomData, type ElementDescriptor, type FlagEvaluationPluginData, type FormFieldReEditCustomData, type Frame, IncrementalSource, type InputCustomData, MAX_DISTINCT_KEYS, MAX_KEY_LENGTH, MAX_TAG_VALUE_LENGTH, MAX_VALUES_PER_KEY, type MeasurePluginData, MouseInteractions, type NetworkRequestInitiator, type NetworkRequestPluginData, type RageClickCustomData, type RecordingEvent, RecordingEventType, type RouteChangeCustomData, type RouteChangePayload, type RouteChangePluginData, type RouteChangeTrigger, type ScrollBackCustomData, SerializedNodeType, type TabRefocusCustomData, type TabUnfocusCustomData, type TabVisibilityPluginData, type TagPluginData, type UserAgentContext, stripUrl, validateKey, validateMeasureValue, validateTagValue };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotify-confidence/csr-common",
3
3
  "license": "Apache-2.0",
4
- "version": "0.17.2",
4
+ "version": "0.17.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/spotify/confidence-sdk-js.git",
package/src/events.ts CHANGED
@@ -217,6 +217,14 @@ export type MeasurePluginData = {
217
217
  };
218
218
  };
219
219
 
220
+ export type FlagEvaluationPluginData = {
221
+ plugin: 'csr:flagEvaluation';
222
+ payload: {
223
+ flagKey: string;
224
+ variant: string;
225
+ };
226
+ };
227
+
220
228
  /**
221
229
  * Closed union of every Custom event we emit. Add a new variant here when
222
230
  * introducing a new tag — emitting an unregistered tag is a TS error.
package/src/index.ts CHANGED
@@ -25,6 +25,7 @@ export {
25
25
  type RouteChangePluginData,
26
26
  type TagPluginData,
27
27
  type MeasurePluginData,
28
+ type FlagEvaluationPluginData,
28
29
  } from './events';
29
30
 
30
31
  export { stripUrl } from './url';