Skip to content

Commit

Permalink
Release 0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
devoto13 committed May 23, 2024
1 parent 2a3a9e7 commit 6e462b5
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 41 deletions.
26 changes: 24 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,35 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

---

## [0.15.0](https://github.com/FortAwesome/angular-fontawesome/releases/tag/0.15.0)
## [0.15.0](https://github.com/FortAwesome/angular-fontawesome/releases/tag/0.15.0) - 2024-05-23

Make sure to check [upgrade instructions](https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md).

### Added

* Support for Angular 18.
* Documentation on how to use NPM Kit packages.
* Documentation on how to correctly use fa-stack in standalone components.
* Documentation on how to use custom icons.
* FAQ page with considerations on whether to use this library.
* Configuration option for the `FontAwesomeTestingModule` to not throw errors when adding icons.
* Documentation on how to add global styles to the page.

### Fixed

* Documentation for the `rotate` input.
* Global styles are now correctly added to the page in SSR context.

### Changed

* `icon` input type is now more permissive.
* `@fortawesome/fontawesome-svg-core` became a regular dependency.

### Removed

- Deprecated inputs `spin` and `pulse`. Use `animation` input instead.
* Angular 17.x is no longer supported. If you are using this version, please, stick with version 0.14.1.
* Deprecated inputs `spin` and `pulse`. Use `animation` input instead.
* Deprecated inputs `styles` and `classes`.

## [0.14.1](https://github.com/FortAwesome/angular-fontawesome/releases/tag/0.14.1) - 2023-12-23

Expand Down
32 changes: 17 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,22 @@ $ npm install @fortawesome/angular-fontawesome@<version>

### Compatibility table

|@fortawesome/angular-fontawesome|Angular|Font Awesome|ng-add|
|-|-|-|-|
|0.1.x|5.x|5.x|not supported|
|0.2.x|6.x|5.x|not supported|
|0.3.x|6.x && 7.x|5.x|not supported|
|0.4.x, 0.5.x|8.x|5.x|not supported|
|0.6.x|9.x|5.x|supported|
|0.7.x|10.x|5.x|supported|
|0.8.x|11.x|5.x|supported|
|0.9.x|12.x|5.x|supported|
|0.10.x|13.x|5.x && 6.x|supported|
|0.11.x|14.x|5.x && 6.x|supported|
|0.12.x|15.x|5.x && 6.x|supported|
|0.13.x|16.x|5.x && 6.x|supported|
|0.14.x|17.x|5.x && 6.x|supported|
| @fortawesome/angular-fontawesome | Angular | Font Awesome | ng-add |
|----------------------------------|------------|--------------|---------------|
| 0.1.x | 5.x | 5.x | not supported |
| 0.2.x | 6.x | 5.x | not supported |
| 0.3.x | 6.x && 7.x | 5.x | not supported |
| 0.4.x, 0.5.x | 8.x | 5.x | not supported |
| 0.6.x | 9.x | 5.x | supported |
| 0.7.x | 10.x | 5.x | supported |
| 0.8.x | 11.x | 5.x | supported |
| 0.9.x | 12.x | 5.x | supported |
| 0.10.x | 13.x | 5.x && 6.x | supported |
| 0.11.x | 14.x | 5.x && 6.x | supported |
| 0.12.x | 15.x | 5.x && 6.x | supported |
| 0.13.x | 16.x | 5.x && 6.x | supported |
| 0.14.x | 17.x | 5.x && 6.x | supported |
| 0.15.x | 18.x | 5.x && 6.x | supported |

## Usage

Expand Down Expand Up @@ -131,6 +132,7 @@ being awesome contributors to this project. **We'd like to take a moment to reco
[<img src="https://github.com/benjamincharity.png?size=72" alt="benjamincharity" width="72">](https://github.com/benjamincharity)
[<img src="https://github.com/NayeBeckham.png?size=72" alt="NayeBeckham" width="72">](https://github.com/NayeBeckham)
[<img src="https://github.com/Nosfistis.png?size=72" alt="Nosfistis" width="72">](https://github.com/Nosfistis)
[<img src="https://github.com/bleistift-zwei.png?size=72" alt="bleistift-zwei" width="72">](https://github.com/bleistift-zwei)
[<img src="https://github.com/FortAwesome.png?size=72" alt="Font Awesome Team" width="72">](https://github.com/orgs/FortAwesome/people)

If we've missed someone (which is quite likely) submit a Pull Request to us and we'll get it resolved.
8 changes: 8 additions & 0 deletions docs/upgrading/0.14.0-0.15.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ If you import any types from `@fortawesome/fontawesome-svg-core`, you should imp
-import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
+import { IconDefinition } from '@fortawesome/angular-fontawesome';
```

## Icon inputs are now more permissive

Previously, `icon` input had a very restrictive type, which only allowed to specify icon pack and icon name values which exist in the Font Awesome icon packages. Now, the type is more permissive and allows to specify any string while retaining code completion for potentially available Font Awesome icon packs and icon names.

No changes are needed in the code, but consumers should be aware that the `<fa-icon>` component will no longer fail compilation if the icon name is not one of the Font Awesome icons, thus allowing to use [custom icons](../guide/custom-icons.md).

Refer to https://github.com/FortAwesome/angular-fontawesome/pull/436 for more details on the change.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fortawesome/angular-fontawesome",
"version": "0.14.1",
"version": "0.15.0",
"description": "Angular Fontawesome, an Angular library",
"scripts": {
"test": "ng test angular-fontawesome --watch=false --browsers=ChromeCI",
Expand Down Expand Up @@ -47,8 +47,8 @@
"@angular/platform-server": "^18.0.0",
"@angular/router": "^18.0.0",
"@angular/ssr": "^18.0.1",
"@fortawesome/free-regular-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/free-regular-svg-icons": "^6.5.2",
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@types/express": "^4.17.21",
"@types/jasmine": "~4.3.6",
"@types/node": "~20.12.12",
Expand Down
4 changes: 2 additions & 2 deletions projects/schematics/src/ng-add/versions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const angularFontawesomeVersion = '~0.14.0';
export const iconPackVersion = '^6.4.2';
export const angularFontawesomeVersion = '~0.15.0';
export const iconPackVersion = '^6.5.2';

export const v5 = {
iconPackVersion: '^5.15.4',
Expand Down
31 changes: 12 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2409,8 +2409,8 @@ __metadata:
"@angular/router": "npm:^18.0.0"
"@angular/ssr": "npm:^18.0.1"
"@fortawesome/fontawesome-svg-core": "npm:^6.5.2"
"@fortawesome/free-regular-svg-icons": "npm:^6.4.2"
"@fortawesome/free-solid-svg-icons": "npm:^6.4.2"
"@fortawesome/free-regular-svg-icons": "npm:^6.5.2"
"@fortawesome/free-solid-svg-icons": "npm:^6.5.2"
"@types/express": "npm:^4.17.21"
"@types/jasmine": "npm:~4.3.6"
"@types/node": "npm:~20.12.12"
Expand Down Expand Up @@ -2444,13 +2444,6 @@ __metadata:
languageName: unknown
linkType: soft

"@fortawesome/fontawesome-common-types@npm:6.4.2":
version: 6.4.2
resolution: "@fortawesome/fontawesome-common-types@npm:6.4.2"
checksum: 121bb1c55f7578d7516a1dfb95b4b5644d3aacd04cbbbddef317b99ec84ddd56aa8f6414abff190e9fc72ea1754f1beef1c5068641c31fbaf8407822a1733f82
languageName: node
linkType: hard

"@fortawesome/fontawesome-common-types@npm:6.5.2":
version: 6.5.2
resolution: "@fortawesome/fontawesome-common-types@npm:6.5.2"
Expand All @@ -2467,21 +2460,21 @@ __metadata:
languageName: node
linkType: hard

"@fortawesome/free-regular-svg-icons@npm:^6.4.2":
version: 6.4.2
resolution: "@fortawesome/free-regular-svg-icons@npm:6.4.2"
"@fortawesome/free-regular-svg-icons@npm:^6.5.2":
version: 6.5.2
resolution: "@fortawesome/free-regular-svg-icons@npm:6.5.2"
dependencies:
"@fortawesome/fontawesome-common-types": "npm:6.4.2"
checksum: dc735e3511f2147367451715cb1143df2656e6e69e5f21cb20071b5349a458ab2845dda89b16b9d7dd2bc9e913d9d93ed51ea3702f4fc4d774373f14e7f6768e
"@fortawesome/fontawesome-common-types": "npm:6.5.2"
checksum: dff7e3cc4a5433b020b0cf9e5ba95cedec7f64cda38b1183bbac5cead9d0a54b6d70671fbf799a8b5e3befb7f8955a546cf013d62b941fd03cd4516ef18613e7
languageName: node
linkType: hard

"@fortawesome/free-solid-svg-icons@npm:^6.4.2":
version: 6.4.2
resolution: "@fortawesome/free-solid-svg-icons@npm:6.4.2"
"@fortawesome/free-solid-svg-icons@npm:^6.5.2":
version: 6.5.2
resolution: "@fortawesome/free-solid-svg-icons@npm:6.5.2"
dependencies:
"@fortawesome/fontawesome-common-types": "npm:6.4.2"
checksum: 1a46c27be60ecdfaecd82f5e8ef07cbf5843b040f03fbab36da2eafc839df97efb437cc2c7ce5df53c6e71c06bf4ef8b520b62c4c0b153fe8a2a04368f155410
"@fortawesome/fontawesome-common-types": "npm:6.5.2"
checksum: af2778b91ba4bf7b61ae0cdf0d39d75b6906a82bfdf8e977881d987b86a32ce157297853b7892aa3b609076b5542ea1e1e78b520d57b6f50677a2a748cf3434c
languageName: node
linkType: hard

Expand Down

0 comments on commit 6e462b5

Please sign in to comment.