-
Notifications
You must be signed in to change notification settings - Fork 930
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
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.
Size Analysis Report |
* @param bundleData | ||
* An object representing the bundle to be loaded. Valid objects are `ArrayBuffer`, | ||
* `ReadableStream<Uint8Array>` or `string`. | ||
* |
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.
This documentation style (newline versus dash) seems a bit inconsistent.
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.
Done.
packages/firestore/export.ts
Outdated
import { | ||
loadBundle as expLoadBundle, | ||
namedQuery as expNamedQuery | ||
} from './src/exp/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.
Can you move the imports to the top of the file?
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.
Done.
Co-authored-by: Sebastian Schmidt <[email protected]>
.changeset/giant-months-guess.md
Outdated
@@ -0,0 +1,5 @@ | |||
--- |
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.
You probably don't want Changesets for exp-only changes as they show up in the wrong release notes.
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.
Right. Let me Remove.
packages/firestore/src/exp/bundle.ts
Outdated
@@ -46,6 +62,17 @@ export class LoadBundleTask | |||
documentsLoaded: 0 | |||
}; | |||
|
|||
/** | |||
* Registers functions to listen to bundle loading progress events. | |||
* @param next |
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.
There should be a -
after @param next
. It is the format required by tsdoc.
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.
Done.
// @public | ||
export class LoadBundleTask implements PromiseLike<LoadBundleTaskProgress> { | ||
catch<R>(onRejected: (a: Error) => R | PromiseLike<R>): Promise<R | LoadBundleTaskProgress>; | ||
_completeWith(progress: LoadBundleTaskProgress): void; |
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 think these _ methods should be tagged @internal
in packages/firestore/src/exp/bundle.ts if we don't want to expose them publicly?
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 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?
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.
We don't have to do it in this PR of course.
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.
Waiting for review :) #4207
No description provided.