Skip to content

Commit

Permalink
Chart.js v3.0.0-beta.10 compatibility update (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored and simonbrunel committed Mar 9, 2021
1 parent b8a1929 commit 23674ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@vuepress/plugin-google-analytics": "^1.8.2",
"acorn": "^8.0.5",
"archiver": "^5.2.0",
"chart.js": "^3.0.0-beta.7",
"chart.js": "^3.0.0-beta.10",
"chartjs-test-utils": "^0.2.2",
"eslint": "^7.21.0",
"eslint-config-chartjs": "^0.3.0",
Expand All @@ -68,6 +68,6 @@
"yargs": "^16.2.0"
},
"peerDependencies": {
"chart.js": "^3.0.0-beta.9"
"chart.js": "^3.0.0-beta.10"
}
}
3 changes: 2 additions & 1 deletion test/specs/events.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ describe('events', function() {
options: {
hover: false,
plugins: {
datalabels: options
datalabels: options,
tooltip: false // Chart.js v3.0.0-beta.10 tooltip plugin triggers a change if enabled
}
}
});
Expand Down
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ChartDatasetProperties, ChartType, Plugin, PluginOptions} from 'chart.js';
import {ChartDatasetProperties, ChartType, Plugin, PluginOptionsByType} from 'chart.js';
import {Options} from './options';

declare module 'chart.js' {
Expand All @@ -10,7 +10,7 @@ declare module 'chart.js' {
datalabels?: Options;
}

interface PluginOptions {
interface PluginOptionsByType {
/**
* Per chart datalabels plugin options.
* @since 0.1.0
Expand Down

0 comments on commit 23674ef

Please sign in to comment.