Countries

Countries, Languages & Continents data (capital and currency, native name, calling codes).

MIT License

Downloads
816.5K
Stars
1.2K
Committers
15

Bot releases are hidden (Show)

Countries - Update data & types (new `partOf`, `userAssigned` params for countries) Latest Release

Published by dmythro 8 months ago

What's Changed

Full Changelog: https://github.com/annexare/Countries/compare/v3.0.6...v3.1.0

Countries - v3.0.6

Published by dmythro 12 months ago

What's Changed

Full Changelog: https://github.com/annexare/Countries/compare/v3.0.5...v3.0.6

Countries - v3.0.5

Published by dmythro about 1 year ago

What's Changed

Full Changelog: https://github.com/annexare/Countries/compare/v3.0.1...v3.0.5

Countries - v3.0.1

Published by dmythro about 1 year ago

Smaller bundle size: remove source maps.

Countries - v3.0: ESM, TypeScript, Turborepo and country data updates

Published by dmythro about 1 year ago

Version 3.0 comes with some data structure changes and recent country data updates.

It was completely reworked under the hood with TypeScript, ESM exports and Turborepo file structure.

Everything is strongly typed so you can easily use data with auto-complete in your IDE:

Note: If your projects depend on the old structure, carefully specify required versions in your dependencies.

Countries - Fix ES/JS build for getEmojiFlag(), getUnicode()

Published by dmythro almost 4 years ago

  • Fix punycode buillt-in for emoji related export functions #78 (thanks @slaweet for raising an issue)
  • Improve ES bundle tests
  • Move to Rollup: smaller bundle size (56.2kB minified, 15.5kB min+gz vs 65.2kB minified, 16.9kB min+gz for v2.6.0)
  • Fix npm audit
Countries - Proper PHP support, with PHPUnit tests & CI

Published by dmythro almost 4 years ago

This should help with easier access to data with less code in PHP (see #74).

Examples:

// Function imports
use function Annexare\Countries\continents;
$continents = continents();

// Fully-qualified, namespaced function calls
$countries = \Annexare\Countries\countries();

Credit for the effort 🚀 goes to @Radiergummi, thanks!

PHPUnit tests are automated with GitHub Actions and cover all exports. Tests run on the latest versions of PHP and PHPUnit.

NPM modules are up to date (well, except some Gulp dependencies which do not pass npm audit, but that's another story).
dist files are rebuilt with latest webpack & terser plugin.

Countries - Update Kyrgyz language name (Кыргызча)

Published by dmythro about 4 years ago

Countries - Update Czech language native name (Čeština)

Published by dmythro over 4 years ago

  • Fix Czech language native name (ÄŒeÅ¡tina) #67, thanks @hmelenok
  • Fix LoDash security issue
  • Upgrade deps
Countries - Add ISO 3166-1 alpha-2 to alpha-3 lists

Published by dmythro over 4 years ago

Add ISO 3166-1 alpha-2 to alpha-3 to alpha-2 lists #54 (#63).
Add issue, PR templates, code owners files.
Update README.md and .npmignore.

Countries -

Published by dmythro over 4 years ago

Countries - Update Zambian kwacha currency code

Published by dmythro over 4 years ago

Thanks @aetonsi for #60.

Countries - Update NPM packages; Update Vatican phone code

Published by dmythro over 4 years ago

  • NPM packages were upgraded, deprecated uglifyjs-webpack-plugin was replaced with terser-webpack-plugin, mainly for security (npm audit) reason.
  • Setup GitHub Node.js CI
  • Vatican phone code was updated in #56 (@michaeljamie).
Countries - Updates: North Macedonia, BYN, Norwegian languages, Luba-Katanga

Published by dmythro almost 5 years ago

Thanks for submitted updates to @joakim, @khadorkin, @icopp.

Countries - Rename Macedonia to North Macedonia

Published by dmythro over 5 years ago

See #38 and #42. Thanks @icopp for pointing out and sorry for a delay on this update.
Also, upgrade devDependencies to remove lodash security alerts.

Countries - Update currency codes

Published by dmythro over 5 years ago

Countries affected: Lithuania (now uses EUR), Western Sahara, Mauritania, São Tomé and Príncipe, Venezuela, Zimbabwe (updated currency codes and lists)

Thanks to @BitOfGold (#37) for contribution.

Countries - Fix Webpack 4 globalObject; add <script> test

Published by dmythro almost 6 years ago

Countries - Update Myanmar [Burma], upgrade modules, add tests

Published by dmythro almost 6 years ago

  • Update Myanmar [Burma] native name and language name #31 by @zarnipyo
  • Upgrade dependencies including Gulp, Webpack and UglifyJS, add Jest tests #32
Countries - Update languages for BV and MY countries

Published by dmythro over 6 years ago

Countries - ES5 & Type Definitions update

Published by dmythro over 6 years ago

  • Update ES5 build, add SourceMap
  • Update Type Definitions
  • Update some source files and devDependencies
Package Rankings
Top 1.1% on Npmjs.org
Top 6.08% on Packagist.org
Top 5.38% on Bower.io
Top 4.06% on Proxy.golang.org
Badges
Extracted from project README
Monthly Downloads NPM Packagist CI: JS CI: PHP Twitter