Skip to content

Commit 6188189

Browse files
committed
feat: upgrade to chart.js 3
1 parent db8da4b commit 6188189

18 files changed

+721
-436
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
module.exports = {
44
preset: 'ts-jest',
5-
testRegex: '((\\.|/)(test|spec))\\.[jt]sx?$',
5+
testRegex: '((\\.|/)(test|spec))\\.tsx?$',
66
};

package.json

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"src/**/*.tsx"
5151
],
5252
"peerDependencies": {
53-
"chart.js": "^3.0.0-rc.5"
53+
"chart.js": "^3.0.2"
5454
},
5555
"browserslist": [
5656
"Firefox ESR",
@@ -61,20 +61,20 @@
6161
"@sgratzl/boxplots": "^1.2.2"
6262
},
6363
"devDependencies": {
64-
"@rollup/plugin-commonjs": "^17.1.0",
65-
"@rollup/plugin-node-resolve": "^11.2.0",
66-
"@rollup/plugin-replace": "^2.4.1",
67-
"@rollup/plugin-typescript": "^8.2.0",
64+
"@rollup/plugin-commonjs": "^18.0.0",
65+
"@rollup/plugin-node-resolve": "^11.2.1",
66+
"@rollup/plugin-replace": "^2.4.2",
67+
"@rollup/plugin-typescript": "^8.2.1",
6868
"@types/jest": "^26.0.22",
6969
"@types/jest-image-snapshot": "^4.3.0",
70-
"@types/node": "^14.14.36",
71-
"@typescript-eslint/eslint-plugin": "^4.19.0",
72-
"@typescript-eslint/parser": "^4.19.0",
70+
"@types/node": "^14.14.37",
71+
"@typescript-eslint/eslint-plugin": "^4.20.0",
72+
"@typescript-eslint/parser": "^4.20.0",
7373
"@yarnpkg/pnpify": "^2.4.0",
7474
"canvas": "^2.7.0",
7575
"canvas-5-polyfill": "^0.1.5",
76-
"chart.js": "^3.0.0-rc.5",
77-
"eslint": "^7.22.0",
76+
"chart.js": "^3.0.2",
77+
"eslint": "^7.23.0",
7878
"eslint-config-airbnb-typescript": "^12.3.1",
7979
"eslint-config-prettier": "^8.1.0",
8080
"eslint-config-react-app": "^6.0.0",
@@ -85,17 +85,17 @@
8585
"eslint-plugin-react": "^7.23.1",
8686
"eslint-plugin-react-hooks": "^4.2.0",
8787
"jest": "^26.6.3",
88-
"jest-image-snapshot": "^4.4.0",
88+
"jest-image-snapshot": "^4.4.1",
8989
"prettier": "^2.2.1",
90-
"release-it": "^14.5.0",
90+
"release-it": "^14.5.1",
9191
"rimraf": "^3.0.2",
92-
"rollup": "^2.42.4",
92+
"rollup": "^2.44.0",
9393
"rollup-plugin-cleanup": "^3.2.1",
9494
"rollup-plugin-dts": "^3.0.1",
9595
"rollup-plugin-terser": "^7.0.2",
9696
"ts-jest": "^26.5.4",
9797
"tslib": "^2.1.0",
98-
"typedoc": "^0.20.34",
98+
"typedoc": "^0.20.35",
9999
"typescript": "^4.2.3"
100100
},
101101
"scripts": {
@@ -117,5 +117,10 @@
117117
"prepare": "yarn run build",
118118
"release": "release-it --disable-metrics --npm.skipChecks",
119119
"release:pre": "release-it --disable-metrics --npm.skipChecks --preRelease=alpha --npm.tag=next"
120+
},
121+
"dependenciesMeta": {
122+
"chart.js@3.0.0": {
123+
"unplugged": true
124+
}
120125
}
121126
}

samples/animation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="https://unpkg.com/chart.js@3.0.0-rc.5/dist/chart.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0/dist/chart.js"></script>
66
<script src="../build/index.umd.js"></script>
77
</head>
88

samples/datalimits.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="https://unpkg.com/chart.js@3.0.0-rc.5/dist/chart.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0/dist/chart.js"></script>
66
<script src="../build/index.umd.js"></script>
77
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
88
<script src="./utils.js"></script>

samples/datastructures.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="https://unpkg.com/chart.js@3.0.0-rc.5/dist/chart.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0/dist/chart.js"></script>
66
<script src="../build/index.umd.js"></script>
77
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
88
<script src="./utils.js"></script>

samples/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="https://unpkg.com/chart.js@3.0.0-rc.5/dist/chart.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0/dist/chart.js"></script>
66
<script src="../build/index.umd.js"></script>
77
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
88
<script src="./utils.js"></script>

samples/default_esm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<script type="importmap-shim">
1212
{
1313
"imports": {
14-
"chart.js": "https://unpkg.com/chart.js@3.0.0-rc.5?module",
15-
"chart.js/helpers": "https://unpkg.com/chart.js@3.0.0-rc.5/helpers/helpers.esm.js?module",
14+
"chart.js": "https://unpkg.com/chart.js@3.0.0?module",
15+
"chart.js/helpers": "https://unpkg.com/chart.js@3.0.0/helpers/helpers.esm.js?module",
1616
"@sgratzl/boxplots": "https://unpkg.com/@sgratzl/boxplots?module",
1717
"@sgratzl/chartjs-chart-boxplot": "../build/index.js"
1818
}

samples/empty.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="https://unpkg.com/chart.js@3.0.0-rc.5/dist/chart.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0/dist/chart.js"></script>
66
<script src="../build/index.umd.js"></script>
77
</head>
88

samples/fivenum.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Box Plot Chart</title>
5-
<script src="https://unpkg.com/chart.js@3.0.0-rc.5/dist/chart.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0/dist/chart.js"></script>
66
<script src="../build/index.umd.js"></script>
77
</head>
88

samples/horizontalBoxplot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>Horizontal Bar Chart</title>
5-
<script src="https://unpkg.com/chart.js@3.0.0-rc.5/dist/chart.js"></script>
5+
<script src="https://unpkg.com/chart.js@3.0.0/dist/chart.js"></script>
66
<script src="../build/index.umd.js"></script>
77
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
88
<script src="./utils.js"></script>

0 commit comments

Comments
 (0)