Skip to content

Commit 338da72

Browse files
authored
chore(release): Release v7 (#2898)
1 parent fc4a1f4 commit 338da72

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+3741
-992
lines changed

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
id: node_modules_cache
3030
with:
3131
path: ./node_modules
32-
key: ${{ runner.os }}-14-next-node_modules-${{ hashFiles('yarn.lock') }}
32+
key: ${{ runner.os }}-14-9-node_modules-${{ hashFiles('yarn.lock') }}
3333
restore-keys: |
34-
${{ runner.os }}-14-next-node_modules-
34+
${{ runner.os }}-14-9-node_modules-
3535
${{ runner.os }}-14-node_modules-
3636
- name: Yarn offline cache
3737
if: steps.node_modules_cache.outputs.cache-hit != 'true'
@@ -62,7 +62,7 @@ jobs:
6262
strategy:
6363
matrix:
6464
node: ["12", "14", "16"]
65-
firebase: ["next"]
65+
firebase: ["9"]
6666
fail-fast: false
6767
name: Test firebase@${{ matrix.firebase }} on Node.js ${{ matrix.node }}
6868
steps:
@@ -113,7 +113,7 @@ jobs:
113113
name: Test firebase@${{ matrix.firebase }} on ${{ matrix.browser }}
114114
strategy:
115115
matrix:
116-
firebase: ["next"]
116+
firebase: ["9"]
117117
browser: ["chrome", "firefox"]
118118
fail-fast: false
119119
steps:

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
<a name="7.0.0"></a>
2+
# [7.0.0](https://github.com/angular/angularfire2/compare/6.1.5...7.0.0) (2021-08-25)
3+
4+
### Breaking changes
5+
6+
* Angular 12 is required
7+
* AngularFire now only works in Ivy applications
8+
* Firebase JS SDK v9 is required
9+
* The existing AngularFire v6 API surface has moved from `@angular/fire/*` to `@angular/fire/compat/*` (see compatibility mode)
10+
* New modular API surface available at `@angular/fire/*`
11+
* Various cleanup
12+
13+
[See the v7 upgrade guide for more information.](https://github.com/angular/angularfire/blob/master/docs/version-7-upgrade.md)
14+
115
<a name="6.1.5"></a>
216
# [6.1.5](https://github.com/angular/angularfire/compare/6.1.4...6.1.5) (2021-05-17)
317

README.md

+24-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# AngularFire
22
The official [Angular](https://angular.io/) library for [Firebase](https://firebase.google.com/).
33

4-
<strong><pre>ng add @angular/fire@next</pre></strong>
4+
<strong><pre>ng add @angular/fire</pre></strong>
55

66
AngularFire smooths over the rough edges an Angular developer might encounter when implementing the framework-agnostic [Firebase JS SDK](https://github.com/firebase/firebase-js-sdk) & aims to provide a more natural developer experience by conforming to Angular conventions.
77

@@ -14,21 +14,27 @@ AngularFire smooths over the rough edges an Angular developer might encounter wh
1414
- **Google Analytics** - Zero-effort Angular Router awareness in Google Analytics
1515
- **Router Guards** - Guard your Angular routes with built-in Firebase Authentication checks
1616

17-
---
18-
19-
> **WARNING**: This branch is the work in progress for version 7 of AngularFire. [You can find version 6 here](https://github.com/angular/angularfire/tree/v6), if you're looking for documentation or to contribute to stable.
20-
21-
---
22-
2317
## Example use
2418

2519
```ts
26-
import { Component } from '@angular/core';
20+
import { provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
21+
import { getFirestore, provideFirestore } from '@angular/fire/firestore';
22+
23+
@NgModule({
24+
imports: [
25+
provideFirebaseApp(() => initializeApp({ ... })),
26+
provideFirestore(() => getFirestore()),
27+
],
28+
...
29+
})
30+
export class AppModule { }
31+
```
32+
33+
```ts
2734
import { Firestore, collectionData, collection } from '@angular/fire/firestore';
2835
import { Observable } from 'rxjs';
2936

3037
interface Item {
31-
id: string,
3238
name: string,
3339
...
3440
};
@@ -43,11 +49,11 @@ interface Item {
4349
</ul>
4450
`
4551
})
46-
export class MyApp {
52+
export class AppComponent {
4753
item$: Observable<Item[]>;
4854
constructor(firestore: Firestore) {
4955
const collection = collection(firestore, 'items');
50-
this.item$ = collectionData(collection, 'id');
56+
this.item$ = collectionData(collection);
5157
}
5258
}
5359
```
@@ -60,7 +66,7 @@ AngularFire doesn't follow Angular's versioning as Firebase also has breaking ch
6066

6167
| Angular | Firebase | AngularFire |
6268
| --------|----------|--------------|
63-
| 12 | [9 <sup>beta</sup>](https://firebase.google.com/docs/web/learn-more#modular-version) | ^7.0 <sup>beta</sup> |
69+
| 12 | 9 | ^7.0 |
6470
| 12 | 7,8 | ^6.1.5 |
6571
| 11 | 7,8 | ^6.1 |
6672
| 10 | 8 | ^6.0.4 |
@@ -100,7 +106,11 @@ Neither AngularFire or Firebase ship with polyfills. To have compatability acros
100106
101107
## Developer Guide
102108

103-
### **NEW:** Monitor usage of your application in production
109+
AngularFire has a new tree-shakable API, however this is still under active development and documentation is in the works, so we suggest most developers stick with the Compatiability API for the time being. [See the v7 upgrade guide for more information.](docs/version-7-upgrade.md).
110+
111+
This developer guide assumes you're using the Compatiability API (`@angular/fire/compat/*`).
112+
113+
### Monitor usage of your application in production
104114

105115
> `AngularFireAnalytics` provides a convenient method of interacting with Google Analytics in your Angular application. The provided `ScreenTrackingService` and `UserTrackingService` automatically log events when you're using the Angular Router or Firebase Authentication respectively. [Learn more about Google Analytics](https://firebase.google.com/docs/analytics).
106116
@@ -150,7 +160,7 @@ Firebase offers two cloud-based, client-accessible database solutions that suppo
150160
151161
- [Getting started with Remote Config](docs/remote-config/getting-started.md)
152162

153-
### **NEW:** Monitor your application performance in production
163+
### Monitor your application performance in production
154164

155165
> Firebase Performance Monitoring is a service that helps you to gain insight into the performance characteristics of your iOS, Android, and web apps. [Learn more about Performance Monitoring](https://firebase.google.com/docs/perf-mon).
156166

docs/deploy/getting-started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In this guide, we'll look at how to use `@angular/fire` to automatically deploy
1111
First, you need to add the `@angular/fire` package to your project. In your Angular CLI project run:
1212

1313
```shell
14-
ng add @angular/fire@next
14+
ng add @angular/fire
1515
```
1616

1717
*Note that the command above assumes you have global Angular CLI installed. To install Angular CLI globally run `npm i -g @angular/cli`.*
@@ -53,7 +53,7 @@ In the end, your `angular.json` project will look like below:
5353
If you want to add deployment capabilities to a different project in your workspace, you can run:
5454

5555
```
56-
ng add @angular/fire@next --project=[PROJECT_NAME]
56+
ng add @angular/fire --project=[PROJECT_NAME]
5757
```
5858

5959
## Step 2: deploying the project

docs/install-and-setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The Angular CLI's `new` command will set up the latest Angular build in a new pr
1313
### 2. Install AngularFire and Firebase
1414

1515
```bash
16-
ng add @angular/fire@next
16+
ng add @angular/fire
1717
```
1818

1919
Now that you have a new project setup, install AngularFire and Firebase from npm.

0 commit comments

Comments
 (0)