Skip to content

Roll bundle with prebuilt #4128

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 18 commits into from
Dec 4, 2020

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Nov 28, 2020

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 28, 2020

⚠️ No Changeset found

Latest commit: 32b86c7

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

@wu-hui wu-hui changed the base branch from master to wuandy/BundleSourceRearrange November 28, 2020 01:52
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 28, 2020

Size Analysis Report

Affected Products

No changes between base commit (cc8dd9c) and head commit (28120e7).

Test Logs

}
]
}),
...util.es2017Plugins('browser', /* mangled= */ false)
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 be mangled.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed offline, this should be false.

}
],
plugins: util.es2017ToEs5Plugins(),
external: util.resolveNodeExterns,
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 be resolveBrowserExterns.

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.

}
]
}),
...util.es2017Plugins('rn', /* mangled= */ false)
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 be mangled.

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as browser build, this should be false.

wu-hui and others added 7 commits November 30, 2020 20:19
* Split up firestore and firestore-memory build

We need to verify that the Node build still works

* Fix sebstian's memory build my separating it further..

* To mangle or not to mangle.

* Add the missing return!

Co-authored-by: Sebastian Schmidt <[email protected]>
@wu-hui wu-hui changed the base branch from wuandy/BundleSourceRearrange to wuandy/ReleaseBundles December 3, 2020 14:38
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.

Last round, but basically LGTM

@@ -26,15 +25,8 @@ import { SnapshotVersion } from './snapshot_version';
* Represents a Firestore bundle saved by the SDK in its local storage.
*/
export interface Bundle {
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add back.

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.

readonly id: string;

/** Schema version of the bundle. */
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add back.

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.

readonly version: number;

Copy link
Contributor

Choose a reason for hiding this comment

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

Please add back.

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.

@@ -46,9 +38,7 @@ export interface Bundle {
* Represents a Query saved by the SDK in its local storage.
*/
export interface NamedQuery {
/** The name of the query. */
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add back.

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.

readonly name: string;
/** The underlying query associated with `name`. */
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add back.

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.

@schmidt-sebastian schmidt-sebastian removed their assignment Dec 3, 2020
@wu-hui wu-hui merged commit a5b8d3a into wuandy/ReleaseBundles Dec 4, 2020
wu-hui added a commit that referenced this pull request Dec 8, 2020
* Add bundles to d.ts and rearrange bundles source code for building it as a separate module (#4120)

* Add bundles to d.ts and rearrange bundles source code for building it as a separate module.

* Roll bundle with prebuilt (#4128)

Build firestore sdks with prebuilt to support bundle as a prototype patched feature.

* Add JSDoc for bundles (#4155)

Add JSDoc for bundles.

* Create changeset

* Update old-lobsters-pull.md

* A few fixes for Firestore bundle sdk builds (#4177)

* Actually creates firebase/firestore/bundle package.json

* Fix standard node/browser builds for bundles

* Make it release from remote branch.

* Add bundle to firebase complete build and fix missing proto for memory build.

* Make rollup.config.js more organized.

* Revert "Make it release from remote branch."

This reverts commit 2c91fd1.

* 2017 -> 2020

* Update comment.

* Address comments

* Update .changeset/old-lobsters-pull.md

Co-authored-by: Sebastian Schmidt <[email protected]>

* Update .changeset/old-lobsters-pull.md

Co-authored-by: Sebastian Schmidt <[email protected]>

* Add toc.

* Remove webpack change.

Co-authored-by: Sebastian Schmidt <[email protected]>
@firebase firebase locked and limited conversation to collaborators Jan 4, 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.

3 participants