Skip to content

Commit 1039329

Browse files
JamesHemerygithub-actions[bot]
authored andcommitted
Update CHANGELOG
1 parent eb5d102 commit 1039329

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,33 @@ All notable changes to `nova-phone-field` will be documented in this file.
44

55
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
66

7+
## 2.0.0 - 2023-07-19
8+
9+
### What's Changed
10+
11+
- PhoneNumber field can now be `copyable` by @JamesHemery and @ch-hamzzyy in https://github.com/YieldStudio/nova-phone-field/pull/8 and https://github.com/YieldStudio/nova-phone-field/pull/4
12+
- PhoneNumber field can now show `helper` text by @JamesHemery in https://github.com/YieldStudio/nova-phone-field/pull/8
13+
- Upgrade to inputmask 5 (fixes copy/paste and indicator change problems) by @JamesHemery in https://github.com/YieldStudio/nova-phone-field/pull/8
14+
- Replaced PHPCS by Laravel Pint by @JamesHemery in https://github.com/YieldStudio/nova-phone-field/pull/8
15+
16+
### Breaking change
17+
18+
Values are now stored in [E.164 format](https://en.wikipedia.org/wiki/E.164). Previously, the formatted value was stored, which later caused problems for usage.
19+
20+
Now with the E.164 format, you can use the phone number directly. We use [libphonenumber-js](https://www.npmjs.com/package/libphonenumber-js) to format it on the Index and Detail of your resources.
21+
22+
To replace previously saved values you can use this query :
23+
24+
```sql
25+
UPDATE _table_ SET _field_=CONCAT('+', REGEXP_REPLACE(_field_, '\\D', ''))
26+
27+
```
28+
### New Contributors
29+
30+
- @ch-hamzzyy made their first contribution in https://github.com/YieldStudio/nova-phone-field/pull/5
31+
32+
**Full Changelog**: https://github.com/YieldStudio/nova-phone-field/compare/1.0.1...2.0.0
33+
734
## 1.0.1 - 2022-06-02
835

936
**Full Changelog**: https://github.com/YieldStudio/nova-phone-field/compare/1.0.0...1.0.1

0 commit comments

Comments
 (0)