@rudderstack/analytics-js 3.19.0-beta.pr.2278.cd218f2 → 3.20.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 +16 -0
- package/dist/npm/index.d.cts +16 -4
- package/dist/npm/index.d.mts +16 -4
- package/dist/npm/legacy/bundled/cjs/index.cjs +91 -81
- package/dist/npm/legacy/bundled/esm/index.mjs +91 -81
- package/dist/npm/legacy/bundled/umd/index.js +91 -81
- package/dist/npm/legacy/cjs/index.cjs +91 -81
- package/dist/npm/legacy/content-script/cjs/index.cjs +91 -81
- package/dist/npm/legacy/content-script/esm/index.mjs +91 -81
- package/dist/npm/legacy/content-script/umd/index.js +91 -81
- package/dist/npm/legacy/esm/index.mjs +91 -81
- package/dist/npm/legacy/umd/index.js +91 -81
- package/dist/npm/modern/bundled/cjs/index.cjs +91 -81
- package/dist/npm/modern/bundled/esm/index.mjs +91 -81
- package/dist/npm/modern/bundled/umd/index.js +91 -81
- package/dist/npm/modern/cjs/index.cjs +53 -44
- package/dist/npm/modern/content-script/cjs/index.cjs +91 -81
- package/dist/npm/modern/content-script/esm/index.mjs +91 -81
- package/dist/npm/modern/content-script/umd/index.js +91 -81
- package/dist/npm/modern/esm/index.mjs +53 -44
- package/dist/npm/modern/umd/index.js +53 -44
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,22 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [3.20.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.19.0...@rudderstack/analytics-js@3.20.0) (2025-06-11)
|
6
|
+
|
7
|
+
### Dependency Updates
|
8
|
+
|
9
|
+
* `@rudderstack/analytics-js-cookies` updated to version `0.4.26`
|
10
|
+
* `@rudderstack/analytics-js-common` updated to version `3.20.0`
|
11
|
+
* `@rudderstack/analytics-js-plugins` updated to version `3.10.0`
|
12
|
+
|
13
|
+
### Features
|
14
|
+
|
15
|
+
* add support to dynamically override destinations status ([#2266](https://github.com/rudderlabs/rudder-sdk-js/issues/2266)) ([5af2f22](https://github.com/rudderlabs/rudder-sdk-js/commit/5af2f22ebdcac4eb04d57ecb51efa427607bc849))
|
16
|
+
* dynamically clone destinations ([#2276](https://github.com/rudderlabs/rudder-sdk-js/issues/2276)) ([f136454](https://github.com/rudderlabs/rudder-sdk-js/commit/f1364541743b15d240ceed6d8f403c23b6984086))
|
17
|
+
* enable destination config override ([#2267](https://github.com/rudderlabs/rudder-sdk-js/issues/2267)) ([c570106](https://github.com/rudderlabs/rudder-sdk-js/commit/c5701065133d3fbddcff9072950ce935ef69e38a))
|
18
|
+
* enhance retry headers with RSA-prefixed naming ([#2279](https://github.com/rudderlabs/rudder-sdk-js/issues/2279)) ([c25b2bc](https://github.com/rudderlabs/rudder-sdk-js/commit/c25b2bc5bb4b5b41469065138eef88c2fa21a460))
|
19
|
+
* set proper grouping hash for all errors ([#2246](https://github.com/rudderlabs/rudder-sdk-js/issues/2246)) ([430c497](https://github.com/rudderlabs/rudder-sdk-js/commit/430c49782b95bf3e8de1f6a62b442b363208a66b))
|
20
|
+
|
5
21
|
## [3.19.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.18.2...@rudderstack/analytics-js@3.19.0) (2025-06-03)
|
6
22
|
|
7
23
|
### Dependency Updates
|
package/dist/npm/index.d.cts
CHANGED
@@ -561,13 +561,25 @@ interface IRudderAnalytics<T = any> {
|
|
561
561
|
}
|
562
562
|
|
563
563
|
type SDKError = unknown | Error | ErrorEvent | Event | PromiseRejectionEvent;
|
564
|
+
type ErrorInfo = {
|
565
|
+
error: SDKError;
|
566
|
+
context: string;
|
567
|
+
customMessage?: string;
|
568
|
+
errorType?: ErrorType;
|
569
|
+
groupingHash?: string | SDKError;
|
570
|
+
};
|
564
571
|
interface IErrorHandler {
|
565
572
|
httpClient: IHttpClient;
|
566
573
|
logger: ILogger;
|
567
574
|
init(): void;
|
568
|
-
onError(
|
575
|
+
onError(errorInfo: ErrorInfo): void;
|
569
576
|
leaveBreadcrumb(breadcrumb: string): void;
|
570
577
|
}
|
578
|
+
declare enum ErrorType {
|
579
|
+
HANDLEDEXCEPTION = "handledException",
|
580
|
+
UNHANDLEDEXCEPTION = "unhandledException",
|
581
|
+
UNHANDLEDREJECTION = "unhandledPromiseRejection"
|
582
|
+
}
|
571
583
|
|
572
584
|
interface IRequestConfig {
|
573
585
|
url: string;
|
@@ -578,6 +590,7 @@ interface IRequestConfig {
|
|
578
590
|
type ResponseDetails = {
|
579
591
|
response: string;
|
580
592
|
error?: Error;
|
593
|
+
timedOut?: boolean;
|
581
594
|
xhr?: XMLHttpRequest;
|
582
595
|
options: IXHRRequestOptions;
|
583
596
|
};
|
@@ -611,13 +624,12 @@ interface IHttpClient {
|
|
611
624
|
interface IExternalSourceLoadConfig {
|
612
625
|
url: string;
|
613
626
|
id: string;
|
614
|
-
callback?(id?:
|
627
|
+
callback?(id: string, error?: SDKError): void;
|
615
628
|
async?: boolean;
|
616
629
|
timeout?: number;
|
617
630
|
extraAttributes?: Record<string, string>;
|
618
631
|
}
|
619
632
|
interface IExternalSrcLoader {
|
620
|
-
errorHandler: IErrorHandler;
|
621
633
|
logger: ILogger;
|
622
634
|
timeout: number;
|
623
635
|
loadJSFile(config: IExternalSourceLoadConfig): void;
|
@@ -788,7 +800,7 @@ declare class Store implements IStore {
|
|
788
800
|
/**
|
789
801
|
* Handle errors
|
790
802
|
*/
|
791
|
-
onError(error: unknown): void;
|
803
|
+
onError(error: unknown, customMessage?: string, groupingHash?: string): void;
|
792
804
|
}
|
793
805
|
//# sourceMappingURL=Store.d.ts.map
|
794
806
|
|
package/dist/npm/index.d.mts
CHANGED
@@ -561,13 +561,25 @@ interface IRudderAnalytics<T = any> {
|
|
561
561
|
}
|
562
562
|
|
563
563
|
type SDKError = unknown | Error | ErrorEvent | Event | PromiseRejectionEvent;
|
564
|
+
type ErrorInfo = {
|
565
|
+
error: SDKError;
|
566
|
+
context: string;
|
567
|
+
customMessage?: string;
|
568
|
+
errorType?: ErrorType;
|
569
|
+
groupingHash?: string | SDKError;
|
570
|
+
};
|
564
571
|
interface IErrorHandler {
|
565
572
|
httpClient: IHttpClient;
|
566
573
|
logger: ILogger;
|
567
574
|
init(): void;
|
568
|
-
onError(
|
575
|
+
onError(errorInfo: ErrorInfo): void;
|
569
576
|
leaveBreadcrumb(breadcrumb: string): void;
|
570
577
|
}
|
578
|
+
declare enum ErrorType {
|
579
|
+
HANDLEDEXCEPTION = "handledException",
|
580
|
+
UNHANDLEDEXCEPTION = "unhandledException",
|
581
|
+
UNHANDLEDREJECTION = "unhandledPromiseRejection"
|
582
|
+
}
|
571
583
|
|
572
584
|
interface IRequestConfig {
|
573
585
|
url: string;
|
@@ -578,6 +590,7 @@ interface IRequestConfig {
|
|
578
590
|
type ResponseDetails = {
|
579
591
|
response: string;
|
580
592
|
error?: Error;
|
593
|
+
timedOut?: boolean;
|
581
594
|
xhr?: XMLHttpRequest;
|
582
595
|
options: IXHRRequestOptions;
|
583
596
|
};
|
@@ -611,13 +624,12 @@ interface IHttpClient {
|
|
611
624
|
interface IExternalSourceLoadConfig {
|
612
625
|
url: string;
|
613
626
|
id: string;
|
614
|
-
callback?(id?:
|
627
|
+
callback?(id: string, error?: SDKError): void;
|
615
628
|
async?: boolean;
|
616
629
|
timeout?: number;
|
617
630
|
extraAttributes?: Record<string, string>;
|
618
631
|
}
|
619
632
|
interface IExternalSrcLoader {
|
620
|
-
errorHandler: IErrorHandler;
|
621
633
|
logger: ILogger;
|
622
634
|
timeout: number;
|
623
635
|
loadJSFile(config: IExternalSourceLoadConfig): void;
|
@@ -788,7 +800,7 @@ declare class Store implements IStore {
|
|
788
800
|
/**
|
789
801
|
* Handle errors
|
790
802
|
*/
|
791
|
-
onError(error: unknown): void;
|
803
|
+
onError(error: unknown, customMessage?: string, groupingHash?: string): void;
|
792
804
|
}
|
793
805
|
//# sourceMappingURL=Store.d.ts.map
|
794
806
|
|