Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency react-number-format to version 5.x 🌟 #1506

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 4, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-number-format 4.9.4 -> 5.3.1 age adoption passing confidence

Release Notes

s-yadav/react-number-format (react-number-format)

v5.3.1: Bug fixes

Compare Source

  • Fix infinite rerender when values.value is used valueIsNumericString not provided. #​786
  • Fix for delete of decimalSeparator happening when fixeDecimalScale is set. #​789

v5.3.0: Bug fixes with NumberFormatBase API improvement.

Compare Source

v5.2.2: Bug fixes

Compare Source

  • 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

v5.2.1: Regression fix from 5.2.0

Compare Source

Regression fix: try to correct the value if the old formatted value is provided but the format prop changes

v5.2.0: Bug fixes and valueIsNumericString prop improvement.

Compare Source

Improvements

  • Optimize rendering, and avoid multiple rerender when number format is mounted.
  • Try to guess valueIsNumericString based on props and value, so the user no longer has to define this prop, if the format prop (prefix/ suffix for numeric format, format prop for pattern format) doesn't have the number in it.

Fixes

  • Fixes #​736 - Fix for focus on mount getting reset.
  • Fixed #​740 - fixed type for the format, removeFormat, getCaretBoundary.
  • Fixed #​741 - Thousand and decimal formatting broken while typing when value isNumericString is set to false
  • Fixed #​742 - cursor position getting changed when format props are updated during typing.
  • Fixed #​725 - The cursor position not being correct when allowed decimal separator is typed
  • Fixed a couple of false positive tests and some regressions around those.

v5.1.4: Bug fixes

Compare Source

  • 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

v5.1.3: Bug fixes

Compare Source

  • 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 )

v5.1.2

Compare Source

v5.1.1: Bug fixes

Compare Source

  • Fixed typo on patternFormatter export. #​698
  • Fixed cursor position getting reset if isAllowed returns false. #​699
  • Fixed doc for isAllowed prop. #​697 by @​3794

v5.1.0: Bug fixes

Compare Source

  • 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.

v5.0.1: Bug fixes

Compare Source

v5.0.0: Major Release (v5) - React Number Format rewrite

Compare Source

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.

Configuration

📅 Schedule: Branch creation - "before 3am on the first day of the month" in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@cypress-app-bot
Copy link

See the guidelines for reviewing dependency updates for info on how to review dependency update PRs.

Copy link
Contributor Author

renovate bot commented Feb 7, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 5.x releases. But if you manually upgrade to 5.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/react-number-format-5.x branch February 7, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants