Skip to content

Make loadBundle work with exp build #3488

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 2 commits into from
Jul 28, 2020
Merged

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Jul 27, 2020

Note in exp/src/api/database.ts and shim.ts the diff is based on some hacks I pushed to wuandy/Bundles.

@changeset-bot
Copy link

changeset-bot bot commented Jul 27, 2020

💥 No Changeset

Latest commit: 8baf8fc

Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂

If these changes should be published to npm, 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 Jul 27, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (a9bf16c) Head (5e716fa) Diff
    browser 256 kB 256 kB +1 B (+0.0%)
    esm2017 201 kB 201 kB +3 B (+0.0%)
    main 488 kB 488 kB +39 B (+0.0%)
    module 254 kB 254 kB +1 B (+0.0%)
    react-native 201 kB 201 kB +3 B (+0.0%)
  • @firebase/firestore/exp

    Type Base (a9bf16c) Head (5e716fa) Diff
    browser 195 kB 195 kB +43 B (+0.0%)
    main 530 kB 530 kB +246 B (+0.0%)
    react-native 195 kB 195 kB +43 B (+0.0%)
  • @firebase/firestore/lite

    Type Base (a9bf16c) Head (5e716fa) Diff
    main 516 kB 516 kB +39 B (+0.0%)
  • @firebase/firestore/memory

    Type Base (a9bf16c) Head (5e716fa) Diff
    browser 195 kB 195 kB +1 B (+0.0%)
    esm2017 153 kB 153 kB +3 B (+0.0%)
    main 364 kB 364 kB +39 B (+0.0%)
    module 193 kB 193 kB +1 B (+0.0%)
    react-native 153 kB 153 kB +3 B (+0.0%)
  • firebase

    Type Base (a9bf16c) Head (5e716fa) Diff
    firebase-firestore.js 294 kB 294 kB +1 B (+0.0%)
    firebase-firestore.memory.js 234 kB 234 kB +1 B (+0.0%)
    firebase.js 828 kB 828 kB +1 B (+0.0%)

Test Logs

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.

Looks great!

@@ -168,7 +169,7 @@ export class FirebaseFirestore implements legacy.FirebaseFirestore {

loadBundle(
bundleData: ArrayBuffer | ReadableStream<Uint8Array> | string
): legacy.LoadBundleTask {
): LoadBundleTask {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should return the legacy Task (all APIs return the legacy type), even though it is for now the same.

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.

@wu-hui wu-hui merged commit 8b8a097 into wuandy/Bundles Jul 28, 2020
@firebase firebase locked and limited conversation to collaborators Aug 28, 2020
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.

3 participants