@amplitude/analytics-browser 2.44.5 → 2.45.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.
Files changed (35) hide show
  1. package/README.md +1 -1
  2. package/lib/cjs/attribution/tracking-methods.d.ts +1 -1
  3. package/lib/cjs/attribution/tracking-methods.d.ts.map +1 -1
  4. package/lib/cjs/attribution/tracking-methods.js +10 -2
  5. package/lib/cjs/attribution/tracking-methods.js.map +1 -1
  6. package/lib/cjs/config.d.ts +1 -1
  7. package/lib/cjs/version.d.ts +1 -1
  8. package/lib/cjs/version.js +1 -1
  9. package/lib/cjs/version.js.map +1 -1
  10. package/lib/esm/attribution/tracking-methods.d.ts +1 -1
  11. package/lib/esm/attribution/tracking-methods.d.ts.map +1 -1
  12. package/lib/esm/attribution/tracking-methods.js +10 -2
  13. package/lib/esm/attribution/tracking-methods.js.map +1 -1
  14. package/lib/esm/config.d.ts +1 -1
  15. package/lib/esm/version.d.ts +1 -1
  16. package/lib/esm/version.js +1 -1
  17. package/lib/esm/version.js.map +1 -1
  18. package/lib/scripts/amplitude-bookmarklet-snippet-min.js +1 -1
  19. package/lib/scripts/amplitude-bookmarklet.html +1 -1
  20. package/lib/scripts/amplitude-gtm-min.js +1 -1
  21. package/lib/scripts/amplitude-gtm-min.js.gz +0 -0
  22. package/lib/scripts/amplitude-gtm-min.js.map +1 -1
  23. package/lib/scripts/amplitude-gtm-snippet-min.js +1 -1
  24. package/lib/scripts/amplitude-min.js +1 -1
  25. package/lib/scripts/amplitude-min.js.gz +0 -0
  26. package/lib/scripts/amplitude-min.js.map +1 -1
  27. package/lib/scripts/amplitude-min.umd.js +1 -1
  28. package/lib/scripts/amplitude-min.umd.js.gz +0 -0
  29. package/lib/scripts/amplitude-snippet-instructions.html +1 -1
  30. package/lib/scripts/amplitude-snippet-min.js +1 -1
  31. package/lib/scripts/attribution/tracking-methods.d.ts +1 -1
  32. package/lib/scripts/attribution/tracking-methods.d.ts.map +1 -1
  33. package/lib/scripts/config.d.ts +1 -1
  34. package/lib/scripts/version.d.ts +1 -1
  35. package/package.json +9 -9
Binary file
@@ -1,5 +1,5 @@
1
1
  <script type="text/javascript">
2
- !function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},i=function(e){for(var t=0;t<g.length;t++)o(e,g[t],!1);for(var r=0;r<y.length;r++)o(e,y[r],!0)};r.invoked=!0;var a=t.createElement("script");a.type="text/javascript",a.integrity="sha384-FV+NoaFaKI7ocNVE/HsuziIdGCljj4FgrxZea7FrFvQVNungH2stwNZw+lndvkHU",a.crossOrigin="anonymous",a.async=!0,a.src="https://cdn.amplitude.com/libs/analytics-browser-2.44.5-min.js.gz",a.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var c=t.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c);for(var u=function(){return this._q=[],this},l=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],p=0;p<l.length;p++)n(u,l[p]);r.Identify=u;for(var d=function(){return this._q=[],this},v=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],f=0;f<v.length;f++)n(d,v[f]);r.Revenue=d;var g=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],y=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];i(r),r.createInstance=function(e){return r._iq[e]={_q:[]},i(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
2
+ !function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},i=function(e){for(var t=0;t<y.length;t++)o(e,y[t],!1);for(var r=0;r<g.length;r++)o(e,g[r],!0)};r.invoked=!0;var c=t.createElement("script");c.type="text/javascript",c.integrity="sha384-XQIGro5vKBjeKbCMyWZF4q8Puikh1eIei8tB10PoJuxTrmVKpFnlIWPm7GvsgLcf",c.crossOrigin="anonymous",c.async=!0,c.src="https://cdn.amplitude.com/libs/analytics-browser-2.45.0-min.js.gz",c.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var a=t.getElementsByTagName("script")[0];a.parentNode.insertBefore(c,a);for(var u=function(){return this._q=[],this},p=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],l=0;l<p.length;l++)n(u,p[l]);r.Identify=u;for(var d=function(){return this._q=[],this},f=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],v=0;v<f.length;v++)n(d,f[v]);r.Revenue=d;var y=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],g=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];i(r),r.createInstance=function(e){return r._iq[e]={_q:[]},i(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
3
3
 
4
4
  amplitude.init("<YOUR_API_KEY>");
5
5
  </script>
@@ -1 +1 @@
1
- !function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},i=function(e){for(var t=0;t<g.length;t++)o(e,g[t],!1);for(var r=0;r<y.length;r++)o(e,y[r],!0)};r.invoked=!0;var a=t.createElement("script");a.type="text/javascript",a.integrity="sha384-FV+NoaFaKI7ocNVE/HsuziIdGCljj4FgrxZea7FrFvQVNungH2stwNZw+lndvkHU",a.crossOrigin="anonymous",a.async=!0,a.src="https://cdn.amplitude.com/libs/analytics-browser-2.44.5-min.js.gz",a.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var c=t.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c);for(var u=function(){return this._q=[],this},l=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],p=0;p<l.length;p++)n(u,l[p]);r.Identify=u;for(var d=function(){return this._q=[],this},v=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],f=0;f<v.length;f++)n(d,v[f]);r.Revenue=d;var g=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],y=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];i(r),r.createInstance=function(e){return r._iq[e]={_q:[]},i(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
1
+ !function(){"use strict";!function(e,t){var r=e.amplitude||{_q:[],_iq:{}};if(r.invoked)e.console&&console.error&&console.error("Amplitude snippet has been loaded.");else{var n=function(e,t){e.prototype[t]=function(){return this._q.push({name:t,args:Array.prototype.slice.call(arguments,0)}),this}},s=function(e,t,r){return function(n){e._q.push({name:t,args:Array.prototype.slice.call(r,0),resolve:n})}},o=function(e,t,r){e[t]=function(){if(r)return{promise:new Promise(s(e,t,Array.prototype.slice.call(arguments)))};!function(e,t,r){e._q.push({name:t,args:Array.prototype.slice.call(r,0)})}(e,t,Array.prototype.slice.call(arguments))}},i=function(e){for(var t=0;t<y.length;t++)o(e,y[t],!1);for(var r=0;r<g.length;r++)o(e,g[r],!0)};r.invoked=!0;var c=t.createElement("script");c.type="text/javascript",c.integrity="sha384-XQIGro5vKBjeKbCMyWZF4q8Puikh1eIei8tB10PoJuxTrmVKpFnlIWPm7GvsgLcf",c.crossOrigin="anonymous",c.async=!0,c.src="https://cdn.amplitude.com/libs/analytics-browser-2.45.0-min.js.gz",c.onload=function(){e.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK")};var a=t.getElementsByTagName("script")[0];a.parentNode.insertBefore(c,a);for(var u=function(){return this._q=[],this},p=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove","getUserProperties"],l=0;l<p.length;l++)n(u,p[l]);r.Identify=u;for(var d=function(){return this._q=[],this},f=["getEventProperties","setProductId","setQuantity","setPrice","setRevenue","setRevenueType","setReceipt","setReceiptSig","setCurrency","setEventProperties"],v=0;v<f.length;v++)n(d,f[v]);r.Revenue=d;var y=["getDeviceId","setDeviceId","getSessionId","setSessionId","getUserId","setUserId","setOptOut","setTransport","reset","extendSession"],g=["init","add","remove","track","logEvent","identify","groupIdentify","setGroup","revenue","flush"];i(r),r.createInstance=function(e){return r._iq[e]={_q:[]},i(r._iq[e]),r._iq[e]},e.amplitude=r}}(window,document)}();
@@ -3,7 +3,7 @@ export declare const USER_PROPERTY_TRACKING_METHOD: TrackingMethod;
3
3
  export declare const EVENT_PROPERTY_TRACKING_METHOD: TrackingMethod;
4
4
  /**
5
5
  * Normalizes attribution tracking methods from runtime config, drops unsupported values,
6
- * and falls back to the legacy default when nothing valid is provided.
6
+ * and falls back to the default methods when nothing valid is provided.
7
7
  */
8
8
  export declare const normalizeTrackingMethod: (trackingMethod?: unknown) => TrackingMethod[];
9
9
  export declare const hasTrackingMethod: (options: AttributionOptions, trackingMethod: TrackingMethod) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"tracking-methods.d.ts","sourceRoot":"","sources":["../../../src/attribution/tracking-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE/E,eAAO,MAAM,6BAA6B,EAAE,cAA+B,CAAC;AAC5E,eAAO,MAAM,8BAA8B,EAAE,cAAgC,CAAC;AAK9E;;;GAGG;AACH,eAAO,MAAM,uBAAuB,oBAAqB,OAAO,KAAG,cAAc,EAMhF,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAAa,kBAAkB,kBAAkB,cAAc,YACnB,CAAC;AAE3E,eAAO,MAAM,gCAAgC,YAAa,kBAAkB,YACjB,CAAC;AAE5D,eAAO,MAAM,iCAAiC,YAAa,kBAAkB,YACjB,CAAC"}
1
+ {"version":3,"file":"tracking-methods.d.ts","sourceRoot":"","sources":["../../../src/attribution/tracking-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE/E,eAAO,MAAM,6BAA6B,EAAE,cAA+B,CAAC;AAC5E,eAAO,MAAM,8BAA8B,EAAE,cAAgC,CAAC;AAc9E;;;GAGG;AACH,eAAO,MAAM,uBAAuB,oBAAqB,OAAO,KAAG,cAAc,EAMhF,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAAa,kBAAkB,kBAAkB,cAAc,YACnB,CAAC;AAE3E,eAAO,MAAM,gCAAgC,YAAa,kBAAkB,YACjB,CAAC;AAE5D,eAAO,MAAM,iCAAiC,YAAa,kBAAkB,YACjB,CAAC"}
@@ -40,7 +40,7 @@ export declare class BrowserConfig extends Config implements IBrowserConfig {
40
40
  topLevelDomain?: string | undefined;
41
41
  enableRequestBodyCompression: boolean;
42
42
  customEnrichment?: boolean | CustomEnrichmentOptions | undefined;
43
- readonly version = "2.44.5";
43
+ readonly version = "2.45.0";
44
44
  protected _cookieStorage: Storage<UserSession>;
45
45
  protected _deviceId?: string;
46
46
  protected _lastEventId?: number;
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.44.5";
1
+ export declare const VERSION = "2.45.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplitude/analytics-browser",
3
- "version": "2.44.5",
3
+ "version": "2.45.0",
4
4
  "description": "Official Amplitude SDK for Web",
5
5
  "keywords": [
6
6
  "analytics",
@@ -26,14 +26,14 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "tslib": "^2.4.1",
29
- "@amplitude/analytics-core": "2.52.1",
30
- "@amplitude/plugin-custom-enrichment-browser": "0.1.14",
31
- "@amplitude/plugin-page-url-enrichment-browser": "0.7.16",
32
- "@amplitude/plugin-autocapture-browser": "1.28.3",
33
- "@amplitude/plugin-page-view-tracking-browser": "2.11.6",
34
- "@amplitude/plugin-network-capture-browser": "1.10.6",
35
- "@amplitude/plugin-web-vitals-browser": "1.1.38",
36
- "@amplitude/plugin-event-property-attribution-browser": "0.2.6"
29
+ "@amplitude/analytics-core": "2.53.0",
30
+ "@amplitude/plugin-autocapture-browser": "1.28.5",
31
+ "@amplitude/plugin-event-property-attribution-browser": "0.2.8",
32
+ "@amplitude/plugin-custom-enrichment-browser": "0.1.16",
33
+ "@amplitude/plugin-page-url-enrichment-browser": "0.7.18",
34
+ "@amplitude/plugin-page-view-tracking-browser": "2.11.8",
35
+ "@amplitude/plugin-web-vitals-browser": "1.1.40",
36
+ "@amplitude/plugin-network-capture-browser": "1.10.8"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@aws-sdk/client-s3": "^3.229.0",