Skip to content

Commit 659165e

Browse files
committed
SEMVER notes on the DI tokens
1 parent 5955925 commit 659165e

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/core/angularfire2.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { isPlatformServer } from '@angular/common';
33
import { Observable, Subscription, queueScheduler as queue } from 'rxjs';
44

55
// Put in database.ts when we drop database-depreciated
6+
// SEMVER drop RealtimeDatabaseURL in favor of DATABASE_URL in next major
67
export const RealtimeDatabaseURL = new InjectionToken<string>('angularfire2.realtimeDatabaseURL');
78
export const DATABASE_URL = RealtimeDatabaseURL;
89

src/core/firebase.app.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import firebase from 'firebase/app'; // once fixed can pull in as "default as fi
77
export type FirebaseOptions = {[key:string]: any};
88
export type FirebaseAppConfig = {[key:string]: any};
99

10+
// SEMVER drop FirebaseOptionsToken and FirebaseNameOrConfigToken in favor of FIREBASE_OPTIONS and FIREBASE_APP_NAME in next major
1011
export const FirebaseOptionsToken = new InjectionToken<FirebaseOptions>('angularfire2.app.options');
1112
export const FirebaseNameOrConfigToken = new InjectionToken<string|FirebaseAppConfig|undefined>('angularfire2.app.nameOrConfig');
1213

src/firestore/firestore.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import firebase from 'firebase/app';
1717
// SEMVER: have to import here while we target ng 6, as the version of typescript doesn't allow dynamic import of types
1818
import { firestore } from 'firebase/app';
1919

20+
// SEMVER drop EnablePersistenceToken, PersistenceSettingsToken, and FirestoreSettingsToken in favor of new export names
2021
/**
2122
* The value of this token determines whether or not the firestore will have persistance enabled
2223
*/
@@ -28,6 +29,7 @@ export const ENABLE_PERSISTENCE = EnablePersistenceToken;
2829
export const PERSISTENCE_SETTINGS = PersistenceSettingsToken
2930
export const FIRESTORE_SETTINGS = FirestoreSettingsToken;
3031

32+
// SEMVER kill this in the next major
3133
// timestampsInSnapshots was depreciated in 5.8.0
3234
const major = parseInt(firebase.SDK_VERSION.split('.')[0]);
3335
const minor = parseInt(firebase.SDK_VERSION.split('.')[1]);

src/storage/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { FirebaseStorage, FirebaseOptions, FirebaseAppConfig, FirebaseZoneSchedu
66

77
import { UploadMetadata } from './interfaces';
88

9+
// SEMVER drop StorageBucket in favor of STORAGE_BUCKET
910
export const StorageBucket = new InjectionToken<string>('angularfire2.storageBucket');
10-
1111
export const STORAGE_BUCKET = StorageBucket;
1212

1313
/**

0 commit comments

Comments
 (0)