mixpanel-browser 2.59.0 → 2.61.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
@@ -1,3 +1,7 @@
1
+ **2.60.0** (31 Jan 2025)
2
+ - Expanded Autocapture configs
3
+ - Prevent duplicate values in persistence when using people.union (thanks @chrisdeely)
4
+
1
5
  **2.59.0** (21 Jan 2025)
2
6
  - Initial Autocapture support
3
7
  - Block more crawlers (AmazonBot, more Yandex bots)
@@ -7,7 +11,7 @@
7
11
  - Session Replay checkpoint events now include a starting URL
8
12
 
9
13
  **2.57.1** (12 Dec 2024)
10
- - Asynchronous abstractions (primarily Promise support) introduced in internal refactor of batch/queue/retry system.
14
+ - Asynchronous abstractions (primarily Promise support) introduced in internal refactor of batch/queue/retry system
11
15
 
12
16
  **2.57.0** (Dec 2024)
13
17
  REDACTED
package/README.md CHANGED
@@ -19,7 +19,7 @@ You can then import the lib:
19
19
  ```javascript
20
20
  import mixpanel from 'mixpanel-browser';
21
21
 
22
- mixpanel.init("YOUR_TOKEN");
22
+ mixpanel.init("YOUR_TOKEN", {autocapture: true});
23
23
  mixpanel.track("An event");
24
24
  ```
25
25
 
@@ -56,7 +56,7 @@ Then you are free to import `mixpanel-browser` in your javascript modules.
56
56
  // main.js
57
57
  import mixpanel from 'mixpanel-browser';
58
58
 
59
- mixpanel.init('YOUR_TOKEN', {debug: true, track_pageview: true, persistence: 'localStorage'});
59
+ mixpanel.init('YOUR_TOKEN', {autocapture: true, debug: true, persistence: 'localStorage'});
60
60
  ```
61
61
 
62
62
  ## Building bundles for release
@@ -78,4 +78,4 @@ Mixpanel production releases are tested against a large matrix of browsers and o
78
78
  - Publish to readme.io via the [rdme](https://www.npmjs.com/package/rdme) util: `RDME_API_KEY=<API_KEY> RDME_DOC_VERSION=<version> npm run dox-publish`
79
79
 
80
80
  ## Thanks
81
- For patches and support: @bohanyang, @dehau, @drubin, @D1plo1d, @feychenie, @mogstad, @pfhayes, @sandorfr, @stefansedich, @gfx, @pkaminski, @austince, @danielbaker, @mkdai, @wolever, @dpraul, @chriszamierowski, @JoaoGomesTW, @@aliyalcinkaya
81
+ For patches and support: @bohanyang, @dehau, @drubin, @D1plo1d, @feychenie, @mogstad, @pfhayes, @sandorfr, @stefansedich, @gfx, @pkaminski, @austince, @danielbaker, @mkdai, @wolever, @dpraul, @chriszamierowski, @JoaoGomesTW, @@aliyalcinkaya, @chrisdeely