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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libphonenumber-js",
3
- "version": "1.10.63",
3
+ "version": "1.10.64",
4
4
  "description": "A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript",
5
5
  "main": "index.cjs",
6
6
  "module": "index.js",
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: T };
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: T };
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">;