Skip to content

Release Bundles for Next SDK #4352

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 11 commits into from
Jan 29, 2021
Merged

Release Bundles for Next SDK #4352

merged 11 commits into from
Jan 29, 2021

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Jan 27, 2021

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jan 27, 2021

⚠️ No Changeset found

Latest commit: 5f1b8a1

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

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.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 28, 2021

Size Analysis Report

Affected Products

No changes between base commit (5380e00) and head commit (882fb8d).

* @param bundleData
* An object representing the bundle to be loaded. Valid objects are `ArrayBuffer`,
* `ReadableStream<Uint8Array>` or `string`.
*
Copy link
Contributor

Choose a reason for hiding this comment

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

This documentation style (newline versus dash) seems a bit inconsistent.

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.

import {
loadBundle as expLoadBundle,
namedQuery as expNamedQuery
} from './src/exp/database';
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move the imports to the top of the file?

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.

@@ -0,0 +1,5 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

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

You probably don't want Changesets for exp-only changes as they show up in the wrong release notes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. Let me Remove.

@@ -46,6 +62,17 @@ export class LoadBundleTask
documentsLoaded: 0
};

/**
* Registers functions to listen to bundle loading progress events.
* @param next
Copy link
Member

Choose a reason for hiding this comment

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

There should be a - after @param next. It is the format required by tsdoc.

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.

// @public
export class LoadBundleTask implements PromiseLike<LoadBundleTaskProgress> {
catch<R>(onRejected: (a: Error) => R | PromiseLike<R>): Promise<R | LoadBundleTaskProgress>;
_completeWith(progress: LoadBundleTaskProgress): void;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think these _ methods should be tagged @internal in packages/firestore/src/exp/bundle.ts if we don't want to expose them publicly?

Copy link
Member

Choose a reason for hiding this comment

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

I think @schmidt-sebastian's script strips things with a leading underscore automatically in the d.ts file, but not in the api report.

Ideally this file should be consistent with d.ts. Maybe we can extend the script to update the api report too?

Copy link
Member

Choose a reason for hiding this comment

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

We don't have to do it in this PR of course.

Copy link
Contributor

Choose a reason for hiding this comment

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

Waiting for review :) #4207

@wu-hui wu-hui merged commit 4cab3ec into master Jan 29, 2021
@wu-hui wu-hui deleted the wuandy/BundlesForNext branch January 29, 2021 21:11
@firebase firebase locked and limited conversation to collaborators Mar 1, 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.

5 participants