Skip to content

Releases: angular/angularfire

6.1.0-rc.2

13 Nov 01:05
Compare
Choose a tag to compare
6.1.0-rc.2 Pre-release
Pre-release

Bug Fixes

  • fcm: tokenChanges now listen for notification permission changes and trip token detection as expected (#2652) (8d3093f)

Features

  • database: Added USE_EMULATOR DI token (#2652) (8d3093f)
  • fcm: Added VAPID_KEY, SERVICE_WORKER, and USE_EMULATOR DI tokens (#2652) (8d3093f)
  • fcm: deleteToken's token argument is now optional, reflecting Firebase v8 changes (#2652) (8d3093f)
  • auth: Added SETTINGS, TENANT_ID, LANGUAGE_CODE, USE_DEVICE_LANGUAGE, USE_EMULATOR and PERSISTENCE DI tokens (#2652) (8d3093f)
  • functions: Added USE_EMULATOR and NEW_ORIGIN_BEHAVIOR DI token to opt-into the new way of setting ORIGIN (#2652) (8d3093f)
  • functions: httpsCallable function now takes in HttpsCallableOptions (#2652) (8d3093f)
  • storage: Added MAX_UPLOAD_RETRY_TIME and MAX_OPERATION_RETRY_TIME DI tokens (#2652) (8d3093f)

6.1.0-rc.1

12 Nov 05:30
Compare
Choose a tag to compare
6.1.0-rc.1 Pre-release
Pre-release

Bug Fixes

  • firestore: doc and collection methods generic (#2649) (796b7c1)

Features

  • firestore: Inherit doc return type from class (#2640) (f7bbd09)
  • firestore: map document ID to the provided idField in a collection group query (#2580) (dbf31d9)
  • auth-guard: add support for specifying a string to redirect to (#2448) (fe31191), closes #2287 #2144
  • database: add option to include key on valueChanges() (#2126) (5cdb8ce)
  • deploy: More deploy options (#2647) (1bbd3e4)
  • firestore: options to include document ID on valueChanges() (#2113) (09ed22a)
  • functions: Add options param to httpsCallable functions (#2434) (f8d5a50), closes #2433
  • schematics: support FIREBASE_TOKEN for ng deploy (#2327) (dd92869)
  • storage: getDownloadURL pipe (#2648) (0d799da)

6.1.0-rc.0

11 Nov 16:54
21cf7c2
Compare
Choose a tag to compare
6.1.0-rc.0 Pre-release
Pre-release

Bug Fixes

  • deploy: remove direct workspace access (#2643) (7e1918a)
  • schematics: remove experimental workspace API type usage (#2644) (b976c58)

Features

6.0.5

11 Nov 05:09
e5743da
Compare
Choose a tag to compare
  • PerformanceMonitoringService should now tree-shake out when not provided, making this behavior opt-in
  • Support proxy-polyfill for IE11 on the lazy classes by adding the methods to prototype at build-time (via ts-transformer-keys)
  • Use indexOf > -1 rather than includes, so another polyfill isnt needed for IE developers
  • Adding logger/compat to the cloud function generator

6.0.4

30 Oct 20:19
c29eb2d
Compare
Choose a tag to compare

Bug Fixes

  • analytics: UserTrackingService and ScreenTrackingService should be opt-in, rather than opt-out (#2605) (92f7aaf)
  • auth: addressing observable errors in non-browser environments (#2626) (120c854)

Features

6.0.3

25 Sep 05:14
1608676
Compare
Choose a tag to compare
  • Fixed AngularFireAnalytics and AngularFirePerformance which were not initializing properly or sending analytics
  • Typings for NG10
  • Fixed the _next error with FCM by wrapping the callback differently
  • Various Zone.js improvements
  • Reduce the extraneous nulls that were firing on the AngularFireAuth user observable while the auth token is validated
  • Work-arounds for problems with Firebase SDK side-effects in Node.js / SSR

6.0.2

24 Jun 20:48
1bf6cc9
Compare
Choose a tag to compare
  • Quick fix to peers so ng add @angular/fire installs the correct version on Angular 10

6.0.1

24 Jun 16:48
072c4a8
Compare
Choose a tag to compare
  • Updating peer dependencies to allow for Angular 10
  • ng add @angular/fire should correctly add the firebase peer
  • ng add @angular/fire will not duplicate settings entries, if they're already present
  • ng add @angular/fire will error if there are peer incompatabilities
  • ng deploy should function correctly on Windows devices
  • ng deploy will now mark the Angular assets as immutable on Firebase Hosting
  • RTDB and Firestore CRUD operations should return in the ngZone
  • Use of AngularFireAuthGuard should no longer destablize Zone.js

6.0.0

02 Apr 03:57
0be51e6
Compare
Choose a tag to compare

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 now providedIn: '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 for ng deploy to spin up a Cloud Function
  • There's now a --preview option on ng 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 and DATABASE_URL DI tokens, use import { URL } from '@angular/fire/database' instead
  • Dropped runOutsideAngular, runInZone, FirebaseZoneScheduler, and the Firebase* type aliases

@angular/fire/analytics

  • AngularFireAnalytics now memozies analytics.Analtyics instances keyed to the measurementId, this prevents exceptions if you're using more than one FirebaseApp with the same measurementId. This is also needed as we are providedIn: 'any'.

@angular/fire/auth

  • AngularFireAuthModule is now side-effect free and AngularFireAuth will dynamically import firebase/auth when a request is made
  • AngularFireAuth has dropped the auth property and instead Promise Proxies the underlying Firebase auth.Auth instance

@angular/fire/auth-guard

  • AngularFireAuthGuard and canActivate have dropped (attempted) support for raw AuthPipes, as they were not functioning in AOT builds; you'll want to move to AuthPipeGenerators
  • Fixed some Zone.js issues when combining our auth guard and lazy loaded routes

@angular/fire/database

  • Dropped the RealtimeDatabaseURL and DATABASE_URL DI tokens in favor of URL

@angular/fire/firestore

  • Dropped the EnablePersistenceToken DI token in favor of ENABLE_PERSISTENCE
  • Dropped the PersistenceSettingsToken DI token in favor of PERSISTENCE_SETTINGS
  • Dropped the FirestoreSettingsToken DI token in favor of SETTINGS

@angular/fire/functions

  • Dropped the FunctionsRegionToken and FUNCTIONS_REGION DI tokens in favor of REGION
  • Dropped the FUNCTIONS_ORIGIN DI token in favor of ORIGIN
  • AngularFireFunctionsModule is now side-effect free and AngularFireFunctions will dynamically import firebase/functions when a request is made
  • AngularFireFunctions has dropped the functions property and instead Promise Proxies the underlying Firebase functions.Functions instance

@angular/fire/messaging

  • AngularFireMessaging's dynamic import of firebase/messaging is now lazy, if you don't call any methods the SDK will not be loaded
  • AngularFireMessaging has dropped the messaging property and instead Promise Proxies the underlying Firebase messaging.Messaging instance

@angular/fire/performance

  • AngularFirePerformance has dropped the performance property and instead Promise Proxies the underlying Firebase performance.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 service PerformanceMonitoringService as such the AUTOMATICALLY_TRACE_CORE_NG_METRICS DI token has been dropped

@angular/fire/storage

  • Dropped StorageBucket DI token in favor of BUCKET
  • getDownloadURL and getMetadata are no longer eager
  • Dropped updateMetatdata in favor of updateMetadata which was a typo

6.0.0-rc.2

30 Mar 21:17
d91965e
Compare
Choose a tag to compare
6.0.0-rc.2 Pre-release
Pre-release

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...