Skip to content

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

Merged
merged 23 commits into from
Mar 14, 2021
Merged

Build and release Firestore compat #4616

merged 23 commits into from
Mar 14, 2021

Conversation

Feiyang1
Copy link
Member

Changes to facilitate build and publish Firestore compat to npm.

@changeset-bot
Copy link

changeset-bot bot commented Mar 11, 2021

⚠️ No Changeset found

Latest commit: eb657ed

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 11, 2021

Size Analysis Report

Affected Products

Diffs between base commit (c49689b) and head commit (f509f4e) are too large (198,652 characters) to display.

Please check below links to see details from the original test log.

Copy link
Contributor

@schmidt-sebastian schmidt-sebastian left a 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 @@
{
Copy link
Contributor

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).

Copy link
Member Author

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.

Copy link
Contributor

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).

Copy link
Member Author

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';
Copy link
Contributor

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.

@schmidt-sebastian schmidt-sebastian removed their assignment Mar 11, 2021
@Feiyang1 Feiyang1 merged commit 045e4b5 into master Mar 14, 2021
@Feiyang1 Feiyang1 deleted the fei-firestore-compat branch March 14, 2021 06:31
@firebase firebase locked and limited conversation to collaborators Apr 14, 2021
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.

4 participants