Version 6 of AngularFire drops support for Angular version 8 and below, older versions of typescript, Firebase, drops firebase-node
, database-deprecated
, and more.
- Support for Angular versions less than 9 has been dropped
- Support for Firebase versions less than 7.13.1 has been dropped
- Support for
firebase-tools
less than 8.0 has been dropped angularfire2
NPM shim will no longer be updated- Dropped
@angular/fire/firebase-node
and@angular/fire/database-depreciated
- Using
ng-packagr
to build the library, bringing us back up to speed on APF - All of our
@NgModules
are nowprovidedIn: 'any'
rather than singletons - We make use of Proxy in more modules, you'll need to polyfill if you want to support IE 11
- Simplified
AngularFirePerformanceMonitoring
since we now have Google Analytics ng add @angular/fire
will now detect SSR and you will have the option forng deploy
to spin up a Cloud Function- There's now a
--preview
option onng deploy
which will allow you to preview your application locally before continuing with the deploy - Fixed several Zone.js issues in the Node environment
- Browser environments will now have a macrotask keeping Zone.js from stabilizing until RTDB, Firestore, etc. return an initial result (only SSR had this before.) Please file an Issue on GitHub if you find Zone.js issues in the browser environment
@angular/fire
- Dropped the
RealtimeDatabaseURL
andDATABASE_URL
DI tokens, useimport { URL } from '@angular/fire/database'
instead - Dropped
runOutsideAngular
,runInZone
,FirebaseZoneScheduler
, and theFirebase*
type aliases
@angular/fire/analytics
AngularFireAnalytics
now memoziesanalytics.Analtyics
instances keyed to themeasurementId
, this prevents exceptions if you're using more than oneFirebaseApp
with the samemeasurementId
. This is also needed as we areprovidedIn: 'any'
.
@angular/fire/auth
AngularFireAuthModule
is now side-effect free andAngularFireAuth
will dynamically importfirebase/auth
when a request is madeAngularFireAuth
has dropped theauth
property and instead Promise Proxies the underlying Firebaseauth.Auth
instance
@angular/fire/auth-guard
AngularFireAuthGuard
andcanActivate
have dropped (attempted) support for rawAuthPipe
s, as they were not functioning in AOT builds; you'll want to move toAuthPipeGenerator
s- Fixed some Zone.js issues when combining our auth guard and lazy loaded routes
@angular/fire/database
- Dropped the
RealtimeDatabaseURL
andDATABASE_URL
DI tokens in favor ofURL
@angular/fire/firestore
- Dropped the
EnablePersistenceToken
DI token in favor ofENABLE_PERSISTENCE
- Dropped the
PersistenceSettingsToken
DI token in favor ofPERSISTENCE_SETTINGS
- Dropped the
FirestoreSettingsToken
DI token in favor ofSETTINGS
@angular/fire/functions
- Dropped the
FunctionsRegionToken
andFUNCTIONS_REGION
DI tokens in favor ofREGION
- Dropped the
FUNCTIONS_ORIGIN
DI token in favor ofORIGIN
AngularFireFunctionsModule
is now side-effect free andAngularFireFunctions
will dynamically importfirebase/functions
when a request is madeAngularFireFunctions
has dropped thefunctions
property and instead Promise Proxies the underlying Firebasefunctions.Functions
instance
@angular/fire/messaging
AngularFireMessaging
's dynamic import offirebase/messaging
is now lazy, if you don't call any methods the SDK will not be loadedAngularFireMessaging
has dropped themessaging
property and instead Promise Proxies the underlying Firebasemessaging.Messaging
instance
@angular/fire/performance
AngularFirePerformance
has dropped theperformance
property and instead Promise Proxies the underlying Firebaseperformance.Performance
instance- The pipes that were available on
AngularFirePerformance
(trace
,traceUntil
, etc.) have been moved to pure-functions and can be imported separately from the class. (e.g,import { trace } from '@angular/fire/analytics'
) these pipes have been simplified and now use the User Timing API - Automatic tracing of
ApplicationRef.isStable
how now been moved to a servicePerformanceMonitoringService
as such theAUTOMATICALLY_TRACE_CORE_NG_METRICS
DI token has been dropped
@angular/fire/storage
- Dropped
StorageBucket
DI token in favor ofBUCKET
getDownloadURL
andgetMetadata
are no longer eager- Dropped
updateMetatdata
in favor ofupdateMetadata
which was a typo