NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4301 most downloaded on npm
React component to format number in an input or as a text.
Last release 6 months ago
22 Mar 2026
Release timing varies
gaps range from 2 weeks to 11 months
Most releases are documented
notes for 37 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
123 releases · first in 2016
Bug fixes Fixed #883, defaultValue not triggering onValueChange. Fix #882, deleting negative symbol when prefix is more than 1 character
Bug fixes Fixed #883, defaultValue not triggering onValueChange. Fix #882, deleting negative symbol when prefix is more than 1 character
fix: add explicit return types by @justinbup in https://github.com/s-yadav/react-number-format/pull/876
Full Changelog: https://github.com/s-yadav/react-number-format/compare/v5.4.3...v5.4.4
One column per quarter.
chore(react-version): upgrade peer react version to include react 19 by @holgergp in https://github.com/s-yadav/react-number-format/pull/871
PatternFormat by @ssiyad in https://github.com/s-yadav/react-number-format/pull/868Full Changelog: https://github.com/s-yadav/react-number-format/compare/v5.4.2...v5.4.3
Fix Number Formatting Order in Customization by @mhl98 in https://github.com/s-yadav/react-number-format/pull/854
Full Changelog: https://github.com/s-yadav/react-number-format/compare/v5.4.1...v5.4.2
handle caret position when float numbers are used with decimals #851
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 t
Test and Build improvements
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 caret position not getting corrected when there is selection in the input. #780
Nothing published for this version
Fix caret position getting reset on jest + testing library. #814 by @csantos1113
. is pressed on empty value and fixedDecimalScale is set.Fix infinite rerender when values.value is used valueIsNumericString not provided. #786
Fix https://github.com/s-yadav/react-number-format/issues/774
Fix for prop values on not updating (not reflecting on input) on StrictMode. Regression of v5.2.0
Regression fix: try to correct the value if the old formatted value is provided but the format prop changes
Regression fix: try to correct the value if the old formatted value is provided but the format prop changes
Optimize rendering, and avoid multiple rerender when number format is mounted.
Improvements
Fixes
Fixed #694 Prefix/Suffix containing numbers gets appended to value.
Fixed #712 (Extra character added if you start typing from start of the input while input is fully filled)
Nothing published for this version
Fixed typo on patternFormatter export. #698
Added isValidInputCharacter in NumberFormatBase to figure out if a character is allowed to be typed. This mostly used internally by NumericFormat, but
Fixed https://github.com/s-yadav/react-number-format/issues/679 (@louismariegaborit)
Here are following changes on v5. Most of them are breaking change, but would take minimal effort from migrating from v4 to v5. See migration doc
RNF v5 is complete rewrite with the aim of extensibility and smaller bundle size. Here are following changes on v5. Most of them are breaking change, but would take minimal effort from migrating from v4 to v5. See migration doc
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix regular expression for custom numerals. PR: #594 By @aSosunoff
Add source details in onValueChange callback
onValueChange callbackNothing published for this version
Nothing published for this version
Nothing published for this version
Fix issue #481 . PR by @natterstefan - #560
Fix input focus issue post blur #541 by @ThanoozN
Nothing published for this version
Release for a long asked bugfix/feature of allowing deleting partial characters when the format is provided. By @jologz PR: #473
Adds new export signatures #536
Nothing published for this version
Currently, the library does not support passing exponential/scientific numbers. This PR adds support for that. This fixes: #506 and #519.
Fix value replacement issue when the last value is the same as the value being replaced by. PR: #516
Fix for full value replacement issue : #511
Fix onChange issue when isAllowed returns false #505
onChange issue when isAllowed returns false #505Improve renderText API to allow passing custom props #484
renderText API to allow passing custom props #484Fix IOS keypad issue (which doesn't allow - sign to be added) #409
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added inputMode = numeric by default on input so in mobile browser proper keyboard should open. #189, #312
- is added.Nothing published for this version
Added allowedDecimalSeparators props which user can type to add decimals. `jsx `
<NumberFormat allowedDecimalSeparators={[',', '.']} thousandSeparator="." decimalSeparator="," />
Added prop to keep leading zeros.
#331 (By @techno1ology, @nmalzieu)
Type support for customInput props. #330 (By @Yankovsky)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →