v1.0.0
Modern rewrite
Features
As part of learning and ramping up with better JS tools and frameworks, v1.0.0 is a modern rewrite that focuses on:
- Simplifying and decoupling React/D3 code with React hooks.
- Document examples with
docz
. - Typescript support.
- Minimize build size with
rollup
andbundlesize
.
Breaking Changes
Compared to v0, there are a number of breaking changes.
- React Dependency: You need at least
react^16.8.3
installed to access hook functionality. - Features: Most features of the component still remain the same (e.g. tooltips, min/max font size, responsive).
- Props: Many v0 props have been merged into
options
andcallbacks
with potentially different names. Please refer to the documentation orindex.tsx
to see how to apply props correctly. - Development: Previous developments were done in
flow
and a lot of dev dependencies have changed. The scripts inpackage.json
should help handle most of these changes.