Releases: jackocnr/intl-tel-input
Releases · jackocnr/intl-tel-input
v23.0.0
utilsScript
option andloadUtils
method now load the utils script using a dynamic import as opposed to injecting a new script tag.- To make this work, the utils script (build/js/utils.js) is now an ES Module, which no longer uses any globals, like
window.intlTelInputUtils
(etc). This means it will no longer work to pre-load the utils script yourself, hence the new bundles (see next point). - For those who are not worried about file size, we now provide two bundles which include the utils script: build/js/intlTelInputWithUtils.js and react/build/IntlTelInputWithUtils.js. If you're using ES Modules, you can import these as "intl-tel-input/intlTelInputWithUtils" and "intl-tel-input/reactWithUtils" respectively (TypeScript types included in the regular declaration files).
- New option
validationNumberType
which defaults to"MOBILE"
- this determines the number type to enforce during validation withisValidNumber
, as well as the number length to enforce withstrictMode
. This replaces themobileOnly
argument which you could previously pass toisValidNumber
. (this change snuck in in v23.0.1 very quickly after releasing v23.0.0)
v22.0.2
v22.0.1
v22.0.0
- Dropped
showSelectedDialCode
in favour of newseparateDialCode
option - Dropped
countrySearch
option (leaving it enabled) - Dropped
preferredCountries
option in favour of newcountryOrder
option - Moved global variables
window.intlTelInputGlobals
andwindow.intlTelInputUtils
to static variables onintlTelInput
object e.g.intlTelInput.getCountryData()
andintlTelInput.utils.getValidationError()
- Switch translation files from .mjs to .js to increase compatibility e.g. esbuild
v21.2.8
v21.2.7
v21.2.6
- Improve translation exports - thanks @anthony0030!
- Update to libphonenumber v8.13.35