Skip to content

Commit cd5f171

Browse files
committed
Upgrade ng deps
1 parent cd11b58 commit cd5f171

File tree

4 files changed

+2626
-1296
lines changed

4 files changed

+2626
-1296
lines changed

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
},
4141
"homepage": "https://github.com/angular/angularfire#readme",
4242
"dependencies": {
43-
"@angular-devkit/architect": ">= 0.900 < 0.1200",
44-
"@angular-devkit/core": "^9.0.0 || ^10.0.0 || ^11.0.0",
45-
"@angular-devkit/schematics": "^9.0.0 || ^10.0.0 || ^11.0.0",
46-
"@angular/common": "^9.0.0 || ^10.0.0 || ^11.0.0",
47-
"@angular/compiler": "^9.0.0 || ^10.0.0 || ^11.0.0",
48-
"@angular/core": "^9.0.0 || ^10.0.0 || ^11.0.0",
49-
"@angular/platform-browser": "^9.0.0 || ^10.0.0 || ^11.0.0",
50-
"@angular/platform-browser-dynamic": "^9.0.0 || ^10.0.0 || ^11.0.0",
51-
"@angular/router": "^9.0.0 || ^10.0.0 || ^11.0.0",
43+
"@angular-devkit/architect": "0.1200.0-rc.0",
44+
"@angular-devkit/core": "12.0.0-rc.0",
45+
"@angular-devkit/schematics": "12.0.0-rc.0",
46+
"@angular/common": "12.0.0-rc.0",
47+
"@angular/compiler": "12.0.0-rc.0",
48+
"@angular/core": "12.0.0-rc.0",
49+
"@angular/platform-browser": "12.0.0-rc.0",
50+
"@angular/platform-browser-dynamic": "12.0.0-rc.0",
51+
"@angular/router": "12.0.0-rc.0",
5252
"firebase": "^9.0.0-beta.1",
5353
"firebase-admin": "^8.10.0",
5454
"firebase-functions": "^3.6.0",
@@ -63,7 +63,7 @@
6363
"rxfire": "0.500.0-canary.0df3466",
6464
"rxjs": "^6.5.3",
6565
"semver": "^7.1.3",
66-
"tslib": "^1.10.0 || ^2.0.0",
66+
"tslib": "^2.0.0",
6767
"ws": "^7.2.1",
6868
"xhr2": "^0.1.4",
6969
"zone.js": "0.10.2"
@@ -73,12 +73,12 @@
7373
"utf-8-validate": "^5.0.2"
7474
},
7575
"devDependencies": {
76-
"@angular-devkit/build-angular": ">= 0.900 < 0.1200",
77-
"@angular-devkit/build-ng-packagr": ">= 0.900 < 0.1200",
78-
"@angular/animations": " ^9.0.0 || ^10.0.0 || ^11.0.0",
79-
"@angular/cli": "^9.0.0 || ^10.0.0 || ^11.0.0",
80-
"@angular/compiler-cli": "^9.0.0 || ^10.0.0 || ^11.0.0",
81-
"@angular/platform-server": "^9.0.0 || ^10.0.0 || ^11.0.0",
76+
"@angular-devkit/build-angular": "12.0.0-rc.0",
77+
"@angular-devkit/build-ng-packagr": ">= 0.900 < 0.1300",
78+
"@angular/animations": "12.0.0-rc.0",
79+
"@angular/cli": "12.0.0-rc.0",
80+
"@angular/compiler-cli": "12.0.0-rc.0",
81+
"@angular/platform-server": "12.0.0-rc.0",
8282
"@types/fs-extra": "^7.0.0",
8383
"@types/gzip-size": "^5.1.1",
8484
"@types/inquirer": "^0.0.44",
@@ -119,10 +119,10 @@
119119
"tslint": "~6.1.0",
120120
"ttypescript": "^1.5.12",
121121
"typedoc": "^0.16.4",
122-
"typescript": ">=4.0.0 <4.1.0"
122+
"typescript": ">=4.2.3 <4.3.0"
123123
},
124124
"typings": "index.d.ts",
125125
"resolutions": {
126-
"webpack": "5.4.0"
126+
"webpack": "^5.35.0"
127127
}
128128
}

src/database/database.module.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { NgModule, Optional, NgZone, InjectionToken } from '@angular/core';
22
import { FirebaseDatabase } from 'firebase/database';
3+
import { AUTH_INSTANCES } from '../auth/auth.module';
34

45
import { ɵsmartCacheInstance, ɵfetchCachedInstance } from '../core';
56
import { Database } from './database';
@@ -59,7 +60,9 @@ export function provideDatabase(fn: () => FirebaseDatabase) {
5960
multi: true,
6061
deps: [
6162
NgZone,
62-
[new Optional(), FIREBASE_APPS ]
63+
[new Optional(), FIREBASE_APPS ],
64+
// Database+Auth work better if Auth is loaded first
65+
[new Optional(), AUTH_INSTANCES ],
6366
]
6467
}]
6568
};

src/firestore/firestore.module.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { FirebaseFirestore } from 'firebase/firestore';
44
import { ɵsmartCacheInstance, ɵfetchCachedInstance } from '../core';
55
import { Firestore } from './firestore';
66
import { DEFAULT_APP_NAME, FIREBASE_APPS } from '../app/app.module';
7+
import { AUTH_INSTANCES } from '../auth/auth.module';
78

89
export const FIRESTORE_INSTANCES = new InjectionToken<Firestore[]>('angularfire2.firestore-instances');
910

@@ -59,7 +60,9 @@ export function provideFirestore(fn: () => FirebaseFirestore) {
5960
multi: true,
6061
deps: [
6162
NgZone,
62-
[new Optional(), FIREBASE_APPS ]
63+
[new Optional(), FIREBASE_APPS ],
64+
// Firestore+Auth work better if Auth is loaded first
65+
[new Optional(), AUTH_INSTANCES ],
6366
]
6467
}]
6568
};

0 commit comments

Comments
 (0)