Skip to content

Commit

Permalink
Drop dependency on top-domain and rollup-plugin-node-builtins and upd…
Browse files Browse the repository at this point in the history
…ate some dated deps (#170)
  • Loading branch information
blazzy authored Feb 25, 2019
1 parent ed2f683 commit 40ff69f
Show file tree
Hide file tree
Showing 32 changed files with 4,509 additions and 6,658 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"presets": [
["env", {
"targets": {
"browsers": ["ie >= 6"]
"browsers": ["ie >= 9"]
},
"modules": false
}]
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ npm-debug.log
build
dist
.DS_Store
*.crt
*.key
amplitude.nocompat.js
amplitude.nocompat.min.js
8 changes: 6 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"browserify" : false, // Browserify (node.js code in the browser)
"couch" : false, // CouchDB
"devel" : true, // Development/debugging (alert, confirm, etc)
"esversion" : 6, // Support ES version 6 syntax
"esversion" : 9, // Support ES version 9 syntax
"dojo" : false, // Dojo Toolkit
"jasmine" : false, // Jasmine
"jquery" : false, // jQuery
Expand All @@ -84,5 +84,9 @@
"yui" : false, // Yahoo User Interface

// Custom Globals
"globals" : {} // additional predefined global variables
"globals" : { // additional predefined global variables
"BUILD_COMPAT_2_0": true,
"BUILD_COMPAT_SNIPPET": true,
"BUILD_COMPAT_LOCAL_STORAGE": true
}
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### 4.6.0 (February 25, 2018)

* Add support for unsetting utm params when a new session is created
* Update dependencies to pass yarn audit
* Bugfix: Allow logLevel to be set to disabled.
* Bugfix: Update ua-parser to work in quirks mode in older internet explorer versions
* Fetch ua-parsers-js from npm instead of github
* Add `secureCookie` option to add a secure flag to the cookie

### 4.5.2 (November 10, 2018)

* Bugfix: Default groupProperties to empty object in logEvent.
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ README.md: $(SNIPPET_OUT) version
$(OUT): node_modules $(SRC) version rollup.config.js rollup.min.js
@$(JSHINT) --verbose $(SRC)
@NODE_ENV=production $(ROLLUP) --config rollup.config.js
@NODE_ENV=production $(ROLLUP) --config rollup.nocompat.js
@NODE_ENV=production $(ROLLUP) --config rollup.min.js
@NODE_ENV=production $(ROLLUP) --config rollup.nocompat.min.js

#
# Target for minified `amplitude-snippet.js` file.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Please see our [installation guide](https://amplitude.zendesk.com/hc/en-us/artic
[![npm version](https://badge.fury.io/js/amplitude-js.svg)](https://badge.fury.io/js/amplitude-js)
[![Bower version](https://badge.fury.io/bo/amplitude-js.svg)](https://badge.fury.io/bo/amplitude-js)

[4.5.2 - Released on November 10, 2018](https://github.com/amplitude/Amplitude-JavaScript/releases/latest)
[4.6.0 - Released on February 25, 2019](https://github.com/amplitude/Amplitude-JavaScript/releases/latest)


# JavaScript SDK Reference #
Expand Down
2 changes: 1 addition & 1 deletion amplitude-snippet.min.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script")
;r.type="text/javascript";r.async=true
;r.src="https://cdn.amplitude.com/libs/amplitude-4.5.2-min.gz.js"
;r.src="https://cdn.amplitude.com/libs/amplitude-4.6.0-min.gz.js"
;r.onload=function(){if(e.amplitude.runQueuedFunctions){
e.amplitude.runQueuedFunctions()}else{
console.log("[Amplitude] Error: could not load SDK")}}
Expand Down
Loading

0 comments on commit 40ff69f

Please sign in to comment.