diff --git a/CHANGELOG.md b/CHANGELOG.md index cd26b558..faacaf57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p --- +## [2.0.2](https://github.com/FortAwesome/vue-fontawesome/releases/tag/2.0.2) - 2020-12-17 + +### Fixed +* Bumping version to fix a failed release for 2.0.1 + +--- + ## [2.0.1](https://github.com/FortAwesome/vue-fontawesome/releases/tag/2.0.1) - 2020-12-17 ### Added diff --git a/index.es.js b/index.es.js index 7f4c1501..43fbf940 100644 --- a/index.es.js +++ b/index.es.js @@ -328,6 +328,10 @@ function addStaticClass(to, what) { } function normalizeIconArgs(icon$$1) { + if (parse.icon) { + return parse.icon(icon$$1); + } + if (icon$$1 === null) { return null; } @@ -440,7 +444,6 @@ var FontAwesomeIcon = { var classes = objectWithKey('classes', classList(props)); var transform = objectWithKey('transform', typeof props.transform === 'string' ? parse.transform(props.transform) : props.transform); var mask = objectWithKey('mask', normalizeIconArgs(maskArgs)); - var renderedIcon = icon(icon$$1, _extends({}, classes, transform, mask, { symbol: symbol, title: title })); if (!renderedIcon) { diff --git a/index.js b/index.js index a4bcf65f..31f29fa0 100644 --- a/index.js +++ b/index.js @@ -332,6 +332,10 @@ } function normalizeIconArgs(icon) { + if (fontawesomeSvgCore.parse.icon) { + return fontawesomeSvgCore.parse.icon(icon); + } + if (icon === null) { return null; } @@ -444,7 +448,6 @@ var classes = objectWithKey('classes', classList(props)); var transform = objectWithKey('transform', typeof props.transform === 'string' ? fontawesomeSvgCore.parse.transform(props.transform) : props.transform); var mask = objectWithKey('mask', normalizeIconArgs(maskArgs)); - var renderedIcon = fontawesomeSvgCore.icon(icon, _extends({}, classes, transform, mask, { symbol: symbol, title: title })); if (!renderedIcon) { diff --git a/package.json b/package.json index bc51c7f1..cdcab6b9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@fortawesome/vue-fontawesome", "description": "Official Vue component for Font Awesome 5", - "version": "2.0.1", + "version": "2.0.2", "main": "index.js", "module": "index.es.js", "jsnext:main": "index.es.js",