Skip to content

Commit

Permalink
chore(release): Release candidate (#2894)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels authored Aug 19, 2021
1 parent 05d6014 commit b86bae7
Show file tree
Hide file tree
Showing 21 changed files with 680 additions and 875 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
id: node_modules_cache
with:
path: ./node_modules
key: ${{ runner.os }}-14-beta-node_modules-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-14-next-node_modules-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-14-beta-node_modules-
${{ runner.os }}-14-next-node_modules-
${{ runner.os }}-14-node_modules-
- name: Yarn offline cache
if: steps.node_modules_cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
strategy:
matrix:
node: ["12", "14", "16"]
firebase: ["beta"]
firebase: ["next"]
fail-fast: false
name: Test firebase@${{ matrix.firebase }} on Node.js ${{ matrix.node }}
steps:
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
name: Test firebase@${{ matrix.firebase }} on ${{ matrix.browser }}
strategy:
matrix:
firebase: ["beta"]
firebase: ["next"]
browser: ["chrome", "firefox"]
fail-fast: false
steps:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@angular/platform-browser": "^12.0.0",
"@angular/platform-browser-dynamic": "^12.0.0",
"@angular/router": "^12.0.0",
"firebase": "9.0.0-beta.8",
"firebase": "9.0.0-202171919375",
"firebase-admin": "^8.10.0",
"firebase-functions": "^3.6.0",
"firebase-tools": "^8.0.0 || ^9.0.0",
Expand All @@ -63,7 +63,7 @@
"inquirer-autocomplete-prompt": "^1.0.1",
"jsonc-parser": "^3.0.0",
"open": "^7.0.3",
"rxfire": "6.0.0-canary.92c6c26",
"rxfire": "6.0.0-rc.0",
"rxjs": "~6.6.0",
"semver": "^7.1.3",
"tslib": "^2.1.0",
Expand Down
6 changes: 3 additions & 3 deletions sample-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"@angular/router": "~12.2.2",
"@angular/service-worker": "~12.2.2",
"core-js": "^3.6.5",
"firebase": "^9.0.0-beta.8",
"rxfire": "6.0.0-canary.92c6c26",
"firebase": "9.0.0-202171919375",
"first-input-delay": "^0.1.3",
"proxy-polyfill": "^0.3.2",
"rxfire": "6.0.0-rc.0",
"rxjs": "~6.6.0",
"tslib": "^2.1.0",
"whatwg-fetch": "^3.4.1",
Expand Down Expand Up @@ -73,4 +73,4 @@
"typescript": "~4.2.3",
"webpack-bundle-analyzer": "^4.4.1"
}
}
}
475 changes: 196 additions & 279 deletions sample-compat/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"@angular/platform-browser": "^12.0.0",
"@angular/platform-browser-dynamic": "^12.0.0",
"@angular/router": "^12.0.0",
"firebase": "9.0.0-beta.8",
"firebase": "9.0.0-202171919375",
"lodash.isequal": "^4.5.0",
"rxfire": "6.0.0-canary.92c6c26",
"rxfire": "6.0.0-rc.0",
"rxjs": "~6.6.0",
"tslib": "^2.1.0",
"zone.js": "~0.11.4"
Expand Down
49 changes: 40 additions & 9 deletions sample/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import { ApplicationRef, Component, NgZone } from '@angular/core';
import { FirebaseApp, FirebaseApps } from '@angular/fire/app';
import { Auth, AuthInstances, authState } from '@angular/fire/auth';
import { Firestore, FirestoreInstances, getDoc, doc, DocumentSnapshot } from '@angular/fire/firestore/lite';
import { Firestore as FirestoreLite, FirestoreInstances as FirestoreLiteInstances, getDoc, doc, DocumentSnapshot } from '@angular/fire/firestore/lite';
import { Firestore, FirestoreInstances } from '@angular/fire/firestore';
import { DocumentData } from 'rxfire/firestore/lite/interfaces';
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
import { Storage, StorageInstances } from '@angular/fire/storage';
import { Messaging, MessagingInstances } from '@angular/fire/messaging';
import { RemoteConfig, RemoteConfigInstances } from '@angular/fire/remote-config';
import { Functions, FunctionsInstances } from '@angular/fire/functions';
import { Database, DatabaseInstances } from '@angular/fire/database';
import { Analytics, AnalyticsInstances } from '@angular/fire/analytics';
import { Performance, PerformanceInstances } from '@angular/fire/performance';

@Component({
selector: 'app-root',
Expand All @@ -17,19 +25,42 @@ export class AppComponent {
myDocData: Promise<DocumentSnapshot<DocumentData>>;
title = 'sample';
constructor(
public app: FirebaseApp, // default Firebase App
public auth: Auth, // default Firbase Auth
public apps: FirebaseApps, // all initialized App instances
public authInstances: AuthInstances, // all initialized Auth instances
public firestore: Firestore,
public firestoreInstances: FirestoreInstances,
app: FirebaseApp, // default Firebase App
auth: Auth, // default Firbase Auth
apps: FirebaseApps, // all initialized App instances
authInstances: AuthInstances, // all initialized Auth instances
firestoreLite: FirestoreLite,
firestoreLiteInstances: FirestoreLiteInstances,
firestore: Firestore,
firestoreInstances: FirestoreInstances,
storage: Storage,
storageInstances: StorageInstances,
messaging: Messaging,
messagingInstances: MessagingInstances,
remoteConfig: RemoteConfig,
remoteConfigInstances: RemoteConfigInstances,
functions: Functions,
functionsInstances: FunctionsInstances,
database: Database,
databaseInstances: DatabaseInstances,
analytics: Analytics,
analyticsInstances: AnalyticsInstances,
performance: Performance,
performanceInstances: PerformanceInstances,
appRef: ApplicationRef,
zone: NgZone,
) {
console.log({app, auth, apps, authInstances, firestore, firestoreInstances });
console.log({
app, auth, apps, authInstances, firestore, firestoreInstances,
firestoreLite, firestoreLiteInstances, storage, storageInstances,
messaging, messagingInstances, performance, performanceInstances,
analytics, analyticsInstances, functions, functionsInstances, database,
databaseInstances, remoteConfig, remoteConfigInstances
});
authState(auth).subscribe(it => console.log('authState', it));
appRef.isStable.pipe(distinctUntilChanged()).subscribe(it => console.log('isStable', it));
this.myDocData = getDoc(doc(firestore, 'animals/NJdGQCv1P92SWsp4nSE7'));
this.myDocData = getDoc(doc(firestoreLite, 'animals/NJdGQCv1P92SWsp4nSE7'));
console.log((app as any).container);
// firestoreInstance$.subscribe(it => console.log('$', it));
// initializeFirestore$.subscribe(it => console.log('init', it));
}
Expand Down
24 changes: 22 additions & 2 deletions sample/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@ import { provideAuth, initializeAuth } from '@angular/fire/auth';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { environment } from '../environments/environment';
import { provideFirestore, getFirestore } from '@angular/fire/firestore/lite';
import { provideFirestore as provideFirestoreLite, getFirestore as getFirestoreLite } from '@angular/fire/firestore/lite';
import { getFirestore, provideFirestore } from '@angular/fire/firestore';
import { getMessaging, provideMessaging } from '@angular/fire/messaging';
import { getRemoteConfig, provideRemoteConfig } from '@angular/fire/remote-config';
import { getStorage, provideStorage } from '@angular/fire/storage';
import { getAnalytics, provideAnalytics } from '@angular/fire/analytics';
import { getDatabase, provideDatabase } from '@angular/fire/database';
import { getPerformance, providePerformance } from '@angular/fire/performance';
import { getFunctions, provideFunctions } from '@angular/fire/functions';

@NgModule({
declarations: [
Expand All @@ -14,14 +22,26 @@ import { provideFirestore, getFirestore } from '@angular/fire/firestore/lite';
imports: [
BrowserModule,
AppRoutingModule,
provideFirebaseApp(() => initializeApp(environment.firebase)),
provideFirebaseApp(() => {
const app = initializeApp(environment.firebase);
console.log(app);
return app;
}),
provideFirebaseApp(() => {
const app = initializeApp(environment.firebase, 'second');
app.automaticDataCollectionEnabled = false;
return app;
}),
provideAuth(() => initializeAuth(getApp())),
provideFirestore(() => getFirestore()),
provideFirestoreLite(() => getFirestoreLite()),
provideDatabase(() => getDatabase()),
provideRemoteConfig(() => getRemoteConfig()),
provideStorage(() => getStorage()),
provideAnalytics(() => getAnalytics()),
provideMessaging(() => getMessaging()),
providePerformance(() => getPerformance()),
provideFunctions(() => getFunctions()),
],
providers: [ ],
bootstrap: [AppComponent]
Expand Down
Loading

0 comments on commit b86bae7

Please sign in to comment.