Skip to content

Commit eb6f6f5

Browse files
committed
Release 0.2.0
1 parent f3585b7 commit eb6f6f5

File tree

6 files changed

+32
-212
lines changed

6 files changed

+32
-212
lines changed

CHANGELOG.md

Lines changed: 3 additions & 204 deletions
Original file line numberDiff line numberDiff line change
@@ -6,211 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
66

77
---
88

9-
## [0.1.18](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.18) - 2022-03-16
9+
## [0.2.0](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.2.0) - 2022-06-29
1010

1111
### Added
1212

13-
- Animations bounce, shake, fade, and beat-fade
14-
- Property maskId and titleId to allow consistent rendering on client and server
13+
- Support for React forwardRef if using React >= 16.3
1514

16-
### Changed
17-
18-
- Peer dependencies now include major version 6
19-
20-
---
21-
22-
## [0.1.17](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.17) - 2022-01-28
23-
24-
### Added
25-
26-
- New v6 sizes and animations
27-
28-
---
29-
30-
## [0.1.16](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.16) - 2021-10-18
31-
32-
### Fixed
33-
34-
- Include 1.3.0-beta versions in peer dependencies
35-
36-
---
37-
38-
## [0.1.15](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.15) - 2021-08-03
39-
40-
### Fixed
41-
42-
- Skip parse.icon if the icon is imported directly from an icon package
43-
44-
---
45-
46-
## [0.1.14](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.14) - 2020-12-22
47-
48-
### Added
49-
50-
- Support for the new parse.icon function from the Font Awesome version 6 @fortawesome/fontawesome-svg-core
51-
52-
---
53-
54-
## [0.1.13](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.13) - 2020-11-23
55-
56-
### Fixed
57-
58-
- Update forwardRef Typescript definition #396
59-
60-
---
61-
62-
## [0.1.12](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.12) - 2020-10-26
63-
64-
### Fixed
65-
66-
- Change peer dependency to support React 17
67-
68-
---
69-
70-
## [0.1.11](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.11) - 2020-06-16
71-
72-
### Fixed
73-
74-
- Accept rotation value of 0 #344
75-
76-
---
77-
78-
## [0.1.10](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.10) - 2020-06-02
79-
80-
### Added
81-
82-
- Support for forward ref #341
83-
84-
---
85-
86-
## [0.1.9](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.9) - 2020-03-05
87-
88-
### Fixed
89-
90-
- Have FontAwesomeIconProps interface extend SVGAttributes, fixes #324
91-
92-
---
93-
94-
## [0.1.8](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.8) - 2019-12-06
95-
96-
### Fixed
97-
98-
- Add swapOpacity to Typescript definitions #308
99-
100-
---
101-
102-
## [0.1.7](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.7) - 2019-10-19
103-
104-
### Fixed
105-
106-
- Add DOM attributes to FontAwesomeIconProps to Typescript definitions #151 #196
107-
108-
---
109-
110-
## [0.1.6](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.6) - 2019-10-10
111-
112-
### Fixed
113-
114-
- Ignore null values for pull, rotation, and size props #289
115-
116-
---
117-
118-
## [0.1.5](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.5) - 2019-09-29
119-
120-
### Added
121-
122-
- Full support for Duotone icons
123-
124-
---
125-
126-
## [0.1.4](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.4) - 2019-01-15
127-
128-
### Changed
129-
130-
- Upgrade to Babel 7 and Rollup 1 #213
131-
132-
### Fixed
133-
134-
- Thrown error in IE11
135-
136-
---
137-
138-
## [0.1.3](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.3) - 2018-09-06
139-
140-
### Added
141-
142-
- Add title prop #180
143-
144-
---
145-
146-
## [0.1.2](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.2) - 2018-08-12
147-
148-
### Changed
149-
150-
- Better table of contents in README.md #172
151-
152-
---
153-
154-
## [0.1.1](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.1) - 2018-08-07
155-
156-
### Changed
157-
158-
- Added tabIndex to TypeScript definitions #168
159-
160-
---
161-
162-
## [0.1.0](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.0) - 2018-06-20
163-
164-
### Changed
165-
166-
- Upgraded to the newer Font Awesome 5.1 packages
167-
168-
---
169-
170-
## [0.0.20](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.0.20) - 2018-05-15
171-
172-
### Added
173-
174-
- Added displayName to FontAwesomeIcon component
175-
176-
---
177-
178-
## [0.0.19](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.0.19) - 2018-04-29
179-
180-
### Changed
181-
182-
- Moved prop-types from peerDependencies to dependencies #87
183-
184-
---
185-
186-
## [0.0.18](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.0.18) - 2018-03-23
187-
188-
### Fixed
189-
190-
- Peer dependency warnings #103
191-
192-
---
193-
194-
## [0.0.17](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.0.17) - 2017-12-19
195-
196-
### Changed
197-
198-
- Documentation and example improvements
199-
- Use cross-env to support Windows
200-
- Support for @fortawesome/fontawesome 1.1.0
201-
202-
---
203-
204-
## [0.0.16](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.0.16) - 2017-12-09
205-
206-
### Changed
207-
208-
- Better documentation in the README
209-
210-
---
211-
212-
## [0.0.15](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.0.15) - 2017-12-08
213-
214-
### Fixed
215-
216-
- Missing icons no longer return `undefined` which caused React to be noisy about a misbehaving component
15+
**Previous [0.1.x change log available here](https://github.com/FortAwesome/react-fontawesome/blob/0.1.x/CHANGELOG.md)**

DEVELOPMENT.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ The following commands are available through `npm run`
2020
1. Update the `CHANGELOG.md`
2121
1. Update the `README.md` contributors section
2222
1. `npm run build`
23+
1. `npm run install.5`
2324
1. `npm run test`
24-
1. `npm publish --tag 0.2.x --tag latest`
25-
1. `npm publish --tag 0.2.x --tag latest --registry https://npm.fontawesome.com` (publish to Pro registry)
25+
1. `npm run install.6`
26+
1. `npm run test`
27+
1. `npm publish --tag latest-0.2 --tag latest`
28+
1. `npm publish --tag latest-0.2 --tag latest --registry https://npm.fontawesome.com` (publish to Pro registry)
2629
1. `git add . && git commit -m 'Release VERSION'`
2730
1. `git push`
2831
1. Create a [new release](https://github.com/FortAwesome/react-fontawesome/releases/new) with `CHANGELOG` details

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919

2020
## Documentation
2121

22+
`react-fontawesome` now supports `forwardRef` for version `0.2.x` or above. This was a breaking change so if you are using React older than version 16.3.0 choose the `0.1.x` version of this component.
23+
24+
## Compatibility
25+
| React version | react-fontawesome version |
26+
| - | - |
27+
| < 16.3.0 | 0.1.x |
28+
| >= 16.3.0 | 0.2.x |
29+
2230
Official documentation is hosted at fontawesome.com:
2331

2432
[Check it out here](https://fontawesome.com/v6/docs/web/use-with/react/)
@@ -54,6 +62,7 @@ being awesome contributors to this project. **We'd like to take a moment to reco
5462
| Proudust | [@proudust](https://github.com/proudust) |
5563
| Tiago Sousa | [@TiagoPortfolio](https://github.com/TiagoPortfolio) |
5664
| Alexey Victorov | [@AliMamed](https://github.com/AliMamed) |
65+
| Calum Smith | [@cpmsmith](https://github.com/cpmsmith) |
5766
| Font Awesome Team | [@FortAwesome](https://github.com/orgs/FortAwesome/people)|
5867

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

index.es.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ function classList(props) {
160160
'fa-inverse': inverse,
161161
'fa-border': border,
162162
'fa-li': listItem,
163+
'fa-flip': flip === true,
163164
'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',
164165
'fa-flip-vertical': flip === 'vertical' || flip === 'both'
165166
}, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined' && rotation !== null && rotation !== 0), _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
@@ -368,6 +369,7 @@ FontAwesomeIcon.displayName = 'FontAwesomeIcon';
368369
FontAwesomeIcon.propTypes = {
369370
beat: PropTypes.bool,
370371
border: PropTypes.bool,
372+
beatFade: PropTypes.bool,
371373
bounce: PropTypes.bool,
372374
className: PropTypes.string,
373375
fade: PropTypes.bool,
@@ -376,7 +378,7 @@ FontAwesomeIcon.propTypes = {
376378
maskId: PropTypes.string,
377379
fixedWidth: PropTypes.bool,
378380
inverse: PropTypes.bool,
379-
flip: PropTypes.oneOf(['horizontal', 'vertical', 'both']),
381+
flip: PropTypes.oneOf([true, false, 'horizontal', 'vertical', 'both']),
380382
icon: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
381383
listItem: PropTypes.bool,
382384
pull: PropTypes.oneOf(['right', 'left']),
@@ -400,14 +402,16 @@ FontAwesomeIcon.defaultProps = {
400402
maskId: null,
401403
fixedWidth: false,
402404
inverse: false,
403-
flip: null,
405+
flip: false,
404406
icon: null,
405407
listItem: false,
406408
pull: null,
407409
pulse: false,
408410
rotation: null,
409411
size: null,
410412
spin: false,
413+
spinPulse: false,
414+
spinReverse: false,
411415
beat: false,
412416
fade: false,
413417
beatFade: false,

index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
'fa-inverse': inverse,
168168
'fa-border': border,
169169
'fa-li': listItem,
170+
'fa-flip': flip === true,
170171
'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',
171172
'fa-flip-vertical': flip === 'vertical' || flip === 'both'
172173
}, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined' && rotation !== null && rotation !== 0), _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
@@ -375,6 +376,7 @@
375376
FontAwesomeIcon.propTypes = {
376377
beat: PropTypes__default["default"].bool,
377378
border: PropTypes__default["default"].bool,
379+
beatFade: PropTypes__default["default"].bool,
378380
bounce: PropTypes__default["default"].bool,
379381
className: PropTypes__default["default"].string,
380382
fade: PropTypes__default["default"].bool,
@@ -383,7 +385,7 @@
383385
maskId: PropTypes__default["default"].string,
384386
fixedWidth: PropTypes__default["default"].bool,
385387
inverse: PropTypes__default["default"].bool,
386-
flip: PropTypes__default["default"].oneOf(['horizontal', 'vertical', 'both']),
388+
flip: PropTypes__default["default"].oneOf([true, false, 'horizontal', 'vertical', 'both']),
387389
icon: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array, PropTypes__default["default"].string]),
388390
listItem: PropTypes__default["default"].bool,
389391
pull: PropTypes__default["default"].oneOf(['right', 'left']),
@@ -407,14 +409,16 @@
407409
maskId: null,
408410
fixedWidth: false,
409411
inverse: false,
410-
flip: null,
412+
flip: false,
411413
icon: null,
412414
listItem: false,
413415
pull: null,
414416
pulse: false,
415417
rotation: null,
416418
size: null,
417419
spin: false,
420+
spinPulse: false,
421+
spinReverse: false,
418422
beat: false,
419423
fade: false,
420424
beatFade: false,

package.json

Lines changed: 3 additions & 2 deletions
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 5",
4-
"version": "0.1.18",
4+
"version": "0.2.0",
55
"main": "index.js",
66
"module": "index.es.js",
77
"jsnext:main": "index.es.js",
@@ -26,7 +26,8 @@
2626
"Lukáš Rod <github.com/rodlukas>",
2727
"Proudust <github.com/proudust>",
2828
"Tiago Sousa <github.com/TiagoPortfolio>",
29-
"Alexey Victorov <github.com/AliMamed>"
29+
"Alexey Victorov <github.com/AliMamed>",
30+
"Calum Smith <github.com/cpmsmith>"
3031
],
3132
"license": "MIT",
3233
"scripts": {

0 commit comments

Comments
 (0)