Releases: stimulus-components/stimulus-chartjs
Releases · stimulus-components/stimulus-chartjs
6.0.0
[6.0.0] - 2024-02-25
Chore
- Renaming the component from
stimulus-chartjs
to@stimulus-components/chartjs
- Upgrading dependencies
- Exporting Typescript Types
- Updating demo UI
- Add Stimulus LSP compatibility
5.0.1
5.0.0
Added
- Adding
name
in library export to use the package with CDN, Sprockets andimport-maps
.
Chore
- Breaking Upgrading to Chart.js
4.x
. - Updating docs UI.
- Upgrading dependencies.
- Upgrading Node to
18
.
4.0.0
Chore
- Breaking Upgrading Stimulus to
3.x
and change namespace fromstimulus
to@hotwired/stimulus
. - Breaking Upgrading Chart.js to
3.x
. See: https://www.chartjs.org/docs/3.7.0/getting-started/v3-migration.html - Upgrading dependencies
- Upgrading Node to 16.
v3.0.0
Chore
- Moving from Snowpack to Vite
- Using stimulus and Chart.js as external libraries reducing bundle size from
269.37kb
to0.97kb
. - Moving to TypeScript
- Upgrading Node to 14.17.0
v2.1.0
Changed
- Add
type
value.line
by default.
Fixed
- Fix
options
value.
v2.0.0
[2.0.0] - 2020-12-05
Added
- Support for Stimulus 2.0
Changed
- Breaking Using the new
values
static property.
- <canvas data-controller="chart" data-chart-data="{'type': 'line', 'data': { 'labels': ['August', 'September', 'October', 'November', 'December'], 'datasets': [{ 'label': 'My Second dataset', 'backgroundColor': 'transparent', 'borderColor': '#EF4444', 'data': [54, 81, 34, 91, 12, 23] }] } }"></canvas>
+ <canvas data-controller="chart" data-chart-data-value='{"type": "line", "data": { "labels": ["August", "September", "October", "November", "December"], "datasets": [{ "label": "My Second dataset", "backgroundColor": "transparent", "borderColor": "#EF4444", "data": [54, 81, 34, 91, 12, 23] }] } }'></canvas>
- Breaking Using the new syntax for
targets
.
- <canvas data-target="chart.canvas"></canvas>
+ <canvas data-chart-target="canvas"></canvas>
v1.0.0
- Adding controller