- Fix erroneous files being published
- Fix Angular dependency
- Fix module and component name.
- Rename library files.
- Remove
font-awesome
as a dependency of the library move it to peer dependency. - Added
.npmignore
file. - Added
package-lock.json
file.
After the release of Angular version 5 the library was giving an error with the compiler, this lead me into having to rethink the whole development structure of the library.
- Reduced the amount of possible tags to just one (1)
<fa></fa>
- Better development structure
Breaking Change
The module for import has changed from angular-font-awesome/angular-font-awesome
to angular-font-awesome
.
Example
// ...
import { AngularFontAwesomeModule } from 'angular-font-awesome';
@NgModule({
//...
imports: [
//...
AngularFontAwesomeModule
],
//...
})
export class AppModule { }
})
- Actually removed
postinstall
script frompackage.json
- Remove postinstall script to avoid having typescript in production
- Added
tsc
generated files to npm package
- Add postinstall script instead of having the generated files added to the package
- Updated package JSON
- 2.2 had a lot of issues with Ionic and non-cli generated projects where the tsc generated files where needed. Skipped to 2.3 with fixes.
- Added generated files to the npm package for libraries that require
.js
files and/or can't use.ts
Important Changes
-
Repository's name changed from angular2-font-awesome to angular-font-awesome this may cause some errors when using the library
-
Updated library to support Angular 4 and Angular 2 as suggested (here)
-
Changed repository's name to match package's name