Skip to content

Releases: s-yadav/react-number-format

Bug fixes

05 Mar 15:49
Compare
Choose a tag to compare
  • Fixed #694 Prefix/Suffix containing numbers gets appended to value.
  • Fixed #691 Prefix/Suffix blocking input when set to a number
  • Fixed #729 Prefix '-' does not allow to remove first number
  • Added fixedDecimalScale prop to doc #735 by @arminbashizade

Bug fixes

10 Jan 18:31
Compare
Choose a tag to compare
  • Fixed #712 (Extra character added if you start typing from start of the input while input is fully filled)
  • Fixed #711 (The caret is not moved when typing a decimal separator at an existing decimal separator)
  • Mark module as side effect free (#713 by @topaxi )
  • pass type parameter to SyntheticEvent in event source object. (#703 by @yukiyokotani )

Bug fixes

29 Oct 17:21
Compare
Choose a tag to compare
  • Fixed typo on patternFormatter export. #698
  • Fixed cursor position getting reset if isAllowed returns false. #699
  • Fixed doc for isAllowed prop. #697 by @3794

Bug fixes

25 Oct 14:12
Compare
Choose a tag to compare
  • Fixed #652
  • Fixed #695
  • Added isValidInputCharacter in NumberFormatBase to figure out if a character is allowed to be typed. This mostly used internally by NumericFormat, but exposed to NumberFormatBase, if customization is needed.

Bug fixes

01 Oct 17:34
Compare
Choose a tag to compare
  • Fixed #679 (@louismariegaborit)
  • Fixed #678
  • Return all required props for NumberFormatBase from useNumericFormat and usePatternFormat hooks

Major Release (v5) - React Number Format rewrite

25 Sep 15:32
Compare
Choose a tag to compare

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

Changes

  • React number format is broken into smaller Modules, NumericFormat and Pattern Format, so only things you need are exposed.
  • RNF provides lower level hooks and component (useNumericFormat, usePatternFormat) to allow full customisation. Check customisation doc.
  • customNumerals prop is removed in favour of outside customization, example
  • isNumericString prop is renamed to valueIsNumericString.

Added support for React 18

23 Apr 04:02
Compare
Choose a tag to compare
v4.9.2

- Added support for react 18.

Enhancement and bug fixes.

19 Dec 17:14
Compare
Choose a tag to compare
  • Fix regular expression for custom numerals. PR: #594 By @aSosunoff
  • Fixed backspace issue when caret is before - sign (#597)
  • React peer dependency fix - PR: #565 By @navarroaxel
  • make typings for customInput generic - PR #577 By @patsimm

API enhancements

08 Nov 18:28
Compare
Choose a tag to compare
  • Add source details in onValueChange callback
  • Issues: #587 #429

added custom numeral support

05 Aug 16:29
Compare
Choose a tag to compare

Improvements