Changelog
Package history for country-kit. Same text as packages/country-kit/CHANGELOG.md.
2.0.0 - 2026-08-29
Section titled “2.0.0 - 2026-08-29”commonName,numeric,callingCodes,dialCode,region,subregion,independent,tld,capital,currencies, andnanpAreaCodesonCountrygetCountry,getCountryByAlpha3,getCountryByNumeric,getCountryByTld,getDialCode,getCountryCommonName,getNumericCode,getCountryTld,getCountryCapital,getCountryCurrenciesgetIndependentCountries,getCountrySelectOptions,getCountriesByCurrency,getCountriesBySubregion,listRegions,listSubregions,listCurrenciesgetFlagSvgUrl(jsDelivr, flag-icons 7.5.0) and the optionalcountry-kit/flagsentry for inline SVGgetCountriesByRegion(region)overload; the no-argument form still returns{ [region]: Country[] }
Changed
Section titled “Changed”- Dataset is generated from ISO 3166-1 and UN M49. Names, calling codes, and coverage follow those sources. Kosovo (
XK) is not an assigned ISO 3166-1 code and is not included. getCallingCodereturns the ITU-T E.164 country calling code only (1-3 digits). NANP territories that previously returned a concatenated NPA now return+1. Anguilla is+1, not+1264. UsegetDialCodeornanpAreaCodesfor a phone-input prefix.isValidCallingCodeaccepts+plus 1-3 digits.isValidCallingCode('+1264')isfalse.+1istrue.- Invalid lookups return
undefined. They no longer callconsole.error.
1.1.0 - 2024-12-28
Section titled “1.1.0 - 2024-12-28”searchCountries,isValidCountryCode,isValidCallingCode,getCountriesByCallingCode,getCountriesByRegion()- Type exports:
Country,CountryCode,CountryData,CountrySearchOptions
Changed
Section titled “Changed”- Unknown alpha-2 lookups log with
console.error homepagefield in package.json
1.0.3 - 2024-12-27
Section titled “1.0.3 - 2024-12-27”Changed
Section titled “Changed”- NANP calling codes stored as
+1264(no hyphen), not+1-264
getCountryFlagreturnsundefinedfor unknown codes instead of callinggetFlagon a missing code
1.0.2 - 2024-12-27
Section titled “1.0.2 - 2024-12-27”Changed
Section titled “Changed”- Version bump only
1.0.1 - 2024-12-27
Section titled “1.0.1 - 2024-12-27”Changed
Section titled “Changed”- README license badge and Node / browser note
- package.json metadata
1.0.0 - 2024-12-27
Section titled “1.0.0 - 2024-12-27”- ISO 3166-1 alpha-2/3 codes, English short names, calling codes, Unicode flag emoji
getCountryByCode,getCountryName,getCallingCode,getAlpha3Code,getCountryFlag,getAllCountries,getFlag