Skip to content

Releases: annexare/Countries

v3.3.0

04 Mar 15:54
594a26d

Choose a tag to compare

What's Changed

  • Turkey → Türkiye: Updated name field per ISO 3166 (#100, #147)
  • Currency ordering: Official/primary currency listed first for Chile (CLP), Uruguay (UYU), and El Salvador (USD) (#97)
  • Ascension Island (AC) & Tristan da Cunha (TA): Added exceptionally reserved ISO 3166 codes with partOf hierarchy AC/TA → SH → GB (#148)
  • Publishing: npm provenance enabled for supply chain security

Full details: #163

Thanks

Thanks to @JoJk0, @beytarovski, @janoma, @oliviertassinari, @shreyashah115, and @LKay for reporting issues and contributing to this release!

Trusted publishing for npm packages

04 Dec 13:41
66afd3a

Choose a tag to compare

image

Fix: add missing README & LICENSE files.

This release has no functional or data changes and should only add Trusted publishing for npm packages:

Update data; use Bun, Biome and Lefthook

20 Oct 16:56
c3f4c8e

Choose a tag to compare

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()`

31 Jul 10:57

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

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

Choose a tag to compare

What's Changed

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

v3.0.5

29 Sep 15:16
391cf8b

Choose a tag to compare

What's Changed

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

v3.0.1

29 Sep 14:17
336f998

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

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

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