Skip to content

Commit

Permalink
Release 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
robmadole committed May 22, 2024
1 parent 47a7be8 commit fff48b1
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
react: [
16.x,
17.x,
18.x
18.x,
beta
]
fontawesome-svg-core: [
1.2.x,
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,22 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

---

## [0.2.2](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.2.2) - 2024-05-22

### Fixed

- Props with nullable/undefined values no longer throw an error #562 #560

---

## [0.2.1](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.2.1) - 2024-05-16

### Changed

- Remove defaultProps to be compatible with React 19

---

## [0.2.0](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.2.0) - 2022-06-29

### Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ being awesome contributors to this project. **We'd like to take a moment to reco
| Alexey Victorov | [@AliMamed](https://github.com/AliMamed) |
| Calum Smith | [@cpmsmith](https://github.com/cpmsmith) |
| squiaios | [@squiaios](https://github.com/squiaios) |
| WyvernDrexx | [@WyvernDrexx](https://github.com/WyvernDrexx) |
| Font Awesome Team | [@FortAwesome](https://github.com/orgs/FortAwesome/people)|

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
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ var FontAwesomeIcon = /*#__PURE__*/React.forwardRef(function (props, ref) {
titleId = allProps.titleId,
maskId = allProps.maskId;
var iconLookup = normalizeIconArgs(iconArgs);
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(allProps)), _toConsumableArray(className.split(' '))));
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(allProps)), _toConsumableArray((className || '').split(' '))));
var transform = objectWithKey('transform', typeof allProps.transform === 'string' ? parse.transform(allProps.transform) : allProps.transform);
var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
var renderedIcon = icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
titleId = allProps.titleId,
maskId = allProps.maskId;
var iconLookup = normalizeIconArgs(iconArgs);
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(allProps)), _toConsumableArray(className.split(' '))));
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(allProps)), _toConsumableArray((className || '').split(' '))));
var transform = objectWithKey('transform', typeof allProps.transform === 'string' ? fontawesomeSvgCore.parse.transform(allProps.transform) : allProps.transform);
var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
var renderedIcon = fontawesomeSvgCore.icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fortawesome/react-fontawesome",
"description": "Official React component for Font Awesome",
"version": "0.2.1",
"version": "0.2.2",
"main": "index.js",
"module": "index.es.js",
"jsnext:main": "index.es.js",
Expand All @@ -28,7 +28,8 @@
"Tiago Sousa <github.com/TiagoPortfolio>",
"Alexey Victorov <github.com/AliMamed>",
"Calum Smith <github.com/cpmsmith>",
"squiaios <github.com/squiaios>"
"squiaios <github.com/squiaios>",
"WyvernDrexx <github.com/WyvernDrexx>"
],
"license": "MIT",
"scripts": {
Expand Down

0 comments on commit fff48b1

Please sign in to comment.