Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Latest commit

 

History

History
57 lines (30 loc) · 1.77 KB

CHANGELOG.md

File metadata and controls

57 lines (30 loc) · 1.77 KB

1.0.0 (2021-11-04)

Summary

  • Moved prop-types from dependencies to optionalDependencies

1.0.0-rc.2 (2020-11-04)

Summary

  • This version refactors the internals to fix a bug where the input was not cleared after the component re-renders with an empty value.

Fixed

  • The input is now cleared when an empty value is received.

1.0.0-rc.1 (2020-10-29)

Summary

  • This version fixes a little bug and refactors the component props a bit.

Changed

  • Props such as className, name, etc. are no longer explicity defined as props on the component. Any props not specifically defined in the docs will be passed on to the input component.

Removed

  • BREAKING CHANGE: Removed inputProps prop. Any props that you want to provide to the input can now simply be passed directly to the CoordinateInput component.

Fixed

  • The onChange handler now correctly fires when the input has been cleared.

1.0.0-beta (2020-05-15)

Summary

  • This release is a pretty major refactor which replaces the unmaintained Text Mask library with imaskjs.
  • Additionally, the component has been refactored to use React Hooks instead of Class Components.

Changed

  • BREAKING CHANGE: The onChange callback signature has changed. Instead of receiving an event as the first argument it receives the masked input value. The second argument is still an object but the properties have changed. See the docs for more info.

Removed

  • BREAKING CHANGE: Removed guide prop
  • BREAKING CHANGE: Removed showMask prop