Skip to content

Commit fff48b1

Browse files
committed
Release 0.2.2
1 parent 47a7be8 commit fff48b1

File tree

7 files changed

+20
-7
lines changed

7 files changed

+20
-7
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
react: [
1313
16.x,
1414
17.x,
15-
18.x
15+
18.x,
16+
beta
1617
]
1718
fontawesome-svg-core: [
1819
1.2.x,

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
66

77
---
88

9+
## [0.2.2](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.2.2) - 2024-05-22
10+
11+
### Fixed
12+
13+
- Props with nullable/undefined values no longer throw an error #562 #560
14+
15+
---
16+
917
## [0.2.1](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.2.1) - 2024-05-16
1018

1119
### Changed
1220

1321
- Remove defaultProps to be compatible with React 19
1422

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

1727
### Added

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ being awesome contributors to this project. **We'd like to take a moment to reco
6464
| Alexey Victorov | [@AliMamed](https://github.com/AliMamed) |
6565
| Calum Smith | [@cpmsmith](https://github.com/cpmsmith) |
6666
| squiaios | [@squiaios](https://github.com/squiaios) |
67+
| WyvernDrexx | [@WyvernDrexx](https://github.com/WyvernDrexx) |
6768
| Font Awesome Team | [@FortAwesome](https://github.com/orgs/FortAwesome/people)|
6869

6970
If we've missed someone (which is quite likely) submit a Pull Request to us and we'll get it resolved.

index.es.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ var FontAwesomeIcon = /*#__PURE__*/React.forwardRef(function (props, ref) {
368368
titleId = allProps.titleId,
369369
maskId = allProps.maskId;
370370
var iconLookup = normalizeIconArgs(iconArgs);
371-
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(allProps)), _toConsumableArray(className.split(' '))));
371+
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(allProps)), _toConsumableArray((className || '').split(' '))));
372372
var transform = objectWithKey('transform', typeof allProps.transform === 'string' ? parse.transform(allProps.transform) : allProps.transform);
373373
var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
374374
var renderedIcon = icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375
titleId = allProps.titleId,
376376
maskId = allProps.maskId;
377377
var iconLookup = normalizeIconArgs(iconArgs);
378-
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(allProps)), _toConsumableArray(className.split(' '))));
378+
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(allProps)), _toConsumableArray((className || '').split(' '))));
379379
var transform = objectWithKey('transform', typeof allProps.transform === 'string' ? fontawesomeSvgCore.parse.transform(allProps.transform) : allProps.transform);
380380
var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
381381
var renderedIcon = fontawesomeSvgCore.icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@fortawesome/react-fontawesome",
33
"description": "Official React component for Font Awesome",
4-
"version": "0.2.1",
4+
"version": "0.2.2",
55
"main": "index.js",
66
"module": "index.es.js",
77
"jsnext:main": "index.es.js",
@@ -28,7 +28,8 @@
2828
"Tiago Sousa <github.com/TiagoPortfolio>",
2929
"Alexey Victorov <github.com/AliMamed>",
3030
"Calum Smith <github.com/cpmsmith>",
31-
"squiaios <github.com/squiaios>"
31+
"squiaios <github.com/squiaios>",
32+
"WyvernDrexx <github.com/WyvernDrexx>"
3233
],
3334
"license": "MIT",
3435
"scripts": {

0 commit comments

Comments
 (0)