Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
panoply committed Sep 9, 2021
1 parent 086260c commit 3020a1c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
8 changes: 6 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 1.1.1 - 10/09/2021

Replaced development rollup dependencies to use [@brixtol/rollup-config](https://github.com/BRIXTOL/rollup-config)

### 1.1.0 - 23/08/21

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.
Expand Down Expand Up @@ -29,9 +33,9 @@ First major version, ships with a **breaking change**. The default export is no
#### Named export

```js
import { getCurrencySymbol } from "@brixtol/currency-symbols";
import { getCurrencySymbol } from '@brixtol/currency-symbols';

const currency = getCurrencySymbol("SE"); // kr
const currency = getCurrencySymbol('SE'); // kr
```

#### Breakdown
Expand Down
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brixtol/currency-symbols",
"version": "1.1.0",
"version": "1.1.1",
"description": "Mappings from 3 letter currency codes to currency symbol",
"author": {
"name": "Νίκος Σαβίδης ",
Expand Down Expand Up @@ -54,14 +54,9 @@
"devDependencies": {
"@brixtol/eslint-config": "^1.0.1",
"@brixtol/prettier-config": "^1.0.3",
"@brixtol/rollup-utils": "^0.2.0",
"@brixtol/rollup-config": "workspace:^1.2.0",
"@brixtol/tsconfig": "^1.0.0",
"@rollup/plugin-commonjs": "^20.0.0",
"esm": "^3.2.25",
"rollup": "^2.56.2",
"rollup-plugin-filesize": "^9.1.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"typescript": "^4.3.5"
}
}
17 changes: 6 additions & 11 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { config, env } from '@brixtol/rollup-utils';
import { defineConfig as Rollup } from 'rollup';
import { terser } from 'rollup-plugin-terser';
import commonjs from '@rollup/plugin-commonjs';
import filesize from 'rollup-plugin-filesize';
import ts from 'rollup-plugin-typescript2';
import { config, env, rollup, plugin } from '@brixtol/rollup-config';
import typescript from 'typescript';

export default Rollup(
export default rollup(
{
input: 'src/index.ts',
output: [
Expand All @@ -26,13 +21,13 @@ export default Rollup(
],
plugins: env.if('dev')(
[
ts({ useTsconfigDeclarationDir: true, typescript }),
commonjs()
plugin.ts({ useTsconfigDeclarationDir: true, typescript }),
plugin.commonjs()
]
)(
[
terser({ ecma: 2016, compress: { passes: 5 } }),
filesize()
plugin.terser({ ecma: 2016, compress: { passes: 5 } }),
plugin.filesize()
]
)
}
Expand Down

0 comments on commit 3020a1c

Please sign in to comment.