@rudderstack/analytics-js 3.17.0 → 3.18.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/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [3.18.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.17.0...@rudderstack/analytics-js@3.18.0) (2025-05-09)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `@rudderstack/analytics-js-cookies` updated to version `0.4.25`
10
+ * `@rudderstack/analytics-js-common` updated to version `3.19.0`
11
+ * `@rudderstack/analytics-js-plugins` updated to version `3.8.2`
12
+
13
+ ### Features
14
+
15
+ * group errors by message ([#2229](https://github.com/rudderlabs/rudder-sdk-js/issues/2229)) ([b448874](https://github.com/rudderlabs/rudder-sdk-js/commit/b448874fc39972576ebaf4d30f0bbd4883f69b7e))
16
+ * user session cut off ([#2209](https://github.com/rudderlabs/rudder-sdk-js/issues/2209)) ([8b7bcfd](https://github.com/rudderlabs/rudder-sdk-js/commit/8b7bcfd70155beb6f162a3b8ceec5735b67cce10))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * load api options boolean inputs normalization ([#2236](https://github.com/rudderlabs/rudder-sdk-js/issues/2236)) ([4c3532c](https://github.com/rudderlabs/rudder-sdk-js/commit/4c3532c9b9e34903c2f975d95cfa516324bbee04))
22
+
5
23
  ## [3.17.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.16.1...@rudderstack/analytics-js@3.17.0) (2025-04-25)
6
24
 
7
25
  ### Dependency Updates
@@ -129,32 +129,6 @@ interface IPluginsManager {
129
129
  }
130
130
  type PluginName = 'BeaconQueue' | 'CustomConsentManager' | 'DeviceModeDestinations' | 'DeviceModeTransformation' | 'ExternalAnonymousId' | 'GoogleLinker' | 'IubendaConsentManager' | 'KetchConsentManager' | 'NativeDestinationQueue' | 'OneTrustConsentManager' | 'StorageEncryption' | 'StorageEncryptionLegacy' | 'StorageMigrator' | 'XhrQueue';
131
131
 
132
- type OneTrustCookieCategory = {
133
- oneTrustCookieCategory: string;
134
- };
135
- type ConsentManagementMetadata = {
136
- providers: ConsentManagementProviderMetadata[];
137
- };
138
- type ConsentManagementProviderMetadata = {
139
- provider: ConsentManagementProvider;
140
- resolutionStrategy: ConsentResolutionStrategy;
141
- };
142
- type ConsentManagementProvider = 'iubenda' | 'oneTrust' | 'ketch' | 'custom';
143
- type ConsentResolutionStrategy = 'and' | 'or';
144
- type Consents = string[];
145
- type ConsentManagementOptions = {
146
- enabled?: boolean;
147
- provider?: ConsentManagementProvider;
148
- allowedConsentIds?: Consents;
149
- deniedConsentIds?: Consents;
150
- };
151
- type KetchConsentPurpose = {
152
- purpose: string;
153
- };
154
- type IubendaConsentPurpose = {
155
- purpose: string;
156
- };
157
-
158
132
  type UserSessionKey = 'userId' | 'userTraits' | 'anonymousId' | 'groupId' | 'groupTraits' | 'initialReferrer' | 'initialReferringDomain' | 'sessionInfo' | 'authToken';
159
133
 
160
134
  type StorageEncryptionVersion = 'legacy' | 'v3';
@@ -184,6 +158,40 @@ type CookieOptions = {
184
158
  };
185
159
  type CookieSameSite = 'Strict' | 'Lax' | 'None';
186
160
 
161
+ type OneTrustCookieCategory = {
162
+ oneTrustCookieCategory: string;
163
+ };
164
+ type ConsentManagementMetadata = {
165
+ providers: ConsentManagementProviderMetadata[];
166
+ };
167
+ type ConsentManagementProviderMetadata = {
168
+ provider: ConsentManagementProvider;
169
+ resolutionStrategy: ConsentResolutionStrategy;
170
+ };
171
+ type ConsentManagementProvider = 'iubenda' | 'oneTrust' | 'ketch' | 'custom';
172
+ type ConsentResolutionStrategy = 'and' | 'or';
173
+ type Consents = string[];
174
+ type ConsentManagementOptions = {
175
+ enabled?: boolean;
176
+ provider?: ConsentManagementProvider;
177
+ allowedConsentIds?: Consents;
178
+ deniedConsentIds?: Consents;
179
+ };
180
+ type KetchConsentPurpose = {
181
+ purpose: string;
182
+ };
183
+ type IubendaConsentPurpose = {
184
+ purpose: string;
185
+ };
186
+ type ConsentOptions = {
187
+ storage?: StorageOpts;
188
+ consentManagement?: ConsentManagementOptions;
189
+ integrations?: IntegrationOpts;
190
+ discardPreConsentEvents?: boolean;
191
+ sendPageEvent?: boolean;
192
+ trackConsent?: boolean;
193
+ };
194
+
187
195
  type UaChTrackLevel = 'none' | 'default' | 'full';
188
196
  /**
189
197
  * Represents the options parameter for anonymousId
@@ -194,9 +202,14 @@ type AnonymousIdOptions = {
194
202
  source?: string;
195
203
  };
196
204
  };
205
+ type SessionCutOffOptions = {
206
+ enabled: boolean;
207
+ duration?: number;
208
+ };
197
209
  type SessionOpts = {
198
210
  autoTrack?: boolean;
199
211
  timeout?: number;
212
+ cutOff?: SessionCutOffOptions;
200
213
  };
201
214
  type EventMapping = {
202
215
  from: string;
@@ -315,14 +328,6 @@ type LoadOptions = {
315
328
  dataServiceEndpoint?: string;
316
329
  autoTrack?: AutoTrackOptions;
317
330
  };
318
- type ConsentOptions = {
319
- storage?: StorageOpts;
320
- consentManagement?: ConsentManagementOptions;
321
- integrations?: IntegrationOpts;
322
- discardPreConsentEvents?: boolean;
323
- sendPageEvent?: boolean;
324
- trackConsent?: boolean;
325
- };
326
331
 
327
332
  type Address = {
328
333
  city?: string;
@@ -129,32 +129,6 @@ interface IPluginsManager {
129
129
  }
130
130
  type PluginName = 'BeaconQueue' | 'CustomConsentManager' | 'DeviceModeDestinations' | 'DeviceModeTransformation' | 'ExternalAnonymousId' | 'GoogleLinker' | 'IubendaConsentManager' | 'KetchConsentManager' | 'NativeDestinationQueue' | 'OneTrustConsentManager' | 'StorageEncryption' | 'StorageEncryptionLegacy' | 'StorageMigrator' | 'XhrQueue';
131
131
 
132
- type OneTrustCookieCategory = {
133
- oneTrustCookieCategory: string;
134
- };
135
- type ConsentManagementMetadata = {
136
- providers: ConsentManagementProviderMetadata[];
137
- };
138
- type ConsentManagementProviderMetadata = {
139
- provider: ConsentManagementProvider;
140
- resolutionStrategy: ConsentResolutionStrategy;
141
- };
142
- type ConsentManagementProvider = 'iubenda' | 'oneTrust' | 'ketch' | 'custom';
143
- type ConsentResolutionStrategy = 'and' | 'or';
144
- type Consents = string[];
145
- type ConsentManagementOptions = {
146
- enabled?: boolean;
147
- provider?: ConsentManagementProvider;
148
- allowedConsentIds?: Consents;
149
- deniedConsentIds?: Consents;
150
- };
151
- type KetchConsentPurpose = {
152
- purpose: string;
153
- };
154
- type IubendaConsentPurpose = {
155
- purpose: string;
156
- };
157
-
158
132
  type UserSessionKey = 'userId' | 'userTraits' | 'anonymousId' | 'groupId' | 'groupTraits' | 'initialReferrer' | 'initialReferringDomain' | 'sessionInfo' | 'authToken';
159
133
 
160
134
  type StorageEncryptionVersion = 'legacy' | 'v3';
@@ -184,6 +158,40 @@ type CookieOptions = {
184
158
  };
185
159
  type CookieSameSite = 'Strict' | 'Lax' | 'None';
186
160
 
161
+ type OneTrustCookieCategory = {
162
+ oneTrustCookieCategory: string;
163
+ };
164
+ type ConsentManagementMetadata = {
165
+ providers: ConsentManagementProviderMetadata[];
166
+ };
167
+ type ConsentManagementProviderMetadata = {
168
+ provider: ConsentManagementProvider;
169
+ resolutionStrategy: ConsentResolutionStrategy;
170
+ };
171
+ type ConsentManagementProvider = 'iubenda' | 'oneTrust' | 'ketch' | 'custom';
172
+ type ConsentResolutionStrategy = 'and' | 'or';
173
+ type Consents = string[];
174
+ type ConsentManagementOptions = {
175
+ enabled?: boolean;
176
+ provider?: ConsentManagementProvider;
177
+ allowedConsentIds?: Consents;
178
+ deniedConsentIds?: Consents;
179
+ };
180
+ type KetchConsentPurpose = {
181
+ purpose: string;
182
+ };
183
+ type IubendaConsentPurpose = {
184
+ purpose: string;
185
+ };
186
+ type ConsentOptions = {
187
+ storage?: StorageOpts;
188
+ consentManagement?: ConsentManagementOptions;
189
+ integrations?: IntegrationOpts;
190
+ discardPreConsentEvents?: boolean;
191
+ sendPageEvent?: boolean;
192
+ trackConsent?: boolean;
193
+ };
194
+
187
195
  type UaChTrackLevel = 'none' | 'default' | 'full';
188
196
  /**
189
197
  * Represents the options parameter for anonymousId
@@ -194,9 +202,14 @@ type AnonymousIdOptions = {
194
202
  source?: string;
195
203
  };
196
204
  };
205
+ type SessionCutOffOptions = {
206
+ enabled: boolean;
207
+ duration?: number;
208
+ };
197
209
  type SessionOpts = {
198
210
  autoTrack?: boolean;
199
211
  timeout?: number;
212
+ cutOff?: SessionCutOffOptions;
200
213
  };
201
214
  type EventMapping = {
202
215
  from: string;
@@ -315,14 +328,6 @@ type LoadOptions = {
315
328
  dataServiceEndpoint?: string;
316
329
  autoTrack?: AutoTrackOptions;
317
330
  };
318
- type ConsentOptions = {
319
- storage?: StorageOpts;
320
- consentManagement?: ConsentManagementOptions;
321
- integrations?: IntegrationOpts;
322
- discardPreConsentEvents?: boolean;
323
- sendPageEvent?: boolean;
324
- trackConsent?: boolean;
325
- };
326
331
 
327
332
  type Address = {
328
333
  city?: string;