Skip to content

Commit 5ba4a38

Browse files
committed
v3.6.0
1 parent f1fdac0 commit 5ba4a38

File tree

9 files changed

+15
-9
lines changed

9 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Unreleased
22

3+
### 3.6.0 (September 13, 2017)
4+
5+
* Supports clean NPM module loading eg: `const amplitude = require('amplitude');` or `import 'amplitude' from 'amplitude-js';`
6+
* SDK is now a proper UMD module. Supports RequireJS with r.js builds now.
7+
* Updated build process to use webpack
8+
39
### 3.4.1 (June 29, 2017)
410
* Handle SDK loading errors in the load snippet. Please update the load snippets on your website to [the latest version](https://amplitude.zendesk.com/hc/en-us/articles/115001361248-JavaScript-SDK-Installation#installation).
511
* Migrating setup instructions and SDK documentation in the README file to Zendesk articles.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A Javascript SDK for tracking events and revenue to [Amplitude](https://www.ampl
77
Please see our [installation guide](https://amplitude.zendesk.com/hc/en-us/articles/115001361248-JavaScript-SDK-Installation) for instructions on installing and using our Javascript SDK.
88

99
# Latest Version #
10-
[3.4.1 - Released on June 29, 2017](https://github.com/amplitude/Amplitude-Javascript/releases/latest)
10+
[3.6.0 - Released on September 13, 2017](https://github.com/amplitude/Amplitude-Javascript/releases/latest)
1111
[![Circle CI](https://circleci.com/gh/amplitude/Amplitude-Javascript.svg?style=badge&circle-token=80de0dbb7632b2db13f76ccb20a79bbdfc50c215)](https://circleci.com/gh/amplitude/Amplitude-Javascript)
1212

1313
# 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://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.4.1-min.gz.js"
3+
;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.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")}}

amplitude.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ module.exports = Revenue;
14481448
"use strict";
14491449

14501450

1451-
module.exports = '3.4.1';
1451+
module.exports = '3.6.0';
14521452

14531453
/***/ }),
14541454
/* 27 */

amplitude.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "amplitude-js",
33
"author": "Amplitude <support@amplitude.com>",
4-
"version": "3.4.1",
4+
"version": "3.6.0",
55
"license": "MIT",
66
"description": "Javascript library for Amplitude Analytics",
77
"keywords": [
88
"analytics",
99
"amplitude"
1010
],
1111
"repository": "git://github.com/amplitude/amplitude-javascript.git",
12-
"main": "src/index.js",
12+
"main": "amplitude.js",
1313
"dependencies": {
1414
"@segment/top-domain": "^3.0.0",
1515
"blueimp-md5": "^2.10.0",

src/amplitude-snippet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var as = document.createElement('script');
44
as.type = 'text/javascript';
55
as.async = true;
6-
as.src = 'https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.4.1-min.gz.js';
6+
as.src = 'https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.6.0-min.gz.js';
77
as.onload = function() {if(window.amplitude.runQueuedFunctions) {window.amplitude.runQueuedFunctions();} else {console.log('[Amplitude] Error: could not load SDK');}};
88
var s = document.getElementsByTagName('script')[0];
99
s.parentNode.insertBefore(as, s);

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = '3.4.1';
1+
module.exports = '3.6.0';

0 commit comments

Comments
 (0)