Skip to content
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

Remove makeConstructorPrivate #3309

Merged
merged 5 commits into from
Jun 26, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Jun 26, 2020

The makeConstructorPrivate pattern is used in the SDK to prevent JS SDK users from constructing our internal types. This pattern is unique to Firestore, but seems to break in subtle and not so subtle ways that we currently cannot catch in CI (due to missing Saucelabs tests). Instead of iterating on this pattern, we decided to remove it altogether, which also adds a little bit of tree-shakeability to our current SKD (but probably only for users of Blob).

Fixes #3305

@changeset-bot
Copy link

changeset-bot bot commented Jun 26, 2020

🦋 Changeset is good to go

Latest commit: 83571d2

We got this.

This PR includes changesets to release 8 packages
Name Type
firebase Patch
@firebase/firestore Patch
@firebase/testing Patch
firebase-browserify-test Patch
firebase-package-typings-test Patch
firebase-messaging-selenium-test Patch
firebase-typescript-test Patch
firebase-webpack-test Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 26, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (8e0c036) Head (552b8e5) Diff
    browser 248 kB 248 kB -602 B (-0.2%)
    esm2017 194 kB 193 kB -508 B (-0.3%)
    main 494 kB 492 kB -1.31 kB (-0.3%)
    module 246 kB 245 kB -602 B (-0.2%)
  • @firebase/firestore/exp

    Type Base (8e0c036) Head (552b8e5) Diff
    main 37.4 kB 37.5 kB +130 B (+0.3%)
  • @firebase/firestore/lite

    Type Base (8e0c036) Head (552b8e5) Diff
    main 140 kB 140 kB +293 B (+0.2%)
  • @firebase/firestore/memory

    Type Base (8e0c036) Head (552b8e5) Diff
    browser 186 kB 185 kB -602 B (-0.3%)
    esm2017 145 kB 144 kB -508 B (-0.4%)
    main 363 kB 362 kB -1.31 kB (-0.4%)
    module 184 kB 184 kB -602 B (-0.3%)
  • firebase

    Type Base (8e0c036) Head (552b8e5) Diff
    firebase-firestore.js 287 kB 286 kB -605 B (-0.2%)
    firebase-firestore.memory.js 226 kB 225 kB -605 B (-0.3%)
    firebase.js 820 kB 819 kB -605 B (-0.1%)

Test Logs

@@ -0,0 +1,5 @@
---
"@firebase/firestore": patch
Copy link
Member

Choose a reason for hiding this comment

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

Please add "firebase": patch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

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.

IE11 error message on Firebase SDK 7.15.5
3 participants