Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump intl-tel-input from 19.5.6 to 23.0.10 #64

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 27, 2024

Bumps intl-tel-input from 19.5.6 to 23.0.10.

Release notes

Sourced from intl-tel-input's releases.

v23.0.10

v23.0.9

setNumber now triggers input event

v23.0.8

Fix: static getCountryData missing country names

v23.0.7

v23.0.6

React cmp: expose instance ref and input ref to parent

v23.0.5

v23.0.4

Update LPN to v8.13.36

v23.0.3

Fix strictMode issue: type max len number, select all, can't type 0

v23.0.2

  • New package.json exports

v23.0.1

  • validationNumberType (see v23.0.0 release notes)

v23.0.0

  • 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

v22.0.1

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

v22.0.0

  • Dropped showSelectedDialCode in favour of new separateDialCode option
  • Dropped countrySearch option (leaving it enabled)
  • Dropped preferredCountries option in favour of new countryOrder option

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [intl-tel-input](https://github.com/jackocnr/intl-tel-input) from 19.5.6 to 23.0.10.
- [Release notes](https://github.com/jackocnr/intl-tel-input/releases)
- [Changelog](https://github.com/jackocnr/intl-tel-input/blob/master/CHANGELOG.md)
- [Commits](jackocnr/intl-tel-input@v19.5.6...v23.0.10)

---
updated-dependencies:
- dependency-name: intl-tel-input
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 27, 2024
@yaroslav-borodii yaroslav-borodii added this to the v2.0.0 milestone Jun 9, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 10, 2024

A newer version of intl-tel-input exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@yaroslav-borodii
Copy link
Collaborator

Update

This PR requests a lot of breaking changes.
Added to the Milestone v2.0.0.

@yaroslav-borodii
Copy link
Collaborator

Breaking Changes

  • 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()
  • Remove legacy jQuery version of the plugin
  • Remove Sass variables in favour of CSS variables (thanks @anthony0030)
  • Switch selected-flag div to be a instead of just having role="button" attribute
  • Rename HTML/CSS classes: selected-flag => selected-country and flag-container => country-container
  • Update the ARIA tags to work with countrySearch (there are 4 new translation keys in i18n option - see readme)
  • Remove defaultToFirstCountry option as that behaviour was Uncaught Error: No country data for 'undefined jackocnr/intl-tel-input#1525 (comment) and so is not recommended (you can always use initialCountry to set the initial country if you wish to)
  • By default, calling isValidNumber will now default to mobile-only mode (it will only return true for valid mobile numbers), which means it will be isValidNumber() passing on invalid number jackocnr/intl-tel-input#1535 - if you don't want this, you can pass false as an argument e.g. isValidNumber(false)
  • Removed legacy Promise checks, as they are now supported in all modern browsers
  • Remove autoInsertDialCode feature, preferring showSelectedDialCode
  • Simplified hiddenInput option so it must return an object - see readme
  • Validation methods now return false if the number contains an alphabetic character

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant