Commit Graph

261 Commits

Author SHA1 Message Date
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
Simon Brunel
1d5619d6d4
Fix GitBook error with the shared ESLint config (#5133)
`gitbook-cli install` failed when trying to fetch eslint-config-chartjs because of the way it was installed (ie. using the GitHub repository URL). The shared config is now published on npmjs: https://www.npmjs.com/package/eslint-config-chartjs
2018-01-11 09:03:16 +01:00
Simon Brunel
9ddb449ad1 Use the Chart.js shared ESLint config (#5112)
An ESLint shareable config has been created (from this repository) in the attempt to homogenize Chart.js hosted projects and plugins style. Rename `.eslintrc` files to `.eslintrc.yml` since the name has been deprecated.

Fix the CC badge (maintainability) and disable CodeClimate ESLint plugin because it doesn't support custom shareable config but also because it already executes relevant checks as part of the regular process.
2018-01-06 17:59:13 -05:00
Jonathan Grimes
67479c22f9 Relax dependencies semver range (#4891)
Prevent duplicate version of moment.js (which is pretty large) when an app also depends on moment (with less strict semver range)
2017-11-07 19:12:33 +01:00
Ben McCann
ffbdb48310 Upgrade dependencies (incl. ESLint 4) (#4738) 2017-11-01 16:00:10 +01:00
Ben McCann
8a6d58d2d9 Bump version to 2.7.1 (#4877) 2017-10-28 10:22:20 +02:00
Simon Brunel
b2beb6f451 Update chartjs-color dependency (#4733)
Enforce dependencies minor versions (tilde symbol: include everything greater than a particular version in the same minor range).
2017-09-09 18:27:39 -04:00
Simon Brunel
e3b70e0420 Bump version to 2.7.0 2017-08-28 10:34:06 +02:00
Ben McCann
75791988d3 Upgrade dependencies 2017-05-27 10:54:08 -04:00
Ben McCann
04ab523dd4 Upgrade dependencies (#4272) 2017-05-25 17:53:37 +02:00
Evert Timberg
4dda5529b9 Bump version to v2.6.0 (#4237) 2017-05-19 22:08:33 +02:00
Evert Timberg
3e94b9431a Update the docs structure/content to use GitBook (#3751)
Update the docs structure/content to use GitBook
2017-03-20 20:36:54 -04:00
Simon Brunel
1ca0ffb5d5 Introduce unit test based on image comparison (#3988)
Attempt to make easier the creation of unit tests that check the drawing output. Until now, this was done by checking calls on a 'fake' context, which is hard to maintain (need to update pixel values by hands) and also not reliable when optimizing code (i.e. different calls sequence but same result).

As of now, it's possible to define 'auto' tests based on JSON/PNG fixtures: chart is generated from the JSON file and compared to the associated PNG image. The image diff is done using `pixelmatch`. As an example (and in preparation of the `filler` plugin), add auto tests for the line element `fill` options.
2017-03-05 09:49:12 -07:00
Simon Brunel
c216c0af76 Cleanup and upgrade unit tests environment
`karma.conf.ci.js` has been merged into `karma.conf.js` for local testing consistency: `gulp unittestWatch` has been replaced by `gulp unittest --watch` and thus use exactly the same config file. Upgrade to latest jasmine and karma packages and remove deprecated `gulp-karma` dependency (directly use `karma.Server` in gulp).

Split `test/mockContext.js` into smaller `test/jasmine.*` modules to make easier unit tests maintenance and finally, move all `*.test.js` files under the `test/specs` folder.
2017-03-04 11:39:48 -05:00
Simon Brunel
d25e7b1e1a Handle incoming model values on element transition
If a value is set on the model after `pivot()` has been called, the view wasn't initialized and the animation started from 0. Now, `_start` and incomplete `_view` are initialized to the model value during the transition (no initial implicit transition).

Also remove exception handling when animating a string (color), which is faster when string are not valid colors (e.g. tooltip position). It requires to update `chartjs-color` to version 2.1.0.
2017-03-03 06:49:32 -05:00
Evert Timberg
e519ea399d Fix color dependency for builds 2017-02-21 20:45:56 -05:00
etimberg
9a3af51618 bump version number 2017-01-28 11:33:14 -05:00
Jeff Carey
fe68b77606 Upgraded dependency gulp-uglify to 2.0.0 (#3635) 2016-11-22 23:51:22 +01:00
Simon Brunel
040b0e160d Bump version to 2.4.0 2016-11-06 18:31:30 +01:00
Simon Brunel
e90edd8c9a Bump ESLint to v3.x (gulp and Code Climate) (#3526) 2016-10-29 18:40:27 +02:00
Aidan Fewster
99b8d6740a Added the watchify NPM dependency to satisfy karma-browserify's peerDependency 2016-10-04 09:27:43 -04:00
Simon Brunel
8ec7ce2f93 Gulp command switch to run specific test files
Add the --inputs command switch to the unittest and unittestWatch tasks, to be able to run unit tests from the specified files only (e.g. gulp unittest --inputs=test/core.element.tests.js;test/core.helpers.tests.js).
2016-09-23 17:47:33 +02:00
Simon Brunel
eea51e8678 Bump version to 2.3.0 2016-09-22 20:53:26 +02:00
Simon Brunel
4da47a8430 Bump version to 2.3.0-rc.1 2016-09-17 11:42:28 +02:00
Simon Brunel
69ab0d3e23 Use gulp-eslint instead of gulp-jshint
Change the linter in gulp tasks to be consistent with Code Climate results which are based on ESLint using .eslintrc options. However, defaults Code Climate rules are too strict, so turn as warnings the 'complexity' and 'max-statements' rules (other errors has been fixed). Note that the Gulp task name has been changed for `gulp lint`.
2016-09-03 18:42:22 +02:00
Simon Brunel
1f67e54d79 Remove unused npm packages 2016-09-03 18:09:57 +02:00
Simon Brunel
594605c5c4 Remove deprecated gulp tasks and dependencies 2016-08-30 00:04:40 +02:00
Simon Brunel
cd50edbc84 #3182 Gulp task to generate bower.json file 2016-08-28 18:21:10 +02:00
etimberg
0ebe388611 Update version for v2.2.2 release 2016-08-27 08:29:09 -04:00
Evert Timberg
ab66146013 Prep for a v2.2.1 release 2016-07-30 13:01:31 -04:00
Evert Timberg
b92387c845 Version bump for v2.2.0 2016-07-28 18:23:32 -04:00
Evert Timberg
4334ab8611 Bump version to v2.2.0-rc.2 2016-07-19 18:47:08 -04:00
Evert Timberg
5804f1e3c9 Package.json for v.2.2.0-rc.1 and fixed travis deploy 2016-07-13 20:00:12 -04:00
Simon Brunel
53a0c5442e New Chart.js.zip package
Samples need to be packaged with built libraries (which one have been removed from the repository), so create a new `gulp package` task to generate a ZIP archive with dist files, samples and the license file. This archive is generated in the ./dist/ folder and will be deployed by Travis along the GH release. Note that the ./dist/ folder is not preserved but merged in the archive root. Also change samples requiring moment.js to load this lib from the CDN instead of the ./node_module folder.
2016-06-18 12:14:31 +02:00
Evert Timberg
07662b158d V2.1.6 with tooltip array fix 2016-06-14 19:32:24 -04:00
Evert Timberg
3d03e36408 Bump version to 2.1.5 and build 2016-06-12 13:14:56 -04:00
Simon Brunel
5c56f5cd9d Use bundle-collapser to reduce build size
This browserify plugin converts required string paths to int (see https://github.com/substack/bundle-collapser), lowering our *.min.js by ~1.8KB.
2016-06-05 09:56:41 +02:00
Evert Timberg
40d76b6a7b 2.1.4 release 2016-05-26 18:43:39 -04:00
Simon Brunel
b64e03dbd0 Bump chartjs-color to version 2.0.0 (#2549)
Fix color animation because the color lib changed the `mix` implementation to match SASS behavior, so the weight specifies the amount of the first color that should be included in the returned color.
2016-05-14 13:35:35 -04:00
Evert Timberg
eb05588c95 2.1.3 release 2016-05-12 18:41:22 -04:00
Evert Timberg
8ffbe23493 2.1.2 release 2016-05-08 11:26:48 -04:00
Evert Timberg
8fb2073260 2.1.1 release build 2016-05-07 08:07:09 -04:00
Tanner Linsley
2ee37e12e3 2.1.0 build 2016-05-03 16:53:09 -05:00
Zach Panzarino
7cbc08aed7 Add license field to package files 2016-04-29 03:23:13 +00:00
Zach Panzarino
8d6ea1fde9 Update package.json 2016-04-25 11:13:50 -04:00
Zach Panzarino
900d249646 Fix build to include comment at top of file 2016-04-22 15:03:52 +00:00
Tanner Linsley
67625063a3 2.0.2 2016-04-16 17:39:51 -05:00
etimberg
5e8bfea53e Bump and build for 2.0.1 2016-04-16 14:22:45 -04:00
etimberg
ebb8ca233d Bump version to v2.0.0 2016-04-09 08:01:01 -04:00
Evert Timberg
b15b316e85 use watchify for incremental test rebuilds 2016-04-02 09:02:38 -04:00
Evert Timberg
38b2925e6c Use coveralls to report lines of coverage and add a badge to the readme 2016-02-14 09:38:26 -05:00
etimberg
96551c20db begin fixing coverage tests 2016-02-13 21:50:12 -05:00
etimberg
f6951816a0 Improve joshing reporting. Added a JSHint config file.
Fixed JSHint warnings.
2016-02-13 20:12:26 -05:00
Tanner Linsley
813d18bd78 Passing All Tests, Updated Dependencies 2016-02-11 23:16:43 -07:00
Tanner Linsley
007d029837 Bundled builds
Possible usages are:

src/Chart.js (umd)
dist/Chart.js (ChartJS)
dist/Chart.min.js (ChartJS minified)
dist/Chart.bundle.js (ChartJS with Moment.js)
dist/Chart.bundle.min.js (ChartJS with Moment.js minified)
2016-02-11 21:29:26 -07:00
Tanner Linsley
f2780bb825 Browserify for easier UMD consumptions and vanilla builds 2016-02-11 20:30:53 -07:00
Robert Becker
e9c18f603d Merged remote-tracking branch 'upstream/v2.0-dev' into v2.0-dev to fix conflicts.
Refactored linear scale fixed step size implementation.
Added nbproject to .gitignore
2016-02-09 12:56:16 +01:00
Robert Becker
92bc1a04cf Chart.js was missing? 2016-02-05 10:11:58 +01:00
etimberg
421e610150 Update build & bump version 2015-12-27 10:46:08 -05:00
etimberg
b388a1e873 Pipe the build through UMD to get proper UMD headers 2015-12-02 21:08:52 -05:00
Tanner Linsley
e8165348db Updated Readme, and versions for beta release 2015-10-24 17:17:13 -06:00
Tanner Linsley
e0918817ae Testing fixes for time scale 2015-10-16 21:14:07 -06:00
Tanner Linsley
5543041fcd Add Moment.js back into test reps 2015-09-28 12:45:53 -06:00
Tanner Linsley
63a0273591 Remove moment and onecolor as deps 2015-09-28 11:28:05 -06:00
Evert Timberg
9474d72491 Revert "Fix resize problems when charts are initially hidden" 2015-09-19 17:52:58 -04:00
Evert Timberg
bcbd9a85e6 Merge remote-tracking branch 'upstream/v2.0-dev' into feature/resize_problems
Conflicts:
	gulpfile.js
2015-09-18 18:38:47 -04:00
Tanner Linsley
8762ae2f28 Add moment.js as dependency 2015-09-10 22:46:51 -06:00
Evert Timberg
2f38a3894a Get resize listener helper 2015-09-04 22:55:41 -04:00
Evert Timberg
e681d8cf23 Better debug page reporting of failed tests 2015-08-30 18:23:53 -04:00
Evert Timberg
92f1c65c1c Install coverage metrics. Use gulp coverage to generate coverage reports 2015-08-28 19:02:37 -04:00
Evert Timberg
c1cca356df Initial test setup 2015-08-23 14:58:19 -04:00
Tanner Linsley
675a9f827e Version bump 2.0.0-alpha 2015-06-03 15:25:18 -06:00
Tanner Linsley
951e714e77 Playground and big changes 2015-05-20 00:03:45 -07:00
Evert Timberg
d26f37236d Update package.json for color lib location 2015-05-12 18:01:28 -04:00
Tanner Linsley
9e4d90e110 Color Animation, Color Autopilot 2015-05-12 01:13:16 -06:00
Nick Downie
78d9627e4d Bump bower/package versions 2015-03-10 11:03:30 +00:00
William Entriken
0c1c9824b2 Merge pull request #694 from spmjs/master
Add spm support
2015-01-27 13:48:47 -05:00
Nick Downie
02f858b264 1.0.1 release builds 2015-01-07 22:49:33 +00:00
William Entriken
cfc4599a30 Add Travis CI support 2015-01-01 12:57:21 -05:00
chencheng
337511110c Add spm support 2014-10-15 17:28:50 +08:00
Nick Downie
8b840ce56b Pre-release version bump to beta.4 2014-08-17 23:21:11 +01:00
Nick Downie
5bd10297fb Update built output 2014-07-27 23:03:32 +01:00
Nick Downie
adf6f3abb2 Create a task to bump + write version numbers
Also run `gulp release` to tag the latest release.
2014-07-27 21:41:49 +01:00
Florent Cailhol
edb245b649 Add main file 2014-07-17 09:42:16 +02:00
Nick Downie
55fc0cfd49 Change package.json name to lowercase 2014-07-08 21:45:56 +01:00
Nick Downie
02e535cdad Update bower & package.json with version bump
Forget this literally every time…
2014-07-02 21:51:31 +01:00
Nick Downie
641fc02212 1.0.1-beta Update for bower/package.json 2014-07-01 11:02:28 +01:00
Nick Downie
e24efd23a2 Add build sequence + dev dependencies 2014-06-29 18:37:07 +01:00