Skip to content

Commit f2ba578

Browse files
committed
feat: drop support for FA5, svg core 1.x
1 parent ef38b42 commit f2ba578

File tree

6 files changed

+23
-24
lines changed

6 files changed

+23
-24
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

DEVELOPMENT.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,15 @@ The following commands are available through `npm run`
2020
3. Update the `CHANGELOG.md`
2121
4. Update the `README.md` contributors section
2222
5. `npm run build`
23-
6. `npm run install.5`
23+
6. `npm run install.6`
2424
7. `npm run test`
25-
8. `npm run install.6`
25+
8. `npm run install.7`
2626
9. `npm run test`
27-
10. `npm run install.7`
28-
11. `npm run test`
29-
12. `npm publish --tag latest-0.2 --tag latest`
30-
13. `npm publish --tag latest-0.2 --tag latest --registry https://npm.fontawesome.com` (publish to Pro registry)
31-
14. `git add . && git commit -m 'Release VERSION'`
32-
15. `git push`
33-
16. Create a [new release](https://github.com/FortAwesome/react-fontawesome/releases/new) with `CHANGELOG` details
27+
10. `npm publish --tag latest-0.2 --tag latest`
28+
11. `npm publish --tag latest-0.2 --tag latest --registry https://npm.fontawesome.com` (publish to Pro registry)
29+
12. `git add . && git commit -m 'Release VERSION'`
30+
13. `git push`
31+
14. Create a [new release](https://github.com/FortAwesome/react-fontawesome/releases/new) with `CHANGELOG` details
3432

3533
## Authenticating with the npm.fontawesome.com registry
3634

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",
@@ -48,7 +48,6 @@
4848
"test": "jest",
4949
"test:watch": "jest --watch",
5050
"validate-types": "tsc --noEmit",
51-
"install.5": "npm --no-save install @fortawesome/[email protected] @fortawesome/[email protected]",
5251
"install.6": "npm --no-save install @fortawesome/[email protected] @fortawesome/[email protected]",
5352
"install.7": "npm --no-save install @fortawesome/[email protected] @fortawesome/[email protected]",
5453
"clean": "rimraf dist"
@@ -57,7 +56,7 @@
5756
"semver": "^7.7.2"
5857
},
5958
"peerDependencies": {
60-
"@fortawesome/fontawesome-svg-core": "~1 || ~6 || ~7",
59+
"@fortawesome/fontawesome-svg-core": "~6 || ~7",
6160
"react": "^18.0.0 || ^19.0.0"
6261
},
6362
"devDependencies": {

0 commit comments

Comments
 (0)