Countries, Languages & Continents data (capital and currency, native name, calling codes).
partOf
, userAssigned
params) by @dmythro in https://github.com/annexare/Countries/pull/135
Full Changelog: https://github.com/annexare/Countries/compare/v3.0.6...v3.1.0
Full Changelog: https://github.com/annexare/Countries/compare/v3.0.5...v3.0.6
Full Changelog: https://github.com/annexare/Countries/compare/v3.0.1...v3.0.5
Smaller bundle size: remove source maps.
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.
punycode
buillt-in for emoji related export functions #78 (thanks @slaweet for raising an issue)npm audit
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.
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
.