libphonenumber-js 1.10.63 → 1.10.64
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 +0 -5
- package/package.json +1 -1
- package/types.d.cts +1 -1
- package/types.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -67,11 +67,6 @@ And edit the README:
|
|
|
67
67
|
|
|
68
68
|
This changelog [only](https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/16#note_594165443) mentions the changes in the code. See [Google's changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt) for metadata changes.
|
|
69
69
|
|
|
70
|
-
1.11.00 / 06.05.2024
|
|
71
|
-
====================
|
|
72
|
-
|
|
73
|
-
* (TypeScript) Fixed Tagged type to be more strict, as suggested in an [issue](https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/144) by Islam Sharabash.
|
|
74
|
-
|
|
75
70
|
1.10.17 / 08.01.2023
|
|
76
71
|
==================
|
|
77
72
|
|
package/package.json
CHANGED
package/types.d.cts
CHANGED
|
@@ -86,7 +86,7 @@ export type NumberType = undefined | 'PREMIUM_RATE' | 'TOLL_FREE' | 'SHARED_COST
|
|
|
86
86
|
// How would it cast it to an `E164Number`? Using `as` keyword?
|
|
87
87
|
// In that case it wouldn't really make any difference from allowing it to assign a `string` to a `E164Number` variable directly.
|
|
88
88
|
//
|
|
89
|
-
type Tagged<A, T> = A & { __tag
|
|
89
|
+
type Tagged<A, T> = A & { __tag?: T };
|
|
90
90
|
|
|
91
91
|
export type E164Number = Tagged<string, "E164Number">;
|
|
92
92
|
export type NationalNumber = Tagged<string, "NationalNumber">;
|
package/types.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ export type NumberType = undefined | 'PREMIUM_RATE' | 'TOLL_FREE' | 'SHARED_COST
|
|
|
86
86
|
// How would it cast it to an `E164Number`? Using `as` keyword?
|
|
87
87
|
// In that case it wouldn't really make any difference from allowing it to assign a `string` to a `E164Number` variable directly.
|
|
88
88
|
//
|
|
89
|
-
type Tagged<A, T> = A & { __tag
|
|
89
|
+
type Tagged<A, T> = A & { __tag?: T };
|
|
90
90
|
|
|
91
91
|
export type E164Number = Tagged<string, "E164Number">;
|
|
92
92
|
export type NationalNumber = Tagged<string, "NationalNumber">;
|