You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v2.1.0: PhoneInput full country list, preferred countries and E.164 validation
#106
No breaking prop changes. PhoneInput's default list grows from 50 to ~244 countries, and the English names in the exported COUNTRIES now come from Intl.DisplayNames, so a few differ from before (e.g. TR is now "Türkiye") and wording can vary slightly between browsers. If you need a short, fixed list, pass countries.
PhoneInput: country search ignores accents and curly apostrophes, and matches common former names ("turkey", "ivory coast", "czech republic", "swaziland"), including under a non-English displayLocale. Hong Kong and Macao keep their short names. (fix: PhoneInput country search and preferred divider #105)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
No breaking prop changes. PhoneInput's default list grows from 50 to ~244 countries, and the English names in the exported
COUNTRIESnow come fromIntl.DisplayNames, so a few differ from before (e.g.TRis now "Türkiye") and wording can vary slightly between browsers. If you need a short, fixed list, passcountries.Added
Intl.DisplayNames, so neither is stored in the bundle. The original 50 keep their order at the top. (PhoneInput: full ITU-T E.164 country list + basic validation (#32) #95, @ujwalbajaj)preferredCountriespins countries above a divider (style it withclassNames.preferredDivider). They are added even when missing fromcountries. (PhoneInput: full ITU-T E.164 country list + basic validation (#32) #95)countriesandpreferredCountriesaccept bare ISO codes ("IN") as well asCountryobjects. Unknown codes are dropped. (PhoneInput: full ITU-T E.164 country list + basic validation (#32) #95)validatemarks a malformed non-empty numberaria-invalid, andonValidityChange(valid, e164)reports validity and the normalized number. No new dependency. (PhoneInput: full ITU-T E.164 country list + basic validation (#32) #95)Fixed
displayLocale. Hong Kong and Macao keep their short names. (fix: PhoneInput country search and preferred divider #105)CountryinpreferredCountriesuses a lowercase code. (fix: PhoneInput country search and preferred divider #105)Docs
hreflanglinks and a sitemap for every language. (feat: translated metadata, hreflang and a sitemap for every language #102)Full changelog: v2.0.2...v2.1.0
This discussion was created from the release v2.1.0: PhoneInput full country list, preferred countries and E.164 validation.
All reactions