Skip to content

Make Converter passing explicit #3171

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 4 commits into from
Jun 8, 2020
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

One of the comments in the Transaction PR was about a missing converter argument. This PR should make these problems go away by no longer allowing undefined.

I also stumbled across a test Firestore that I can use instead of fakeFirestore.

@@ -45,8 +45,8 @@ import { Provider, ComponentContainer } from '@firebase/component';
*/
export const FIRESTORE = new Firestore(
{
projectId: 'projectid',
database: 'database'
projectId: 'test-project',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed so I can get rid of fakeFirestore.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 5, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (0fac7bd) Head (e0648fa) Diff
    browser 252 kB 252 kB +35 B (+0.0%)
    esm2017 195 kB 195 kB +35 B (+0.0%)
    main 494 kB 494 kB +35 B (+0.0%)
    module 249 kB 249 kB +35 B (+0.0%)
  • @firebase/firestore/lite

    Type Base (0fac7bd) Head (e0648fa) Diff
    main 138 kB 138 kB +30 B (+0.0%)
  • @firebase/firestore/memory

    Type Base (0fac7bd) Head (e0648fa) Diff
    browser 192 kB 192 kB +35 B (+0.0%)
    esm2017 149 kB 149 kB +35 B (+0.0%)
    main 370 kB 370 kB +35 B (+0.0%)
    module 190 kB 190 kB +35 B (+0.0%)
  • firebase

    Type Base (0fac7bd) Head (e0648fa) Diff
    firebase-firestore.js 290 kB 290 kB +35 B (+0.0%)
    firebase-firestore.memory.js 232 kB 232 kB +35 B (+0.0%)
    firebase.js 823 kB 823 kB +35 B (+0.0%)

Test Logs

Copy link

@thebrianchen thebrianchen left a comment

Choose a reason for hiding this comment

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

LGTM. Love how this makes code much cleaner and less error-prone.

@schmidt-sebastian schmidt-sebastian merged commit 6651efd into master Jun 8, 2020
@firebase firebase locked and limited conversation to collaborators Jul 9, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/explicit branch July 9, 2020 17:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants