From 936325569e8482a9c30babf2bf0fecd5f09a6eda Mon Sep 17 00:00:00 2001 From: robmadole Date: Thu, 10 Oct 2019 09:24:47 -0500 Subject: [PATCH] Release 0.1.6 --- CHANGELOG.md | 8 ++++++++ README.md | 6 ++++++ index.es.js | 2 +- index.js | 2 +- package.json | 5 +++-- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff705b2c..79c205bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p --- +## [0.1.6](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.6) - 2019-10-10 + +### Fixed + +- Ignore null values for pull, rotation, and size props #289 + +--- + ## [0.1.5](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.5) - 2019-09-29 ### Added diff --git a/README.md b/README.md index ccbc9b16..ccb2e304 100644 --- a/README.md +++ b/README.md @@ -67,13 +67,17 @@ See [UPGRADING.md](./UPGRADING.md). You might also be interested in the larger umbrella project [UPGRADING.md](https://github.com/FortAwesome/Font-Awesome/blob/master/UPGRADING.md) ## Installation + Using NPM: + ``` $ npm i --save @fortawesome/fontawesome-svg-core $ npm i --save @fortawesome/free-solid-svg-icons $ npm i --save @fortawesome/react-fontawesome ``` + Or with Yarn: + ``` $ yarn add @fortawesome/fontawesome-svg-core $ yarn add @fortawesome/free-solid-svg-icons @@ -369,6 +373,7 @@ loaded an icon bundle. See the sections above for the details. ``` + Note that icon size can be controlled with the CSS `font-size` attribute, and `FontAwesomeIcon`'s `size` prop determines icon size relative to the current `font-size`. [Fixed width](https://fontawesome.com/how-to-use/on-the-web/styling/fixed-width-icons): @@ -569,6 +574,7 @@ being awesome contributors to this project. **We'd like to take a moment to reco | | Naor Torgeman | [@naortor](https://github.com/naortor) | | | Matthew Hand | [@mmhand123](https://github.com/mmhand123) | | | calvinf | [@calvinf](https://github.com/calvinf) | +| | Bill Parrott | [@chimericdream](https://github.com/chimericdream) | If we've missed someone (which is quite likely) submit a Pull Request to us and we'll get it resolved. diff --git a/index.es.js b/index.es.js index 3f9597ad..642c58e3 100644 --- a/index.es.js +++ b/index.es.js @@ -130,7 +130,7 @@ function classList(props) { 'fa-li': listItem, 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both', 'fa-flip-vertical': flip === 'vertical' || flip === 'both' - }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined'), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined'), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined'), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object + }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined' && rotation !== null), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined' && pull !== null), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object // return an array of the keys where the value for the key is not null return Object.keys(classes).map(function (key) { diff --git a/index.js b/index.js index ce6e5228..dec53c9c 100644 --- a/index.js +++ b/index.js @@ -135,7 +135,7 @@ 'fa-li': listItem, 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both', 'fa-flip-vertical': flip === 'vertical' || flip === 'both' - }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined'), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined'), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined'), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object + }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined' && rotation !== null), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined' && pull !== null), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object // return an array of the keys where the value for the key is not null return Object.keys(classes).map(function (key) { diff --git a/package.json b/package.json index dc762bd5..7ea8bafb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@fortawesome/react-fontawesome", "description": "Official React component for Font Awesome 5", - "version": "0.1.5", + "version": "0.1.6", "main": "index.js", "module": "index.es.js", "jsnext:main": "index.es.js", @@ -20,7 +20,8 @@ "Prateek Goel ", "Naor Torgeman ", "Matthew Hand ", - "Calvin Freitas " + "Calvin Freitas ", + "Bill Parrott " ], "license": "MIT", "scripts": {