@rudderstack/analytics-js 3.1.1 → 3.2.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,22 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [3.2.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.1.1...@rudderstack/analytics-js@3.2.0) (2024-05-24)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `@rudderstack/analytics-js-common` updated to version `3.1.1`
10
+ * `@rudderstack/analytics-js-plugins` updated to version `3.1.1`
11
+
12
+ ### Features
13
+
14
+ * set server side cookies ([#1649](https://github.com/rudderlabs/rudder-sdk-js/issues/1649)) ([8b8ac8f](https://github.com/rudderlabs/rudder-sdk-js/commit/8b8ac8fb2b7fe0903fa383cfcd0388fe3022330c))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * user sessions behavior ([#1708](https://github.com/rudderlabs/rudder-sdk-js/issues/1708)) ([84e7174](https://github.com/rudderlabs/rudder-sdk-js/commit/84e71744612c8345dc22b8cb0c9362d104eb35e9))
20
+
5
21
  ## [3.1.1](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.1.0...@rudderstack/analytics-js@3.1.1) (2024-05-10)
6
22
 
7
23
  ### Dependency Updates
@@ -269,6 +269,8 @@ type LoadOptions = {
269
269
  consentManagement?: ConsentManagementOptions;
270
270
  sameDomainCookiesOnly?: boolean;
271
271
  externalAnonymousIdCookieName?: string;
272
+ useServerSideCookies?: boolean;
273
+ dataServiceEndpoint?: string;
272
274
  };
273
275
  type ConsentOptions = {
274
276
  storage?: StorageOpts;
@@ -568,8 +570,9 @@ type ResponseDetails = {
568
570
  xhr?: XMLHttpRequest;
569
571
  options: IXHRRequestOptions;
570
572
  };
573
+ type AsyncRequestCallback<T> = (data?: T | string | undefined, details?: ResponseDetails) => void;
571
574
  interface IAsyncRequestConfig<T> extends IRequestConfig {
572
- callback?(data?: T | string | undefined, details?: ResponseDetails): void;
575
+ callback?: AsyncRequestCallback<T>;
573
576
  }
574
577
  interface IXHRRequestOptions {
575
578
  method: HTTPClientMethod;