Skip to content

Releases: YieldStudio/nova-phone-field

2.0.0

19 Jul 21:32
Compare
Choose a tag to compare

What's Changed

  • PhoneNumber field can now be copyable by @JamesHemery and @ch-hamzzyy in #8 and #4
  • PhoneNumber field can now show helper text by @JamesHemery in #8
  • Upgrade to inputmask 5 (fixes copy/paste and indicator change problems) by @JamesHemery in #8
  • Replaced PHPCS by Laravel Pint by @JamesHemery in #8

Breaking change

Values are now stored in E.164 format. Previously, the formatted value was stored, which later caused problems for usage.

Now with the E.164 format, you can use the phone number directly. We use libphonenumber-js to format it on the Index and Detail of your resources.

To replace previously saved values you can use this query :

UPDATE _table_ SET _field_=CONCAT('+', REGEXP_REPLACE(_field_, '\\D', ''))

New Contributors

  • @ch-hamzzyy made their first contribution in #5

Full Changelog: 1.0.1...2.0.0

1.0.1

02 Jun 14:47
Compare
Choose a tag to compare

Full Changelog: 1.0.0...1.0.1

  • Fix +33 (french number) mask

1.0.0

01 Jun 16:00
Compare
Choose a tag to compare