Skip to content

Releases: meeDamian/country-emoji

c2.0.0-beta.2

14 Sep 23:56
v2.0.0-beta.2
277c771
Compare
Choose a tag to compare
c2.0.0-beta.2 Pre-release
Pre-release

What's Changed

Breaking (potentially)

  • Turkey changed its name to Türkiye, and library now reflects that. Turkey is still recognised.

     // v1.5.6
     name('TR') // => Turkey
     name('🇹🇷') // => Turkey
    
     // v2.0.0
     name('TR') // => Türkiye
     name('🇹🇷') // => Türkiye
    
     // Both: v1.5.6, v2.0.0
     code('Turkey') // => TR
     flag('Turkey') // => 🇹🇷
  • More input might match now, ex.

     // v1.5.6
     flag('Turks and Caicos') // => 🇹🇨
     flag('Turks & Caicos')   // => undefined
    
     // v2.0.0
     flag('Turks and Caicos') // => 🇹🇨
     flag('Turks & Caicos')   // => 🇹🇨

Added

  • Add support of Dutch and French overseas territories, and South Sudan by @rverbytskyi in #26
  • v2.0.0 by @meeDamian in #50
  • Add 'US' as an alternative name for the US by @alpn in #43
  • Support for additional country names and abbreviations, such as "Eswatini" (previously known as Swaziland), "Côte d'Ivoire", and others
  • Support for country names with weird punctuation or characters
  • Add 7 more codes deemed "reserved" in ISO 3166 Alpha 2 for which emojis exist as per #53

Changed

  • Improved normalization of country names, handling cases like "Trinidad & Tobago" and "Virgin Islands, British"
  • Still no dependencies, but all dev-dependencies updated to newest verions

Fixed

  • Resolved issues with name conflicts, such as "Korea" or "United"
  • Improved handling of edge cases, such as when multiple country names are present in a single string

Removed

  • Removed support for the deprecated "Netherlands Antilles" country code

New Contributors

Full Changelog: v1.5.6...v2.0.0-beta.1

v2.0.0-beta.1

04 Sep 18:42
v2.0.0-beta.1
a7d725f
Compare
Choose a tag to compare
v2.0.0-beta.1 Pre-release
Pre-release

What's Changed

Breaking (potentially)

  • Turkey changed its name to Türkiye, and library now reflects that. Turkey is still recognised.

     // v1.5.6
     name('TR') // => Turkey
     name('🇹🇷') // => Turkey
    
     // v2.0.0
     name('TR') // => Türkiye
     name('🇹🇷') // => Türkiye
    
     // Both: v1.5.6, v2.0.0
     code('Turkey') // => TR
     flag('Turkey') // => 🇹🇷
  • More input might match now, ex.

     // v1.5.6
     flag('Turks and Caicos') // => 🇹🇨
     flag('Turks & Caicos')   // => undefined
    
     // v2.0.0
     flag('Turks and Caicos') // => 🇹🇨
     flag('Turks & Caicos')   // => 🇹🇨

Added

  • Add support of Dutch and French overseas territories, and South Sudan by @rverbytskyi in #26
  • v2.0.0 by @meeDamian in #50
  • Add 'US' as an alternative name for the US by @alpn in #43
  • Support for additional country names and abbreviations, such as "Eswatini" (previously known as Swaziland), "Côte d'Ivoire", and others
  • Support for country names with weird punctuation or characters

Changed

  • Improved normalization of country names, handling cases like "Trinidad & Tobago" and "Virgin Islands, British"
  • Still no dependencies, but all dev-dependencies updated to newest verions

Fixed

  • Resolved issues with name conflicts, such as "Korea" or "United"
  • Improved handling of edge cases, such as when multiple country names are present in a single string

Removed

  • Removed support for the deprecated "Netherlands Antilles" country code

New Contributors

Full Changelog: v1.5.6...v2.0.0-beta.1

v2.0.0-alpha.2

29 Aug 21:45
v2.0.0-alpha.2
4bd7db8
Compare
Choose a tag to compare
v2.0.0-alpha.2 Pre-release
Pre-release

v2.0.0-alpha.1

29 Aug 21:40
v2.0.0-alpha.1
8ed8553
Compare
Choose a tag to compare
v2.0.0-alpha.1 Pre-release
Pre-release

What's Changed

  • Add support of Dutch and French overseas territories, and South Sudan by @rverbytskyi in #26

New Contributors

Full Changelog: v1.5.6...v2.0.0-alpha.1

Typescript types fix

21 Mar 15:55
v1.5.6
24c2c5f
Compare
Choose a tag to compare

Typescript types file fix :)

v1.5.5

08 Mar 18:05
v1.5.5
7c9661d
Compare
Choose a tag to compare

Added .d.ts definitions

v1.5.4

18 Jul 16:07
v1.5.4
f700dc8
Compare
Choose a tag to compare

Only dev-dependencies bump as per: #17

v1.5.3

10 Apr 11:52
v1.5.3
a2e1814
Compare
Choose a tag to compare

Changes since last:

  • Dev deps bumped
  • North Korea detection improved
  • Travis file updated
  • Linting changes

v1.4.2

16 Aug 10:24
v1.4.2
80ef134
Compare
Choose a tag to compare

Czechia name added alongside "Czech Republic".

1.4.1

24 Apr 12:56
1.4.1
db4b6c8
Compare
Choose a tag to compare

Automates deployment with Travis, and publishes babel-compiled code to npm.