keen-js
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -15,2 +15,15 @@ <!-- | ||
--> | ||
<a name="5.0.0"></a> | ||
# 5.0.0 | ||
**Updates:** | ||
* updated dependencies | ||
## We strongly recommend you to use standalone packages: | ||
* [keen-tracking.js](https://github.com/keen/keen-tracking.js) | ||
* [keen-analysis.js](https://github.com/keen/keen-analysis.js) | ||
* [keen-dataviz.js](https://github.com/keen/keen-dataviz.js) | ||
<a name="4.3.1"></a> | ||
@@ -17,0 +30,0 @@ # 4.3.1 Fixes |
@@ -107,3 +107,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
module.exports = {"name":"keen-js","version":"4.3.1","license":"MIT","main":"dist/node/keen.umd.js","browser":"dist/keen.umd.js","style":"dist/keen.css","repository":{"type":"git","url":"https://github.com/keen/keen-js.git"},"scripts":{"start":"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js","test":"jest","build":"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js","preversion":"npm run build","version":"git add .","postversion":"git push && git push --tags","profile":"webpack --profile --json > stats.json","analyze":"webpack-bundle-analyzer stats.json /dist"},"bugs":"https://github.com/keen/keen-js/issues","author":"Keen IO <team@keen.io> (https://keen.io/)","contributors":["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],"dependencies":{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.0","keen-tracking":"^2.0.0"},"devDependencies":{"autoprefixer":"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","concurrently":"^3.5.1","cssnano":"^3.10.0","eslint":"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7","gulp":"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5","jest":"^22.4.3","postcss":"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3","precss":"^3.1.2","style-loader":"^0.20.3","webpack":"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}}; | ||
module.exports = {"name":"keen-js","version":"5.0.0","license":"MIT","main":"dist/node/keen.umd.js","browser":"dist/keen.umd.js","style":"dist/keen.css","repository":{"type":"git","url":"https://github.com/keen/keen-js.git"},"scripts":{"start":"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js","test":"jest","build":"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js","preversion":"npm run build","version":"git add .","postversion":"git push && git push --tags","profile":"webpack --profile --json > stats.json","analyze":"webpack-bundle-analyzer stats.json /dist"},"bugs":"https://github.com/keen/keen-js/issues","author":"Keen IO <team@keen.io> (https://keen.io/)","contributors":["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],"dependencies":{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.0","keen-tracking":"^2.0.0"},"devDependencies":{"autoprefixer":"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","concurrently":"^3.5.1","cssnano":"^3.10.0","eslint":"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7","gulp":"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5","jest":"^22.4.3","postcss":"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3","precss":"^3.1.2","style-loader":"^0.20.3","webpack":"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}}; | ||
@@ -110,0 +110,0 @@ /***/ }), |
@@ -1,2 +0,2 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("keen-dataviz"),require("keen-analysis"),require("keen-tracking"));else if("function"==typeof define&&define.amd)define(["keen-dataviz","keen-analysis","keen-tracking"],t);else{var n="object"==typeof exports?t(require("keen-dataviz"),require("keen-analysis"),require("keen-tracking")):t(e["keen-dataviz"],e["keen-analysis"],e["keen-tracking"]);for(var s in n)("object"==typeof exports?exports:e)[s]=n[s]}}(window,function(e,t,n){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(s,o,function(t){return e[t]}.bind(null,o));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(t,n){t.exports=e},function(e){e.exports={name:"keen-js",version:"4.3.1",license:"MIT",main:"dist/node/keen.umd.js",browser:"dist/keen.umd.js",style:"dist/keen.css",repository:{type:"git",url:"https://github.com/keen/keen-js.git"},scripts:{start:"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js",test:"jest",build:"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js",preversion:"npm run build",version:"git add .",postversion:"git push && git push --tags",profile:"webpack --profile --json > stats.json",analyze:"webpack-bundle-analyzer stats.json /dist"},bugs:"https://github.com/keen/keen-js/issues",author:"Keen IO <team@keen.io> (https://keen.io/)",contributors:["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],dependencies:{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.0","keen-tracking":"^2.0.0"},devDependencies:{autoprefixer:"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0",concurrently:"^3.5.1",cssnano:"^3.10.0",eslint:"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7",gulp:"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5",jest:"^22.4.3",postcss:"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3",precss:"^3.1.2","style-loader":"^0.20.3",webpack:"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(n(3)),o=r(n(2)),i=n(0);function r(e){return e&&e.__esModule?e:{default:e}}s.default.extendLibrary(s.default,o.default),s.default.version=n(1).version,s.default.prototype.draw=function(e,t,n){var s=(0,i.Dataviz)().attributes(n).el(t).prepare();return this.run(e,function(e,t){e?s.message(e.message):s.data(t).render()}),s},t.default=s.default},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.Keen=t.Dataset=t.Dataviz=t.extendKeenGlobalObject=void 0;var s=n(0);Object.defineProperty(t,"Dataviz",{enumerable:!0,get:function(){return s.Dataviz}}),Object.defineProperty(t,"Dataset",{enumerable:!0,get:function(){return s.Dataset}});var o,i=n(4),r=(o=i)&&o.__esModule?o:{default:o};var a=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u=t.extendKeenGlobalObject=function(e){e.Keen=c};"undefined"!=typeof KEEN_EXPOSE_AS_GLOBAL_OBJECT&&u(a);var c=t.Keen=r.default;c.Dataviz=s.Dataviz,c.Dataset=s.Dataset,t.default=c}).call(this,n(5))}])}); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("keen-dataviz"),require("keen-analysis"),require("keen-tracking"));else if("function"==typeof define&&define.amd)define(["keen-dataviz","keen-analysis","keen-tracking"],t);else{var n="object"==typeof exports?t(require("keen-dataviz"),require("keen-analysis"),require("keen-tracking")):t(e["keen-dataviz"],e["keen-analysis"],e["keen-tracking"]);for(var s in n)("object"==typeof exports?exports:e)[s]=n[s]}}(window,function(e,t,n){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(s,o,function(t){return e[t]}.bind(null,o));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(t,n){t.exports=e},function(e){e.exports={name:"keen-js",version:"5.0.0",license:"MIT",main:"dist/node/keen.umd.js",browser:"dist/keen.umd.js",style:"dist/keen.css",repository:{type:"git",url:"https://github.com/keen/keen-js.git"},scripts:{start:"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js",test:"jest",build:"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js",preversion:"npm run build",version:"git add .",postversion:"git push && git push --tags",profile:"webpack --profile --json > stats.json",analyze:"webpack-bundle-analyzer stats.json /dist"},bugs:"https://github.com/keen/keen-js/issues",author:"Keen IO <team@keen.io> (https://keen.io/)",contributors:["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],dependencies:{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.0","keen-tracking":"^2.0.0"},devDependencies:{autoprefixer:"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0",concurrently:"^3.5.1",cssnano:"^3.10.0",eslint:"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7",gulp:"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5",jest:"^22.4.3",postcss:"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3",precss:"^3.1.2","style-loader":"^0.20.3",webpack:"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(n(3)),o=r(n(2)),i=n(0);function r(e){return e&&e.__esModule?e:{default:e}}s.default.extendLibrary(s.default,o.default),s.default.version=n(1).version,s.default.prototype.draw=function(e,t,n){var s=(0,i.Dataviz)().attributes(n).el(t).prepare();return this.run(e,function(e,t){e?s.message(e.message):s.data(t).render()}),s},t.default=s.default},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.Keen=t.Dataset=t.Dataviz=t.extendKeenGlobalObject=void 0;var s=n(0);Object.defineProperty(t,"Dataviz",{enumerable:!0,get:function(){return s.Dataviz}}),Object.defineProperty(t,"Dataset",{enumerable:!0,get:function(){return s.Dataset}});var o,i=n(4),r=(o=i)&&o.__esModule?o:{default:o};var a=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u=t.extendKeenGlobalObject=function(e){e.Keen=c};"undefined"!=typeof KEEN_EXPOSE_AS_GLOBAL_OBJECT&&u(a);var c=t.Keen=r.default;c.Dataviz=s.Dataviz,c.Dataset=s.Dataset,t.default=c}).call(this,n(5))}])}); | ||
//# sourceMappingURL=keen.umd.min.js.map |
@@ -107,3 +107,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
module.exports = {"name":"keen-js","version":"4.3.1","license":"MIT","main":"dist/node/keen.umd.js","browser":"dist/keen.umd.js","style":"dist/keen.css","repository":{"type":"git","url":"https://github.com/keen/keen-js.git"},"scripts":{"start":"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js","test":"jest","build":"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js","preversion":"npm run build","version":"git add .","postversion":"git push && git push --tags","profile":"webpack --profile --json > stats.json","analyze":"webpack-bundle-analyzer stats.json /dist"},"bugs":"https://github.com/keen/keen-js/issues","author":"Keen IO <team@keen.io> (https://keen.io/)","contributors":["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],"dependencies":{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.0","keen-tracking":"^2.0.0"},"devDependencies":{"autoprefixer":"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","concurrently":"^3.5.1","cssnano":"^3.10.0","eslint":"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7","gulp":"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5","jest":"^22.4.3","postcss":"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3","precss":"^3.1.2","style-loader":"^0.20.3","webpack":"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}}; | ||
module.exports = {"name":"keen-js","version":"5.0.0","license":"MIT","main":"dist/node/keen.umd.js","browser":"dist/keen.umd.js","style":"dist/keen.css","repository":{"type":"git","url":"https://github.com/keen/keen-js.git"},"scripts":{"start":"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js","test":"jest","build":"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js","preversion":"npm run build","version":"git add .","postversion":"git push && git push --tags","profile":"webpack --profile --json > stats.json","analyze":"webpack-bundle-analyzer stats.json /dist"},"bugs":"https://github.com/keen/keen-js/issues","author":"Keen IO <team@keen.io> (https://keen.io/)","contributors":["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],"dependencies":{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.0","keen-tracking":"^2.0.0"},"devDependencies":{"autoprefixer":"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","concurrently":"^3.5.1","cssnano":"^3.10.0","eslint":"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7","gulp":"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5","jest":"^22.4.3","postcss":"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3","precss":"^3.1.2","style-loader":"^0.20.3","webpack":"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}}; | ||
@@ -178,3 +178,3 @@ /***/ }), | ||
var env = typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {}; | ||
var env = typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | ||
@@ -190,3 +190,2 @@ var extendKeenGlobalObject = function extendKeenGlobalObject(env) { | ||
var Keen = _index2.default; | ||
Keen.Dataviz = _keenDataviz.Dataviz; | ||
Keen.Dataset = _keenDataviz.Dataset; | ||
@@ -197,4 +196,4 @@ | ||
Keen: Keen, | ||
Dataviz: _keenDataviz.Dataviz, | ||
Dataset: _keenDataviz.Dataset | ||
Dataset: _keenDataviz.Dataset, | ||
Query: Keen.Query | ||
}; | ||
@@ -201,0 +200,0 @@ |
@@ -1,5 +0,5 @@ | ||
import { Dataviz, Dataset } from 'keen-dataviz'; | ||
import { Dataset } from 'keen-dataviz'; | ||
import KeenLibrary from './index'; | ||
const env = typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {}; | ||
const env = typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | ||
@@ -19,3 +19,2 @@ const extendKeenGlobalObject = function(env) { | ||
const Keen = KeenLibrary; | ||
Keen.Dataviz = Dataviz; | ||
Keen.Dataset = Dataset; | ||
@@ -26,4 +25,4 @@ | ||
Keen, | ||
Dataviz, | ||
Dataset, | ||
Query: Keen.Query, | ||
}; |
{ | ||
"name": "keen-js", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/node/keen.umd.js", |
@@ -11,4 +11,2 @@ # Keen IO JavaScript SDK (v5) | ||
Install this package from NPM: | ||
```ssh | ||
@@ -24,5 +22,7 @@ npm install keen-js --save | ||
## Use standalone packages for better performance | ||
--- | ||
## Stream - Keen Tracking JS | ||
# Stream Events - Keen Tracking JS | ||
@@ -132,3 +132,3 @@ **What is an event?** An event is a record of something important happening in the life of your app or service: like a click, a purchase, or a device activation. | ||
### Node.js Event Recording (Back-end) | ||
### Record Node.js Events (Back-end) | ||
@@ -173,3 +173,3 @@ ```javascript | ||
## Compute - Keen Analysis JS | ||
# Compute - Keen Analysis JS | ||
@@ -219,3 +219,3 @@ Keen's powerful Compute API gives you fast answers to the questions that matter. | ||
## Visualize - Keen Dataviz JS | ||
# Visualize - Keen Dataviz JS | ||
@@ -226,57 +226,40 @@ **Documentation:** [Full documentation is available in the keen-dataviz.js repo](https://github.com/keen/keen-dataviz.js). | ||
### Rendering a Chart | ||
### Example | ||
```html | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<!-- Use keen-analysis.js to fetch query results --> | ||
<script src="https://d26b395fwzu5fz.cloudfront.net/keen-analysis-2.0.0.min.js"></script> | ||
```javascript | ||
import KeenAnalysis from 'keen-analysis'; | ||
import KeenDataviz from 'keen-dataviz'; | ||
<!-- Dataviz dependencies --> | ||
<link href="https://d26b395fwzu5fz.cloudfront.net/keen-dataviz-2.0.4.min.css" rel="stylesheet" /> | ||
<script src="https://d26b395fwzu5fz.cloudfront.net/keen-dataviz-2.0.4.min.js"></script> | ||
</head> | ||
<body> | ||
<!-- DOM Element --> | ||
<div id="my-chart-div"></div> | ||
const chart = new KeenDataviz() | ||
.el('#my-chart-div') | ||
.colors(['red', 'orange', 'green']) | ||
.height(500) | ||
.title('New Customers per Week') | ||
.type('area') | ||
.prepare(); | ||
<!-- Create and Render --> | ||
<script> | ||
const chart = new Keen.Dataviz() | ||
.el('#my-chart-div') | ||
.colors(['red', 'orange', 'green']) | ||
.height(500) | ||
.title('New Customers per Week') | ||
.type('metric') | ||
.prepare(); | ||
// Use keen-analysis.js to run a query | ||
// and pass the result into your chart: | ||
const client = new KeenAnalysis({ | ||
projectId: 'YOUR_PROJECT_ID', | ||
readKey: 'YOUR_READ_KEY' | ||
}); | ||
// Use keen-analysis.js to run a query | ||
// and pass the result into your chart: | ||
const client = new Keen({ | ||
projectId: 'YOUR_PROJECT_ID', | ||
readKey: 'YOUR_READ_KEY' | ||
}); | ||
client | ||
.query('count', { | ||
event_collection: 'pageviews', | ||
timeframe: 'this_14_days', | ||
interval: 'daily' | ||
}) | ||
.then(function(res){ | ||
// Handle the result | ||
chart | ||
.data(res) | ||
.render(); | ||
}) | ||
.catch(function(err){ | ||
// Handle the error | ||
chart | ||
.message(err.message); | ||
}); | ||
</script> | ||
</body> | ||
</html> | ||
client | ||
.query('count', { | ||
event_collection: 'pageviews', | ||
timeframe: 'this_7_days', | ||
interval: 'daily' | ||
}) | ||
.then(function(res){ | ||
// Handle the result | ||
chart | ||
.data(res) | ||
.render(); | ||
}) | ||
.catch(function(err){ | ||
// Handle the error | ||
chart | ||
.message(err.message); | ||
}); | ||
``` | ||
@@ -283,0 +266,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8
5655184
37538
280