- feat: add
rounded
property (thanks to #42)
- fix: export missing types (see #40)
- fix: remove unused dependency
- feat: add
country-selection
slot (closes #39) - feat: add default value to
decorative
prop of icon components
- fix: attributes inheritance and documentation on behavior (closes #37)
- fix: publish package under
latest
npm tag
- feat: rely on
countries-list
instead ofcountry-telephone-data
for countries names and includes it in build. - feat: display native name of the country first (instead of showing
EN
name)
- fix: types definition references inside
package.json
(closes #26)
- fix: exclude unsupported countries from countries list to avoid unexpected errors
- fix: only run validation trigger when phone number input is filled with a value (closes #21)
- feat: order preferred countries using passed
preferCountries
prop (closes #19) - feat: add an
example
property to customize shown example (closes #20)
- feat: add flag icon package to installation code blocks in demo app
- feat: add pnpm installation code block in demo app
- fix: show preferred countries first in country selection list (closes #17)
Migration to awesome-phonenumber
V6.
BREAKING
Check the migration guide.
Summary:
- Phone number object and helpers have changed to use
awesome-phonenumber
V6 objects. - If you are only using string phone values without any helper functions
(
makePhone
,makeExample
orformatPhone
), no change should be required by this new version.
- fix: height of country input on latest vuetify versions
- fix: more consistent country input height (closes #12)
- externalize vuetify imports from production build
- support for
validate-on
property (closes #10)
- improve country input height to always match text field height
Publish v3 as latest version on NPM.
Fix phone input width when having long messages.
Migration to Vuetify 3 and Vue 3, props and exported modules changes, dependencies upgrade.
BREAKING
Check the migration guide.
Summary:
- Vuetify 3 and Vue 3 required instead of Vuetify 2 and Vue 2.
- Some props and exported modules names and behavior changes.
Migration to Vite bundler, plugin registration changes and dependencies upgrade.
BREAKING
Check the migration guide.
Summary:
- Plugin is now created using a factory exported as a named
member
createVPhoneInput
. Options need to be passed to this factory instead of theVue.use
registration. - CSS styles have been extracted into a dedicated
dist/v-phone-input.css
.
Added
PreferableCountryGuesser
to keep the selected country across multiple guess calls.StorageMemoIp2cCountryGuesser
to memoize guessed country inside a storage implementation ( defaults tolocalStorage
).
Changed
MemoIp2cCountryGuesser
andStorageMemoIp2cCountryGuesser
implements thePreferableCountryGuesser
interface and store the preferred country as the memoized one.
Added
- Issue #2: using input with only one country will auto select it without guessing.
Fixed
- Entering an invalid E164 number will keep the previously selected country.
Added
awesome-phonenumber
lib access usingPhoneUtils.AwesomePhoneNumber
.
Added
PhoneUtils
exported class for manipulating phone numbers (creating from input or examples, formatting).
Initial release.