FortAwesome / angular-fontawesome

Official Angular component for Font Awesome 5+
https://fontawesome.com
MIT License
1.49k stars 152 forks source link

Make `@fortawesome/fontawesome-svg-core` a regular dependency #230

Closed devoto13 closed 6 months ago

devoto13 commented 4 years ago

The main reason why it was a peer dependency is because it contained a global library variable. Therefore it was important to ensure that there is only one instance of library. Furthermore consumers had to import library from @fortawesome/fontawesome-svg-core, so they often installed it as a directly dependency. This result in two instances and lots of troubles.

angular-fontawesome provides its own FaIconLibrary now and support for icon library from fontawesome-svg-core will be removed in 0.7.0. It is a long standing goal to make fontawesome-svg-core an implementation detail of angular-fontawesome, so consumers don't need to worry about its existence.

To achieve this several things needs to be done: