Skip to content
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

Fix overlay patch mutation bug #6893

Merged
merged 6 commits into from
Jan 3, 2023
Merged

Fix overlay patch mutation bug #6893

merged 6 commits into from
Jan 3, 2023

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Dec 15, 2022

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Dec 15, 2022

🦋 Changeset detected

Latest commit: 4fbd224

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@firebase/firestore Patch
firebase Patch
@firebase/firestore-compat Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Dec 15, 2022

Size Report 1

Affected Products

  • @firebase/firestore

    TypeBase (d8af08f)Merge (65d6164)Diff
    browser272 kB273 kB+75 B (+0.0%)
    esm5339 kB339 kB+92 B (+0.0%)
    main545 kB545 kB+170 B (+0.0%)
    module272 kB273 kB+75 B (+0.0%)
    react-native273 kB273 kB+75 B (+0.0%)
  • @firebase/util

    TypeBase (d8af08f)Merge (65d6164)Diff
    browser22.7 kB22.9 kB+201 B (+0.9%)
    esm524.2 kB24.4 kB+199 B (+0.8%)
    main29.7 kB30.0 kB+273 B (+0.9%)
    module22.7 kB22.9 kB+201 B (+0.9%)
  • bundle

    TypeBase (d8af08f)Merge (65d6164)Diff
    firestore (Persistence)281 kB281 kB+205 B (+0.1%)
    firestore (Query Cursors)220 kB220 kB+75 B (+0.0%)
    firestore (Query)217 kB217 kB+75 B (+0.0%)
    firestore (Read data once)205 kB205 kB+75 B (+0.0%)
    firestore (Realtime updates)207 kB207 kB+75 B (+0.0%)
    firestore (Transaction)188 kB188 kB+75 B (+0.0%)
    firestore (Write data)188 kB188 kB+75 B (+0.0%)
    storage (uploadBytes)46.8 kB46.9 kB+130 B (+0.3%)
    storage (uploadBytesResumable)56.8 kB56.9 kB+130 B (+0.2%)
    storage (uploadString)47.0 kB47.2 kB+130 B (+0.3%)
  • firebase

    TypeBase (d8af08f)Merge (65d6164)Diff
    firebase-app.js92.0 kB92.8 kB+831 B (+0.9%)
    firebase-auth-compat.js126 kB126 kB+113 B (+0.1%)
    firebase-auth-react-native.js150 kB150 kB+130 B (+0.1%)
    firebase-compat.js745 kB746 kB+180 B (+0.0%)
    firebase-firestore-compat.js320 kB321 kB+940 B (+0.3%)
    firebase-firestore.js321 kB321 kB+191 B (+0.1%)
    firebase-performance-standalone-compat.es2017.js89.9 kB89.9 kB+1 B (+0.0%)
    firebase-storage-compat.js39.4 kB40.3 kB+878 B (+2.2%)
    firebase-storage.js39.0 kB39.1 kB+116 B (+0.3%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/v5N8XebjIC.html
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Dec 15, 2022

Size Analysis Report 1

Affected Products

  • @firebase/firestore

    • addDoc

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size118 kB118 kB+75 B (+0.1%)
      size-with-ext-deps178 kB178 kB+75 B (+0.0%)
    • deleteDoc

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size109 kB109 kB+75 B (+0.1%)
      size-with-ext-deps169 kB169 kB+75 B (+0.0%)
    • disableNetwork

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size97.5 kB97.6 kB+75 B (+0.1%)
      size-with-ext-deps157 kB157 kB+75 B (+0.0%)
    • enableIndexedDbPersistence

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size179 kB179 kB+75 B (+0.0%)
      size-with-ext-deps239 kB240 kB+1.04 kB (+0.4%)
    • enableMultiTabIndexedDbPersistence

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size211 kB211 kB+75 B (+0.0%)
      size-with-ext-deps271 kB272 kB+1.04 kB (+0.4%)
    • enableNetwork

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size97.5 kB97.6 kB+75 B (+0.1%)
      size-with-ext-deps157 kB157 kB+75 B (+0.0%)
    • executeWrite

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size108 kB108 kB+75 B (+0.1%)
      size-with-ext-deps168 kB168 kB+75 B (+0.0%)
    • getCountFromServer

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size104 kB104 kB+75 B (+0.1%)
      size-with-ext-deps164 kB164 kB+75 B (+0.0%)
    • getDoc

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size135 kB135 kB+75 B (+0.1%)
      size-with-ext-deps194 kB194 kB+75 B (+0.0%)
    • getDocFromCache

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size90.6 kB90.7 kB+75 B (+0.1%)
      size-with-ext-deps150 kB150 kB+75 B (+0.1%)
    • getDocFromServer

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size135 kB135 kB+75 B (+0.1%)
      size-with-ext-deps194 kB194 kB+75 B (+0.0%)
    • getDocs

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size136 kB136 kB+75 B (+0.1%)
      size-with-ext-deps196 kB196 kB+75 B (+0.0%)
    • getDocsFromCache

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size98.3 kB98.4 kB+75 B (+0.1%)
      size-with-ext-deps157 kB157 kB+75 B (+0.0%)
    • getDocsFromServer

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size136 kB136 kB+75 B (+0.1%)
      size-with-ext-deps196 kB196 kB+75 B (+0.0%)
    • loadBundle

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size107 kB107 kB+75 B (+0.1%)
      size-with-ext-deps166 kB166 kB+75 B (+0.0%)
    • namedQuery

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size84.1 kB84.2 kB+75 B (+0.1%)
      size-with-ext-deps143 kB143 kB+75 B (+0.1%)
    • onSnapshot

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size137 kB137 kB+75 B (+0.1%)
      size-with-ext-deps196 kB197 kB+75 B (+0.0%)
    • onSnapshotsInSync

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size127 kB127 kB+75 B (+0.1%)
      size-with-ext-deps186 kB186 kB+75 B (+0.0%)
    • runTransaction

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size118 kB118 kB+75 B (+0.1%)
      size-with-ext-deps178 kB178 kB+75 B (+0.0%)
    • setDoc

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size117 kB117 kB+75 B (+0.1%)
      size-with-ext-deps177 kB177 kB+75 B (+0.0%)
    • setIndexConfiguration

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size86.7 kB86.8 kB+75 B (+0.1%)
      size-with-ext-deps146 kB146 kB+75 B (+0.1%)
    • updateDoc

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size118 kB118 kB+75 B (+0.1%)
      size-with-ext-deps177 kB177 kB+75 B (+0.0%)
    • waitForPendingWrites

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size97.9 kB98.0 kB+75 B (+0.1%)
      size-with-ext-deps157 kB157 kB+75 B (+0.0%)
    • writeBatch

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size120 kB120 kB+75 B (+0.1%)
      size-with-ext-deps179 kB179 kB+75 B (+0.0%)
  • @firebase/storage

    • _FbsBlob

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size-with-ext-deps31.4 kB32.4 kB+955 B (+3.0%)
    • _UploadTask

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size-with-ext-deps47.0 kB47.9 kB+955 B (+2.0%)
    • uploadBytes

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size-with-ext-deps37.2 kB38.2 kB+961 B (+2.6%)
    • uploadBytesResumable

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size-with-ext-deps47.2 kB48.2 kB+961 B (+2.0%)
    • uploadString

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size-with-ext-deps37.5 kB38.4 kB+961 B (+2.6%)
  • @firebase/util

    • getDefaults

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size?3.83 kB? (?)
      size-with-ext-deps?3.83 kB? (?)

      Dependency

      TypeBase (d8af08f)Merge (65d6164)Diff
      functions?

      getGlobal

      ?
      classes??
      variables?

      base64
      base64Decode
      byteArrayToString
      getDefaults
      getDefaultsFromCookie
      getDefaultsFromEnvVariable
      getDefaultsFromGlobal
      stringToByteArray$1

      ?
      enums??
    • isNode

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size135 B4.07 kB+3.94 kB (+2917.8%)
      size-with-ext-deps135 B4.07 kB+3.94 kB (+2917.8%)

      Dependency

      TypeBase (d8af08f)Merge (65d6164)Diff
      functions

      isNode

      getGlobal
      isNode

      + getGlobal

      variables

      base64
      base64Decode
      byteArrayToString
      getDefaults
      getDefaultsFromCookie
      getDefaultsFromEnvVariable
      getDefaultsFromGlobal
      stringToByteArray$1

      + base64
      + base64Decode
      + byteArrayToString
      + getDefaults
      + getDefaultsFromCookie
      + getDefaultsFromEnvVariable
      + getDefaultsFromGlobal
      + stringToByteArray$1

    • isSafari

      Size

      TypeBase (d8af08f)Merge (65d6164)Diff
      size242 B4.18 kB+3.94 kB (+1627.7%)
      size-with-ext-deps242 B4.18 kB+3.94 kB (+1627.7%)

      Dependency

      TypeBase (d8af08f)Merge (65d6164)Diff
      functions

      isNode
      isSafari

      getGlobal
      isNode
      isSafari

      + getGlobal

      variables

      base64
      base64Decode
      byteArrayToString
      getDefaults
      getDefaultsFromCookie
      getDefaultsFromEnvVariable
      getDefaultsFromGlobal
      stringToByteArray$1

      + base64
      + base64Decode
      + byteArrayToString
      + getDefaults
      + getDefaultsFromCookie
      + getDefaultsFromEnvVariable
      + getDefaultsFromGlobal
      + stringToByteArray$1

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/pN3MgUKwq6.html
@wu-hui
Copy link
Contributor Author

wu-hui commented Dec 15, 2022

Note I started off an old commit for this change, after merging with latest and resolving conflict, the diffs are ugly somehow..

@ehsannas ehsannas assigned wu-hui and unassigned ehsannas Jan 3, 2023
@ehsannas ehsannas closed this Jan 3, 2023
@ehsannas ehsannas reopened this Jan 3, 2023
@ehsannas ehsannas merged commit 1455bfa into master Jan 3, 2023
@ehsannas ehsannas deleted the wuandy/FixOverlayPatch branch January 3, 2023 21:28
@google-oss-bot google-oss-bot mentioned this pull request Jan 17, 2023
@firebase firebase locked and limited conversation to collaborators Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
3 participants