-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Discussion: 5.2 release #2086
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
Comments
I'll give it a shot here soon. I'm just waiting on the next Material RC to be compatible with Angular I'll try to take a look at |
Cut |
I lied, couldn't stay away from the computer 😛 After a couple more fixes I'm pretty happy with this, calling it |
Hi, Version info Other (e.g. Ionic/Cordova, Node, browser, operating system): How to reproduce these conditions
Steps to set up and reproduce NgModule looks like: @NgModule({ Factories look like this : export function appInitialization(appConfig: AppConfigService) { export function initializeFirebase(appConfig: AppConfigService) { Sample data and security rules Debug output
** Output from firebase.database().enableLogging(true); ** ** Screenshots ** Actual behavior Expected behavior |
@maximelefort I've made initialization of Another way to do this would be for you to provide Thoughts? |
Actually, if I mark |
Thanks for your reply @jamesdaniels . I think automatic traces without injected I'm sorry, but I didn't understand anything. I'm not an expert of Angular and I'm a bit lost. I don't understand how to provide How can I get |
Hi everyone, About the version, wouldn't it be more consistent if the @angular/fire library would be of the same number of version than @angular ? In our case, it'd be version 8. Because for now we would have: None of these versions match. As the library is @angular/fire it would make more sense to give it v8 (following angular versions) than following firebase versions. Is it not too late for this ? What do you think ? |
@johanchouquet the main concern for that would be our major/minor cycles would be offset from Angular; as Cloud Next, Google I/O, and Firebase Summit are when we introduce new things for Firebase. If we stuck with semver then we'd either have to hold back a release for a number of months or increment much faster than either. TBH the latter is what I expected to happen but we've been fortunate that our dependant API surface hasn't changed. So we've been able to add support for both major versions of Firebase and Angular in minors. I don't expect that to be the case for much longer. |
I am hoping I messed something up on my end, but after installing 5.2.0-rc1, I am getting errors just from piping off of In my service:
Typescript yells at me right away with a squiggly under the
Both I just created this project today with the latest everything - "@angular/cli": "~7.3.3", Happy to provide any other details - before I upgraded to 5.2 RC1, I was running angularfire @ 5.1.3, which caused this issue when I tried to implement Universal. |
@inorganik what version of Typescript? We added options and some more advanced typings to valuechanges, which might explain it. Does snapshotchanges throw a similar error? |
Typescript 3.4.5, which ships with the latest VScode. Yep, snapshotChanges() throws the same thing. |
Ah that’s probably it. We’re still targeting Typescript < 3.2 since we’re compatible with NG 6. Let me poke around and see what I can do... at the very least we should be forward compatible with a minor. |
@inorganik I've got the same issue when I wanted to update rxjs to v6.5.2. |
Everything is looking good with the RC for me (https://twitter.com/Splaktar/status/1133449910165155840) along with Angular version 8 Other than Firebase Performance and Hosting, this app isn't using much yet in production, but I did try out Firebase Auth with it in a dev branch and that looked good. I didn't try one of the new Auth Guards yet though. Trying |
I tried adding this to a project that already had AngularFire installed. I was hoping that it would add the deploy target to my project: $ ng add @angular/fire
Skipping installation: Package already installed
? Please select a project: angular-latino (angular-hispano)
firebaseJson.hosting.find is not a function My existing {
"hosting": {
"public": "dist/web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"appAssociation": "AUTO",
"rewrites": [
{
"source": "/enlaces/**",
"dynamicLinks": true
},
{
"source": "**",
"destination": "/index.html"
}
]
}
} |
Hi @Splaktar try with @angular/fire@next. |
@victorfrl I tried |
@Splaktar I've seen that too for projects that already have a firebase.json, I'll look into this. |
Interesting that it seems to be the RXJS version, thanks for hunting that down @maximelefort. I'll look into this in a couple hours. |
Fine by me, it was just an idea. I understand that versions should reflect changes of APIs if necessary. |
Is 5.2 the first version to support Firebase 6? I don't know how feasible it is to follow the Firebase release cadence, but it's nice to know what version supports what. Angular seems to have fewer and fewer breaking changes in their major releases, but Firebase versions change a lot of things. I had to keep trying different combinations of versions of Firebase and AngularFire to find the ones that matched. No biggy though, just something to consider. @maximelefort as I mentioned in my post I'm using 6.3.3 - which what ships with Angular 7.2. Turns out the issue was caused by a newer version of Typescript (3.4.5) - VScode was not using the version in my package.json. |
Updating to this version, from 5.1.3, now using: I'm getting quite a few compilation errors all along the lines of: I did try reverting to typescript 3.1.6 just in case, but as expected made no difference. |
Hey all, just cut I've reworked the dependencies that were brought in for the schematics into peers. That way there shouldn't be any conflicts. When you Further I simplified the sub-module's Let me know how this is looking! |
Confirming that the rxjs errors have been eliminated with this release. Way to go James. Thanks for your hard work on this!! |
@markgoho awesome to hear! Thanks for the quick validation 😄 |
@inorganik this is the first version to support Firebase v6, correct. |
FYI @Splaktar I've made the I'll probably add a prompt in a later release, maybe something like this:
|
@jamesdaniels OK, that went a lot smoother, thank you! |
FYI I just cut |
I'm feeling good, will release shortly unless anyone runs into any regressions. |
5.2.0-rc.3 runs without problems here on two apps at the moment. |
@jamesdaniels |
@chrste90 I def think there is, however I am currently on the other side of the world from my Windows laptop ;) won't be back in San Francisco for another week and a half. Happy to accept a PR. |
@jamesdaniels Not sure how the best fix could look like, but the problems seems to be that the path in |
|
@jamesdaniels, I'm still stuck with my runtime config when I import AngularFirePerformanceModule. Configuration load and firebase initialization are done in parallels so the config isn't loaded when AngularfireModule try to init : stackblitz here
I tried to provide |
@chrste90, would you open an issue for #2086 (comment)? @kirjs and I will look at it. |
Oh yes, i was not sure about it, so i created it in this repo, but i can create a new one in the cli repo if necessary. |
This repo is fine, thanks! |
Hey all, figured I'd open an issue which could serve as a catch all for the 5.2 release and any issues people are having with the beta.
Release Candidate 3 is the most current on
@angular/fire@next
. We're aiming to release the week of June 27th, roughly aligning with the Angular 8 release.Feel free to chime in.
Changelog
AngularFire 5.2 introduces support for Angular 8 and version 6 of the Firebase SDK.
Bug Fixes
AngularFireMessaging
to be included in a server build (#1938) (9b870a9)Features
AngularFirestoreCollection
's.doc
is optional (#1974) (c2354f8)The text was updated successfully, but these errors were encountered: