Version 4 - Alpha 1
whawker
released this
20 Sep 15:33
·
308 commits
to master
since this release
Version 4 is a rewrite of the libraries using React hooks.
What's new in version 4:
- React rerender performance should be improved
- Full bundle size is around 25% smaller
- React devtools shows shallower tree which eases debugging
Most of the time upgrade to version 4 should go without changes to the code, but there are some breaking changes. If you are having problems with upgrade, be feed back via this issue
Breaking changes
- Requires React 16.8.6 or higher
- Requires Highcharts 7.2.0 or higher
- Drops support for immutable-js
- Props are now shallow compared instead of version 3's deep equal checks.
- Be sure you are not placing new objects or arrays to props, otherwise the components will rerender needlessly
- Minimum supported version of IE is 11
- IE needs to be polyfilled to at least ES2015 level, which you are probably already doing with core-js. If you are using create-react-app, please see https://github.com/facebook/create-react-app/tree/master/packages/react-app-polyfill#user-content-polyfilling-other-language-features
These should not affect many users:
- provide methods are replaced with hooks:
provideHighcharts
-->useHighcharts
provideChart
-->useChart
provideAxis
-->useAxis
provideSeries
-->useSeries
- Values in Contexts are changed from functions to objects
New features
- Caption component for setting chart caption
<Caption>
This is a caption.
</Caption>
- Hooks for extending the library