Skip to content

Remove RepoManager #4520

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 1 commit into from
Feb 24, 2021
Merged

Remove RepoManager #4520

merged 1 commit into from
Feb 24, 2021

Conversation

schmidt-sebastian
Copy link
Contributor

Removes the RepManager, which was only used as a singleton. It is replaced with two const variables. All functions are moved to be tree-shakeable (interrupt() and resume() were removed since they are not used).

@google-oss-bot
Copy link
Contributor

Binary Size Report

Affected SDKs

  • @firebase/database

    Type Base (02c1761) Head (18e2f3f) Diff
    browser 276 kB 274 kB -1.51 kB (-0.5%)
    esm2017 246 kB 245 kB -451 B (-0.2%)
    main 278 kB 277 kB -1.54 kB (-0.6%)
    module 276 kB 274 kB -1.51 kB (-0.5%)
  • @firebase/database-exp

    Type Base (02c1761) Head (18e2f3f) Diff
    browser 276 kB 274 kB -1.57 kB (-0.6%)
    esm2017 243 kB 242 kB -504 B (-0.2%)
    main 277 kB 276 kB -1.57 kB (-0.6%)
    module 276 kB 274 kB -1.57 kB (-0.6%)
  • firebase

    Type Base (02c1761) Head (18e2f3f) Diff
    firebase-database.js 186 kB 184 kB -1.41 kB (-0.8%)
    firebase.js 847 kB 845 kB -1.42 kB (-0.2%)

Test Logs

/**
* Update an existing repo in place to point to a new host/port.
*/
export function repoManagerApplyEmulatorSettings(
Copy link
Member

Choose a reason for hiding this comment

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

Since repoManager is removed, do we still want the prefix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I want to keep it to be able to translate these API calls between iOS, Android and Web.

@schmidt-sebastian schmidt-sebastian merged commit c3739f3 into master Feb 24, 2021
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/repomanager branch February 24, 2021 22:26
@firebase firebase locked and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants