Skip to content

Commit f2ae026

Browse files
committed
v6.0.0
1 parent dee3a8c commit f2ae026

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
* Allow for localStorage fallback with the `disableCookie` option.
55
* Only new and unseen devices will get the compact cookie. `cookieForceUpgrade` will force all browsers to upgrade and delete the old cookie.
66

7-
### 5.12.0 (April 17, 2020)
7+
#### Breaking Changes
8+
* The cookie format has been changed to be more compact. If you use the same Amplitude project(API key) across multiple applications, and you track anonymous users across those applications, you will want to update amplitude across all those applications at the same time.
9+
10+
### 5.12.0 (April 12, 2020)
811
* Use an IIFE build for the snippet. This will issues where the snippet wouldn't load for require js users.
912

1013
### 5.11.0 (April 6, 2020)

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Please see our [installation guide](https://amplitude.zendesk.com/hc/en-us/artic
1818
[![npm version](https://badge.fury.io/js/amplitude-js.svg)](https://badge.fury.io/js/amplitude-js)
1919
[![Bower version](https://badge.fury.io/bo/amplitude-js.svg)](https://badge.fury.io/bo/amplitude-js)
2020

21-
[5.11.0 - Released on April 6, 2020](https://github.com/amplitude/Amplitude-JavaScript/releases/latest)
21+
[6.0.0 - Released on April 17, 2020](https://github.com/amplitude/Amplitude-JavaScript/releases/latest)
2222

2323

2424
# JavaScript SDK Reference #
@@ -40,6 +40,17 @@ This library now supports react-native. It has two dependencies on react-native
4040

4141
# Upgrading Major Versions and Breaking Changes #
4242

43+
## 6.0
44+
The cookie format has been changed to be more compact. If you use the same
45+
Amplitude project(API key) across multiple applications, and you track
46+
anonymous users across those applications, you will want to update amplitude
47+
across all those applications at the same time. Otherwise these anonymous users
48+
will have a different device id in your different applications.
49+
50+
If you do not have multiple installations of amplitude, or if you do not track
51+
anonymous users across different installations of amplitude, this change should
52+
not affect you.
53+
4354
## 5.0
4455
We stopped committing the generated amplitude.min.js and amplitude.js files to
4556
the repository. This should only affect you if you load amplitude via github.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "amplitude-js",
33
"author": "Amplitude <[email protected]>",
4-
"version": "5.12.0",
4+
"version": "6.0.0",
55
"license": "MIT",
66
"description": "Javascript library for Amplitude Analytics",
77
"keywords": [

src/amplitude-snippet.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
var amplitude = window.amplitude || {'_q':[],'_iq':{}};
33
var as = document.createElement('script');
44
as.type = 'text/javascript';
5-
as.integrity = 'sha384-AGAP8hLFGmWct8CISyv9W0dsAYlj/1X7y99zLRAMPI8HANfyBrMgg8CMmBs+jPsZ';
5+
as.integrity = 'sha384-JuTNYkgKcv1YWHTHxD083VG16UGvE0QIORVstsbIKtGUBrB1ldQRU9eyEZEreszu';
66
as.crossOrigin = 'anonymous';
77
as.async = true;
8-
as.src = 'https://cdn.amplitude.com/libs/amplitude-5.12.0-min.gz.js';
8+
as.src = 'https://cdn.amplitude.com/libs/amplitude-6.0.0-min.gz.js';
99
as.onload = function() {if(!window.amplitude.runQueuedFunctions) {console.log('[Amplitude] Error: could not load SDK');}};
1010
var s = document.getElementsByTagName('script')[0];
1111
s.parentNode.insertBefore(as, s);

0 commit comments

Comments
 (0)