Commit Graph

150 Commits

Author SHA1 Message Date
Ben McCann
30ba86ad3e chore: upgrade dependencies (#10573) 2022-08-18 09:09:09 +03:00
Jacco van den Berg
d1686fb6cc Downgrade karma preprocessor (#10589)
* force older version of karma pre processor
* package-lock update
2022-08-12 18:15:47 -04:00
Jukka Kurkela
29395d9013 Fix docs build (#10566) 2022-08-05 08:02:04 -04:00
Dan Onoshko
ce375a6876 feat: add ESM support (#10525)
* feat: add ESM support

* build: rename UMD bundle

* chore: edit supbackages description

* style: disable es/no-import-meta linter rule

* test: dynamic import in cjs module

* docs: edit integrations page

* docs: review fixes

* chore: remove useless regex in webpack config

* ci: test size-limit only for ESM bundle
2022-08-04 18:43:26 -04:00
Dan Onoshko
a4de430d99 fix: treeshaking (#10504)
* fix: treeshaking
* refactor: DatasetController.datasetElementType and DatasetController.dataElementType as static props
2022-08-04 09:17:40 -04:00
Jukka Kurkela
9224e57d93 Add integration test(s) for Node (#10554) 2022-08-03 09:17:05 -04:00
Jacco van den Berg
7079a1caac Bump to 3.9.0 (#10541)
* make link work in github itself
* fix dead link on reload or new tab
* bump to 3.9.0
2022-08-02 08:54:45 -04:00
Evert Timberg
26e70b7608 Explicitly include package.json files for subpackages (#10513)
Remove redundant permissions on release CI to prevent a failure
Bump version to v3.8.2

Co-authored-by: Chart.js <>
2022-07-24 14:42:33 -04:00
Evert Timberg
aa4507d222 Bump to 3.8.1 (#10509) 2022-07-24 11:38:49 -04:00
dependabot[bot]
ffa24628b5 Bump terser from 4.8.0 to 4.8.1 (#10493)
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20 12:51:10 -04:00
dependabot[bot]
59a2d53178 Bump moment from 2.29.2 to 2.29.4 (#10471)
Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.2...2.29.4)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-07 07:53:32 -04:00
dependabot[bot]
8dd8760f1b Bump eventsource from 1.1.0 to 1.1.1 (#10393)
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 07:04:48 +03:00
Jacco van den Berg
1a1151b122 Bump to 3.8.0 (#10377) 2022-05-25 10:06:57 -04:00
Evert Timberg
cf780a5db5 Update to v0.2.1 color dependency to fix bug with invalid colours (#10371)
* Update to v0.2.0 color dependency to fix bug with invalid colours
* v0.2.1
2022-05-23 12:51:17 -04:00
dependabot[bot]
d8d69f5875 Bump async from 2.6.3 to 2.6.4 (#10320)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 16:57:17 -04:00
dependabot[bot]
38f4632732 Bump moment from 2.29.1 to 2.29.2 (#10290)
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 23:23:51 +03:00
dependabot[bot]
3b9042005b Bump minimist from 1.2.5 to 1.2.6 (#10260)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-31 14:54:05 +03:00
Josh Kelley
c057c96693 Interaction functions (#10046)
* Refactor get...Items functions to take events rather than positions

To work toward exposing something like the get...Items functions.

* Switch getAxisItems to use optimizedEvaluateItems

optimizedEvaluateItems falls back to evaluating all items for unsorted items, and sorting / optimizing ought to be okay, so this ought to be equivalent.

* Performance

* Consolidate getRelativePosition

helpers.dom.js's getRelativePosition already had logic to handle ChartEvent vs. Event (as demonstrated by the `native` check within `getCanvasPosition`), so it's redundant for core.interaction.js to have its own `native` check.

Update `getRelativePosition` to use the same `native` check as core.interaction.js's version.  As best as I can tell, the ChartEvent's x and y are populated from `getRelativePosition`, so the previous `getCanvasPosition` was effectively just duplicating `getRelativePosition'`s work.  I added a test to verify this; it depends on a local, not-yet-submitted change in chartjs-test-utils' `triggerMouseEvent` to return the mouse event that it triggers.

* Add an API to refactor duplicate isPointInArea

* Rename and update JSDoc to prepare for making this public

* Give functions a consistent, generic interface

* Export functions for discussion

* Code review feedback

Add a non-null assertion, as requested in code review.

Add JSDoc to clarify that `getCanvasPosition` now expects a native `Event`, not a `ChartEvent`.  Add `@ts-ignore`; `getCanvasPosition` relied on some loose conversions between `Event`, `TouchEvent`, and `Touch` that would require several changes to make TypeScript happy.

* Code review feedback

Return the event directly, to speed up the code a bit.  Add JSDoc to help communicate its intent.  Update various comments.

* Finalize exports; add docs and TypeScript

* Update src/helpers/helpers.dom.js

* Update src/helpers/helpers.dom.js

Only thing needed actually is the update of chartjs-test-utils to 0.4.0

* Bump chartjs-test-utils dependency

To get supporting work from https://github.com/chartjs/chartjs-test-utils/pull/19

Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
2022-03-24 09:02:30 -04:00
dependabot[bot]
285d845159 Bump karma from 6.3.14 to 6.3.16 (#10204)
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.14 to 6.3.16.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.14...v6.3.16)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 16:42:03 +02:00
dependabot[bot]
344aca5c7a Bump url-parse from 1.5.7 to 1.5.10 (#10200)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-26 15:58:12 +02:00
dependabot[bot]
c7885f6989 Bump prismjs from 1.25.0 to 1.27.0 (#10198)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.25.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.25.0...v1.27.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-26 07:42:04 -05:00
dependabot[bot]
2f7550db05 Bump url-parse from 1.5.3 to 1.5.7 (#10181)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.7)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-19 19:19:00 +02:00
dependabot[bot]
6e2c3d8349 Bump karma from 6.3.9 to 6.3.14 (#10146)
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.9 to 6.3.14.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.9...v6.3.14)

---
updated-dependencies:
- dependency-name: karma
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-12 10:33:06 -05:00
dependabot[bot]
ed8fa1b825 Bump log4js from 6.3.0 to 6.4.1 (#10150)
Bumps [log4js](https://github.com/log4js-node/log4js-node) from 6.3.0 to 6.4.1.
- [Release notes](https://github.com/log4js-node/log4js-node/releases)
- [Changelog](https://github.com/log4js-node/log4js-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/log4js-node/log4js-node/compare/v6.3.0...v6.4.1)

---
updated-dependencies:
- dependency-name: log4js
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-12 09:55:50 -05:00
dependabot[bot]
653716287a Bump engine.io from 6.1.0 to 6.1.2 (#10152)
Bumps [engine.io](https://github.com/socketio/engine.io) from 6.1.0 to 6.1.2.
- [Release notes](https://github.com/socketio/engine.io/releases)
- [Changelog](https://github.com/socketio/engine.io/blob/master/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io/compare/6.1.0...6.1.2)

---
updated-dependencies:
- dependency-name: engine.io
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-12 09:55:43 -05:00
dependabot[bot]
4d97169f5e Bump node-fetch from 2.6.6 to 2.6.7 (#10151)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-12 09:55:35 -05:00
dependabot[bot]
15953ddfdd Bump follow-redirects from 1.14.6 to 1.14.8 (#10149)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.6 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.6...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-12 09:55:25 -05:00
Evert Timberg
7b621d725d Bump to 3.7.1 (#10148) 2022-02-12 09:48:34 -05:00
Jukka Kurkela
a5b46a859c Bump version to 3.7.0, update deps (#10011)
* Bump version to 3.7.0, update deps

* Fix issues from updated packages
2021-12-23 20:55:39 +02:00
Josh Kelley
957ca837d5 Specify UTC time zone for the test suite (#9945)
The controller.bar/not-grouped/on-time test was failing on my computer because the date ranges happen to cross the end of Daylight Saving Time in the U.S., so chart was generated with one more hour of time than the test fixture expected.

Using moment-timezone to specify a fixed time zone with no DST seemed like the most robust fix. (Alternatively, I could pick a date range that doesn't change DST; that ought to work.)
2021-12-06 07:38:39 -05:00
Jukka Kurkela
9fa26f9247 Bump version to 3.6.2 (#9953) 2021-12-05 08:41:45 -05:00
Evert Timberg
688cd470e9 Bump to 3.6.1 (#9929) 2021-11-30 13:14:49 -05:00
Evert Timberg
40e88ba45c Bump to 3.6.0 (#9784) 2021-10-23 13:21:28 -04:00
Jukka Kurkela
50ad1637b0 Fix plugin event filtering of renamed events (#9613) 2021-09-04 13:41:47 -04:00
Jukka Kurkela
3ed94559dd Add missing typings of helpers, add automatic test (#9570)
* Add missing typings of helpers, add automatic test

* Add error handling to autogen.js
2021-09-01 20:27:26 -04:00
Evert Timberg
4bf42f4e8e Update to 3.5.1 version number (#9565) 2021-08-18 08:12:37 -04:00
Jukka Kurkela
a8337a32c9 Bump version to 3.5.0, update deps (#9464) 2021-07-25 07:56:33 -04:00
Jukka Kurkela
c73add9d6c Typescript 4.2+ compatibility (#9444) 2021-07-20 07:55:51 -04:00
Jukka Kurkela
dac7101131 Bump version to 3.4.1 (#9350) 2021-07-04 07:29:42 -04:00
Jukka Kurkela
28d6619555 Update deps (#9349) 2021-07-04 07:27:00 -04:00
Evert Timberg
4bdb57df8c Bump to version 3.4.0 (#9322) 2021-06-26 12:04:20 -04:00
Jukka Kurkela
54da5341f1 Docs: Add copy button to code blocks (#9262) 2021-06-13 07:40:51 -04:00
Evert Timberg
5082d13d5a Version bump to 3.3.1 (#9182) 2021-05-29 17:35:57 -04:00
Jukka Kurkela
0d6fa55714 Bump version to 3.3, update dependencies (#9149) 2021-05-24 07:49:10 -04:00
Jukka Kurkela
7265bb51d5 Update chartjs-test-utils and mis-sized fixtures (#9135) 2021-05-20 14:59:55 +03:00
Evert Timberg
e344c75eb8 Upgrade dependencies (#9102) 2021-05-15 08:14:23 +03:00
Jukka Kurkela
938865f67d Bump version to 3.2.1 (#9014) 2021-05-01 14:04:59 -04:00
Evert Timberg
0f1d07a1cd Bump to version 3.2.0 (#8974) 2021-04-24 16:12:18 -04:00
Evert Timberg
c56cdedece Bump to 3.1.1 (#8927) 2021-04-17 07:50:47 -04:00
Jukka Kurkela
ef3a777e6b Update @simonbrunel/vuepress-plugin-versions (#8882) 2021-04-11 13:47:38 -04:00