Skip to content

Commit

Permalink
fix(cli): rename intl-js import to intl for currency-utils codemod (#643
Browse files Browse the repository at this point in the history
)

bugfix/currency-utils-migration
  • Loading branch information
fernandofleury authored Jul 20, 2020
1 parent f80b3c0 commit 271f1d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ The affected components are: Badge, Blockquote, Button, ButtonGroup, Card, CardF
(_in writing_)
- The `currencyAmountUtils` have been removed. There is not replacement, we suggest you copy the [old implementation](https://github.com/sumup-oss/circuit-ui/blob/b3d89f43ac54ef1f7c0c2ff6f4edce92e2bd937d/src/components/CurrencyInput/CurrencyInputService.js) to your application.
- The `currencyUtils` have been removed. Use [@sumup/intl](https://www.npmjs.com/package/@sumup/intl) instead (🤖 _TODO_)
- The `currencyUtils` have been removed. Use [@sumup/intl](https://www.npmjs.com/package/@sumup/intl) instead (🤖 _currency-utils_)
- The `textTera` style helper has been removed. Use the `textGiga` style helper instead.
- The `shadowGround` and `shadowBorder` style helpers have been removed. Use the [`box-shadow`](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow) CSS property instead.
- The unit style helpers (`addUnit`, `subtractUnit`, `multiplyUnit`, `divideUnit` ) have been removed. Use the CSS [`calc`](https://developer.mozilla.org/en-US/docs/Web/CSS/calc) function instead.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { formatCurrency, formatAmountForLocale } from '@sumup/intl-js';
import { formatCurrency, formatAmountForLocale } from '@sumup/intl';

const amount = '42';
const locale = 'en-US';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { formatAmountForLocale } from '@sumup/intl-js';
import { formatAmountForLocale } from '@sumup/intl';

const amount = '42';
const locale = 'en-US';
Expand Down
2 changes: 1 addition & 1 deletion src/cli/migrate/currency-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const transform: Transform = (file, api) => {

const intlImport = j.importDeclaration(
intlSpecifiers,
j.literal('@sumup/intl-js'),
j.literal('@sumup/intl'),
);

if (imports.length === 1) {
Expand Down

0 comments on commit 271f1d9

Please sign in to comment.