@rudderstack/analytics-js 3.15.2 → 3.16.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/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [3.16.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.16.0...@rudderstack/analytics-js@3.16.1) (2025-03-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * prevent cookie storage engine options init by default ([#2077](https://github.com/rudderlabs/rudder-sdk-js/issues/2077)) ([cf0e4d9](https://github.com/rudderlabs/rudder-sdk-js/commit/cf0e4d91a7174023f0027b042013de6ecaf6fcaf))
11
+
12
+ ## [3.16.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.15.2...@rudderstack/analytics-js@3.16.0) (2025-03-03)
13
+
14
+ ### Dependency Updates
15
+
16
+ * `@rudderstack/analytics-js-cookies` updated to version `0.4.23`
17
+ * `@rudderstack/analytics-js-common` updated to version `3.17.2`
18
+ * `@rudderstack/analytics-js-plugins` updated to version `3.8.0`
19
+
20
+ ### Features
21
+
22
+ * add events processing and retry headers ([#2066](https://github.com/rudderlabs/rudder-sdk-js/issues/2066)) ([3113030](https://github.com/rudderlabs/rudder-sdk-js/commit/311303098d053fd0ce87d9bf8393a800112958ae))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * avoid premature execution before sdk initialization ([#2056](https://github.com/rudderlabs/rudder-sdk-js/issues/2056)) ([9c7e2a6](https://github.com/rudderlabs/rudder-sdk-js/commit/9c7e2a6011e34ec2cd20925c1f8d79427297263a))
28
+ * handle edge cases in retry queue ([#2074](https://github.com/rudderlabs/rudder-sdk-js/issues/2074)) ([f9263b2](https://github.com/rudderlabs/rudder-sdk-js/commit/f9263b24170680023dfa1687c778b97557ef5e1b))
29
+
5
30
  ## [3.15.2](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.15.1...@rudderstack/analytics-js@3.15.2) (2025-02-24)
6
31
 
7
32
 
@@ -553,6 +553,7 @@ type SDKError = unknown | Error | ErrorEvent | Event | PromiseRejectionEvent;
553
553
  interface IErrorHandler {
554
554
  httpClient: IHttpClient;
555
555
  logger: ILogger;
556
+ init(): void;
556
557
  onError(error: SDKError, context?: string, customMessage?: string, errorType?: string): void;
557
558
  leaveBreadcrumb(breadcrumb: string): void;
558
559
  }
@@ -656,7 +657,7 @@ interface IStore {
656
657
  onError(error: unknown): void;
657
658
  }
658
659
  interface IStorage extends Storage {
659
- configure?(options: StorageOptions): void;
660
+ configure?(options?: StorageOptions): void;
660
661
  keys(): string[];
661
662
  isEnabled?: boolean;
662
663
  }
@@ -1113,6 +1114,7 @@ declare class RudderAnalytics implements IRudderAnalytics<IAnalytics> {
1113
1114
  defaultAnalyticsKey: string;
1114
1115
  logger: Logger;
1115
1116
  constructor();
1117
+ static initializeGlobalResources(): void;
1116
1118
  /**
1117
1119
  * Set instance to use if no specific writeKey is provided in methods
1118
1120
  * automatically for the first created instance
@@ -553,6 +553,7 @@ type SDKError = unknown | Error | ErrorEvent | Event | PromiseRejectionEvent;
553
553
  interface IErrorHandler {
554
554
  httpClient: IHttpClient;
555
555
  logger: ILogger;
556
+ init(): void;
556
557
  onError(error: SDKError, context?: string, customMessage?: string, errorType?: string): void;
557
558
  leaveBreadcrumb(breadcrumb: string): void;
558
559
  }
@@ -656,7 +657,7 @@ interface IStore {
656
657
  onError(error: unknown): void;
657
658
  }
658
659
  interface IStorage extends Storage {
659
- configure?(options: StorageOptions): void;
660
+ configure?(options?: StorageOptions): void;
660
661
  keys(): string[];
661
662
  isEnabled?: boolean;
662
663
  }
@@ -1113,6 +1114,7 @@ declare class RudderAnalytics implements IRudderAnalytics<IAnalytics> {
1113
1114
  defaultAnalyticsKey: string;
1114
1115
  logger: Logger;
1115
1116
  constructor();
1117
+ static initializeGlobalResources(): void;
1116
1118
  /**
1117
1119
  * Set instance to use if no specific writeKey is provided in methods
1118
1120
  * automatically for the first created instance