Releases: annexare/Countries
Update data; use Bun, Biome and Lefthook
What's Changed
Data changes:
- Afghanistan: Add missing 'fa' to languages
- Burundi: Update capital from Bujumbura to Gitega (moved in 2019)
- Philippines: Add 'tl' (Tagalog) to languages #149
- Saudi Arabia: Update native name to full official #43
- Cambodia: Correct native name to Khmer script 'កម្ពុជា' #141
- Belarus: Remove stress mark from native name 'Беларусь' #136
- Switzerland: Currency order #143 #144 (thanks @rimdebbech)
Technical changes:
P.S. Sorry for such a delay with this. Please report if something's off.
Full Changelog: v3.1.1...v3.2.0
Improve `getCountryCode()`
What's Changed
- Improve getCountryCode(), support special characters and trim any whitespace around the name by @dmythro in #142
Full Changelog: v3.1.0...v3.1.1
Update data & types (new `partOf`, `userAssigned` params for countries)
What's Changed
Full Changelog: v3.0.6...v3.1.0
v3.0.6
v3.0.5
v3.0.1
v3.0: ESM, TypeScript, Turborepo and country data updates
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.
Fix ES/JS build for getEmojiFlag(), getUnicode()
Proper PHP support, with PHPUnit tests & CI
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.
Update Kyrgyz language name (Кыргызча)
v2.5.6 v2.5.6