|
| 1 | +<a name="6.0.0-rc.0"></a> |
| 2 | +# [6.0.0-rc.0](https://github.com/angular/angularfire2/compare/5.3.0...6.0.0-rc.0) (2020-01-30) |
| 3 | + |
| 4 | +Version 6 of AngularFire drops support for Angular version 8 and below, older versions of typescript, Firebase, drops `firebase-node`, `database-deprecated`, and more. |
| 5 | + |
| 6 | +* Support for Angular versions less than 9 has been dropped |
| 7 | +* Support for Firebase versions less than 7.8 has been dropped |
| 8 | +* Support for `firebase-tools` less than 7.12 has been dropped |
| 9 | +* `angularfire2` NPM shim will no longer be updated |
| 10 | +* Dropped `@angular/fire/firebase-node` and `@angular/fire/database-depreciated` |
| 11 | +* Using `ng-packagr` to build the library, bringing us back up to speed on APF |
| 12 | +* All of our `@NgModules` are now `providedIn: 'any'` rather than singletons |
| 13 | +* We make use of Proxy in more modules, you'll need to polyfill if you want to support IE 11 |
| 14 | +* Fixed the `ng add` and `ng deploy` commands |
| 15 | +* `ng deploy` now supports a `buildTarget` option |
| 16 | +* We've addressed a number of memory leaks and Zone.js issues in SSR applications |
| 17 | + |
| 18 | +#### `@angular/fire` |
| 19 | + |
| 20 | +* Dropped the `RealtimeDatabaseURL` and `DATABASE_URL` DI tokens, use `import { URL } from '@angular/fire/database'` instead |
| 21 | +* Dropped `runOutsideAngular`, `runInZone`, `FirebaseZoneScheduler`, and the `Firebase*` type aliases |
| 22 | + |
| 23 | +#### `@angular/fire/analytics` |
| 24 | + |
| 25 | +* `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'`. |
| 26 | + |
| 27 | +#### `@angular/fire/auth` |
| 28 | + |
| 29 | +* `AngularFireAuthModule` no longer imports `firebase/auth` on it's own to remain side-effect free, you'll need to `import 'firebase/auth'` on your own |
| 30 | + |
| 31 | +#### `@angular/fire/auth-guard` |
| 32 | + |
| 33 | +* `AngularFireAuthGuard` and `canActivate` have dropped (attempted) support for raw `AuthPipe`s, as they were not functioning in AOT builds; you'll want to move to `AuthPipeGenerator`s |
| 34 | + |
| 35 | +#### `@angular/fire/database` |
| 36 | + |
| 37 | +* `AngularFireDatabaseModule` no longer imports `firebase/database` on it's own to remain side-effect free, you'll need to `import 'firebase/database'` on your own |
| 38 | +* Dropped the `RealtimeDatabaseURL` and `DATABASE_URL` DI tokens in favor of `URL` |
| 39 | + |
| 40 | +#### `@angular/fire/firestore` |
| 41 | + |
| 42 | +* `AngularFirestoreModule` no longer imports `firebase/firestore` on it's own to remain side-effect free, you'll need to `import 'firebase/firestore'` on your own |
| 43 | +* Dropped the `EnablePersistenceToken` DI token in favor of `ENABLE_PERSISTENCE` |
| 44 | +* Dropped the `PersistenceSettingsToken` DI token in favor of `PERSISTENCE_SETTINGS` |
| 45 | +* Dropped the `FirestoreSettingsToken` DI token in favor of `SETTINGS` |
| 46 | + |
| 47 | +#### `@angular/fire/functions` |
| 48 | + |
| 49 | +* Dropped the `FunctionsRegionToken` and `FUNCTIONS_REGION` DI tokens in favor of `REGION` |
| 50 | +* Dropped the `FUNCTIONS_ORIGIN` DI token in favor of `ORIGIN` |
| 51 | +* `AngularFireFunctions` is now side-effect free and now lazy loads `firebase/functions` when a request is made |
| 52 | +* `AngularFireFunctions` has dropped the `functions` property and instead Proxies the underlying Firebase `functions.Functions` instance |
| 53 | + |
| 54 | +#### `@angular/fire/messaging` |
| 55 | + |
| 56 | +* `AngularFireMessaging`'s dynamic import of `firebase/messaging` is now lazy, if you don't call any methods the SDK will not be loaded |
| 57 | +* `AngularFireMessaging` has dropped the `messaging` property and instead Proxies the underlying Firebase `messaging.Messaging` instance |
| 58 | + |
| 59 | +#### `@angular/fire/performance` |
| 60 | + |
| 61 | +* `AngularFirePerformance` now Proxies the underlying Firebase `messaging.Messaging` instance |
| 62 | + |
| 63 | +#### `@angular/fire/remote-config` |
| 64 | + |
| 65 | +* `AngularFireRemoteConfig` now uses `ensureInitialized()` in it's observables, protecting their value emissions better against race conditions |
| 66 | + |
| 67 | +#### `@angular/fire/storage` |
| 68 | + |
| 69 | +* `AngularFireStorageModule` no longer imports `firebase/storage` on it's own to remain side-effect free, you'll need to `import 'firebase/storage'` on your own |
| 70 | +* Dropped `StorageBucket` DI token in favor of `BUCKET` |
| 71 | + |
1 | 72 | <a name="5.3.0"></a>
|
2 | 73 | # [5.3.0](https://github.com/angular/angularfire2/compare/5.2.3...5.3.0) (2020-01-07)
|
3 | 74 |
|
|
0 commit comments