- Bump min
lodash-esversion tov4.17.23.
- Public release for
React 19
React 19 rcsupport andNext 15support
- Add
typesexport to package.json (#182)
React 18compatiblev2.0version generally available
segmentValueFormatterfunction prop for customizing segment values.
svgAriaLabelprop for accessibility. More details - #135
PropTypesmoved todependenciesfrompeerDependencies. ref: https://github.com/facebook/prop-types#how-to-depend-on-this-package. sandbox: https://codesandbox.io/s/kind-breeze-esuge?file=/src/App.js
React v17andv6 d3support. No Breaking Changes.
Typescripttypes forvalueTextFontWeightconfig/prop
valueTextFontWeightconfig/prop to control font weight of current value. ref: https://codesandbox.io/s/eloquent-morning-mnysk?file=/src/App.js- dev changes: prettier changes:
singleQuote: true,arrowParens: avoid.prettierupgraded tov2 - dev changes:
jest v26
- First
1.0Release candidate withReact 17support
- ignore
coveragefolder from npm bundle
CustomSegmentLabelPosition,Transitiontypes for both Typescript and JS. Resolves #81100%Test coveragecodecov,github actionsintegration
- removed
@babel/runtime-corejs2as dependency. ref: #76
- migrated to
lodash-esfromlodashfor better tree shaking. Exportingtypesandthemesfrom core for better reusablility. - removed
lodashdependency. ref: https://codesandbox.io/s/zen-darkness-c3ev3, https://codesandbox.io/s/gracious-swanson-1rts8
npmignoreto reduce npm tarball/package size. Linking to github image asset for README
customSegmentLabelsprop to display custom labels. Live Example- bugfix. Fixed #68
Typescriptsupport with typescript definition file
paddingHorizontal,paddingVerticalprops to configure space for label texts of bigger font sizes.
dimensionUnitprop to configurewidth/height... Defaults topx. More context - https://developer.mozilla.org/en-US/docs/Web/SVG/Content_type#Length
labelFontSizeandvalueTextFontSizeconfigurable props.
bugfix. Handle negative values and custom min/max values forcustomSegmentStops. Fixes - #51 and #52. ref - https://codesandbox.io/s/jolly-thompson-2k3d7
- new
customSegmentStopsconfiguration to customize segments, ref: https://codesandbox.io/s/purple-cdn-eu9xf. Complete rewrite of core, where core is modularized and separated from lifecycle methods
- removed unwanted
globalpackage from dependency. ref: - https://codesandbox.io/s/billowing-lake-9somf
- new option/prop
segmentColorsfor giving custom segment colors. Reference - https://palerdot.in/react-d3-speedometer/?path=/story/react-d3-speedometer--custom-segment-colors. ref: - https://codesandbox.io/s/relaxed-silence-c3qkb
maxSegmentLabelsnow takes0as valid value. Addresses - #43
babel 7runtime issue fixed. Affected versions -0.5.0to0.5.4
maxSegmentLabelsprop to limit labels for segment. Useful for displaying gradient like effect. Example - https://palerdot.in/react-d3-speedometer/?path=/story/react-d3-speedometer--gradient-effect-with-large-number-of-segments-and-maxsegmentlabels-configcurrentValuePlaceholderStyleto configure custom placeholder for current value. Example - https://palerdot.in/react-d3-speedometer/?path=/story/react-d3-speedometer--custom-current-value-placeholder-style-for-eg-value
needleHeightRatiofor controlling the height of the needle. Takes a float between 0 and 1 and controls the height.
- Handle
d3ticks behaviour when we get a single tick. Refer d3/d3-scale#149 for more info
- Bumped d3 version to 5.x
- Handled specific
d3-scalebehaviour (d3/d3-scale#149). Fixes #27
- Handling invalid
needleTransitionprop. Switching to defaulteaseQuadInOutby throwing a warning.
- Using simple string replace for
currentValueTextinstead of template literal for better support for IE - https://caniuse.com/#feat=template-literals
- updating
peerDependencieswithReact 16
REACT 16updating react version to 16, along with enzyme to version 3.
currentValueTextconfiguration to display custom current value text.
valueFormatoption for formatting the values. Should be a valid input for - https://github.com/d3/d3-format#locale_format
- Tweaked the positioning of current value element to be 23 points below so that it is legible in smaller speedometers.
forceRenderconfig option, to rerender the whole component on props change. Previously, only the values are updated and animated.
- new test case for custom
textColorprop
- new test case for validating default color
- new test case for checking number of segments
- configuring
textColor
- Basic test coverage using enzyme
- Moving to
MITlicense
- Make
needleTransitionDurationconfigurable - Make
needleTransitionconfigurable - make
ringWidthconfigurable