Skip to content

Commit 9eca578

Browse files
authored
chore(release): 7.0.2 (#2911)
1 parent 7875df9 commit 9eca578

40 files changed

+932
-311
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<a name="7.0.2"></a>
2+
# [7.0.2](https://github.com/angular/angularfire2/compare/7.0.1...7.0.2) (2021-08-30)
3+
4+
### Bug fixes
5+
6+
* **types:** `firebase/*` types were not being reexported from the `@angular/fire/*` modules (modular)
7+
18
<a name="7.0.1"></a>
29
# [7.0.1](https://github.com/angular/angularfire2/compare/7.0.0...7.0.1) (2021-08-30)
310

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/fire",
3-
"version": "7.0.1",
3+
"version": "7.0.2",
44
"description": "The official Angular library for Firebase.",
55
"private": true,
66
"scripts": {
@@ -93,6 +93,7 @@
9393
"codelyzer": "^6.0.0",
9494
"concurrently": "^2.2.0",
9595
"conventional-changelog-cli": "^1.2.0",
96+
"file-loader": "^6.2.0",
9697
"firebase-functions-test": "^0.2.2",
9798
"globalthis": "^1.0.1",
9899
"gzip-size": "^5.1.1",

sample-compat/firestore-protos.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

sample-compat/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ global['XMLHttpRequest'] = require('xhr2');
1414
global['WebSocket'] = require('ws');
1515
/* tslint:enable:no-string-literal */
1616

17-
// include the protos required to bundle firestore
18-
// import 'dir-loader!./firestore-protos';
17+
import '@angular/fire/firestore-protos';
1918

2019
// The Express app is exported so that it can be used by serverless Functions.
2120
export function app() {

sample-compat/src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ import { UpboatsComponent } from './upboats/upboats.component';
8888
{ provide: REMOTE_CONFIG_DEFAULTS, useValue: { background_color: 'red' } },
8989
{ provide: USE_DEVICE_LANGUAGE, useValue: true },
9090
{ provide: VAPID_KEY, useValue: environment.vapidKey },
91-
{ provide: SERVICE_WORKER, useFactory: () => typeof navigator !== 'undefined' && navigator.serviceWorker?.register('firebase-messaging-sw.js') || undefined },
91+
{ provide: SERVICE_WORKER, useFactory: () => typeof navigator !== 'undefined' && navigator.serviceWorker?.register('firebase-messaging-sw.js', { scope: '__' }) || undefined },
9292
{ provide: APP_VERSION, useValue: '0.0.0' },
9393
{ provide: APP_NAME, useValue: 'Angular' },
9494
],

sample-compat/src/firebase-messaging-sw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
importScripts('https://www.gstatic.com/firebasejs/9.0.0-20217250818/firebase-app-compat.js');
2-
importScripts('https://www.gstatic.com/firebasejs/9.0.0-20217250818/firebase-messaging-compat.js');
1+
importScripts('https://www.gstatic.com/firebasejs/9.0.1/firebase-app-compat.js');
2+
importScripts('https://www.gstatic.com/firebasejs/9.0.1/firebase-messaging-compat.js');
33

44
firebase.initializeApp({
55
apiKey: 'AIzaSyA7CNE9aHbcSEbt9y03QReJ-Xr0nwKg7Yg',

sample-compat/tsconfig.server.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
},
1111
"files": [
1212
"src/main.server.ts",
13-
"server.ts",
14-
"firestore-protos.ts"
13+
"server.ts"
1514
],
1615
"angularCompilerOptions": {
1716
"entryModule": "./src/app/app.server.module#AppServerModule"

sample-compat/yarn.lock

Lines changed: 105 additions & 86 deletions
Large diffs are not rendered by default.

sample/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@types/express": "^4.17.0",
5050
"@types/jasmine": "~3.6.0",
5151
"@types/node": "^12.11.1",
52+
"file-loader": "^6.2.0",
5253
"firebase-tools": "^9.0.0",
5354
"fuzzy": "^0.1.3",
5455
"inquirer": "^6.2.2",
@@ -71,4 +72,4 @@
7172
"resolutions": {
7273
"webpack": "^5.35.0"
7374
}
74-
}
75+
}

sample/server.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ import { AppServerModule } from './src/main.server';
88
import { APP_BASE_HREF } from '@angular/common';
99
import { existsSync } from 'fs';
1010

11-
// Polyfills
12-
require('cross-fetch/polyfill');
13-
14-
1511
// Polyfill XMLHttpRequest and WS for Firebase
1612
/* tslint:disable:no-string-literal */
1713
global['XMLHttpRequest'] = require('xhr2');
1814
global['WebSocket'] = require('ws');
1915
/* tslint:enable:no-string-literal */
2016

17+
import '@angular/fire/firestore-protos';
18+
2119
// The Express app is exported so that it can be used by serverless Functions.
2220
export function app(): express.Express {
2321
const server = express();

0 commit comments

Comments
 (0)