Skip to content

chore(): lean only on firebase types and compatibility with 5.0.4 - #1729

Merged
davideast merged 2 commits into
masterfrom
504_and_type_fixes
Jun 20, 2018
Merged

chore(): lean only on firebase types and compatibility with 5.0.4#1729
davideast merged 2 commits into
masterfrom
504_and_type_fixes

Conversation

@jamesdaniels

@jamesdaniels jamesdaniels commented Jun 13, 2018

Copy link
Copy Markdown
Contributor

Checklist

  • Issue number for this PR: Angular 6 SSR build issue #1705
  • Docs included?: n/a
  • Test units included?: yes
  • In a clean directory, yarn install, yarn test run successfully? yes

Description

  • Was mistakenly using types exported from firebase/* which are pulled in from @firebase/*-types hence unstable, now using the more verbose but public firebase types
  • Similarly importing apps and initializeApp from firebase/app is reaching through to @firebase/app which isn't stable (and the exports aren't available in all the entry-points). Again here use the public firebase.apps and firebase.initializeApp. Angular 6 SSR build issue #1705
  • Sprinkled some <any>s in there to make our build green, rather than rehauling our types due to the breaks in 5.0.4.

Added a 5.0.0-rc.11 changelog entry and updated the package.json so I can tag + cut immediately once approved.

@jamesdaniels
jamesdaniels requested a review from davideast June 13, 2018 23:24
@jamesdaniels

Copy link
Copy Markdown
Contributor Author

@davideast going to check on more regressions with SSR + put a test in; may have some follow on commits w/ changelog entries on this PR. That said, it seems a low risk bump that I want to get out ASAP due to 5.0.4, so I'll see what I get done before you have a chance to review.

Sorry for the delay here.

@hiepxanh

hiepxanh commented Jun 14, 2018

Copy link
Copy Markdown
Contributor

can you check this error out sir ? maybe we can make an small update for this error in 5.0-RC-11 too. the firebase make some update and that logger tell me to update code because Firestore (5.0.4) have breaking changes. Is that the problem for that issue above?

@yharaskrik

Copy link
Copy Markdown
Contributor

Wondering what the status is on this commit. My application does not serve and this commit seems to have fixed the issue.

@davideast davideast left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@davideast
davideast merged commit 30db0aa into master Jun 20, 2018
@davideast
davideast deleted the 504_and_type_fixes branch June 20, 2018 11:31
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.

5 participants