Skip to content

Releases: annexare/Countries

Improve `getCountryCode()`

31 Jul 10:57
Compare
Choose a tag to compare

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)

04 Mar 17:25
d342f5b
Compare
Choose a tag to compare

What's Changed

  • Update data & types (new partOf, userAssigned params) by @dmythro in #135

Full Changelog: v3.0.6...v3.1.0

v3.0.6

20 Oct 23:26
d92daf3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.5...v3.0.6

v3.0.5

29 Sep 15:16
391cf8b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.1...v3.0.5

v3.0.1

29 Sep 14:17
336f998
Compare
Choose a tag to compare

Smaller bundle size: remove source maps.

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

12 Sep 14:44
1367d91
Compare
Choose a tag to compare

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:

image image

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

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

12 Jan 10:56
47d36a0
Compare
Choose a tag to compare
  • 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

Proper PHP support, with PHPUnit tests & CI

08 Jan 17:02
1b85751
Compare
Choose a tag to compare

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 (Кыргызча)

25 Jul 16:55
11a7011
Compare
Choose a tag to compare

Update Czech language native name (Čeština)

17 Jul 15:48
a46a204
Compare
Choose a tag to compare
  • Fix Czech language native name (Čeština) #67, thanks @hmelenok
  • Fix LoDash security issue
  • Upgrade deps