Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
Merged
merged 1 commit into from
Nov 1, 2021

Conversation

derat
Copy link
Owner

@derat derat commented Oct 26, 2021

I initially tried to go to [email protected], the current
release, but it redoes the way that module imports work. It
seems straightforward to update our code to use the 'compat'
versions of the modules per the instructions at
https://firebase.google.com/docs/web/modular-upgrade, but
the third-party vuefire package doesn't seem to have been
updated yet (vuejs/vuefire#1128)
so we're stuck at version 8 for now.

Also switch from the deprecated @firebase/testing package to
@firebase/rules-unit-testing. Luckily, it seems to be a
drop-in replacement.

@derat derat requested a review from niniane October 26, 2021 23:02
// See https://github.com/firebase/firebaseui-web/issues/293.
let ui = firebaseui.auth.AuthUI.getInstance();
if (!ui) ui = new firebaseui.auth.AuthUI(auth);
Promise.all([getAuth(), getFirebaseUI()]).then(([auth, firebaseui]) => {
Copy link
Owner Author

Choose a reason for hiding this comment

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

prettier changed the indenting, but the only change i made here was to remove the getFirebase() call

// https://stackoverflow.com/q/37369929
credentialHelper: firebaseui.auth.CredentialHelper.NONE,
signInOptions: [
// These correspond to the static variables
Copy link
Owner Author

Choose a reason for hiding this comment

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

i also added this comment and the two strings below

@derat
Copy link
Owner Author

derat commented Nov 1, 2021

this change is totally fucked

I initially tried to go to [email protected], the current
release, but it redoes the way that module imports work. It
seems straightforward to update our code to use the 'compat'
versions of the modules per the instructions at
https://firebase.google.com/docs/web/modular-upgrade, but
the third-party vuefire package doesn't seem to have been
updated yet (vuejs/vuefire#1128)
so we're stuck at version 8 for now.

Also switch from the deprecated @firebase/testing package to
@firebase/rules-unit-testing. Luckily, it seems to be a
drop-in replacement.

To get all of this working, I also ripped out all of the
code I'd written before to asynchronously import Firebase
modules. It made the code way more complicated for what was
probably only a little bit of improvement in loading time,
and I spent a lot of time trying to figure out how to update
it to work with version 8 of the Firebase API before giving
up. Version 9 finally supports tree-shaking, so hopefully
things will get faster again when we're able to upgrade to
it.
@derat
Copy link
Owner Author

derat commented Nov 1, 2021

okay, i guess i got this working :-/

@derat derat merged commit 2c45aa0 into master Nov 1, 2021
@derat derat deleted the update_firebase branch November 1, 2021 23:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant