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

Update dependency libphonenumber-js to v1.9.0 #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mend-for-github-com[bot]
Copy link

@mend-for-github-com mend-for-github-com bot commented Jul 7, 2022

This PR contains the following updates:

Package Type Update Change
libphonenumber-js dependencies minor 1.7.34 -> 1.9.0

By merging this PR, the issue #8 will be automatically resolved and closed:

Severity CVSS Score CVE
Medium Medium 5.3 CVE-2023-0842

Release Notes

catamphetamine/libphonenumber-js (libphonenumber-js)

v1.9.0

Compare Source

==================

  • Refactored AsYouType formatter.

  • (could be a breaking change for some) Some people might have used some of the undocumented AsYouType instance properties like .countryCallingCode, .nationalNumber, etc: those have been moved to a new .state object. The .state object is also not part of the public API, so developers shouldn't use it: use the documented getter methods instead. The .country property of AsYouType instance still stays: not because it hasn't been moved (it has been and is emulated), but because it has been part of an official (now legacy) API of AsYouType formatter.

  • (misc) Renamed asYouType instance method getCountryCallingCode() to getCountryCode(). The older name still works.

  • (could be a build-time breaking change for custom metadata) For those who were generating custom metadata, the libphonenumber-generate-metadata console command has been moved to a separate package called libphonenumber-metadata-generator. The applications that're using it should do npm install libphonenumber-metadata-generator --save-dev and then use the new libphonenumber-metadata-generator command instead of the old one (only the name changed). See instructions.

v1.8.7

Compare Source

v1.8.6

Compare Source

==================

  • Refactored AsYouType formatter.

  • Fixed AsYouType formatter not formatting numbers in some cases like, for example, certain types of Argentinian mobile numbers.

  • humanReadable option of "IDD" formatting has been removed: now it's always true. The rationale is that Google's formatOutOfCountryCallingNumber() original function always formats in "human readable" format.

v1.8.5

Compare Source

v1.8.4

Compare Source

v1.8.3

Compare Source

==================

  • (advanced) Fixed metadata.mobile.json and generating "custom" metadata: now it won't include non-relevant phone number types. Previously, metadata.mobile.json (and any other "custom"-generated metadata) included all phone number types for cases when there're several countries corresponding to the same country calling code (for example, US and CA). So, in case of metadata.mobile.json, for DE it only contained mobile phone number type, but for US and CA it contained all phone number types (this has been unnoticed until this release). Now it only contains mobile phone number types for any country, as it's supposed to be. This change didn't result in any significant "mobile" metadata size reduction: just 105 KB -> 95 KB.

v1.8.2

Compare Source

v1.8.1

Compare Source

==================

  • Renamed parsePhoneNumber() named export to parsePhoneNumberWithError(). The older name still works.

v1.8.0

Compare Source

==================

  • Promoted parsePhoneNumberFromString() named export to a default export due to the name being too verbose.

v1.7.58

Compare Source

v1.7.57

Compare Source

v1.7.56

Compare Source

v1.7.55

Compare Source

v1.7.54

Compare Source

v1.7.53

Compare Source

v1.7.52

Compare Source

v1.7.51

Compare Source

v1.7.50

Compare Source

===================

  • Added some utility functions to AsYouType:
/**
 * Returns `true` if the phone number is being input in international format.
 * In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
 * @​return {boolean}
 */
isInternational()

/**
 * Returns the "country calling code" part of the phone number.
 * Returns `undefined` if the number is not being input in international format.
 * Returns "country calling code" for "non-geographic" phone numbering plans too.
 * @​return {string} [countryCallingCode]
 */
getCountryCallingCode()

/**
 * Returns a two-letter country code of the phone number.
 * Returns `undefined` for "non-geographic" phone numbering plans.
 * Returns `undefined` if no phone number has been input yet.
 * @​return {string} [country]
 */
getCountry()

/**
 * Returns `true` if the phone number is "possible".
 * Is just a shortcut for `PhoneNumber.isPossible()`.
 * @​return {boolean}
 */
isPossible()

/**
 * Returns `true` if the phone number is "valid".
 * Is just a shortcut for `PhoneNumber.isValid()`.
 * @​return {boolean}
 */
isValid()

v1.7.49

Compare Source

v1.7.48

Compare Source

v1.7.47

Compare Source

v1.7.46

Compare Source

v1.7.45

Compare Source

v1.7.44

Compare Source

v1.7.43

Compare Source

v1.7.42

Compare Source

v1.7.41

Compare Source

v1.7.40

Compare Source

v1.7.39

Compare Source

v1.7.38

Compare Source

===================

  • Removed the "001" country code ("Non-Geographic Entity"): now in case of "non-geographic" phone numbers their country is just undefined. Instead, PhoneNumber class has an .isNonGeographic() method.

  • Fixed "non-geographic" numbers .isPossible() === false bug.

v1.7.37

Compare Source

v1.7.35

Compare Source

===================

  • Fixed "Non-Geographic Entities" (001 country code).

  • If you want to rebase/retry this PR, check this box

@mend-for-github-com mend-for-github-com bot added the security fix Security fix generated by Mend label Jul 7, 2022
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 Update dependency libphonenumber-js to v1.9.0 - autoclosed Jul 17, 2022
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/libphonenumber-js-1.x-lockfile branch July 17, 2022 22:23
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 - autoclosed Update dependency libphonenumber-js to v1.9.0 Jul 19, 2022
@mend-for-github-com mend-for-github-com bot reopened this Jul 19, 2022
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/libphonenumber-js-1.x-lockfile branch July 19, 2022 13:45
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 Update dependency libphonenumber-js to v1.7.35 Jul 20, 2022
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/libphonenumber-js-1.x-lockfile branch from f95a790 to dcb426f Compare July 20, 2022 12:28
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.7.35 Update dependency libphonenumber-js to v1.9.0 Jul 21, 2022
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/libphonenumber-js-1.x-lockfile branch from dcb426f to 68ab2c3 Compare July 21, 2022 19:07
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 Update dependency libphonenumber-js to v1.9.0 - autoclosed Jul 25, 2022
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/libphonenumber-js-1.x-lockfile branch July 25, 2022 13:06
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 - autoclosed Update dependency libphonenumber-js to v1.9.0 Jul 27, 2022
@mend-for-github-com mend-for-github-com bot reopened this Jul 27, 2022
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/libphonenumber-js-1.x-lockfile branch July 27, 2022 07:13
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 Update dependency libphonenumber-js to v1.9.0 - autoclosed Jul 28, 2022
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/libphonenumber-js-1.x-lockfile branch July 28, 2022 02:08
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 - autoclosed Update dependency libphonenumber-js to v1.9.0 Jul 29, 2022
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/libphonenumber-js-1.x-lockfile branch July 29, 2022 05:20
@mend-for-github-com mend-for-github-com bot reopened this Jul 29, 2022
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 Update dependency libphonenumber-js to v1.9.0 - autoclosed Aug 3, 2022
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/libphonenumber-js-1.x-lockfile branch August 3, 2022 18:16
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 - autoclosed Update dependency libphonenumber-js to v1.9.0 Aug 8, 2022
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/libphonenumber-js-1.x-lockfile branch August 8, 2022 16:01
@mend-for-github-com mend-for-github-com bot reopened this Aug 8, 2022
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 Update dependency libphonenumber-js to v1.9.0 - autoclosed Aug 12, 2022
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/libphonenumber-js-1.x-lockfile branch April 8, 2023 12:13
@mend-for-github-com mend-for-github-com bot reopened this Apr 8, 2023
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.7.35 Update dependency libphonenumber-js to v1.7.35 - autoclosed Apr 15, 2023
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/libphonenumber-js-1.x-lockfile branch April 15, 2023 05:05
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.7.35 - autoclosed Update dependency libphonenumber-js to v1.7.35 Apr 15, 2023
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/libphonenumber-js-1.x-lockfile branch April 15, 2023 13:19
@mend-for-github-com mend-for-github-com bot reopened this Apr 15, 2023
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.7.35 Update dependency libphonenumber-js to v1.7.35 - autoclosed Apr 25, 2023
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/libphonenumber-js-1.x-lockfile branch April 25, 2023 16:41
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.7.35 - autoclosed Update dependency libphonenumber-js to v1.7.35 Apr 27, 2023
@mend-for-github-com mend-for-github-com bot reopened this Apr 27, 2023
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/libphonenumber-js-1.x-lockfile branch April 27, 2023 07:04
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.7.35 Update dependency libphonenumber-js to v1.7.35 - autoclosed May 1, 2023
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/libphonenumber-js-1.x-lockfile branch May 1, 2023 01:41
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.7.35 - autoclosed Update dependency libphonenumber-js to v1.7.35 May 2, 2023
@mend-for-github-com mend-for-github-com bot reopened this May 2, 2023
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/libphonenumber-js-1.x-lockfile branch May 2, 2023 07:44
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/libphonenumber-js-1.x-lockfile branch from d7f087c to 62420ce Compare May 29, 2023 10:14
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.7.35 Update dependency libphonenumber-js to v1.9.0 May 29, 2023
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 Update dependency libphonenumber-js to v1.9.0 - autoclosed Jun 15, 2023
@mend-for-github-com mend-for-github-com bot deleted the whitesource-remediate/libphonenumber-js-1.x-lockfile branch June 15, 2023 05:19
@mend-for-github-com mend-for-github-com bot changed the title Update dependency libphonenumber-js to v1.9.0 - autoclosed Update dependency libphonenumber-js to v1.9.0 Jun 18, 2023
@mend-for-github-com mend-for-github-com bot reopened this Jun 18, 2023
@mend-for-github-com mend-for-github-com bot restored the whitesource-remediate/libphonenumber-js-1.x-lockfile branch June 18, 2023 18:51
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/libphonenumber-js-1.x-lockfile branch from 62420ce to fa2ce64 Compare June 18, 2023 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security fix Security fix generated by Mend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants