- 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 literal union support for argument
code
- Added type support for currency code return
- Added error support when an unmatched ISO is provided
- Added Currency Codes Union type export available from
CurrencyCodes
- Updated rollup-config
Allow string
type to be passed as parameter value to function and replaced development rollup dependencies to use @brixtol/rollup-config
Mostly development workspace adjustments. The module now exposes the mapping object on the export in addition to the matching function export.
- Expose the object mapping on export, available on
Currencies
- 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.
Minor bump to align readme information with new named export
- Updated readme
First major version, ships with a breaking change. The default export is no longer supported as this module now uses named exports.
import { getCurrency } from '@brixtol/currencies';
const currency = getCurrency('SE'); // SEK
- No longer support default exports, project now uses named export approach.
- Provided interface of currency mappings, available on
ICurrencies
Converted project to typescript and changed the pattern matching of how mappings are queried.
- Converted project to TypeScript
- Supported typings + JSDoc descriptions
When using a text editor that support intellisense features (like vscode) the mappings will provide the Country Name and the currency name in completions and hovers.
- Mapped
LV
toEUR
(As of January 2014 the official currency of Latvia is EUR)
- Various adaptations for multiple registry supports
- Initial Release