Commit Graph

137 Commits

Author SHA1 Message Date
Jukka Kurkela
690d07ba9b
Update packages (#7463) 2020-06-04 19:51:34 -04:00
Ben McCann
c527ec9910
Remove unused dependency (#7441) 2020-05-28 17:39:09 -04:00
Jukka Kurkela
064a2f3a0b
Replace gulp with npm scripts (#7402)
Gulp removed from toolchain in favour of simpler build process
2020-05-27 17:14:17 -04:00
Jukka Kurkela
f472a3f9a7
Remove proposal and obsolete features (#7425) 2020-05-26 19:16:23 -04:00
Jukka Kurkela
986f72f933
Rename dist/Chart* to dist/chart* (#7416)
* Rename dist/Chart* to dist/chart*
* Add a note to migration docs
* Review update
2020-05-25 16:54:22 -04:00
Ben McCann
19bb07a9f8
Upgrade dependencies (#7352) 2020-05-18 09:48:21 -04:00
Jukka Kurkela
319a6a40b9
Use @rollup/plugin-inject for ResizeObserver poly (#7360) 2020-05-15 17:17:59 -04:00
Ben McCann
8afa990e4c
Upgrade dependencies (#7317) 2020-05-08 09:46:07 -04:00
Ben McCann
2851a94b92
Migrate from GitBook to Docusaurus (#7295)
Migrate from GitBook to Docusaurus
2020-05-05 15:19:57 -04:00
Ben McCann
29f6c67fb3
Finish removing bower (#7294) 2020-04-28 17:34:49 -04:00
Ben McCann
49935347ff
Update dependencies (#7233) 2020-03-29 15:02:10 -04:00
Ben McCann
7051410d4e
Only polyfill ResizeObserver for UMD builds (#7208) 2020-03-22 13:40:26 -04:00
Evert Timberg
6c9b0a5a3e
Bump package version for first alpha release of v3 (#7183) 2020-03-08 11:10:30 -04:00
Ben McCann
53205457dc
Add tests for rendering to offscreen canvas (#7175)
Add tests for using an offscreen canvas for Chart.js. These tests are
almost identical to existing tests, but with offscreen canvas enabled.

Co-authored-by: David Winegar <david.winegar@getcruise.com>
2020-03-06 12:17:12 -05:00
Jukka Kurkela
df3c73cc5e
Give the boot to chartjs-adapter-moment (#7155)
Remove default of using chartjs-adapter-moment
2020-02-27 19:40:31 -05:00
Jukka Kurkela
d801e56106
Update dependencies and alter privacy of functions (#7138)
* Update dependencies

* Fix privacy problems

* color lib & consistency

* Review update

* getLabelCapacity

* Review update
2020-02-22 08:35:16 -05:00
Ben McCann
7b9a0a775c
Rollup plugins live in new location (#7134) 2020-02-20 18:19:59 -05:00
Jukka Kurkela
65425a5cb6
Include version in Chart (#7129)
* Include version in Chart
* Remove commonjs
2020-02-20 09:41:47 -05:00
Jukka Kurkela
f2aa88f49d
Prepare babel & karma for class properties (#7126)
* Prepare babel & karma for class properties
* Remove rollup-plugin-istanbul
2020-02-19 14:24:16 -05:00
Jukka Kurkela
bfe34214ac
Use ResizeObserver and MutationObserver to detect detach/attach/resize (#7104)
* Use Resize/MutationObserver to detect detach/attach/resize
* Cleanup
* Review update
* Restore infinite resize detection (#6011)
2020-02-17 11:00:03 -05:00
Evert Timberg
8245da44f5
Strip comments from ESM build otherwise the TS compiler breaks (#7102)
* Strip comments from ESM build otherwise the TS compiler breaks
* Cleanup no ESM build as well
2020-02-14 14:11:24 -05:00
Jukka Kurkela
7c1fb37c61
Babel @kurkle/color for IE support (#7099)
Babel @kurkle/color for IE support
2020-02-14 12:29:33 -05:00
Jukka Kurkela
25a9969489
Enable esnext and fix all lint errors (#7094)
* enable esnext and fix all lint errors

* Review update

* Missed some

* Some cleanup still

* Remove leftover eslint disable
2020-02-13 18:41:49 -05:00
Jukka Kurkela
44a624f2d1 Fix typo and update dependencies (#7077)
* Fix typo and update dependencies
* Update `isColorInstance`
2020-02-09 20:14:38 -05:00
Jukka Kurkela
fa79eb8797
Switch from chartjs-color to @kurkle/color (#7059) 2020-02-07 19:24:29 -05:00
Ben McCann
795c86e95b
Fix errors reported by TypeScript compiler (#7030) 2020-02-07 18:03:33 -05:00
Evert Timberg
aae841a624
Set the version to v3.0.0-dev for dev builds (#6965) 2020-01-16 07:20:16 -05:00
Evert Timberg
27129db2e8
Update some dependencies that have security alerts (#6891) 2020-01-02 09:42:48 -05:00
Ben McCann
8f0de52c4e Remove moment from dependencies (#6745)
* Remove moment from dependencies
* Remove version number in docs
2019-11-15 13:13:33 -05:00
Ben McCann
3a33793f64 Generate jsdocs (#5824) 2019-11-08 07:28:21 -05:00
Edward Thomson
aff7d41140 Add cross-platform CI (#6670)
* Linux and Windows CI with GitHub Actions
* Add karma-edge-launcher
* Add edge configuration to karma.conf.js
* Support --browsers on the command line for karma tests
* Add macOS CI builds
* Add karma-safari-private-launcher
* Document browser specification for tests
2019-11-06 07:14:09 -05:00
Ben McCann
eef153de40 Upgrade dependencies (#6662) 2019-10-31 18:03:00 -04:00
Jukka Kurkela
c068f2178a Update eslint-config-chartjs (#6650) 2019-10-30 18:51:01 -04:00
Sebastian Niemann
9537548321 Adds support for ES6 modules (#6619) 2019-10-27 18:28:25 -04:00
Evert Timberg
1ac3a697f7
Add babel plugin for rollup & transform code (#6555)
* Add babel plugin for rollup & transform code
* Add .browserlistrc file & copy defaults
2019-10-27 16:28:30 -04:00
Evert Timberg
d4dc505966
Bump version number to v2.9.1 (#6612) 2019-10-27 14:51:07 -04:00
Ben McCann
ea100d400e Bump version number to 2.9.0 (#6600) 2019-10-25 14:57:21 -04:00
Ben McCann
f68b8adaac Upgrade rollup and plugins to fix build (#6493) 2019-09-04 07:44:01 -04:00
Simon Brunel
152f1d9725 Bump version to 2.8.0 2019-03-12 11:29:11 +01:00
Simon Brunel
f9f048a5c5 Bump version to 2.8.0-rc.1 2019-03-04 09:58:08 +01:00
Simon Brunel
35273ee948
Optimize the npm package by removing useless files (#6105)
Explicitly target files that should be included in the npm package, making it 10x smaller by removing the docs, samples, scripts, sources, tests and other useless files.
2019-03-03 15:19:11 +01:00
Simon Brunel
55128f74c1 Move CSS in a separate file to be CSP-compliant (#6048)
In order to be compatible with any CSP, we need to prevent the automatic creation of the DOM 'style' element and offer our CSS as a separate file that can be manually loaded (`Chart.js` or `Chart.min.js`). Users can now opt-out the style injection using `Chart.platform.disableCSSInjection = true` (note that the style sheet is now injected on the first chart creation).

To prevent duplicating and maintaining the same CSS code at different places, move all these rules in `platform.dom.css` and write a minimal rollup plugin to inject that style as string in `platform.dom.js`. Additionally, this plugin extract the imported style in `./dist/Chart.js` and `./dist/Chart.min.js`.
2019-02-08 19:06:04 +01:00
Ben McCann
a2521e54ee Replace deprecated gulp-util and remove unused watchify (#6032)
* Replace deprecated gulp-util and remove unused watchify

* Remove logging
2019-02-01 20:03:31 -05:00
Simon Brunel
e07c5d0c6c
Make moment optional from our UMD builds (#5978) 2019-01-29 17:54:22 +01:00
Simon Brunel
2a97ec21c5
Migrate from Browserify to rollup (#5904)
Browserify isn't optimal bundling Chart.js because it adds too many internal wrappers, doesn't handle external/global dependencies and doesn't provide a way to generate ESM builds. Therefore, it seems the right choice to switch to rollup, so move all the build process in `rollup.config.js` and make Gulp to execute `rollup -c`.

We also had to switch to Terser instead of UglifyJS because this last one contains a breaking bug. Note that tests now use the exact same rollup config as our builds (the minified one) to ensure that the bundling and minification steps don't break anything. Finally, replace the `gulp watch` task by `gulp build --watch` to be consistent with the other `unittest` and `docs` watching syntax.
2018-12-14 20:20:43 +01:00
Simon Brunel
3cb2d7050e
Remove gulp-connect and add jsdelivr/unpkg paths (#5875) 2018-12-01 08:35:43 +01:00
Simon Brunel
75aa44eef6
Upgrade dev dependencies to reduce vulnerabilities (#5840) 2018-11-18 09:33:34 +01:00
Simon Brunel
d7eab1b994 Bump version to 2.7.3 2018-10-15 18:48:00 +02:00
Simon Brunel
ac088a04ab Bump version to 2.7.2 (#5307) 2018-03-01 16:20:53 -05:00
Loïc Bourgois
182270ef9b Setup HTML and JS linters for samples (#5195) 2018-02-03 13:28:54 +01:00