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 +5 -1
- package/README.md +3 -3
- package/dist/mixpanel-core.cjs.js +612 -176
- package/dist/mixpanel-recorder.js +670 -224
- package/dist/mixpanel-recorder.min.js +11 -11
- package/dist/mixpanel-recorder.min.js.map +1 -1
- package/dist/mixpanel-with-async-recorder.cjs.js +612 -176
- package/dist/mixpanel.amd.js +1000 -290
- package/dist/mixpanel.cjs.js +1000 -290
- package/dist/mixpanel.globals.js +612 -176
- package/dist/mixpanel.min.js +143 -134
- package/dist/mixpanel.module.js +1000 -290
- package/dist/mixpanel.umd.js +1000 -290
- package/package.json +2 -1
- package/src/autocapture/index.js +80 -9
- package/src/autocapture/utils.js +129 -38
- package/src/config.js +1 -1
- package/src/mixpanel-core.js +119 -19
- package/src/mixpanel-persistence.js +6 -2
- package/src/recorder/index.js +1 -70
- package/src/recorder/recorder.js +137 -0
- package/src/recorder/recording-registry.js +98 -0
- package/src/recorder/session-recording.js +162 -43
- package/src/recorder/utils.js +12 -0
- package/src/request-batcher.js +6 -2
- package/src/request-queue.js +45 -39
- package/src/shared-lock.js +1 -1
- package/src/storage/indexed-db.js +127 -0
- package/src/storage/local-storage.js +4 -8
- package/src/storage/wrapper.js +3 -3
- package/src/utils.js +99 -61
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', {
|
|
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
|