libphonenumber-js 1.12.3 → 1.12.5

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/index.d.cts CHANGED
@@ -27,6 +27,10 @@ export {
27
27
  NationalNumber,
28
28
  Extension,
29
29
  ParseError,
30
+ // `FormatNumberOptions` export is deprecated.
31
+ // It's still here just due to legacy compatibility.
32
+ // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/174#note_2380633424
33
+ FormatNumberOptions,
30
34
  NumberFoundLegacy,
31
35
  NumberFormat,
32
36
  NumberType,
@@ -153,21 +157,6 @@ export function parse(text: string, options?: CountryCode | ParseNumberOptions):
153
157
  */
154
158
  export function parseNumber(text: string, options?: CountryCode | ParseNumberOptions): ParsedNumber | {};
155
159
 
156
- /**
157
- * @deprecated
158
- */
159
- type FormatExtension = (number: string, extension: string, metadata: MetadataJson) => string
160
-
161
- /**
162
- * @deprecated
163
- */
164
- export type FormatNumberOptions = {
165
- v2?: boolean;
166
- fromCountry?: CountryCode;
167
- humanReadable?: boolean;
168
- formatExtension?: FormatExtension;
169
- };
170
-
171
160
  /**
172
161
  * @deprecated
173
162
  */
package/index.d.ts CHANGED
@@ -27,6 +27,10 @@ export {
27
27
  NationalNumber,
28
28
  Extension,
29
29
  ParseError,
30
+ // `FormatNumberOptions` export is deprecated.
31
+ // It's still here just due to legacy compatibility.
32
+ // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/174#note_2380633424
33
+ FormatNumberOptions,
30
34
  NumberFoundLegacy,
31
35
  NumberFormat,
32
36
  NumberType,
@@ -153,21 +157,6 @@ export function parse(text: string, options?: CountryCode | ParseNumberOptions):
153
157
  */
154
158
  export function parseNumber(text: string, options?: CountryCode | ParseNumberOptions): ParsedNumber | {};
155
159
 
156
- /**
157
- * @deprecated
158
- */
159
- type FormatExtension = (number: string, extension: string, metadata: MetadataJson) => string
160
-
161
- /**
162
- * @deprecated
163
- */
164
- export type FormatNumberOptions = {
165
- v2?: boolean;
166
- fromCountry?: CountryCode;
167
- humanReadable?: boolean;
168
- formatExtension?: FormatExtension;
169
- };
170
-
171
160
  /**
172
161
  * @deprecated
173
162
  */