Skip to content

Fix for #1385 that was caused by firebase releasing 4.8.1 #1386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 26, 2017

Conversation

myspivey
Copy link
Contributor

Checklist

Description

With #334 from firebase-js-sdk being released in 4.8.1, this breaks the imports for angularfire2. This commit resolves that by updating to the new typings that were released in 4.8.1. I did not bump the package version for firebase to above 4.8.1 but since this is not a backwards compatible change that might be important to do. There was also a name collision with FirebaseApp so I choose to cast the upstream to FBApp until the proper solution can be determined. Let me know if there are any issues with the solution and I will address them! Thanks for your consideration.

@@ -1,6 +1,4 @@
import { NgModule, NgZone } from '@angular/core';
import * as firebase from 'firebase/app';
import 'firebase/auth';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it better using scoped one?

import  '@firebase/auth';
// ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am confused. This is simply a removal as it was not being used here. I did not add back any imports, only removed.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my bad. Sorry, I think I need some coffee.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, I feel ya. Been up since 7am yesterday (now 1pm). I am seeing cross eyed so I really was not sure if I was missing something!

@jamesdaniels
Copy link
Member

@myspivey thanks so much for your work here! I'm coming up on xmas vacation but will try to get a review in here ASAP + merge before the holiday if I can.

@jamesdaniels jamesdaniels self-assigned this Dec 19, 2017
@jwuliger
Copy link

Please merge, pretty please?

@davideast
Copy link
Collaborator

Just did a review and it looks great. Huge kudos to @myspivey for saving the day.

@davideast davideast merged commit a13bf9b into angular:master Dec 26, 2017
@Splaktar
Copy link
Contributor

Splaktar commented Jan 3, 2018

Would love to see this in an RC release ASAP :) Thank you @myspivey!

I tried the 5.0.0-rc.5-next release but it didn't work with firebase 4.8.1.

@Megabytemb
Copy link

For anyone who's looking to test their code without building angularfire2 manually, i've pushed the new build to a github repo. You can install with npm install --save github:megabytemb/angularfire2-builds

Make sure you change your package.json back to the official angularfire2 repo when its released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants