Commit Graph

270 Commits

Author SHA1 Message Date
Igor Lukanin
1d7dfadbad Bump to 4.2.0 (#11070) 2023-01-18 08:35:00 -05:00
Andrew Kane
b2b881b9b1 Specify module for Webpack 4 (#11037) 2023-01-10 12:01:59 -05:00
Dan Onoshko
b51c523366 chore: version bump (#11034) 2023-01-05 17:00:35 +01:00
Dan Onoshko
2cde2bf41d fix: package.json fields fixes for old jest-resolver versions (#11033) 2023-01-05 10:28:07 -05:00
Dan Onoshko
da348044f7 chore: replace cp with js code (#11000) 2022-12-19 09:39:23 +01:00
Evert Timberg
810ceb7741 Bump to 4.1.1 (#10997) 2022-12-17 11:06:49 -05:00
Dan Onoshko
64a027874c fix: move types to src dir to escape src / dist dirs in paths (#10993) 2022-12-16 07:56:06 -05:00
Dan Onoshko
bc84a98ec6 fix: hotfix chart.js/auto for commonjs (#10992)
* fix: hotfix chart.js/auto for commonjs

* fix: add auto.cjs to side effects
2022-12-16 07:53:27 -05:00
Dan Onoshko
35fd6204b9 feat: restore commonjs bundle (#10984) 2022-12-16 01:11:11 +02:00
Jacco van den Berg
9d51e99e80 bunp version to 4.1.0 (#10983) 2022-12-15 18:48:31 +01:00
Simon He
c9f55ccf19 chore: add lint cache (#10974)
* chore: add lint cache

* chore: update

* chore: update
2022-12-14 16:24:43 -05:00
Dan Onoshko
8283ad5867 fix: move @kurkle/color to dependencies (#10917)
fixes #10915
2022-11-30 09:31:43 -05:00
Dan Onoshko
51441272a7 refactor: move to esm in sources (#10879) 2022-11-17 08:08:44 -05:00
Ben McCann
a6f118388f fix: put types first in exports map (#10880) 2022-11-17 08:22:47 +02:00
Jacco van den Berg
ae1365e1ed Fix release (#10871)
* Update namespace

* fix release, bump version
2022-11-15 00:17:20 +01:00
Evert Timberg
11f3cf6361 v4.0.0 bump (#10868) 2022-11-13 21:16:32 +01:00
Jacco van den Berg
3fea72e81c Alternative remove docs from publish (#10844)
* Update namespace

* alternative approach

* test-ignore
2022-11-01 15:54:03 +01:00
Jacco van den Berg
3557559004 Bump alpha 3 (#10822) 2022-10-24 07:44:29 +02:00
Jacco van den Berg
c849b7bc1d Bump alpha 2 (#10790) 2022-10-12 18:59:56 +02:00
Jacco van den Berg
02a7bdbf80 Bump alpha v4 (#10787)
* Update namespace

* bump alpha
2022-10-12 07:16:03 -04:00
Dan Onoshko
47cb9e1f76 feat: typescript node next support (#10661) 2022-09-14 06:44:57 -04:00
Jacco van den Berg
b0a06d1652 fix filter paramater in package.json (#10614) 2022-08-22 23:30:29 +03:00
Ben McCann
9258f250b6 Switch to pnpm (#10576) 2022-08-22 20:42:43 +02:00
Dan Onoshko
2031cdf051 Preparing the project for TypeScript (#10595)
* Add Typescript to the build
* Converts the `helpers.core` to Typescript as an example
* Converts the `core.element` to Typescript
2022-08-22 11:58:57 -04:00
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
Dan Onoshko
cdb17d6eeb feat: sideEffects false (#10526)
* feat: sideEffects false
* refactor: apply defaults by pure way
2022-08-06 08:45:41 -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
Ben McCann
6feb48b5ef Allow ESM files to be used in Node.js (#10479)
Allow ESM files to be used in Node.js
2022-07-30 11:25:23 -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
Jacco van den Berg
3fe5811648 Lint before build & test, remove lint from test (#10462)
* Lint before build & test, remove lint from test
* should reconize test now
* test skip build in test step
* readd build step
2022-07-07 07:15:54 -04: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
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
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