jamesdaniels
released this
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-toolsless than 8.0 has been dropped angularfire2NPM shim will no longer be updated- Dropped
@angular/fire/firebase-nodeand@angular/fire/database-depreciated - Using
ng-packagrto build the library, bringing us back up to speed on APF - All of our
@NgModulesare 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
AngularFirePerformanceMonitoringsince we now have Google Analytics ng add @angular/firewill now detect SSR and you will have the option forng deployto spin up a Cloud Function- There's now a
--previewoption onng deploywhich 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
RealtimeDatabaseURLandDATABASE_URLDI tokens, useimport { URL } from '@angular/fire/database'instead - Dropped
runOutsideAngular,runInZone,FirebaseZoneScheduler, and theFirebase*type aliases
@angular/fire/analytics
AngularFireAnalyticsnow memoziesanalytics.Analtyicsinstances keyed to themeasurementId, this prevents exceptions if you're using more than oneFirebaseAppwith the samemeasurementId. This is also needed as we areprovidedIn: 'any'.
@angular/fire/auth
AngularFireAuthModuleis now side-effect free andAngularFireAuthwill dynamically importfirebase/authwhen a request is madeAngularFireAuthhas dropped theauthproperty and instead Promise Proxies the underlying Firebaseauth.Authinstance
@angular/fire/auth-guard
AngularFireAuthGuardandcanActivatehave dropped (attempted) support for rawAuthPipes, as they were not functioning in AOT builds; you'll want to move toAuthPipeGenerators- Fixed some Zone.js issues when combining our auth guard and lazy loaded routes
@angular/fire/database
- Dropped the
RealtimeDatabaseURLandDATABASE_URLDI tokens in favor ofURL
@angular/fire/firestore
- Dropped the
EnablePersistenceTokenDI token in favor ofENABLE_PERSISTENCE - Dropped the
PersistenceSettingsTokenDI token in favor ofPERSISTENCE_SETTINGS - Dropped the
FirestoreSettingsTokenDI token in favor ofSETTINGS
@angular/fire/functions
- Dropped the
FunctionsRegionTokenandFUNCTIONS_REGIONDI tokens in favor ofREGION - Dropped the
FUNCTIONS_ORIGINDI token in favor ofORIGIN AngularFireFunctionsModuleis now side-effect free andAngularFireFunctionswill dynamically importfirebase/functionswhen a request is madeAngularFireFunctionshas dropped thefunctionsproperty and instead Promise Proxies the underlying Firebasefunctions.Functionsinstance
@angular/fire/messaging
AngularFireMessaging's dynamic import offirebase/messagingis now lazy, if you don't call any methods the SDK will not be loadedAngularFireMessaginghas dropped themessagingproperty and instead Promise Proxies the underlying Firebasemessaging.Messaginginstance
@angular/fire/performance
AngularFirePerformancehas dropped theperformanceproperty and instead Promise Proxies the underlying Firebaseperformance.Performanceinstance- 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.isStablehow now been moved to a servicePerformanceMonitoringServiceas such theAUTOMATICALLY_TRACE_CORE_NG_METRICSDI token has been dropped
@angular/fire/storage
- Dropped
StorageBucketDI token in favor ofBUCKET getDownloadURLandgetMetadataare no longer eager- Dropped
updateMetatdatain favor ofupdateMetadatawhich was a typo
Assets
2
jamesdaniels
released this
Continued work on 6.0.
- Update peers
- No longer require developer add bare imports themselves (e.g,
import 'firebase/firestore') - Zone.js fixes
- Angular Universal deploy schematic
- Storage listAll()
- and more...
Assets
2
jamesdaniels
released this
Continued work on version 6.
Assets
2
Bug Fixes
Assets
2
Assets
2
Features
Assets
2
Bug Fixes
- schematics: The schematics should be functional again. The version of
firebase-toolswe were installing when you calledng add @angular/firewas using deprecated API. (#2285) (5867eeb) - schematics: fix issues with FS and Devkit Paths (#2279) (5ccf5db)
- rc: Need to
ensureInitialized()(#2290) (0d95523)
Assets
2
jamesdaniels
released this
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.8 has been dropped
- Support for
firebase-toolsless than 7.12 has been dropped angularfire2NPM shim will no longer be updated- Dropped
@angular/fire/firebase-nodeand@angular/fire/database-depreciated - Using
ng-packagrto build the library, bringing us back up to speed on APF - All of our
@NgModulesare 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
@angular/fire
- Dropped the
RealtimeDatabaseURLandDATABASE_URLDI tokens, useimport { URL } from '@angular/fire/database'instead - Dropped
runOutsideAngular,runInZone,FirebaseZoneScheduler, and theFirebase*type aliases
@angular/fire/analytics
AngularFireAnalyticsnow memoziesanalytics.Analtyicsinstances keyed to themeasurementId, this prevents exceptions if you're using more than oneFirebaseAppwith the samemeasurementId. This is also needed as we areprovidedIn: 'any'.
@angular/fire/auth
AngularFireAuthModuleis now side-effect free andAngularFireAuthwill dynamically importfirebase/authwhen a request is madeAngularFireAuthhas dropped theauthproperty and instead Promise Proxies the underlying Firebaseauth.Authinstance
@angular/fire/auth-guard
AngularFireAuthGuardandcanActivatehave dropped (attempted) support for rawAuthPipes, as they were not functioning in AOT builds; you'll want to move toAuthPipeGenerators
@angular/fire/database
AngularFireDatabaseModuleno longer importsfirebase/databaseon it's own to remain side-effect free, you'll need toimport 'firebase/database'on your own- Dropped the
RealtimeDatabaseURLandDATABASE_URLDI tokens in favor ofURL
@angular/fire/firestore
AngularFirestoreModuleno longer importsfirebase/firestoreon it's own to remain side-effect free, you'll need toimport 'firebase/firestore'on your own- Dropped the
EnablePersistenceTokenDI token in favor ofENABLE_PERSISTENCE - Dropped the
PersistenceSettingsTokenDI token in favor ofPERSISTENCE_SETTINGS - Dropped the
FirestoreSettingsTokenDI token in favor ofSETTINGS
@angular/fire/functions
- Dropped the
FunctionsRegionTokenandFUNCTIONS_REGIONDI tokens in favor ofREGION - Dropped the
FUNCTIONS_ORIGINDI token in favor ofORIGIN AngularFireFunctionsModuleis now side-effect free andAngularFireFunctionswill dynamically importfirebase/functionswhen a request is madeAngularFireFunctionshas dropped thefunctionsproperty and instead Promise Proxies the underlying Firebasefunctions.Functionsinstance
@angular/fire/messaging
AngularFireMessaging's dynamic import offirebase/messagingis now lazy, if you don't call any methods the SDK will not be loadedAngularFireMessaginghas dropped themessagingproperty and instead Promise Proxies the underlying Firebasemessaging.Messaginginstance
@angular/fire/performance
AngularFirePerformancehas dropped theperformanceproperty and instead Promise Proxies the underlying Firebaseperformance.Performanceinstance
@angular/fire/storage
AngularFireStorageModuleno longer importsfirebase/storageon it's own to remain side-effect free, you'll need toimport 'firebase/storage'on your own- Dropped
StorageBucketDI token in favor ofBUCKET
Assets
2
jamesdaniels
released this
AngularFire 5.3 introduces Analytics and Remote Config modules.
Assets
2
Final candidate for 5.3.0.
AngularFireAnalyticsandAngularFireRemoteConfigshould be safe in non-browser environments (mostly noop due to lack of support in the Firebase libraries, but should not cause runtime exceptions)ScreenTrackingServiceshould now be more reliable in reporting your component's selector (asscreen_name), especially in AOT mode.- To better facilitate debugging,
ScreenTrackingServicewill console logscreen_viewevents whenDEBUG_MODEis enabled.
Please test that screen_class attribute is correct tracking your component's selector in Google Analytics for the ScreenTrackingService both against AOT and JIT. There's some hard to test code here. Report your experience on #2187

