mixpanel-browser 2.56.0 → 2.57.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 +6 -0
- package/LICENSE +1 -15
- package/build.sh +3 -3
- package/dist/mixpanel-core.cjs.js +898 -410
- package/dist/mixpanel-recorder.js +897 -409
- package/dist/mixpanel-recorder.min.js +10 -10
- package/dist/mixpanel-recorder.min.js.map +1 -1
- package/dist/mixpanel-with-async-recorder.cjs.js +898 -410
- package/dist/mixpanel.amd.js +898 -410
- package/dist/mixpanel.cjs.js +898 -410
- package/dist/mixpanel.globals.js +898 -410
- package/dist/mixpanel.min.js +122 -112
- package/dist/mixpanel.module.js +898 -410
- package/dist/mixpanel.umd.js +898 -410
- package/package.json +1 -1
- package/src/config.js +1 -1
- package/src/externs.js +14 -0
- package/src/gdpr-utils.js +2 -1
- package/src/mixpanel-core.js +3 -2
- package/src/promise-polyfill.js +379 -0
- package/src/recorder/index.js +2 -1
- package/src/recorder/session-recording.js +2 -1
- package/src/request-batcher.js +185 -164
- package/src/request-queue.js +200 -147
- package/src/shared-lock.js +104 -98
- package/src/storage/local-storage.js +53 -0
- package/src/storage/wrapper.js +14 -0
- package/src/utils.js +16 -33
- package/src/window.js +20 -0
- package/dist/mixpanel.min.js.map +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
**2.57.1** (12 Dec 2024)
|
|
2
|
+
- Asynchronous abstractions (primarily Promise support) introduced in internal refactor of batch/queue/retry system.
|
|
3
|
+
|
|
4
|
+
**2.57.0** (Dec 2024)
|
|
5
|
+
REDACTED
|
|
6
|
+
|
|
1
7
|
**2.56.0** (4 Nov 2024)
|
|
2
8
|
- Recording payloads now include additional metadata: the current URL, library type, and library version.
|
|
3
9
|
- Sourcemaps are now generated for the recorder module.
|
package/LICENSE
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
Copyright 2015 Mixpanel, Inc.
|
|
2
|
-
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this work except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License below, or at:
|
|
6
|
-
|
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
See the License for the specific language governing permissions and
|
|
13
|
-
limitations under the License.
|
|
14
|
-
|
|
15
1
|
Apache License
|
|
16
2
|
Version 2.0, January 2004
|
|
17
3
|
http://www.apache.org/licenses/
|
|
@@ -200,7 +186,7 @@ limitations under the License.
|
|
|
200
186
|
same "printed page" as the copyright notice for easier
|
|
201
187
|
identification within third-party archives.
|
|
202
188
|
|
|
203
|
-
Copyright
|
|
189
|
+
Copyright 2015 Mixpanel, Inc.
|
|
204
190
|
|
|
205
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
206
192
|
you may not use this file except in compliance with the License.
|
package/build.sh
CHANGED
|
@@ -14,11 +14,11 @@ ln -sf mixpanel.globals.js build/mixpanel.js
|
|
|
14
14
|
|
|
15
15
|
if [ ! -z "$FULL" ]; then
|
|
16
16
|
echo 'Minifying main build and snippets'
|
|
17
|
-
java -jar vendor/closure-compiler/compiler.jar --js build/mixpanel.js --js_output_file build/mixpanel.min.js --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper "(function() {
|
|
17
|
+
java -jar vendor/closure-compiler/compiler.jar --js build/mixpanel.js --language_in ECMASCRIPT5 --externs src/externs.js --js_output_file build/mixpanel.min.js --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper "(function() {
|
|
18
18
|
%output%
|
|
19
19
|
})();"
|
|
20
|
-
java -jar vendor/closure-compiler/compiler.jar --js src/loaders/mixpanel-jslib-snippet.js --js_output_file build/mixpanel-jslib-snippet.min.js --compilation_level ADVANCED_OPTIMIZATIONS
|
|
21
|
-
java -jar vendor/closure-compiler/compiler.jar --js src/loaders/mixpanel-jslib-snippet.js --js_output_file build/mixpanel-jslib-snippet.min.test.js --compilation_level ADVANCED_OPTIMIZATIONS --define='MIXPANEL_LIB_URL="../build/mixpanel.min.js"'
|
|
20
|
+
java -jar vendor/closure-compiler/compiler.jar --js src/loaders/mixpanel-jslib-snippet.js --language_in ECMASCRIPT5 --js_output_file build/mixpanel-jslib-snippet.min.js --compilation_level ADVANCED_OPTIMIZATIONS
|
|
21
|
+
java -jar vendor/closure-compiler/compiler.jar --js src/loaders/mixpanel-jslib-snippet.js --language_in ECMASCRIPT5 --js_output_file build/mixpanel-jslib-snippet.min.test.js --compilation_level ADVANCED_OPTIMIZATIONS --define='MIXPANEL_LIB_URL="../build/mixpanel.min.js"'
|
|
22
22
|
|
|
23
23
|
echo 'Building mixpanel-js-wrapper'
|
|
24
24
|
npx rollup src/loaders/mixpanel-js-wrapper.js -o build/mixpanel-js-wrapper.js -c rollup.config.js
|