Releases: s-yadav/react-number-format
Releases · s-yadav/react-number-format
Support React 19
What's Changed
- chore(react-version): upgrade peer react version to include react 19 by @holgergp in #871
- doc: fix spelling of
PatternFormat
by @ssiyad in #868
New Contributors
Full Changelog: v5.4.2...v5.4.3
Bug fixes
Bug fixes
Bug fixes and Test + Build upgrade
Test and Build improvements
- Migrated test suite to vite, JSdom and react testing library, from Jasmine and Karma. Plus, a lot of fixes around the false negative test. Shout out to @aashu16
- A couple of build improvements @aashu16
- Unnecessary files are no longer included on npm package. Fixes #840
- Added a better way to find change range which fixes issues around duplicate subsequent characters giving incorrect change range causing inconsistent caret positioning.
API Improvements
onValueChange now fires always if there is any change on the input, weather update comes from props or user events. This makes the callback more predictable. Fixed #812, Thanks to @rfviolato
Other Bug Fixes
- Fix issue when complete text is selected and replaced with new value in pattern format. It was it was incorrectly pasting value.
- Fix key press after selection over masked area. #839
Bug fix
Bug fixes
- Fix caret position getting reset on jest + testing library. #814 by @csantos1113
- Fix: pass currentTarget to onFocus. #815 by @csantos1113
- Fix #817, wrong caret position getting set when
.
is pressed on empty value and fixedDecimalScale is set.
Bug fixes
Bug fixes with NumberFormatBase API improvement.
- Fix #774
- Added support to inform rnf to treat two character as same.
- Fix custom numeral example
- Documentation improvement, @gregfenton, @MinervaBot
Bug fixes
- Fix for prop values on not updating (not reflecting on input) on StrictMode. Regression of v5.2.0
- fix(number_format_base): prevent warnings in SRR when using useLayoutEffect. by @NicolasMontone
Regression fix from 5.2.0
Regression fix: try to correct the value if the old formatted value is provided but the format prop changes