- Minor internal updates
- Moved to esbuild minifier
- pnpm linked dependencies
- Updated docs
Improved type support and provided error handling for when invalid or incorrect ISO codes are provided.
- Added type support for symbol reference
- Added literal union support for argument
code
- Updated rollup-config
Replaced development rollup dependencies to use @brixtol/rollup-config
This version exposes the object mappings to the export so users can use them opposed to relying on the matching function. The object mapping have been annotated with JSDoc comments which inform upon the country and name of each currency. Some currencies have been removed from the mappings which are listed below in symbol updates.
- Removed
GHC
(Old Ghanaian Cedi) which is nowGHS
- Removed
EEK
(Estonian Kroon) which now usesEUR
- Removed
LTL
(Lithuanian Litas) which was replaced in 2015 by the Euro - Removed
ZWD
(Zimbabwe Dollar) which using ISO code ofZWL
(currently)
- Renamed interface export to
ICurrencySymbol
- Provided JSDoc annotations for all currencies which inform upon country and currency name
- Expose the object mapping on export, available on
CurrencySymbols
- Improved and aligned rollup build config
- Cleaned up working directory
- Updated readme and examples
- Added @brixtol/eslint-config to development dependencies.
- Added @brixtol/prettier-config to development dependencies.
First major version, ships with a breaking change. The default export is no longer supported as this module now uses a named export.
import { getCurrencySymbol } from '@brixtol/currency-symbols';
const currency = getCurrencySymbol('SE'); // kr
- No longer support default exports, project now uses named export approach.
- Convert module to TypeScript
- Updated development dependencies
- Provided interface of currency mappings, available on
ICurrencies
- Updated Documentation
- Various adaptations for multiple registry supports
- Initial Release