From 5d25ab5fa4b6fe2db90c13e15231f94e2c2d767d Mon Sep 17 00:00:00 2001 From: Alex Couturon Date: Mon, 9 Nov 2020 10:18:49 +0100 Subject: [PATCH 1/2] docs: update Readme with disclaimer --- packages/graph2d/package.json | 5 ++-- packages/graph2d/rollup.config.js | 47 ++++++++++++------------------ packages/network/package.json | 5 ++-- packages/network/rollup.config.js | 47 ++++++++++++------------------ packages/timeline/package.json | 5 ++-- packages/timeline/rollup.config.js | 47 ++++++++++++------------------ packages/utils/package.json | 5 ++-- packages/utils/rollup.config.js | 42 +++++++++++++------------- yarn.lock | 25 ++++++++++++++-- 9 files changed, 113 insertions(+), 115 deletions(-) diff --git a/packages/graph2d/package.json b/packages/graph2d/package.json index 476566e..07ec046 100644 --- a/packages/graph2d/package.json +++ b/packages/graph2d/package.json @@ -5,8 +5,8 @@ "author": "Alex Couturon ", "homepage": "https://github.com/alexcode/vue2vis#readme", "license": "MIT", - "main": "dist/graph2d.cjs.js", - "module": "dist/graph2d.esm.js", + "main": "dist/graph2d.umd.min.js", + "module": "dist/graph2d.esm.min.js", "directories": { "lib": "lib", "test": "__tests__" @@ -47,6 +47,7 @@ "propagating-hammerjs": "^1.4.0", "rollup-plugin-node-externals": "^2.1.5", "rollup-plugin-node-polyfills": "^0.2.1", + "rollup-plugin-terser": "^5.3.0", "uuid": "^7.0.0" } } diff --git a/packages/graph2d/rollup.config.js b/packages/graph2d/rollup.config.js index d028e04..213f7f0 100644 --- a/packages/graph2d/rollup.config.js +++ b/packages/graph2d/rollup.config.js @@ -2,15 +2,27 @@ import externals from "rollup-plugin-node-externals"; import resolve from "@rollup/plugin-node-resolve"; import commonjs from "@rollup/plugin-commonjs"; import nodePolyfills from "rollup-plugin-node-polyfills"; +import { terser } from "rollup-plugin-terser"; import vue from "rollup-plugin-vue"; export default [ { input: "./lib/index.js", - output: { - format: "esm", - file: "dist/graph2d.esm.js" - }, + output: [ + { + format: "esm", + sourcemap: true, + file: "dist/graph2d.esm.min.js" + }, + { + name: "vis", + extend: true, + exports: "named", + sourcemap: true, + format: "umd", + file: "dist/graph2d.umd.min.js" + } + ], plugins: [ externals({ exclude: [ @@ -28,30 +40,9 @@ export default [ uuid: ["v4"] } }), - vue() - ] - }, - { - input: "./lib/index.js", - output: { - format: "cjs", - file: "dist/graph2d.cjs.js" - }, - plugins: [ - externals({ - exclude: [ - "component-emitter", - "propagating-hammerjs", - "@egjs/hammerjs", - "keycharm", - "uuid" - ] - }), - nodePolyfills(), - resolve({ browser: true }), - commonjs({ - namedExports: { - uuid: ["v4"] + terser({ + output: { + comments: "some" } }), vue() diff --git a/packages/network/package.json b/packages/network/package.json index 8e049c3..8703d69 100644 --- a/packages/network/package.json +++ b/packages/network/package.json @@ -5,8 +5,8 @@ "author": "Alex Couturon ", "homepage": "https://github.com/alexcode/vue2vis#readme", "license": "MIT", - "main": "dist/network.cjs.js", - "module": "dist/network.esm.js", + "main": "dist/network.umd.min.js", + "module": "dist/network.esm.min.js", "directories": { "lib": "lib", "test": "__tests__" @@ -46,6 +46,7 @@ "keycharm": "^0.3.0", "rollup-plugin-node-externals": "^2.1.5", "rollup-plugin-node-polyfills": "^0.2.1", + "rollup-plugin-terser": "^5.3.0", "timsort": "^0.3.0", "uuid": "^7.0.0" } diff --git a/packages/network/rollup.config.js b/packages/network/rollup.config.js index b8ff106..ca9c0c0 100644 --- a/packages/network/rollup.config.js +++ b/packages/network/rollup.config.js @@ -2,15 +2,27 @@ import externals from "rollup-plugin-node-externals"; import resolve from "@rollup/plugin-node-resolve"; import commonjs from "@rollup/plugin-commonjs"; import nodePolyfills from "rollup-plugin-node-polyfills"; +import { terser } from "rollup-plugin-terser"; import vue from "rollup-plugin-vue"; export default [ { input: "./lib/index.js", - output: { - format: "esm", - file: "dist/network.esm.js" - }, + output: [ + { + format: "esm", + sourcemap: true, + file: "dist/network.esm.min.js" + }, + { + name: "vis", + extend: true, + exports: "named", + sourcemap: true, + format: "umd", + file: "dist/network.umd.min.js" + } + ], plugins: [ externals({ exclude: [ @@ -28,30 +40,9 @@ export default [ timsort: ["sort"] } }), - vue() - ] - }, - { - input: "./lib/index.js", - output: { - format: "cjs", - file: "dist/network.cjs.js" - }, - plugins: [ - externals({ - exclude: [ - "component-emitter", - "timsort", - "@egjs/hammerjs", - "keycharm", - "uuid" - ] - }), - nodePolyfills(), - resolve({ browser: true }), - commonjs({ - namedExports: { - timsort: ["sort"] + terser({ + output: { + comments: "some" } }), vue() diff --git a/packages/timeline/package.json b/packages/timeline/package.json index 0f646cf..af75975 100644 --- a/packages/timeline/package.json +++ b/packages/timeline/package.json @@ -5,8 +5,8 @@ "author": "Alex Couturon ", "homepage": "https://github.com/alexcode/vue2vis#readme", "license": "MIT", - "main": "dist/timeline.cjs.js", - "module": "dist/timeline.esm.js", + "main": "dist/timeline.umd.min.js", + "module": "dist/timeline.esm.min.js", "directories": { "lib": "lib", "test": "__tests__" @@ -54,6 +54,7 @@ "propagating-hammerjs": "^1.4.0", "rollup-plugin-node-externals": "^2.1.5", "rollup-plugin-node-polyfills": "^0.2.1", + "rollup-plugin-terser": "^5.3.0", "uuid": "^7.0.0" } } diff --git a/packages/timeline/rollup.config.js b/packages/timeline/rollup.config.js index 3b84024..29ef911 100644 --- a/packages/timeline/rollup.config.js +++ b/packages/timeline/rollup.config.js @@ -2,15 +2,27 @@ import externals from "rollup-plugin-node-externals"; import resolve from "@rollup/plugin-node-resolve"; import commonjs from "@rollup/plugin-commonjs"; import nodePolyfills from "rollup-plugin-node-polyfills"; +import { terser } from "rollup-plugin-terser"; import vue from "rollup-plugin-vue"; export default [ { input: "./lib/index.js", - output: { - format: "esm", - file: "dist/timeline.esm.js" - }, + output: [ + { + format: "esm", + sourcemap: true, + file: "dist/timeline.esm.min.js" + }, + { + name: "vis", + extend: true, + exports: "named", + sourcemap: true, + format: "umd", + file: "dist/timeline.umd.min.js" + } + ], plugins: [ externals({ exclude: [ @@ -28,30 +40,9 @@ export default [ uuid: ["v4"] } }), - vue() - ] - }, - { - input: "./lib/index.js", - output: { - format: "cjs", - file: "dist/timeline.cjs.js" - }, - plugins: [ - externals({ - exclude: [ - "component-emitter", - "propagating-hammerjs", - "@egjs/hammerjs", - "keycharm", - "uuid" - ] - }), - nodePolyfills(), - resolve({ browser: true }), - commonjs({ - namedExports: { - uuid: ["v4"] + terser({ + output: { + comments: "some" } }), vue() diff --git a/packages/utils/package.json b/packages/utils/package.json index 9bc5225..482bcb0 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -5,8 +5,8 @@ "author": "Alex Couturon ", "homepage": "https://github.com/alexcode/vue2vis#readme", "license": "MIT", - "main": "dist/utils.cjs.js", - "module": "dist/utils.esm.js", + "main": "dist/utils.umd.min.js", + "module": "dist/utils.esm.min.js", "directories": { "lib": "lib", "test": "__tests__" @@ -39,6 +39,7 @@ "@rollup/plugin-node-resolve": "^7.1.1", "rollup-plugin-node-externals": "^2.1.5", "rollup-plugin-node-polyfills": "^0.2.1", + "rollup-plugin-terser": "^5.3.0", "uuid": "^7.0.0" } } diff --git a/packages/utils/rollup.config.js b/packages/utils/rollup.config.js index 6da0f32..3056ca5 100644 --- a/packages/utils/rollup.config.js +++ b/packages/utils/rollup.config.js @@ -2,36 +2,38 @@ import externals from "rollup-plugin-node-externals"; import resolve from "@rollup/plugin-node-resolve"; import commonjs from "@rollup/plugin-commonjs"; import nodePolyfills from "rollup-plugin-node-polyfills"; +import { terser } from "rollup-plugin-terser"; export default [ { input: "./lib/index.js", - output: { - format: "esm", - file: "dist/utils.esm.js" - }, + output: [ + { + format: "esm", + sourcemap: true, + file: "dist/utils.esm.min.js" + }, + { + name: "vis", + extend: true, + exports: "named", + sourcemap: true, + format: "umd", + file: "dist/utils.umd.min.js" + } + ], plugins: [ externals({ exclude: ["uuid"] }), nodePolyfills(), resolve({ browser: true }), - commonjs() - ] - }, - { - input: "./lib/index.js", - output: { - format: "cjs", - file: "dist/utils.cjs.js" - }, - plugins: [ - externals({ - exclude: ["uuid"] - }), - nodePolyfills(), - resolve({ browser: true }), - commonjs() + commonjs(), + terser({ + output: { + comments: "some" + } + }) ] } ]; diff --git a/yarn.lock b/yarn.lock index a8c0ab9..f3ce6c5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,7 +2,7 @@ # yarn lockfile v1 -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.8.3": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.5.5", "@babel/code-frame@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e" integrity sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g== @@ -11208,6 +11208,14 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" +rollup-plugin-babel@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-4.4.0.tgz#d15bd259466a9d1accbdb2fe2fff17c52d030acb" + integrity sha512-Lek/TYp1+7g7I+uMfJnnSJ7YWoD58ajo6Oarhlex7lvUce+RCKRuGRSgztDO3/MF/PuGKmUL5iTHKf208UNszw== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + rollup-pluginutils "^2.8.1" + rollup-plugin-inject@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/rollup-plugin-inject/-/rollup-plugin-inject-3.0.2.tgz#e4233855bfba6c0c12a312fd6649dff9a13ee9f4" @@ -11229,6 +11237,17 @@ rollup-plugin-node-polyfills@^0.2.1: dependencies: rollup-plugin-inject "^3.0.0" +rollup-plugin-terser@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-5.3.0.tgz#9c0dd33d5771df9630cd027d6a2559187f65885e" + integrity sha512-XGMJihTIO3eIBsVGq7jiNYOdDMb3pVxuzY0uhOE/FM4x/u9nQgr3+McsjzqBn3QfHIpNSZmFnpoKAwHBEcsT7g== + dependencies: + "@babel/code-frame" "^7.5.5" + jest-worker "^24.9.0" + rollup-pluginutils "^2.8.2" + serialize-javascript "^2.1.2" + terser "^4.6.2" + rollup-plugin-vue@^5.1.6: version "5.1.6" resolved "https://registry.yarnpkg.com/rollup-plugin-vue/-/rollup-plugin-vue-5.1.6.tgz#c0b31de919ff1aad36f3277957ac90345e897c23" @@ -11244,7 +11263,7 @@ rollup-plugin-vue@^5.1.6: source-map "0.7.3" vue-runtime-helpers "^1.1.1" -rollup-pluginutils@^2.4.1, rollup-pluginutils@^2.8.1: +rollup-pluginutils@^2.4.1, rollup-pluginutils@^2.8.1, rollup-pluginutils@^2.8.2: version "2.8.2" resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz#72f2af0748b592364dbd3389e600e5a9444a351e" integrity sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ== @@ -12244,7 +12263,7 @@ terser-webpack-plugin@^2.3.4: terser "^4.4.3" webpack-sources "^1.4.3" -terser@^4.1.2, terser@^4.4.3: +terser@^4.1.2, terser@^4.4.3, terser@^4.6.2: version "4.6.11" resolved "https://registry.yarnpkg.com/terser/-/terser-4.6.11.tgz#12ff99fdd62a26de2a82f508515407eb6ccd8a9f" integrity sha512-76Ynm7OXUG5xhOpblhytE7X58oeNSmC8xnNhjWVo8CksHit0U0kO4hfNbPrrYwowLWFgM2n9L176VNx2QaHmtA== From d9f9084c84344fd38de47aa8083cbb562a5f920b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Nov 2020 09:21:11 +0000 Subject: [PATCH 2/2] Bump elliptic from 6.5.2 to 6.5.3 Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3) Signed-off-by: dependabot[bot] --- yarn.lock | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/yarn.lock b/yarn.lock index f3ce6c5..f356f08 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3337,9 +3337,9 @@ bluebird@^3.1.1, bluebird@^3.5.1, bluebird@^3.5.3, bluebird@^3.5.5: integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: - version "4.11.8" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" - integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA== + version "4.11.9" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.9.tgz#26d556829458f9d1e81fc48952493d0ba3507828" + integrity sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw== body-parser@1.19.0: version "1.19.0" @@ -5227,9 +5227,9 @@ electron-to-chromium@^1.3.390: integrity sha512-JaoxV4RzdBAZOnsF4dAlZ2ijJW72MbqO5lNfOBHUWiBQl3Rwe+mk2RCUMrRI3rSClLJ8HSNQNqcry12H+0ZjFw== elliptic@^6.0.0: - version "6.5.2" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.2.tgz#05c5678d7173c049d8ca433552224a495d0e3762" - integrity sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw== + version "6.5.3" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6" + integrity sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw== dependencies: bn.js "^4.4.0" brorand "^1.0.1" @@ -11208,14 +11208,6 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -rollup-plugin-babel@^4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-4.4.0.tgz#d15bd259466a9d1accbdb2fe2fff17c52d030acb" - integrity sha512-Lek/TYp1+7g7I+uMfJnnSJ7YWoD58ajo6Oarhlex7lvUce+RCKRuGRSgztDO3/MF/PuGKmUL5iTHKf208UNszw== - dependencies: - "@babel/helper-module-imports" "^7.0.0" - rollup-pluginutils "^2.8.1" - rollup-plugin-inject@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/rollup-plugin-inject/-/rollup-plugin-inject-3.0.2.tgz#e4233855bfba6c0c12a312fd6649dff9a13ee9f4"