libphonenumber-js 1.12.14 → 1.12.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -69,6 +69,30 @@ And edit the README:
69
69
 
70
70
  <!-- CHANGELOG START -->
71
71
 
72
+ 1.12.16 / 11.9.2025
73
+ ===================
74
+
75
+ * Updated metadata to version 9.0.14:
76
+ - Updated phone metadata for region code(s): CZ, DE, IT, LI, LV, ME, SG, US
77
+ - Updated short number metadata for region code(s): DE
78
+ - New geocoding data for country calling code(s): 1686 (en)
79
+ - Updated geocoding data for country calling code(s): 39 (en, it), 61 (en)
80
+ - Updated carrier data for country calling code(s):
81
+ 46 (en), 65 (en), 420 (en), 998 (en)
82
+ - Updated / refreshed time zone meta data.
83
+
84
+ 1.12.15 / 28.8.2025
85
+ ===================
86
+
87
+ * Updated metadata to version 9.0.13:
88
+ - Updated phone metadata for region code(s):
89
+ BT, DE, GY, IL, OM, PA, SG, SR, UY
90
+ - Updated short number metadata for region code(s): UY
91
+ - Updated geocoding data for country calling code(s): 975 (en)
92
+ - Updated carrier data for country calling code(s):
93
+ 30 (en), 41 (en), 46 (en), 49 (en), 65 (en), 86 (en, zh), 372 (en), 597 (en),
94
+ 968 (en), 975 (en)
95
+
72
96
  1.12.13 / 20.8.2025
73
97
  ===================
74
98
 
package/README.md CHANGED
@@ -451,7 +451,7 @@ const phoneNumber = new PhoneNumber('RU', '8005553535', metadata)
451
451
  * `number: string` — The phone number in [`E.164`](https://en.wikipedia.org/wiki/E.164) format. Example: `"+12133734253"`.
452
452
  * `countryCallingCode: string` — The [country calling code](#country-calling-code). Example: `"1"`.
453
453
  * `nationalNumber: string` — The [national (significant) number](#national-significant-number). Example: `"2133734253"`.
454
- * `country: string?` — The [country code](#country-code). Example: `"US"`. Will be `undefined` when no `country` could be derived from the phone number. For example, when several countries have the same `countryCallingCode` and the `nationalNumber` doesn't look like it belongs to any of them. Or when a number belongs to a [non-geographic numbering plan](#non-geographic).
454
+ * `country: string?` — The [country code](#country-code). Example: `"US"`. Will be `undefined` when no `country` could be derived from the phone number. For example, when several countries have the same `countryCallingCode` and the `nationalNumber` doesn't look like it belongs to any particular one of them. Or when a number belongs to a [non-geographic numbering plan](#non-geographic).
455
455
  * `ext: string?` — The [phone number extension](https://en.wikipedia.org/wiki/Extension_(telephone)), if any. Example: `"1234"`.
456
456
  * `carrierCode: string?` — The ["carrier code"](https://www.voip-info.org/carrier-identification-codes/), if any. Example: `"15"`. "Carrier codes" are only used in Colombia and Brazil and only when dialing within those countries from a mobile phone to a fixed line number.
457
457
 
@@ -842,7 +842,7 @@ asYouType.getTemplate() === 'xx xxx xxx xxxx'
842
842
 
843
843
  * `getCallingCode(): string?` — Returns the ["country calling code"](#country-calling-code) part of the phone number. Returns `undefined` if the number is not being input in international format, or if no valid "country calling code" has been entered. Supports ["non-geographic"](#non-geographic) phone numbering plans: even though those aren't technically "countries", they have their own "country calling codes" too.
844
844
 
845
- * `getCountry(): string?` — Returns a two-letter [country code](#country-code) of the phone number. Returns `undefined` for ["non-geographic"](#non-geographic) phone numbering plans. Returns `undefined` if no phone number has been input yet.
845
+ * `getCountry(): string?` — Returns a two-letter [country code](#country-code) of the phone number. Returns `undefined` for ["non-geographic"](#non-geographic) phone numbering plans. Returns `undefined` if no phone number has been input yet, or if it couldn't tell what country the phone number belongs to — that could happen when several countries have the same "country calling code" and the phone number doesn't look like it belongs to any particular one of them.
846
846
 
847
847
  * `isPossible(): boolean` — Returns `true` if the phone number is "possible". Is just a shortcut for [`PhoneNumber.isPossible()`](#ispossible-boolean).
848
848