Skip to content

Commit 6c166ad

Browse files
committed
feat: drop support for FA5, svg core 1.x
1 parent 09fbffc commit 6c166ad

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ jobs:
88

99
strategy:
1010
matrix:
11-
free-solid-svg-icons: [7.x, 6.x, 5.x]
12-
fontawesome-svg-core: [7.x, 6.x, 1.2.x]
11+
free-solid-svg-icons: [7.x, 6.x]
12+
fontawesome-svg-core: [7.x, 6.x]
1313
node-version: [24.x, 22.x, 20.x]
1414
react: [19.x, 18.x]
1515
exclude:
1616
# For v7.x core, allow all icon versions
17-
# For v6.x and v1.2.x core, exclude v7.x icons
17+
# For v6.x exclude v7.x icons
1818
- free-solid-svg-icons: '7.x'
1919
fontawesome-svg-core: '6.x'
20-
- free-solid-svg-icons: '7.x'
21-
fontawesome-svg-core: '1.2.x'
2220

2321
steps:
2422
- uses: actions/checkout@v4

CHANGELOG.md

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

77
---
88

9-
## [1.0.0](https://github.com/FortAwesome/react-fontawesome/releases/tag/1.0.0) - 2025-07-29
9+
## [3.0.0](https://github.com/FortAwesome/react-fontawesome/releases/tag/3.0.0) - 2025-07-29
1010

1111
### Changed
1212

1313
- Rewrote the entire library from plain JavaScript to TypeScript
14-
- Dropped support for end-of-life Node versions (below 20.x) and React versions (below 18.x)
14+
- Dropped support for end-of-life FontAwesome versions (below v6), Node versions (below 20.x) and React versions (below 18.x)
1515
- Replaced `rollup` with `tsup` for providing both ESM and CJS exports from one TypeScript source
1616
- Removed `prop-types` in favour of colocated typings for React component props
1717
- Upgraded `eslint` from v6 to v9, rewrote config as Flat Config, modernised ESLint config, plugins and rules

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@
2121

2222
## Documentation
2323

24-
`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.
24+
With the release of FontAwesome v7, we have marked v5 as End-of-Life. Both v6 and v7 will continue to be supported.
25+
26+
In `react-fontawesome v3.0.0` we have also dropped support for End-of-Life versions of React and Node.js as well as IE11 browser support.
27+
28+
If you need to use `react-fontawesome`
2529

2630
## Compatibility
2731

2832
| React version | react-fontawesome version | FontAwesome Core versions | Node versions |
2933
| ------------- | ------------------------- | ------------------------- | ---------------- |
30-
| >= 18.0.0 | 1.x.x | 5.x, 6.x, 7.x | 20.x, 22.x, 24.x |
34+
| >= 18.0.0 | 3.x.x | 6.x, 7.x | 20.x, 22.x, 24.x |
3135
| >= 16.3.0 | 0.2.x | 5.x, 6.x, 7.x | 18.x, 20.x |
3236
| < 16.3.0 | 0.1.x | 5.x, 6.x | 14.x, 16.x |
3337

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 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",
4-
"version": "1.0.0",
4+
"version": "3.0.0",
55
"type": "module",
66
"exports": {
77
"types": "./dist/index.d.ts",
@@ -46,7 +46,6 @@
4646
"test": "jest",
4747
"test:watch": "jest --watch",
4848
"validate-types": "tsc --noEmit",
49-
"install.5": "npm --no-save install @fortawesome/[email protected] @fortawesome/[email protected]",
5049
"install.6": "npm --no-save install @fortawesome/[email protected] @fortawesome/[email protected]",
5150
"install.7": "npm --no-save install @fortawesome/[email protected] @fortawesome/[email protected]",
5251
"clean": "rimraf dist"
@@ -55,7 +54,7 @@
5554
"semver": "^7.7.2"
5655
},
5756
"peerDependencies": {
58-
"@fortawesome/fontawesome-svg-core": "~1 || ~6 || ~7",
57+
"@fortawesome/fontawesome-svg-core": "~6 || ~7",
5958
"react": "^18.0.0 || ^19.0.0"
6059
},
6160
"devDependencies": {

0 commit comments

Comments
 (0)