Skip to content

Commit 40ff69f

Browse files
authored
Drop dependency on top-domain and rollup-plugin-node-builtins and update some dated deps (#170)
1 parent ed2f683 commit 40ff69f

32 files changed

+4509
-6658
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"presets": [
33
["env", {
44
"targets": {
5-
"browsers": ["ie >= 6"]
5+
"browsers": ["ie >= 9"]
66
},
77
"modules": false
88
}]

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ npm-debug.log
44
build
55
dist
66
.DS_Store
7+
*.crt
8+
*.key
9+
amplitude.nocompat.js
10+
amplitude.nocompat.min.js

.jshintrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"browserify" : false, // Browserify (node.js code in the browser)
6868
"couch" : false, // CouchDB
6969
"devel" : true, // Development/debugging (alert, confirm, etc)
70-
"esversion" : 6, // Support ES version 6 syntax
70+
"esversion" : 9, // Support ES version 9 syntax
7171
"dojo" : false, // Dojo Toolkit
7272
"jasmine" : false, // Jasmine
7373
"jquery" : false, // jQuery
@@ -84,5 +84,9 @@
8484
"yui" : false, // Yahoo User Interface
8585

8686
// Custom Globals
87-
"globals" : {} // additional predefined global variables
87+
"globals" : { // additional predefined global variables
88+
"BUILD_COMPAT_2_0": true,
89+
"BUILD_COMPAT_SNIPPET": true,
90+
"BUILD_COMPAT_LOCAL_STORAGE": true
91+
}
8892
}

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
### 4.6.0 (February 25, 2018)
2+
3+
* Add support for unsetting utm params when a new session is created
4+
* Update dependencies to pass yarn audit
5+
* Bugfix: Allow logLevel to be set to disabled.
6+
* Bugfix: Update ua-parser to work in quirks mode in older internet explorer versions
7+
* Fetch ua-parsers-js from npm instead of github
8+
* Add `secureCookie` option to add a secure flag to the cookie
9+
110
### 4.5.2 (November 10, 2018)
211

312
* Bugfix: Default groupProperties to empty object in logEvent.

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ README.md: $(SNIPPET_OUT) version
6868
$(OUT): node_modules $(SRC) version rollup.config.js rollup.min.js
6969
@$(JSHINT) --verbose $(SRC)
7070
@NODE_ENV=production $(ROLLUP) --config rollup.config.js
71+
@NODE_ENV=production $(ROLLUP) --config rollup.nocompat.js
7172
@NODE_ENV=production $(ROLLUP) --config rollup.min.js
73+
@NODE_ENV=production $(ROLLUP) --config rollup.nocompat.min.js
7274

7375
#
7476
# Target for minified `amplitude-snippet.js` file.

README.md

Lines changed: 1 addition & 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-
[4.5.2 - Released on November 10, 2018](https://github.com/amplitude/Amplitude-JavaScript/releases/latest)
14+
[4.6.0 - Released on February 25, 2019](https://github.com/amplitude/Amplitude-JavaScript/releases/latest)
1515

1616

1717
# JavaScript SDK Reference #

amplitude-snippet.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script")
22
;r.type="text/javascript";r.async=true
3-
;r.src="https://cdn.amplitude.com/libs/amplitude-4.5.2-min.gz.js"
3+
;r.src="https://cdn.amplitude.com/libs/amplitude-4.6.0-min.gz.js"
44
;r.onload=function(){if(e.amplitude.runQueuedFunctions){
55
e.amplitude.runQueuedFunctions()}else{
66
console.log("[Amplitude] Error: could not load SDK")}}

0 commit comments

Comments
 (0)