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

chore(deps): bump react-number-format from 4.9.1 to 5.4.1 #2164

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 26, 2024

Bumps react-number-format from 4.9.1 to 5.4.1.

Release notes

Sourced from react-number-format's releases.

Bug fixes

  • handle caret position when float numbers are used with decimals #851
  • Remove isCharacterSame as valid prop from NumericFormat and PatternFormat as its a number_format base props and shouldn't be used outside. #850
  • Remove prop-types as dependency as they are no longer used. #849

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

  • Fix caret position not getting corrected when there is selection in the input. #780

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

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

Bug fixes with NumberFormatBase API improvement.

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

Bug fixes and valueIsNumericString prop improvement.

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

... (truncated)

Commits
  • a1fab6d Version upgrade for bug fixes
  • 901816b - Remove prop-types as dependency as they are no longer used. #849
  • 8a9e2d6 - Remove isCharacterSame as valid prop from NumericFormat and PatternFormat a...
  • 5db9496 - handle caret position when float numbers are used with decimals #851
  • 7a373b9 Instead of blacklist use whitelist for including in npm.
  • dbcd429 - Fix key press after selection over masked area.
  • 38ce3ba Merge pull request #842 from rfviolato/master
  • c866092 fix: onValueChange not called for values with 3 or less characters
  • 5edf305 Merge pull request #779 from s-yadav/dev
  • ca97625 Remove .only from test.
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [react-number-format](https://github.com/s-yadav/react-number-format) from 4.9.1 to 5.4.1.
- [Release notes](https://github.com/s-yadav/react-number-format/releases)
- [Commits](s-yadav/react-number-format@v4.9.1...v5.4.1)

---
updated-dependencies:
- dependency-name: react-number-format
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file Ready for Dev Review Read for frontend engineer reviews labels Aug 26, 2024
Copy link

height bot commented Aug 26, 2024

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 9, 2024

Superseded by #2174.

@dependabot dependabot bot closed this Sep 9, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/react-number-format-5.4.1 branch September 9, 2024 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Ready for Dev Review Read for frontend engineer reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants