Skip to content

Commit

Permalink
chore(api): Remove old database and auth providers
Browse files Browse the repository at this point in the history
  • Loading branch information
davideast committed Dec 31, 2016
1 parent 37a01e9 commit d422e62
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
12 changes: 1 addition & 11 deletions src/angularfire2.ts
Expand Up @@ -26,7 +26,6 @@ import {
FirebaseSdkAuthBackend,
AngularFireAuth,
firebaseAuthConfig,
FirebaseAuth,
AuthBackend,
AuthMethods,
AuthProviders,
Expand All @@ -37,8 +36,7 @@ import {
FirebaseObjectObservable,
FirebaseListFactory,
FirebaseObjectFactory,
AngularFireDatabase,
FirebaseDatabase
AngularFireDatabase
} from './database/index';

@Injectable()
Expand Down Expand Up @@ -77,10 +75,6 @@ export function _getDefaultFirebase(config){
}

export const COMMON_PROVIDERS: any[] = [
// TODO: Deprecate
{ provide: FirebaseAuth,
useExisting: AngularFireAuth
},
{
provide: FirebaseApp,
useFactory: _getFirebase,
Expand Down Expand Up @@ -135,10 +129,6 @@ export class AngularFireModule {
export {
AngularFireAuth,
AngularFireDatabase,
// TODO: Deprecate
FirebaseAuth,
// TODO: Deprecate
FirebaseDatabase,
FirebaseListObservable,
FirebaseObjectObservable,
FirebaseListFactory,
Expand Down
2 changes: 0 additions & 2 deletions src/auth/auth.ts
Expand Up @@ -185,5 +185,3 @@ function attachCredentialToAuthState (authState: FirebaseAuthState, credential,
authState[stripProviderId(providerId)] = credential;
return authState;
}
// TODO: Deprecate
export class FirebaseAuth extends AngularFireAuth {}
3 changes: 0 additions & 3 deletions src/database/database.ts
Expand Up @@ -29,9 +29,6 @@ export class AngularFireDatabase {
}
}

// TODO: Deprecate
export class FirebaseDatabase extends AngularFireDatabase {}

function getAbsUrl (root:FirebaseAppConfig, url:string) {
if (!(/^[a-z]+:\/\/.*/.test(url))) {
// Provided url is relative.
Expand Down

0 comments on commit d422e62

Please sign in to comment.