Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.73 KB

version-6-upgrade.md

File metadata and controls

20 lines (15 loc) · 1.73 KB

Upgrading to AngularFire 6.0

Intended to be run with Angular 9; version 6 of AngularFire drops support for Angular version 8 and below, older versions of typescript, Firebase, drops firebase-node, database-deprecated, and more.

WARNING: Version 6 is still a Release Candidate and subject to change, please monitor the changelog for up-to-date information on what we've been up to.

We're aiming to release 6.0 with an upgrade schematic to automate most of the required changes, however as of RC.1 that script is not yet available.

Breaking changes:

  • Support for Angular versions less than 9 has been dropped
  • Support for Firebase JS SDK versions less than 7.8 has been dropped
  • Support for firebase-tools less than 7.12 has been dropped
  • The angularfire2 NPM library will no longer be updated
  • Dropped @angular/fire/firebase-node and @angular/fire/database-depreciated
  • We make use of Proxy in more modules, you'll need to polyfill if you want to support IE 11
  • We've standardized our DI Token naming conventions across all modules
  • AngularFirestoreModule no longer imports firebase/firestore on it's own to remain side-effect free, you'll need to import 'firebase/firestore' before you inject it. A similar changes has been made to AngularFireStorage and AngularFireDatabase
  • AngularFireAuth has dropped the auth property and instead Promise Proxies the underlying Firebase auth.Auth instance; allowing your development experience to more closely mirror the JS SDK. Similar changes have been made to AngularFireFunctions, AngularFireMessaging, and AngularFirePerformance.
  • AngularFireAuthGuard and canActivate have dropped support for raw pipes, this was never working correctly in AOT