Releases: scriptex/react-svg-donuts
Migrate to TypeScript
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';
.
Updated dependencies
This release updates all dependencies to their latest versions.
It also correctly adjusts the ranges of the react
and react-dom
peer dependencies.
Updated dependencies
This release updates the (dev) dependencies. That's it.
Hooks API
Fix missing method call
This release fixes a wrong call to a missing class method in the componentWillUnmount
lifecycle hook.
This release includes updates to all dependencies.
New Year!
Add more props
This release addresses several issues - adds custom props for SVG circle and text element and also addresses an issue with a dev dependency which version was rolled back
Add complex donut
0.1.0 Update dist