-
Notifications
You must be signed in to change notification settings - Fork 946
Build and release Firestore compat #4616
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
|
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.
Thanks for doing this. Some thoughts on simplification.
@@ -0,0 +1,10 @@ | |||
{ |
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.
I am wondering if we need this since Firestore Compat is meant to be temporary. I wouldn't be opposed to just including Bundle support by default.
And I also think we should include it in the main API in the near future (once all the size-conscious users have migrated).
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.
Do you remember how large the bundle code is? I'm a little concerned if people migrate to compat and find the size of their app increases significantly (though it could be a motivation for them to migrate to the modular API).
What do you mean by the main API, in v8? I don't think we are going to touch v8 once v9 is published.
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.
Main API - v8.
I think bundles was 30Kb (before gzip).
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.
Removed bundle and memory builds. I think it's reasonable to assume size conscious customers will migrate to the modular SDK, and thus providing bundle/memory builds in the compat layer provides limited value while complicates the build.
import firebase from '@firebase/app-compat'; | ||
import { FirebaseNamespace } from '@firebase/app-types'; | ||
|
||
import { Firestore, MemoryPersistenceProvider } from '../src/api/database'; |
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.
Same thought here - I don't think we need to provide a memory build.
Changes to facilitate build and publish Firestore compat to npm.