v2.1.0 - FontAwesome v7 support#474
Merged
devoto13 merged 9 commits intoFortAwesome:mainfrom Jul 31, 2025
Merged
Conversation
Updated Font Awesome packages to version 7 in package.json and yarn.lock. Added new v7 icons (faBusSide, faSpiral, faSeptagon) to the demo app and updated the schematic schema to support Font Awesome 7.
Added documentation for Pro+ Icons and Kit Packages in README, updated compatibility table, and provided import example for Kit Packages. Changed default FontAwesome version to 7 and expanded icon style options in ng-add schema. Updated packageManager to yarn@4.9.2 in package.json.
There was a problem hiding this comment.
Pull Request Overview
This PR introduces Font Awesome 7 support to the Angular Font Awesome library, upgrading the library version to 2.1.0 and updating dependencies to FontAwesome 7.0.0. The changes enhance compatibility, update schematics to handle version 7, and improve the demo application.
- Adds Font Awesome 7 support with updated dependencies and versioning
- Enhances schematics to support version 7 selection and new icon packages
- Improves title attribute handling in icon component for cleaner DOM output
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/icon/icon.component.ts | Improves title attribute handling to return undefined when no title provided |
| projects/schematics/src/ng-add/versions.ts | Adds version mapping object for Font Awesome 7 support |
| projects/schematics/src/ng-add/schema.ts | Updates schema to include version 7 option |
| projects/schematics/src/ng-add/schema.json | Adds Font Awesome 7 as default with new icon packages |
| projects/schematics/src/ng-add/index.ts | Updates logic to use version mapping for icon pack versions |
| projects/demo/src/app/app.component.ts | Adds Font Awesome 7 icons for demonstration |
| projects/demo/src/app/app.component.html | Displays new v7 icons in demo |
| package.json | Updates version to 2.1.0 and dependencies to Font Awesome 7.0.0 |
| README.md | Updates compatibility table and adds Pro+ icons documentation |
Comments suppressed due to low confidence (3)
projects/schematics/src/ng-add/versions.ts:8
- Font Awesome 7.0.0 was not released as of my knowledge cutoff in January 2025. Please verify that version 7.0.0 exists and is available for installation.
export const iconPackVersionMap: Record<string, { iconPackVersion: string }> = {
package.json:48
- Font Awesome 7.0.0 was not released as of my knowledge cutoff in January 2025. Please verify that version 7.0.0 exists and is available for installation.
"@fortawesome/free-regular-svg-icons": "^7.0.0",
package.json:81
- Font Awesome 7.0.0 was not released as of my knowledge cutoff in January 2025. Please verify that version 7.0.0 exists and is available for installation.
"@fortawesome/fontawesome-svg-core": "^7.0.0",
The title input works in the browser but the test still fails. This test needs review.
Bumped angularFontawesomeVersion to ^2.1.0 and iconPackVersion to ^7.0.0 to use the latest releases.
…tribute handling in Font Awesome 7+
…ontAwesome 7+ changes
yaroslav-softwerk
approved these changes
Jul 31, 2025
devoto13
approved these changes
Jul 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for Font Awesome 7 in the Angular Font Awesome library, updates dependencies, and enhances the demo application and schematics to reflect these changes. Below is a breakdown of the most important updates:
Documentation Updates
README.mdto include details about Pro+ Icons, compatibility with Font Awesome 7, and usage instructions for Kit Packages. [1] [2] [3] [4]Dependency and Version Updates
package.jsonto bump the library version to2.1.0and upgrade dependencies to Font Awesome 7.0.0. [1] [2] [3]package.jsontoyarn@4.9.2.Schematics Enhancements
schema.json,schema.ts, andversions.tsto add version 7 and its corresponding icon packages. [1] [2] [3] [4]ng-add/index.tsto use a version-to-icon-pack mapping for better flexibility. [1] [2]Code Quality Improvements
titleattribute handling inicon.component.tsto returnundefinedwhen no title is provided, ensuring cleaner DOM output.