Skip to content

Releases: mledoze/countries

Countries v5.0.0

17 Sep 14:00
Compare
Choose a tag to compare

Breaking changes

  • drop support for old versions of PHP and Symfony
    • the minimum version of PHP is 8.1
    • the supported Symfony versions are 5.4 and 6.3
  • remove Bower integration

Changed

  • update official name of Turkey (#458)
  • update flags for Afghanistan, France, Honduras and Mauritania (#455)
  • remove empty strings (#488)
  • fix polish translation of United Kingdom (#453)
  • refactor build script
  • add Dependabot integration

Countries v4.1.1

17 Sep 13:01
Compare
Choose a tag to compare

Changed

  • adjust package.json for ES6 and CommonJS support (#486)
  • change demonyms property type (#483)
  • fix files listed in npm package (#481)
  • add symfony/console 6.0 support (#450)
  • add ESM support (#469)
  • add Bosnia and Herzegovina convertible mark currency symbol (#464)
  • updated Croatia's currency to EUR as the HRK (#472)
  • mark Guinea-Bissau as a UN member (#473)

Countries v4.1.0

25 Feb 13:07
Compare
Choose a tag to compare

Added

  • add Swedish translation (#398)
  • add a changelog (#383)
  • add Hungarian translation (#385)
  • add UN membership boolean flag to each country (#401)
  • add geojson and topojson for South Sudan (#406)
  • add geojson and topojson for Sint Maarten (SX) (#407)
  • add geojson and topojson for the Caribbean Netherlands (BQ) (#407)

Changed

  • sort translations alphabetically (#384)
  • remove South Sudan from Sudan's geojson and topojson (#406)
  • change subregion to Eastern Europe for Slovakia (#413)
  • change first letter of Czechia to uppercase (#431)
  • add capital for Bonaire, Sint Eustatius and Saba (#441)
  • add TLD for Kosovo (#441)

Fixed

  • fixed missing idd suffixes of Canada and USA (#426)
  • rename capital city of Kazakhstan from Astana to Nur-Sultan (#391)
  • change capital city of Burundi from Bujumbura to Gitega (#391)
  • change demonym of United States Minor Outlying Islands to American Islander (#391)
  • add South African rand as a currency to Eswatini (#391)
  • remove St Barthelemy from Guadaloupe geojson and topojson (#407)
  • set St Barthelemy's geojson and topojson to correct region (#407)
  • remove duplicate viewBox for Cuba's flag (#411)
  • fixed idd of Russia and Kazakhstan by removing XX suffix (#425)
  • remove new line character in Congo's translations (#430)
  • fix Montenegrin language code (#434)
  • fix IOC code for Lebanon and Singapore (#441)

Build

  • add files in package.json to reduce package size (#388)
  • generate calling codes (callingCodes) from international direct dialing info (idd) (#389)
  • drop support for old versions of PHP and Symfony packages (#435)

Countries v4.0.0

04 Apr 12:23
b5d7432
Compare
Choose a tag to compare

Breaking changes

  • merge demonym into demonyms (#369)
  • remove property demonym (#369)

Before

"demonym": "Irish",
...
"demonyms": {
    "fra": {
        "f": "Irlandaise",
        "m": "Irlandais"
    }
}

After

"demonyms": {
    "eng": {
        "f": "Irish",
        "m": "Irish"
    },
    "fra": {
        "f": "Irlandaise",
        "m": "Irlandais"
    }
}

Additions

  • add translated demonyms in French (#343)
  • add DPRK as an alternative spelling to North Korea (#371)
  • add altSpelling to Macedonia (#377)

Changes

  • update TypeScript types to v3 (#376)

Fixes

  • fix Curaçao calling code (#370)
  • fix wrong Iran language code, update the language label (#374)
  • fix Spanish spelling for Haiti (#380)

Countries v3.0.0

18 Dec 21:58
Compare
Choose a tag to compare

Breaking changes

  • rename property currency to currencies
  • change format of currencies property: it is now an object with currency code as keys. The value is an object with name and symbol properties.

Before

"currency": ["SHP", "GBP"]

After

"currencies": {
    "GBP": {
        "name": "Pound sterling",
        "symbol": "\u00a3"
    },
    "SHP": {
        "name": "Saint Helena pound",
        "symbol": "\u00a3"
    }
}

Additions

  • add International Direct Dialing codes (idd property); example:
"idd": {
    "root": "+2",
    "suffixes": [
        "90",
        "47"
    ]
}
  • add Persian translations
  • add Korean translations
  • add Urdu translations
  • add missing currency codes
  • add missing Korean common translation for Wallis and Futuna
  • add types for TypeScript
  • add Symfony 5 support

Changes

  • change name of Macedonia to North Macedonia
  • update translations of North Macedonia
  • update flag of Bolivia and Peru
  • reorder currencies codes alphabetically
  • change demonym of Myanmar to Burmese
  • update entry for Curaçao

Fixes

  • rename 'Dollar' to 'dollar'
  • replace sovereing with sovereign
  • fix names of Saint Kitts and Nevis
  • remove [G] in currency codes
  • fix official German name for Nepal
  • fix Kazakhstan calling code
  • replaces (none) with empty strings

Build

  • migrate CI from Travis to GitHub Actions

Miscellaneous

  • add the full ODbL license
  • update build status badge with

Countries v2.1.0

09 Nov 22:10
Compare
Choose a tag to compare

Additions

added Czech translations
added Polish translations
added missing Croatian translation for Sint Maarten

Fixes

replaced "Northern America" by "North America"
removed fund codes from currencies
renamed Swaziland to Eswatini
revised some German translations
fixed Vatican City demonym
fixed Macau demonym
fixed some Unicode typos
fixed type of 'name.native' when property is empty
fixed official and common country name of Korea
fixed official and native name of the Netherlands (#277)

Build

fixed output message when converting with specific format(s) (#281)
formatted code to comply with PSR2 coding standard
removed Hungarian notation in PHP Code
moved dependency roave/security-advisories to require-dev section

Miscellaneous

added badge for PHP minimum version
added scrutinizer badge

Countries v2.0.0

08 Feb 15:11
Compare
Choose a tag to compare

Announcement

This project now requires the latest version of PHP 5, which is 5.6.33. This will be the last release to support PHP 5. The next major release (v3.0.0) will require PHP 7.2.

Breaking changes

changed type of property capitals from string to array to support countries with multiple capitals
changed semicolon to comma for CSV format (see https://github.com/mledoze/countries/blob/e2de3c46402c2b7a90d30fa1d6d1151e97420992/dist/countries.csv)
moved SHN and BES divisions back into the main countries.json as two separate entries; also removed files data/shn.divisions.json and data/bes.divisions.json
removed region specific languages (see #181)
removed South Sudan from Chad's neighbours

Additions

added ISO 3166-1 independence status (property independent)
added ISO 3166-1 assignment status (property status)
added TopoJSON formatted files for each country
added Estonian translations
added Guiana demonym for French French Guiana

Build

added three new options: --include-field, --format and --output-dir (thank you @emilv)
added Travis CI to automatically validate new pull requests
updated dependencies:

  • php (>=5.5.9 => >=5.6.33)
  • symfony/console (v3.1.3 => v4.0.4)
  • symfony/yaml (v3.1.3 => v4.0.4)

Fixes

added "The Netherlands" as alternate spelling of Netherlands
added CKD as currency of Cook Islands
added "Antarctic" region for multiple countries
added latitude and longitude data for United States Minor Outlying Islands
updated alternative spellings of Cocos (Keeling) Islands
updated official languages of Armenia
removed province of China and use Traditional Chinese instead of Simplified Chinese
fixed capital of Ukraine
fixed non-existing slk language
fixed land borders for China, Cyprus, Chad, Egypt, India, Jordan and Israel
fixed Russian translation of Mexico
fixed existing official names in Welsh
fixed Russia native official name according to en.wikipedia.org/wiki/Russia
fixed Czech Republic short names
fixed Slovakian translation ISO code
fixed subregion field for Mexico
fixed altSpellings field for Belarus
fixed country name and currency code for Belarus

Miscalleanous

changed licence label to "ODC Open Database License v1.0" to comply with SPDX names

Countries v1.8.0

01 Sep 09:50
Compare
Choose a tag to compare

Additions

add Slovak translations
add Chinese translations
add Dutch translation for Kosovo
add German translations for Kosovo and Curaçao

Build

add composer.lock file to prevent dependencies issues
allow setting a custom command name

Fixes

fix native name for Nepal (from apilayer/restcountries#23)
change demonym for Argentina to Argentine
fix demonym for Christmas Island
fix subregion in Slovak Republic
replace all "cmn" with "zho"
replaced Kosovo's International Olympic Committee code by ISO 3166-1 alpha-3 code in land borders array

Countries v1.7.7

28 Jan 16:07
Compare
Choose a tag to compare

added missing French translations for Kosovo and Curaçao.

Countries v1.7.6

21 Jan 13:43
Compare
Choose a tag to compare

Fix languages key not being excluded with JSON converter (#162)