Skip to content

Commit

Permalink
Merge pull request #435 from keen/dustin-release-latest
Browse files Browse the repository at this point in the history
v4.3.0 Module Updates
  • Loading branch information
Dustin Larimer authored Oct 9, 2017
2 parents d3b369e + 0994680 commit 66ffd69
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 37 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
[{{ release-title }} ({{ version }})](https://github.com/keen/keen-dataviz.js/releases/tag/{{ version }})
-->
<a name="4.3.0"></a>
# 4.3.0 Module Updates

**Stream: [keen-tracking.js](https://github.com/keen/keen-tracking.js)**
[Release: Protocol Handling and Dev Setup (v1.4.0)](https://github.com/keen/keen-tracking.js/releases/tag/v1.4.0)

**Visualize: [keen-dataviz.js](https://github.com/keen/keen-dataviz.js)**
[Release: Bug Fix and PR Template (v1.2.1)](https://github.com/keen/keen-dataviz.js/releases/tag/v1.2.1)



<a name="4.2.0"></a>
# 4.2.0 Automated Event Tracking (browser-only)

Expand Down
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ npm install keen-js --save
Or load it synchronously from the CDN:

```html
<meta charset="utf-8">
<link href="https://d26b395fwzu5fz.cloudfront.net/4.2.0/keen.min.css" rel="stylesheet" />
<script src="https://d26b395fwzu5fz.cloudfront.net/4.2.0/keen.min.js"></script>
<link href="https://d26b395fwzu5fz.cloudfront.net/4.3.0/keen.min.css" rel="stylesheet" />
<script src="https://d26b395fwzu5fz.cloudfront.net/4.3.0/keen.min.js"></script>
```

Under the hood, this is simply a bundled release of the following packages:
Expand Down Expand Up @@ -56,8 +55,8 @@ This package contains [keen-tracking.js](https://github.com/keen/keen-tracking.j
Automatically record `pageviews`, `clicks`, and `form_submissions` events with robust data models:

```html
<link href="https://d26b395fwzu5fz.cloudfront.net/4.2.0/keen.min.css" rel="stylesheet" />
<script src="https://d26b395fwzu5fz.cloudfront.net/4.2.0/keen.min.js"></script>
<link href="https://d26b395fwzu5fz.cloudfront.net/4.3.0/keen.min.css" rel="stylesheet" />
<script src="https://d26b395fwzu5fz.cloudfront.net/4.3.0/keen.min.js"></script>
<script>
Keen.ready(function(){
var client = new Keen({
Expand Down Expand Up @@ -243,9 +242,8 @@ This package contains [keen-dataviz.js](https://github.com/keen/keen-analysis.js
```html
<html>
<head>
<meta charset="utf-8">
<link href="https://d26b395fwzu5fz.cloudfront.net/4.2.0/keen.min.css" rel="stylesheet" />
<script src="https://d26b395fwzu5fz.cloudfront.net/4.2.0/keen.min.js"></script>
<link href="https://d26b395fwzu5fz.cloudfront.net/4.3.0/keen.min.css" rel="stylesheet" />
<script src="https://d26b395fwzu5fz.cloudfront.net/4.3.0/keen.min.js"></script>
</head>
<body>
<!-- DOM Element -->
Expand Down Expand Up @@ -285,8 +283,6 @@ This package contains [keen-dataviz.js](https://github.com/keen/keen-analysis.js
</html>
```

**Important:** the `<meta charset="utf-8">` charset encoding meta tag is required for this library to function properly.

---

### Contributing
Expand Down
50 changes: 28 additions & 22 deletions dist/keen.js
Original file line number Diff line number Diff line change
Expand Up @@ -23251,7 +23251,7 @@ function parseExtraction(){
}
else {
if (typeof Dataviz.libraries[library][type] === 'undefined') {
this.message('Incorrect chart type');
self.message('Incorrect chart type');
throw 'Incorrect chart type';
return;
}
Expand Down Expand Up @@ -24314,6 +24314,7 @@ function initAutoTracking(lib) {
recordPageViews: true,
recordScrollState: true
}, obj);
var now = new Date();
var cookie = new utils.cookie('keen');
var uuid = cookie.get('uuid');
if (!uuid) {
Expand All @@ -24337,7 +24338,8 @@ function initAutoTracking(lib) {
},
page: {
title: document ? document.title : null,
description: browserProfile.description
description: browserProfile.description,
time_on_page: getSecondsSinceDate(now)
},
ip_address: '${keen.ip}',
geo: { /* Enriched */ },
Expand Down Expand Up @@ -24448,6 +24450,10 @@ function initAutoTracking(lib) {
return client;
};
}
function getSecondsSinceDate(date) {
var diff = new Date().getTime() - date.getTime();
return Math.round(diff / 1000);
}
module.exports = initAutoTracking;
},{"../package.json":74}],46:[function(require,module,exports){
(function (global){
Expand Down Expand Up @@ -25970,25 +25976,25 @@ module.exports={
"_args": [
[
{
"raw": "keen-tracking@1.3.0",
"raw": "keen-tracking@1.4.0",
"scope": null,
"escapedName": "keen-tracking",
"name": "keen-tracking",
"rawSpec": "1.3.0",
"spec": "1.3.0",
"rawSpec": "1.4.0",
"spec": "1.4.0",
"type": "version"
},
"/Users/dustinlarimer/dev/keen/keen-js"
]
],
"_from": "keen-tracking@1.3.0",
"_id": "keen-tracking@1.3.0",
"_from": "keen-tracking@1.4.0",
"_id": "keen-tracking@1.4.0",
"_inCache": true,
"_location": "/keen-tracking",
"_nodeVersion": "6.11.2",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/keen-tracking-1.3.0.tgz_1506964108637_0.31351561448536813"
"tmp": "tmp/keen-tracking-1.4.0.tgz_1507234385258_0.13838722207583487"
},
"_npmUser": {
"name": "dustinlarimer",
Expand All @@ -25999,22 +26005,22 @@ module.exports={
"component-emitter": "1.2.0"
},
"_requested": {
"raw": "keen-tracking@1.3.0",
"raw": "keen-tracking@1.4.0",
"scope": null,
"escapedName": "keen-tracking",
"name": "keen-tracking",
"rawSpec": "1.3.0",
"spec": "1.3.0",
"rawSpec": "1.4.0",
"spec": "1.4.0",
"type": "version"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/keen-tracking/-/keen-tracking-1.3.0.tgz",
"_shasum": "71eaa4e6a55bbfe28770a63bbd7eae1a36cd7bac",
"_resolved": "https://registry.npmjs.org/keen-tracking/-/keen-tracking-1.4.0.tgz",
"_shasum": "7951cc2da2ea68c4aa8c04a4bb3c411d0c03cf99",
"_shrinkwrap": null,
"_spec": "keen-tracking@1.3.0",
"_spec": "keen-tracking@1.4.0",
"_where": "/Users/dustinlarimer/dev/keen/keen-js",
"author": {
"name": "Dustin Larimer",
Expand Down Expand Up @@ -26072,7 +26078,7 @@ module.exports={
"gulp-uglify": "^1.5.2",
"gulp-util": "^3.0.4",
"gulp-yuicompressor": "0.0.3",
"karma": "^0.12.32",
"karma": "^1.7.1",
"karma-chrome-launcher": "^0.1.12",
"karma-firefox-launcher": "^0.1.6",
"karma-mocha": "^0.2.0",
Expand All @@ -26090,10 +26096,10 @@ module.exports={
},
"directories": {},
"dist": {
"shasum": "71eaa4e6a55bbfe28770a63bbd7eae1a36cd7bac",
"tarball": "https://registry.npmjs.org/keen-tracking/-/keen-tracking-1.3.0.tgz"
"shasum": "7951cc2da2ea68c4aa8c04a4bb3c411d0c03cf99",
"tarball": "https://registry.npmjs.org/keen-tracking/-/keen-tracking-1.4.0.tgz"
},
"gitHead": "9bbc71e8b2a0e301aab51ab677877172e8cc0dd2",
"gitHead": "a643eb349546695d1b42a46e5818f6fd1f719463",
"homepage": "https://github.com/keen/keen-tracking.js#readme",
"license": "MIT",
"main": "lib/server.js",
Expand All @@ -26118,7 +26124,7 @@ module.exports={
"start": "gulp with-tests",
"test": "gulp test:cli"
},
"version": "1.3.0"
"version": "1.4.0"
}
},{}],75:[function(require,module,exports){
var process = module.exports = {};
Expand Down Expand Up @@ -26173,7 +26179,7 @@ process.umask = function() { return 0; };
},{}],76:[function(require,module,exports){
module.exports={
"name": "keen-js",
"version": "4.2.0",
"version": "4.3.0",
"license": "MIT",
"main": "lib/index.js",
"style": "style/index.css",
Expand All @@ -26193,8 +26199,8 @@ module.exports={
],
"dependencies": {
"keen-analysis": "1.3.0",
"keen-dataviz": "1.2.0",
"keen-tracking": "1.3.0"
"keen-dataviz": "1.2.1",
"keen-tracking": "1.4.0"
},
"devDependencies": {
"browserify": "^8.0.3",
Expand Down
4 changes: 2 additions & 2 deletions dist/keen.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "keen-js",
"version": "4.2.0",
"version": "4.3.0",
"license": "MIT",
"main": "lib/index.js",
"style": "style/index.css",
Expand All @@ -20,8 +20,8 @@
],
"dependencies": {
"keen-analysis": "1.3.0",
"keen-dataviz": "1.2.0",
"keen-tracking": "1.3.0"
"keen-dataviz": "1.2.1",
"keen-tracking": "1.4.0"
},
"devDependencies": {
"browserify": "^8.0.3",
Expand Down

0 comments on commit 66ffd69

Please sign in to comment.