eduardoborges / use-mask-input

✏️ A react Hook for build elegant input masks. Compatible with React Hook Form
https://npmjs.com/package/use-mask-input
265 stars 13 forks source link

fix: prepare withMask function to React 19 ref breaking changes #83

Closed adrianorocha-dev closed 2 months ago

adrianorocha-dev commented 3 months ago

I updated the withMask function in order to prepare it to the upcoming React 19 breaking changes on refs. More info on https://react.dev/blog/2024/04/25/react-19#cleanup-functions-for-refs.

eduardoborges commented 3 months ago

Nice! Can you provide some evidences with React 17 and 18?

adrianorocha-dev commented 3 months ago

Here is evidence of the library correctly working with React 17, 18, and 19:

https://github.com/eduardoborges/use-mask-input/assets/17671035/94d70612-b83c-448c-9dd4-1f5c7059dff4

https://github.com/eduardoborges/use-mask-input/assets/17671035/8a2dcd31-8735-41b7-9e2d-fdcbf7df8715

https://github.com/eduardoborges/use-mask-input/assets/17671035/e4de946c-dab7-41aa-82b9-1ec7bfd88877

eduardoborges commented 2 months ago

:tada: This PR is included in version 3.3.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket: