Skip to content

Releases: jackocnr/intl-tel-input

v23.0.4

12 May 10:00
Compare
Choose a tag to compare

v23.0.3

12 May 09:56
Compare
Choose a tag to compare

v23.0.2

12 May 09:12
Compare
Choose a tag to compare
  • New package.json exports

v23.0.1

11 May 23:26
Compare
Choose a tag to compare
  • validationNumberType (see v23.0.0 release notes)

v23.0.0

11 May 11:58
Compare
Choose a tag to compare
  • utilsScript option and loadUtils 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 with isValidNumber, as well as the number length to enforce with strictMode. This replaces the mobileOnly argument which you could previously pass to isValidNumber. (this change snuck in in v23.0.1 very quickly after releasing v23.0.0)

v22.0.2

02 May 09:23
Compare
Choose a tag to compare

v22.0.1

01 May 22:29
Compare
Choose a tag to compare

Switch translation files from .mjs to .js to increase compatibility e.g. esbuild

v22.0.0

01 May 21:39
Compare
Choose a tag to compare
  • Dropped showSelectedDialCode in favour of new separateDialCode option
  • Dropped countrySearch option (leaving it enabled)
  • Dropped preferredCountries option in favour of new countryOrder option
  • Moved global variables window.intlTelInputGlobals and window.intlTelInputUtils to static variables on intlTelInput object e.g. intlTelInput.getCountryData() and intlTelInput.utils.getValidationError()
  • Switch translation files from .mjs to .js to increase compatibility e.g. esbuild

v21.2.8

01 May 11:54
Compare
Choose a tag to compare

v21.2.7

23 Apr 17:04
Compare
Choose a tag to compare
  • minor bug fix