Skip to content

Commit 4560080

Browse files
authored
Merge branch 'master' into patch-1
2 parents 7ea80a6 + 6bc9065 commit 4560080

File tree

8 files changed

+306
-63
lines changed

8 files changed

+306
-63
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
### 5.8.0 (December 6, 2019)
2+
* Add support to defer saving an amplitude cookie and logging events until a user has opted in
3+
4+
### 5.7.1 (December 2, 2019)
5+
* Fix issue where null unsentKey and unsentIdentifyKeys were causing log crashes
6+
7+
### 5.7.0 (November 22, 2019)
8+
* Namespace AsyncStorage with api key to prevent cross domain contamination
9+
10+
### 5.6.0 (October 21, 2019)
11+
12+
* Drop esm module from package.json to prevent it from being the default build.
13+
* Add fallback localStorage support to the esm module.
14+
* Fix integrity hash
15+
116
### 5.5.0 (October 9, 2019)
217

318
* Fix bug where optOut settings would be overridden by cookie loading

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Please see our [installation guide](https://amplitude.zendesk.com/hc/en-us/artic
1111
[![npm version](https://badge.fury.io/js/amplitude-js.svg)](https://badge.fury.io/js/amplitude-js)
1212
[![Bower version](https://badge.fury.io/bo/amplitude-js.svg)](https://badge.fury.io/bo/amplitude-js)
1313

14-
[5.5.0 - Released on October 9, 2019](https://github.com/amplitude/Amplitude-JavaScript/releases/latest)
14+
[5.8.0 - Released on December 6, 2019](https://github.com/amplitude/Amplitude-JavaScript/releases/latest)
1515

1616

1717
# JavaScript SDK Reference #
@@ -25,6 +25,13 @@ See our [JavaScript SDK Reference](https://amplitude.zendesk.com/hc/en-us/articl
2525
# Changelog #
2626
Click [here](https://github.com/amplitude/Amplitude-JavaScript/blob/master/CHANGELOG.md) to view the JavaScript SDK Changelog.
2727

28+
# React Native #
29+
30+
This library now supports react-native. It has two dependencies on react-native modules you will have to install yourself:
31+
32+
* [react-native-device-info](https://www.npmjs.com/package/react-native-device-info)
33+
* [@react-native-community/async-storage](https://www.npmjs.com/package/@react-native-community/async-storage)
34+
2835
# Upgrading Major Versions and Breaking Changes #
2936

3037
## 5.0

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "amplitude-js",
33
"author": "Amplitude <support@amplitude.com>",
4-
"version": "5.5.0",
4+
"version": "5.8.0",
55
"license": "MIT",
66
"description": "Javascript library for Amplitude Analytics",
77
"keywords": [
@@ -10,7 +10,6 @@
1010
],
1111
"repository": "git://github.com/amplitude/amplitude-javascript.git",
1212
"main": "amplitude.js",
13-
"module": "amplitude.esm.js",
1413
"react-native": "amplitude.native.js",
1514
"dependencies": {
1615
"@amplitude/ua-parser-js": "0.7.20",

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default {
2222
}),
2323
replace({
2424
BUILD_COMPAT_SNIPPET: 'true',
25-
BUILD_COMPAT_2_0: 'true',
2625
BUILD_COMPAT_LOCAL_STORAGE: 'true',
26+
BUILD_COMPAT_2_0: 'true',
2727
BUILD_COMPAT_REACT_NATIVE: 'false',
2828
}),
2929
commonjs(),

rollup.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export default {
2222
}),
2323
replace({
2424
BUILD_COMPAT_SNIPPET: 'false',
25-
BUILD_COMPAT_2_0: 'false',
25+
BUILD_COMPAT_LOCAL_STORAGE: 'true',
26+
BUILD_COMPAT_2_0: 'true',
2627
BUILD_COMPAT_REACT_NATIVE: 'false',
27-
BUILD_COMPAT_LOCAL_STORAGE: 'false',
2828
}),
2929
commonjs({
3030
include: "node_modules/**"

0 commit comments

Comments
 (0)