Skip to content

Commit

Permalink
feat!: update Vis Data and remove Moment (#295)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Type coercion in Data Sets is no longer available and
Moment is no longer a part of bundled files.
  • Loading branch information
Thomaash authored Aug 3, 2020
1 parent d95b967 commit e7c9983
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 66 deletions.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ exports.graph3d = {
};

// bundled external libraries
exports.moment = require('./lib/module/moment');
exports.Hammer = require('./lib/module/hammer');
exports.keycharm = require('keycharm');
42 changes: 0 additions & 42 deletions lib/header.js

This file was deleted.

8 changes: 0 additions & 8 deletions lib/module/moment.js

This file was deleted.

12 changes: 3 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@
"component-emitter": "^1.3.0",
"hammerjs": "^2.0.0",
"keycharm": "^0.2.0 || ^0.3.0",
"moment": "^2.24.0",
"propagating-hammerjs": "^1.4.0",
"uuid": "^7.0.0 || ^8.0.0",
"vis-data": "^6.5.0",
"vis-data": "^7.0.0",
"vis-util": "^3.0.0 || ^4.0.0"
},
"devDependencies": {
Expand Down Expand Up @@ -93,7 +92,6 @@
"keycharm": "0.3.1",
"lint-staged": "10.2.11",
"mocha": "8.1.0",
"moment": "2.27.0",
"nyc": "15.1.0",
"opencollective": "1.0.3",
"postcss-assets": "5.0.0",
Expand All @@ -114,7 +112,7 @@
"snap-shot-it": "7.9.3",
"test-console": "1.1.0",
"uuid": "8.3.0",
"vis-data": "6.6.1",
"vis-data": "7.0.0",
"vis-dev-utils": "2.4.0",
"vis-util": "4.3.4"
},
Expand Down
3 changes: 1 addition & 2 deletions rollup.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import packageJSON from "./package.json";
import { generateRollupConfiguration } from "vis-dev-utils";

export default generateRollupConfiguration({
externalForPeerBuild: ["moment", "vis-data"],
externalForPeerBuild: ["vis-data"],
globals: {
"component-emitter": "Emitter",
"propagating-hammerjs": "propagating",
"vis-data": "vis",
"vis-util": "vis",
hammerjs: "Hammer",
keycharm: "keycharm",
moment: "moment",
uuid: "uuidv4"
},
header: { name: "vis-graph3d" },
Expand Down

0 comments on commit e7c9983

Please sign in to comment.