mixpanel-browser 2.60.0 → 2.61.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
@@ -1,3 +1,11 @@
1
+ **2.61.1** (11 Mar 2025)
2
+ - Session recording stops if initial DOM snapshot fails
3
+ - Errors triggered by rrweb's record function are now caught
4
+ - Fix for issue causing opt-out check error messages in `debug` mode
5
+
6
+ **2.61.0** (6 Mar 2025)
7
+ - Session recordings now continue across page loads within the same tab, using IndexedDB for persistence
8
+
1
9
  **2.60.0** (31 Jan 2025)
2
10
  - Expanded Autocapture configs
3
11
  - Prevent duplicate values in persistence when using people.union (thanks @chrisdeely)
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