bobbingwide / sb-chart-block

Chart block for Gutenberg
GNU General Public License v3.0
6 stars 0 forks source link

Support chart.js v4.2.0 #26

Closed bobbingwide closed 1 year ago

bobbingwide commented 2 years ago

Chartjs v4.0.1 was released on 14th November 2022.

Requirements

Proposed solution

bobbingwide commented 1 year ago
bobbingwide commented 1 year ago

chart.js v4.2.0 is now an ESM package.

According to the documentation at https://www.chartjs.org/docs/latest/migration/v4-migration.html, Chart.js became an ESM-only package as of v4.0. But it also states the UMD bundle is still available.

Re: chart adapter date-fns

bobbingwide commented 1 year ago

Note: there seems to be very little difference between chart.umd.js and chart.umd.min.js. Is it worth delivering both?

bobbingwide commented 1 year ago

Chart.js is now at v4.2.1. We should also deliver the matching .map file. It may aid debugging.

bobbingwide commented 1 year ago

Delivered in v1.2.0