Skip to content

Commit

Permalink
Release 0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
robmadole committed Oct 10, 2019
1 parent 4bc68c4 commit 9363255
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down Expand Up @@ -369,6 +373,7 @@ loaded an icon bundle. See the sections above for the details.
<FontAwesomeIcon icon="spinner" size="lg" />
<FontAwesomeIcon icon="spinner" size="6x" />
```

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):
Expand Down Expand Up @@ -569,6 +574,7 @@ being awesome contributors to this project. **We'd like to take a moment to reco
| <img src="https://github.com/naortor.png?size=72" /> | Naor Torgeman | [@naortor](https://github.com/naortor) |
| <img src="https://github.com/mmhand123.png?size=72" /> | Matthew Hand | [@mmhand123](https://github.com/mmhand123) |
| <img src="https://github.com/calvinf.png?size=72" /> | calvinf | [@calvinf](https://github.com/calvinf) |
| <img src="https://github.com/chimericdream.png?size=72" /> | 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.

Expand Down
2 changes: 1 addition & 1 deletion index.es.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions 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",
Expand All @@ -20,7 +20,8 @@
"Prateek Goel <github.com/prateekgoel>",
"Naor Torgeman <github.com/naortor>",
"Matthew Hand <github.com/mmhand123>",
"Calvin Freitas <github.com/calvinf>"
"Calvin Freitas <github.com/calvinf>",
"Bill Parrott <github.com/chimericdream>"
],
"license": "MIT",
"scripts": {
Expand Down

0 comments on commit 9363255

Please sign in to comment.