Socket
Socket
Sign inDemoInstall

world-countries

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

5.0.0

Diff

Changelog

Source

[5.0.0] - 2023-09-17

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
mledoze
published 4.1.1 •

Changelog

Source

[v4.1.1] - 2023-09-17

Fixed

  • 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)
mledoze
published 4.1.0 •

Changelog

Source

[v4.1.0] - 2022-02-25

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)
mledoze
published 4.0.0 •

Changelog

Source

[v4.0.0] - 2020-04-04

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"
    }
}

Added

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

Changed

  • update TypeScript types to v3 (#376)

Fixed

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

Changelog

Source

[v3.0.0] - 2019-12-18

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"
    }
}

Added

  • 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

Changed

  • 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

Fixed

  • 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
mledoze
published 2.1.0 •

Changelog

Source

[v2.1.0] - 2018-11-09

Added

  • add Czech translations
  • add Polish translations
  • add missing Croatian translation for Sint Maarten

Fixed

  • replace "Northern America" by "North America"
  • remove fund codes from currencies
  • rename Swaziland to Eswatini
  • revise some German translations
  • fix Vatican City demonym
  • fix Macau demonym
  • fix some Unicode typos
  • fix type of 'name.native' when property is empty
  • fix official and common country name of Korea
  • fix official and native name of the Netherlands (#277)

Build

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

Miscellaneous

  • add badge for PHP minimum version
  • add scrutinizer badge
mledoze
published 2.0.0 •

Changelog

Source

[v2.0.0] - 2018-02-08

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

  • change type of property capitals from string to array to support countries with multiple capitals
  • change semicolon to comma for CSV format (see https://github.com/mledoze/countries/blob/e2de3c46402c2b7a90d30fa1d6d1151e97420992/dist/countries.csv)
  • move 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
  • remove region specific languages (see #181)
  • remove South Sudan from Chad's neighbours

Added

  • add ISO 3166-1 independence status (property independent)
  • add ISO 3166-1 assignment status (property status)
  • add TopoJSON formatted files for each country
  • add Estonian translations
  • add Guiana demonym for French French Guiana
  • add "The Netherlands" as alternate spelling of Netherlands
  • add CKD as currency of Cook Islands
  • add "Antarctic" region for multiple countries
  • add latitude and longitude data for United States Minor Outlying Islands

Build

  • add three new options: --include-field, --format and --output-dir (thank you @emilv)
  • add Travis CI to automatically validate new pull requests
  • update dependencies:
    • php (>=5.5.9 => >=5.6.33)
    • symfony/console (v3.1.3 => v4.0.4)
    • symfony/yaml (v3.1.3 => v4.0.4)

Changed

  • update alternative spellings of Cocos (Keeling) Islands
  • update official languages of Armenia

Removed

  • remove province of China and use Traditional Chinese instead of Simplified Chinese

Fixed

  • fix capital of Ukraine
  • fix non-existing slk language
  • fix land borders for China, Cyprus, Chad, Egypt, India, Jordan and Israel
  • fix Russian translation of Mexico
  • fix existing official names in Welsh
  • fix Russia native official name according to en.wikipedia.org/wiki/Russia
  • fix Czech Republic short names
  • fix Slovakian translation ISO code
  • fix subregion field for Mexico
  • fix altSpellings field for Belarus
  • fix country name and currency code for Belarus

Miscalleanous

  • change licence label to "ODC Open Database License v1.0" to comply with SPDX names
mledoze
published 1.8.1 •

mledoze
published 1.8.0 •

Changelog

Source

[v1.8.0] - 2016-09-01

Added

  • 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

Fixed

  • 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"
  • replace Kosovo's International Olympic Committee code by ISO 3166-1 alpha-3 code in land borders array
mledoze
published 1.7.8 •

23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc