Skip to content

Releases: thiagodp/country-to-currency

v2.0.2

11 Dec 17:14
Compare
Choose a tag to compare
  • Fix #27 (thanks @jbarreiros)
  • Now NodeJS' requires do not need /index.cjs anymore (introduced in v2.0.0) - example:
    • const countryToCurrency = require( 'country-to-currency' );
    • Therefore, it's now compatible with v1.x syntax

v2.0.1

24 Nov 20:02
Compare
Choose a tag to compare
  • Fix "exports" in package.json

v2.0.0

24 Nov 19:30
Compare
Choose a tag to compare
  • Modernize the generated formats to foster ESM adoption.
    • Breaking from 1.x: CommonJS's require path is now 'country-to-currency/index.cjs' (instead of 'country-to-currency'). See an example. MADE COMPATIBLE AGAIN in v2.0.2
  • Change the library to use ESM imports internally.
  • Add currency mapping for Kosovo #26 (thanks @dukesilverr)
  • Update dependencies

v1.1.5

27 Jan 18:00
Compare
Choose a tag to compare

Fixes #24

v1.1.4

27 Jan 17:35
Compare
Choose a tag to compare

Fixes #23

v1.1.3

27 Jan 17:27
Compare
Choose a tag to compare

Fixes #22

v1.1.2

27 Jan 17:17
Compare
Choose a tag to compare

Fixes #21

v1.1.1

11 Jan 01:20
Compare
Choose a tag to compare

Fixes #16 and includes #17, #18, #19, and #20 by @jasongitmail

v1.1.0

21 Dec 00:42
Compare
Choose a tag to compare

Adds two union types (TypeScript 3.4+ only):

  • Currencies, that contains all the currencies;
  • Countries, that contains all the countries.

Example - TypeScript on NodeJS:

  import countryToCurrency, { Currencies, Countries } from "country-to-currency";

v1.0.12

21 Dec 00:44
Compare
Choose a tag to compare

Fixes #14 about South Georgia