Releases: TrevorPilley/phone-number-parser
2.11.0
Features
This release adds support for Australia and Papua New Guinea phone numbers.
It also has:
- Improved the area code data for UK geographic numbers.
[NotNullWhen(true)]
applied to thePhoneNumber
parameter of thePhoneNumber.TryParse
methods.- Reduced some array allocations within the
CountryInfo
type. - Returns the
ParseOptions
for theAllowXCountries()
methods to allow method chaining.
Bug fixes
None
API changes
CountryInfo
+ public static CountryInfo Australia { get; }
+ public static CountryInfo PapuaNewGuinea { get; }
ParseOptions
+ public ParseOptions AllowAfricanCountries()
+ public ParseOptions AllowAsianCountries()
+ public ParseOptions AllowEuropeanCountries()
+ public ParseOptions AllowOceanianCountries()
- public void AllowAfricanCountries()
- public void AllowAsianCountries()
- public void AllowEuropeanCountries()
- public void AllowOceanianCountries()
2.10.0
Features
This release adds support for .NET 7.0 and additional parsing approaches.
It also drops the .NET 6.0 build although .NET 6.0 is still supported via the .NET Standard 2.1 version of the library.
Bug fixes
None
API changes
PhoneNumber
+ static bool TryParse(string value, out IEnumerable<PhoneNumber> phoneNumbers)
+ static bool TryParse(string value, ParseOptions options, out IEnumerable<PhoneNumber> phoneNumbers)
2.9.1
Fixes an incorrect number range for Benin in Nigeria
2.9.0
Features
This release adds support for Egypt, Nigeria and South Africa phone numbers and obsoletes 2 properties.
It also drops the .NET 5.0 build although .NET 5.0 is still supported via the .NET Standard 2.1 version of the library.
Bug fixes
None
API changes
CountryInfo
+ public static CountryInfo Egypt { get; }
+ public static CountryInfo Nigeria { get; }
+ public static CountryInfo SouthAfrica { get; }
- public string InternationalCallPrefix { get; }
MobilePhoneNumber
- public bool IsDataOnly { get; }
ParseOptions
+ void AllowAfricanCountries()
2.8.0
Features
This release adds support for Moldova, Serbia and Kosovo phone numbers.
Bug fixes
None
API changes
CountryInfo
+ public static CountryInfo Moldova { get; }
+ public static CountryInfo Serbia { get; }
+ public static CountryInfo Kosovo { get; }
2.7.0
Features
This release adds support for Denmark and Finland phone numbers.
Bug fixes
None
API changes
CountryInfo
+ public static CountryInfo Denmark { get; }
+ public static CountryInfo Finland { get; }
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; }