Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@petert82 petert82 released this 11 Mar 16:53
· 18 commits to master since this release
a10a19a

This updates the world-countries dependency to v4.0.0, and means a few breaking changes have been introduced.

Added

  • Added findByIdd() function (this replaces findByCallingCode()).
  • Added 'currencies', 'idd' and 'demonyms' as possible values of the by param to find().

Changed

  • Updated to version 4.0.0 of world-countries data.
  • Structure of the country objects returned by find() has been updated due to the above.

Removed

  • Removed findByCallingCode() as the callingCode field no longer exists in the world-countries data.
  • Removed 'currency', 'callingCode' and 'demonym' as possible values of the by param to find().