This release migrates the codebase to TypeScript.
All dependencies have been updated to the latest versions - this fixes several security issues reported by Dependabot.
The documentation and usage examples have been also updated.
A new demo has been added.
BREAKING:
The package no longer exposes default exports so the import
-ing should be changed.
Before:
import Donut from 'react-svg-donuts';
import ComplexDonut from 'react-svg-donuts/complex';
After:
import { Donut, ComplexDonut } from 'react-svg-donuts';
If you're using the CSS, the import should be changed from @import 'react-svg-donuts/dist/index.css';
to @import 'react-svg-donuts/src/index.css';
.
If Webpack is configured correctly and is updated to the latest version, you should be able to import the CSS in your stylesheet entry point by simply typing @import 'react-svg-donuts';
.