Releases: TrevorPilley/phone-number-parser
2.6.0
Features
This release adds support for Norway phone numbers.
Bug fixes
None
API changes
CountryInfo
+ public static CountryInfo Norway { get; }
2.5.0
Features
This release adds support for Belarus, Hungary and Sweden phone numbers.
It also adds a machine-to-machine (M2M) flag for non-geographic phone numbers, and the continent (including additional parse options configuration) for each country.
Bug fixes
None
API changes
CountryInfo
+ public static CountryInfo Belarus { get; }
+ public static CountryInfo Hungary { get; }
+ public static CountryInfo Sweden { get; }
+ public string Continent { get; }
NonGeographicPhoneNumber
+ public bool IsMachineToMachine { get; }
ParseOptions
+ ParseOptions AllowAsianCountries()
+ ParseOptions AllowEuropeanCountries()
2.4.1
Features
None
Bug fixes
This release contains corrections for phone numbers in Austria, Bulgaria, Croatia, Czech Republic, Estonia, Germany, Greece, Ireland, Italy and Poland.
API changes
None
2.4.0
Features
This release adds support for Estonia, Germany, Greece, Romania and Ukraine phone numbers. It also adds a shared cost flag for non-geographic phone numbers.
Note, the code base has been updated to leverage some .NET 6.0 and C# 10 features so the diff to 2.3.0 is quite large.
Bug fixes
#262 Multi digit trunk prefixes aren't properly supported
API changes
CountryInfo
+ public static CountryInfo Estonia { get; }
+ public static CountryInfo Germany { get; }
+ public static CountryInfo Greece { get; }
+ public static CountryInfo Romania { get; }
+ public static CountryInfo Ukraine { get; }
NonGeographicPhoneNumber
+ public bool IsSharedCost { get; }
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”);