-
Notifications
You must be signed in to change notification settings - Fork 927
Remove makeConstructorPrivate #3309
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
Conversation
🦋 Changeset is good to goLatest commit: 83571d2 We got this. This PR includes changesets to release 8 packages
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 |
Binary Size ReportAffected SDKs
Test Logs |
…/firebase-js-sdk into mrschmidt/makeconstructorpublic
@@ -0,0 +1,5 @@ | |||
--- | |||
"@firebase/firestore": patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add "firebase": patch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
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