Releases: TrevorPilley/phone-number-parser
2.3.0
Features
This release adds support for Bulgaria, Croatia, Czech Republic, Poland and Slovakia.
Bug fixes
None
API changes
CountryInfo
+ public static CountryInfo Bulgaria { get; }
+ public static CountryInfo Croatia { get; }
+ public static CountryInfo CzechRepublic { get; }
+ public static CountryInfo Poland { get; }
+ public static CountryInfo Slovakia { get; }
2.2.1
Features
This release reduces some array allocations and enhances the PhoneNumber.ToString(“N”)
format to adhere to E.123 National Notation.
This results in a space being present between the national dialling code and subscriber number, and in the instance that the national dialling code is not required for local dialling, the national dialling code is within parenthesis.
For example, a Sheffield UK number is now shown as (0114) 2726444
instead of 01142726444
.
Bug fixes
None
API changes
None
2.2.0
Features
This release adds support for Austria and Gibraltar, as well as adding a build target of .NET 6.0.
Bug fixes
None
API changes
CountryInfo
+ public static CountryInfo Austria { get; }
+ public static CountryInfo Gibraltar { get; }
2.1.1
Features
This release restores the national format which was removed in 2.0.0 and corrects some typos in the documentation.
Bug fixes
None
API changes
PhoneNumber
+ public string ToString(“N”)
2.1.0
Features
This release adds a IsPremiumRate
flag to non-geographic phone numbers, and sets the IsFreephone
flag for Singapore numbers.
Bug fixes
None
API changes
NonGeographicPhoneNumber
+ public bool IsPremiumRate { get; }
2.0.0
Features
This release tidies up the obsoleted members during the evolution of the library from 1.0.0 - 1.8.0.
It also replaces the original format strings for PhoneNumber.ToString()
with E.164
which is the default and E.123
.
Bug fixes
None
API changes
CountryInfo
- public static CountryInfo ES { get; }
- public static CountryInfo FR { get; }
- public static CountryInfo GG { get; }
- public static CountryInfo IE { get; }
- public static CountryInfo IM { get; }
- public static CountryInfo JE { get; }
- public static CountryInfo UK { get; }
- public bool HasAreaCodes { get; }
- public string Iso3116Code { get; }
PhoneNumber
- public string? AreaCode { get; }
- public string LocalNumber { get; }
- public string ToString(“D”);
- public string ToString(“E”);
- public string ToString(“I”);
- public string ToString(“N”);
+ public string ToString(“E.164”);
+ public string ToString(“E.123”);
1.8.0
Features
This release adds support for Belgium, Portugal and the Netherlands.
Bug fixes
None
API changes
CountryInfo
Made SharesCallingCode
public, it was previously internal.
+ public static CountryInfo Belgium { get; }
+ public static CountryInfo Portugal { get; }
+ public static CountryInfo Netherlands { get; }
+ public bool SharesCallingCode { get; }
1.7.0
Features
This release adds support for Switzerland, adopts the E.164 naming for phone number parts and adds the national significant number as a property.
Bug fixes
None
API changes
CountryInfo
HasAreaCodes
has been replaced by HasNationalDestinationCodes
. New properties have been added and the old properties have been marked obsolete.
+ public static CountryInfo Switzerland { get; }
- public bool HasAreaCodes { get; }
+ public bool HasNationalDestinationCodes { get; }
PhoneNumber
NationalSignificantNumber
has been added, AreaCode
has been replaced by NationalDestinationCode
and LocalNumber
has been replaced by SubscriberNumber
. New properties have been added and the old properties have been marked obsolete. The default string format has been changed from I
to E
, the output is the same and I
is still supported but will be removed in a future version.
- public string? AreaCode { get; }
- public string LocalNumber { get; }
+ public string? NationalDestinationCode { get; }
+ public string NationalSignificantNumber { get; }
+ public string SubscriberNumber { get; }
- public string ToString(“I”);
+ public string ToString(“E”);
1.6.0
Features
This release adds support for Hong Kong, Macau, San Marino, Monaco and Singapore.
Bug fixes
None
API changes
CountryInfo
The CountryInfo
instances have been renamed from their code to their name. New properties have been added and the old properties have been marked obsolete.
- public static CountryInfo ES { get; }
- public static CountryInfo FR { get; }
+ public static CountryInfo France { get; }
- public static CountryInfo GG { get; }
+ public static CountryInfo Guernsey { get; }
+ public static CountryInfo HongKong { get; }
- public static CountryInfo IE { get; }
+ public static CountryInfo Ireland { get; }
- public static CountryInfo IM { get; }
+ public static CountryInfo IsleOfMan { get; }
+ public static CountryInfo IT { get; }
+ public static CountryInfo Italy { get; }
- public static CountryInfo JE { get; }
+ public static CountryInfo Jersey { get; }
+ public static CountryInfo Macau { get; }
+ public static CountryInfo Monaco { get; }
+ public static CountryInfo SanMarino { get; }
+ public static CountryInfo Singapore { get; }
+ public static CountryInfo Spain { get; }
- public static CountryInfo UK { get; }
+ public static CountryInfo UnitedKingdom { get; }
1.5.0
Features
This release separates out the Guernsey, Jersey and Isle of Man parsing and countries from the United Kingdom parsing. Although they all use the same numbering plan and calling code (+44) they aren't actually part of the United Kingdom.
Bug fixes
None
API changes
CountryInfo
A new property has been added containing the name of the country.
+ public static CountryInfo GG { get; }
+ public static CountryInfo IM { get; }
+ public static CountryInfo JE { get; }
+ public string Name { get; }