Releases: jackocnr/intl-tel-input
Releases · jackocnr/intl-tel-input
v26.0.0-beta.0
BREAKING CHANGES
- SVG globe icon
- The globe icon is now an SVG that is baked into the JS, allowing you to change the size/colour easily.
- BREAKING: if you previously used your own globe icon image then you will need to update your code to switch to using the new baked-in SVG, and style it however you like.
- Use Intl.DisplayNames for country names
- You can use the new option
countryNameLocaleto control this. - BREAKING change: country names in various languages may have changed as a result of this.
- You can use the new option
- feat(vue): add typescript support
- TypeScript type definitions are provided
- BREAKING: you will now need to pass your local value with the v-model attribute rather than the value attribute, more info
- Rename validationNumberTypes and change default
- BREAKING:
validationNumberTypesoptions is now calledallowedNumberTypes, and defaults to["MOBILE", "FIXED_LINE"], which will hopefully reduce confusion. - BREAKING: if you're relying on the default setting and don't want to accept fixed_line numbers, you will now need to set
allowedNumberTypesto just["MOBILE"]during initialisation
- BREAKING:
- Remove autocomplete=off
- As modern browsers trigger input event so we can keep selected country in sync with autocompleted number.
- BREAKING: Hopefully nothing will actually change here, users will just be able to autocomplete their numbers when they couldn't before, but there is always a chance that some version of some browser will misbehave somehow.
- Simplify i18n keys
- Previously we had confusing duplication between
zeroSearchResults,oneSearchResult,multipleSearchResultskeys and thesearchResultsTextfunction, which did the same thing. - BREAKING: Renamed
zeroSearchResultstosearchEmptyState(this is now just used for the visible text), and renamedsearchResultsTexttosearchSummaryAriato better reflect what it is used for, and got rid of duplicate keys.
- Previously we had confusing duplication between
- Remove deprecated isMobileUserAgent
- BREAKING: This may change the default
useFullscreenPopupbehaviour on some devices, though it really shouldn't. In fact, it should be more stable and predictable now.
- BREAKING: This may change the default
- CSS: use image-set instead of media query
- BREAKING: when you override the flags image paths in your CSS, you will need to change it to use image-set instead of the old media query
- New option: allowNumberExtensions
- BREAKING: This defaults to false, so if you want to accept number extensions you will need to set this to true.
v25.15.0
v25.14.1
v25.14.0
feat: add Svelte 5 component wrapper - thanks to @gh-sandeep!