Releases: icehouse-ventures/laravel-chartjs
v4.1
What's Changed
-
Update readme with legacy package support instructions.
-
Handling injection after domready event by @marcfowler in #22
Full Changelog: v4.0...v4.1
v4.0
This release bumps the version numbering to avoid an error where Packagist was automatically supplying Composer with the deprecated version of the package. The version bump also reflects the modernisation of:
-
Static facade based usage in your php (Controllers, Models, Services, etc) instead of a call to the app container.
-
Blade component call instead of a magic render function.
The legacy app container method and legacy blade render function remain available to ease the upgrade path.
Full Changelog: v1.4...v4.0
v1.4
What's Changed
- New Blade component syntax by @marcfowler in #20
- Static method facade by @marcfowler in #20
We've modernised the way that the package can be called in a blade file to adopt the modern syntax and modernised the way to call the package from inside the application's php code to use a static Facade instead of calling app() all the time.
This release also fixes some edge cases for dynamic charts in Livewire where the options() were not being passed correctly.
New Contributors
- @marcfowler made their first contribution in #20
Full Changelog: v1.3...v1.4
v1.3
Livewire Reactivity on Chart JS Options
Package users can now add Livewire inputs that dynamically control Chart JS options. This allows for more interactive end-user experiences such as changing a tooltip.
Wire Ignore
Remove wire ignore on main div to allow more reactivity. That removes the need for manual change update function. Chart update was bounded (which is good for single responsibility), but the bounding was too intermingled with Livewire, Alpine and the package Builder. Disadvantage of this new approach is that it’s more ‘global’ but it’s worth it for the additional reactivity. We’ve effectively moved the wire ignore to the canvas element which is actually just ignoring default livewire re-rendering. This is so that we get control of who is doing the rendering ie Chart JS.
Options Object
Alpine was working with the “Chart Data” but really only using an init call. Instead we are making Alpine explicitly responsible for the dataset and options objects. For example, this means we don’t need to explicitly account for Treemap chart types in Alpine because the dataset and options provide a rich enough context to to manage this out of the box. Options is now a first class object so Alpine can just work on the object itself.
Laravel Blade @js Helper
Single quotes and double quotes nesting can catch the JSON encode or json as string transit. The @ JS helper uses the browser / javascript native parser. Which sounds very similar to the backend JSON encode / decode but is subtly different. We may they and use @js more over time.
What's Changed
- Support updating options in Livewire by @jasonlbeggs in #17
- Allow livewire to update all datasets by @LuizCristino in #18
New Contributors
- @LuizCristino made their first contribution in #18
Full Changelog: v1.2.2...v1.3
Livewire Compatibility.
What's Changed
- Fix a few Livewire issues by @jasonlbeggs in #13
- Fix a few more Livewire issues by @jasonlbeggs in #14
Full Changelog: v1.2.1...v1.2.2
Livewire Bug Fix
Fixed a reported bug with the Livewire component defaulting to a line chart.
Full Changelog: v1.2.0...v1.2.1
Custom Chart Types
Added support for custom chart type plugins using the CDN delivery method.
What's Changed
- Added support for custom chart type plugins.
- Create .gitattributes by @imanghafoori1 in #10
New Contributors
- @imanghafoori1 made their first contribution in #10
Full Changelog: v1.1.0...v1.2.0
Livewire Support
This release adds Livewire support for dynamically updating chart data in response to user input.
What's Changed
- Add a Livewire version of the chart by @jasonlbeggs in #9
New Contributors
- @ian-patel made their first contribution to master
- @jasonlbeggs made their first contribution in #9
Full Changelog: v1.0.7...v1.1.0
Laravel 11 Support
What's Changed
- Added Laravel 11 Support
- Update index.md by @harry-fakir in #5
New Contributors
- @harry-fakir made their first contribution in #5
Full Changelog: v1.0.6...v1.0.7
Multiple date formatting plugins
Moment.js has been depreciated so there are now several date formatting libraries supported by Chartjs. This release allows you to toggle between them for easier testing and adoption (using the CDN delivery method for all Chartjs versions). Also, Luxon is now bundled with the binary / publish delivery method for version 4.