Releases: thiagodp/country-to-currency
Releases · thiagodp/country-to-currency
v2.0.2
- Fix #27 (thanks @jbarreiros)
- Now NodeJS'
require
s 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
- Fix "exports" in package.json
v2.0.0
- 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.0
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
Fixes #14 about South Georgia