Skip to content

Fixed issue where storage wasn't passing cookies when using firebase Studio #9111

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 8 commits into from
Jun 23, 2025

Conversation

maneesht
Copy link
Contributor

Fixed CORS issue when using Storage with Firebase Studio

Copy link

changeset-bot bot commented Jun 20, 2025

🦋 Changeset detected

Latest commit: 0baef5e

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

This PR includes changesets to release 30 packages
Name Type
@firebase/storage Patch
@firebase/util Patch
firebase Patch
@firebase/storage-compat Patch
@firebase/ai Patch
@firebase/analytics-compat Patch
@firebase/analytics Patch
@firebase/app-check-compat Patch
@firebase/app-check Patch
@firebase/app-compat Patch
@firebase/app Patch
@firebase/auth-compat Patch
@firebase/auth Patch
@firebase/component Patch
@firebase/data-connect Patch
@firebase/database-compat Patch
@firebase/database-types Patch
@firebase/database Patch
@firebase/firestore-compat Patch
@firebase/firestore Patch
@firebase/functions-compat Patch
@firebase/functions Patch
@firebase/installations-compat Patch
@firebase/installations Patch
@firebase/messaging-compat Patch
@firebase/messaging Patch
@firebase/performance-compat Patch
@firebase/performance Patch
@firebase/remote-config-compat Patch
@firebase/remote-config 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

@maneesht maneesht marked this pull request as ready for review June 20, 2025 16:40
@maneesht maneesht requested review from a team and tonyjhuang as code owners June 20, 2025 16:41
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 20, 2025

Size Report 1

Affected Products

  • @firebase/util

    TypeBase (b97eab3)Merge (6bb81b9)Diff
    browser29.3 kB29.4 kB+118 B (+0.4%)
    main35.7 kB35.8 kB+118 B (+0.3%)
    module29.3 kB29.4 kB+118 B (+0.4%)
  • bundle

    39 size changes

    TypeBase (b97eab3)Merge (6bb81b9)Diff
    auth (Anonymous)77.9 kB78.0 kB+107 B (+0.1%)
    auth (EmailAndPassword)88.0 kB88.1 kB+107 B (+0.1%)
    auth (GoogleFBTwitterGitHubPopup)109 kB109 kB+107 B (+0.1%)
    auth (GooglePopup)102 kB102 kB+107 B (+0.1%)
    auth (GoogleRedirect)102 kB102 kB+107 B (+0.1%)
    auth (Phone)95.4 kB95.5 kB+107 B (+0.1%)
    database (Append to a list of data)154 kB154 kB+107 B (+0.1%)
    database (Filtering data)153 kB153 kB+107 B (+0.1%)
    database (Listen for child events)170 kB170 kB+107 B (+0.1%)
    database (Listen for value events + Detach listeners)170 kB170 kB+107 B (+0.1%)
    database (Listen for value events)170 kB170 kB+107 B (+0.1%)
    database (Read data once)169 kB169 kB+107 B (+0.1%)
    database (Save data as transactions)172 kB172 kB+107 B (+0.1%)
    database (Sort data)155 kB155 kB+107 B (+0.1%)
    database (Write data)154 kB154 kB+107 B (+0.1%)
    firestore (CSI Auto Indexing Disable and Delete)280 kB280 kB+107 B (+0.0%)
    firestore (CSI Auto Indexing Enable)280 kB280 kB+107 B (+0.0%)
    firestore (Persistence)311 kB311 kB+107 B (+0.0%)
    firestore (Query Cursors)256 kB256 kB+107 B (+0.0%)
    firestore (Query)254 kB254 kB+107 B (+0.0%)
    firestore (Read data once)242 kB242 kB+107 B (+0.0%)
    firestore (Read Write w Persistence)336 kB336 kB+107 B (+0.0%)
    firestore (Realtime updates)244 kB244 kB+107 B (+0.0%)
    firestore (Transaction)221 kB221 kB+107 B (+0.0%)
    firestore (Write data)220 kB221 kB+107 B (+0.0%)
    firestore-lite (Query Cursors)109 kB109 kB+107 B (+0.1%)
    firestore-lite (Query)105 kB105 kB+107 B (+0.1%)
    firestore-lite (Read data once)80.6 kB80.7 kB+107 B (+0.1%)
    firestore-lite (Transaction)106 kB106 kB+107 B (+0.1%)
    firestore-lite (Write data)90.2 kB90.3 kB+107 B (+0.1%)
    functions (call)39.4 kB39.5 kB+107 B (+0.3%)
    storage (getBytes)47.2 kB47.3 kB+107 B (+0.2%)
    storage (getDownloadURL)49.2 kB49.4 kB+107 B (+0.2%)
    storage (getMetadata)48.7 kB48.8 kB+107 B (+0.2%)
    storage (list + listAll)48.1 kB48.2 kB+107 B (+0.2%)
    storage (updateMetadata)49.0 kB49.1 kB+107 B (+0.2%)
    storage (uploadBytes)53.8 kB53.9 kB+107 B (+0.2%)
    storage (uploadBytesResumable)63.8 kB63.9 kB+107 B (+0.2%)
    storage (uploadString)54.0 kB54.1 kB+107 B (+0.2%)

  • firebase

    15 size changes

    TypeBase (b97eab3)Merge (6bb81b9)Diff
    firebase-auth-compat.js145 kB146 kB+86 B (+0.1%)
    firebase-auth-cordova.js143 kB143 kB+94 B (+0.1%)
    firebase-auth-web-extension.js125 kB125 kB+94 B (+0.1%)
    firebase-auth.js163 kB163 kB+94 B (+0.1%)
    firebase-compat.js802 kB802 kB+94 B (+0.0%)
    firebase-data-connect.js22.7 kB22.8 kB+94 B (+0.4%)
    firebase-database-compat.js168 kB168 kB+94 B (+0.1%)
    firebase-database.js192 kB192 kB+94 B (+0.0%)
    firebase-firestore-compat.js347 kB347 kB+94 B (+0.0%)
    firebase-firestore-lite.js137 kB137 kB+94 B (+0.1%)
    firebase-firestore.js449 kB449 kB+94 B (+0.0%)
    firebase-functions-compat.js14.7 kB14.8 kB+94 B (+0.6%)
    firebase-functions.js19.5 kB19.6 kB+94 B (+0.5%)
    firebase-storage-compat.js44.2 kB44.3 kB+94 B (+0.2%)
    firebase-storage.js51.1 kB51.2 kB+94 B (+0.2%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/mR27nK8qoI.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 20, 2025

Size Analysis Report 1

Affected Products

  • @firebase/auth

    • ActionCodeOperation

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.8 kB62.9 kB+107 B (+0.2%)
    • ActionCodeURL

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.8 kB64.0 kB+107 B (+0.2%)
    • AuthCredential

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.8 kB62.9 kB+107 B (+0.2%)
    • AuthErrorCodes

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps67.7 kB67.8 kB+107 B (+0.2%)
    • EmailAuthCredential

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps70.4 kB70.5 kB+107 B (+0.2%)
    • EmailAuthProvider

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps72.0 kB72.2 kB+107 B (+0.1%)
    • FacebookAuthProvider

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps67.6 kB67.7 kB+107 B (+0.2%)
    • FactorId

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • GithubAuthProvider

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps67.6 kB67.7 kB+107 B (+0.2%)
    • GoogleAuthProvider

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps67.6 kB67.7 kB+107 B (+0.2%)
    • OAuthCredential

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps64.7 kB64.8 kB+107 B (+0.2%)
    • OAuthProvider

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps68.5 kB68.6 kB+107 B (+0.2%)
    • OperationType

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • PhoneAuthCredential

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps64.7 kB64.8 kB+107 B (+0.2%)
    • PhoneAuthProvider

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps74.0 kB74.1 kB+107 B (+0.1%)
    • PhoneMultiFactorGenerator

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.4 kB63.5 kB+107 B (+0.2%)
    • ProviderId

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.8 kB+107 B (+0.2%)
    • RecaptchaVerifier

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps69.5 kB69.6 kB+107 B (+0.2%)
    • SAMLAuthProvider

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps68.9 kB69.0 kB+107 B (+0.2%)
    • SignInMethod

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.7 kB62.8 kB+107 B (+0.2%)
    • TotpMultiFactorGenerator

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps65.1 kB65.2 kB+107 B (+0.2%)
    • TotpSecret

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.5 kB63.6 kB+107 B (+0.2%)
    • TwitterAuthProvider

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps67.6 kB67.7 kB+107 B (+0.2%)
    • applyActionCode

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.8 kB+107 B (+0.2%)
    • beforeAuthStateChanged

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • browserCookiePersistence

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps64.5 kB64.6 kB+107 B (+0.2%)
    • browserLocalPersistence

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps65.6 kB65.7 kB+107 B (+0.2%)
    • browserPopupRedirectResolver

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps87.3 kB87.4 kB+107 B (+0.1%)
    • browserSessionPersistence

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps65.6 kB65.7 kB+107 B (+0.2%)
    • checkActionCode

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.8 kB63.9 kB+107 B (+0.2%)
    • confirmPasswordReset

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.9 kB63.0 kB+107 B (+0.2%)
    • connectAuthEmulator

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps69.2 kB69.3 kB+107 B (+0.2%)
    • createUserWithEmailAndPassword

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps69.5 kB69.6 kB+107 B (+0.2%)
    • debugErrorMap

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps75.0 kB75.1 kB+107 B (+0.1%)
    • deleteUser

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • fetchSignInMethodsForEmail

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.9 kB63.0 kB+107 B (+0.2%)
    • getAdditionalUserInfo

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.9 kB64.0 kB+107 B (+0.2%)
    • getAuth

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps109 kB109 kB+107 B (+0.1%)
    • getIdToken

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • getIdTokenResult

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.5 kB62.6 kB+107 B (+0.2%)
    • getMultiFactorResolver

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps65.4 kB65.5 kB+107 B (+0.2%)
    • getRedirectResult

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps70.2 kB70.3 kB+107 B (+0.2%)
    • inMemoryPersistence

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.5 kB62.6 kB+107 B (+0.2%)
    • indexedDBLocalPersistence

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps70.0 kB70.1 kB+107 B (+0.2%)
    • initializeAuth

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.3 kB63.4 kB+107 B (+0.2%)
    • initializeRecaptchaConfig

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps66.3 kB66.4 kB+107 B (+0.2%)
    • isSignInWithEmailLink

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps64.0 kB64.1 kB+107 B (+0.2%)
    • linkWithCredential

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.6 kB63.7 kB+107 B (+0.2%)
    • linkWithPhoneNumber

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps74.8 kB74.9 kB+107 B (+0.1%)
    • linkWithPopup

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps73.8 kB73.9 kB+107 B (+0.1%)
    • linkWithRedirect

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps68.9 kB69.0 kB+107 B (+0.2%)
    • multiFactor

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps64.8 kB64.9 kB+107 B (+0.2%)
    • onAuthStateChanged

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • onIdTokenChanged

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • parseActionCodeURL

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.9 kB64.0 kB+107 B (+0.2%)
    • prodErrorMap

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.5 kB62.6 kB+107 B (+0.2%)
    • reauthenticateWithCredential

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps64.2 kB64.3 kB+107 B (+0.2%)
    • reauthenticateWithPhoneNumber

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps75.4 kB75.5 kB+107 B (+0.1%)
    • reauthenticateWithPopup

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps73.9 kB74.0 kB+107 B (+0.1%)
    • reauthenticateWithRedirect

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps68.7 kB68.8 kB+107 B (+0.2%)
    • reload

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.5 kB62.6 kB+107 B (+0.2%)
    • revokeAccessToken

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • sendEmailVerification

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.6 kB63.7 kB+107 B (+0.2%)
    • sendPasswordResetEmail

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps69.2 kB69.3 kB+107 B (+0.2%)
    • sendSignInLinkToEmail

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps69.3 kB69.4 kB+107 B (+0.2%)
    • setPersistence

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • signInAnonymously

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.7 kB63.8 kB+107 B (+0.2%)
    • signInWithCredential

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps64.0 kB64.1 kB+107 B (+0.2%)
    • signInWithCustomToken

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.6 kB63.7 kB+107 B (+0.2%)
    • signInWithEmailAndPassword

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps73.8 kB73.9 kB+107 B (+0.1%)
    • signInWithEmailLink

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps73.8 kB73.9 kB+107 B (+0.1%)
    • signInWithPhoneNumber

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps75.2 kB75.3 kB+107 B (+0.1%)
    • signInWithPopup

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps73.8 kB73.9 kB+107 B (+0.1%)
    • signInWithRedirect

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps68.4 kB68.5 kB+107 B (+0.2%)
    • signOut

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • unlink

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.1 kB63.2 kB+107 B (+0.2%)
    • updateCurrentUser

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • updateEmail

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.9 kB63.0 kB+107 B (+0.2%)
    • updatePassword

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.8 kB63.0 kB+107 B (+0.2%)
    • updatePhoneNumber

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.4 kB63.5 kB+107 B (+0.2%)
    • updateProfile

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.0 kB63.1 kB+107 B (+0.2%)
    • useDeviceLanguage

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • validatePassword

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps62.6 kB62.7 kB+107 B (+0.2%)
    • verifyBeforeUpdateEmail

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.6 kB63.7 kB+107 B (+0.2%)
    • verifyPasswordResetCode

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps63.8 kB64.0 kB+107 B (+0.2%)
  • @firebase/data-connect

    • CallerSdkTypeEnum

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • Code

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps30.9 kB31.1 kB+107 B (+0.3%)
    • DataConnect

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • DataConnectError

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • DataConnectOperationError

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • MUTATION_STR

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • MutationManager

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • QUERY_STR

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • SOURCE_CACHE

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • SOURCE_SERVER

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • areTransportOptionsEqual

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • connectDataConnectEmulator

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps35.5 kB35.6 kB+107 B (+0.3%)
    • executeMutation

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • executeQuery

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • getDataConnect

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps38.8 kB38.9 kB+107 B (+0.3%)
    • mutationRef

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.1 kB31.2 kB+107 B (+0.3%)
    • parseOptions

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • queryRef

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.1 kB31.2 kB+107 B (+0.3%)
    • setLogLevel

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • subscribe

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps39.3 kB39.4 kB+107 B (+0.3%)
    • terminate

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.0 kB31.1 kB+107 B (+0.3%)
    • toQueryRef

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps39.0 kB39.1 kB+107 B (+0.3%)
    • validateArgs

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps38.9 kB39.0 kB+107 B (+0.3%)
    • validateDCOptions

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps31.2 kB31.3 kB+107 B (+0.3%)
  • @firebase/database

    • connectDatabaseEmulator

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps145 kB145 kB+107 B (+0.1%)
    • getDatabase

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps152 kB152 kB+107 B (+0.1%)
  • @firebase/firestore

    • addDoc

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps207 kB207 kB+107 B (+0.1%)
    • connectFirestoreEmulator

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps93.3 kB93.4 kB+107 B (+0.1%)
    • deleteDoc

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps197 kB197 kB+107 B (+0.1%)
    • disableNetwork

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps185 kB185 kB+107 B (+0.1%)
    • enableIndexedDbPersistence

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps262 kB262 kB+107 B (+0.0%)
    • enableMultiTabIndexedDbPersistence

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps298 kB298 kB+107 B (+0.0%)
    • enableNetwork

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps185 kB185 kB+107 B (+0.1%)
    • executeWrite

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps196 kB196 kB+107 B (+0.1%)
    • getAggregateFromServer

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps193 kB193 kB+107 B (+0.1%)
    • getCountFromServer

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps193 kB193 kB+107 B (+0.1%)
    • getDoc

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps228 kB228 kB+107 B (+0.0%)
    • getDocFromServer

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps228 kB228 kB+107 B (+0.0%)
    • getDocs

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps229 kB229 kB+107 B (+0.0%)
    • getDocsFromServer

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps229 kB229 kB+107 B (+0.0%)
    • getFirestore

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps101 kB101 kB+107 B (+0.1%)
    • initializeFirestore

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps87.4 kB87.5 kB+107 B (+0.1%)
    • loadBundle

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps195 kB195 kB+107 B (+0.1%)
    • memoryLocalCache

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps179 kB179 kB+107 B (+0.1%)
    • onSnapshot

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps230 kB230 kB+107 B (+0.0%)
    • onSnapshotsInSync

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps219 kB219 kB+107 B (+0.0%)
    • persistentLocalCache

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps258 kB258 kB+107 B (+0.0%)
    • persistentMultipleTabManager

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps293 kB294 kB+107 B (+0.0%)
    • persistentSingleTabManager

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps257 kB257 kB+107 B (+0.0%)
    • runTransaction

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps207 kB207 kB+107 B (+0.1%)
    • setDoc

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps206 kB206 kB+107 B (+0.1%)
    • updateDoc

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps206 kB206 kB+107 B (+0.1%)
    • waitForPendingWrites

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps186 kB186 kB+107 B (+0.1%)
    • writeBatch

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps208 kB208 kB+107 B (+0.1%)
  • @firebase/functions

    • connectFunctionsEmulator

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps25.3 kB25.4 kB+107 B (+0.4%)
    • getFunctions

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps33.2 kB33.3 kB+107 B (+0.3%)
  • @firebase/storage

    • _UploadTask

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps49.4 kB49.5 kB+107 B (+0.2%)
    • connectStorageEmulator

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps34.8 kB34.9 kB+107 B (+0.3%)
    • deleteObject

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps32.9 kB33.0 kB+107 B (+0.3%)
    • getBlob

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps33.0 kB33.1 kB+107 B (+0.3%)
    • getBytes

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps33.0 kB33.1 kB+107 B (+0.3%)
    • getDownloadURL

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps35.1 kB35.2 kB+107 B (+0.3%)
    • getMetadata

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps34.6 kB34.7 kB+107 B (+0.3%)
    • getStorage

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps42.7 kB42.8 kB+107 B (+0.3%)
    • list

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps33.7 kB33.8 kB+107 B (+0.3%)
    • listAll

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps33.9 kB34.0 kB+107 B (+0.3%)
    • updateMetadata

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps34.8 kB34.9 kB+107 B (+0.3%)
    • uploadBytes

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps39.7 kB39.8 kB+107 B (+0.3%)
    • uploadBytesResumable

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps49.6 kB49.7 kB+107 B (+0.2%)
    • uploadString

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size-with-ext-deps39.9 kB40.0 kB+107 B (+0.3%)
  • @firebase/util

    • isCloudWorkstation

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size90 B197 B+107 B (+118.9%)
      size-with-ext-deps90 B197 B+107 B (+118.9%)
    • updateEmulatorBanner

      Size

      TypeBase (b97eab3)Merge (6bb81b9)Diff
      size4.42 kB4.53 kB+107 B (+2.4%)
      size-with-ext-deps4.42 kB4.53 kB+107 B (+2.4%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/MjZkim7RwD.html

Copy link

@joehan joehan left a comment

Choose a reason for hiding this comment

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

Some thoughts on implementation details, but this seems like it fixes the issue!

Copy link
Contributor

@hsubox76 hsubox76 left a comment

Choose a reason for hiding this comment

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

A unit test is failing

@maneesht maneesht merged commit 42ac401 into main Jun 23, 2025
48 of 49 checks passed
@maneesht maneesht deleted the mtewani/fix-cors-auth-studio branch June 23, 2025 17:07
MarkDuckworth added a commit that referenced this pull request Jun 26, 2025
* Version Packages (#8635)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Wait for service worker registration to become active before any operations (#8661)

* Clear fetch abort timeout (#8663)

* Clear fetch abort timeout

* Add timeout constant and bring back minimum timeout value

* Support streaming streaming responses for callable functions. (#8609)

The new .stream() API allows the client to consume streaming responses from the WIP streaming callable functions in Firebase Functions Node.js SDK.

When client makes a request to the callable function w/ header Accept: text/event-stream, the callable function responds with response chunks in Server-Sent Event format.

The sdk changes here abstracts over the wire-protocol by parsing the response chunks and returning an instance of a AsyncIterable to consume to data:

import { getFunctions, httpsCallable } from "firebase/functions";

const functions = getFunctions();
const generateText = httpsCallable(functions, 'generateText');
const resp = await generateText.stream(
  { text: 'What is your favorite Firebase service and why?' },
  { signal: AbortSignal.timeout(60_000) },
);
try {
  for await (const message of resp.stream) {
     console.log(message); // prints "foo", "bar"
  }
  console.log(await resp.data) // prints "foo bar"
} catch (e) {
  // FirebaseError(code='cancelled', message='Request was cancelled.');
  console.error(e)
}

* Fixed issue where multiple calls to connectDataConnectEmulator causes an exception (#8664)

* Convert e2e unit tests to use Jest (#8666)

* Add ts-node dep - needed to read jest.config.ts (#8670)

* Use ubuntu-latest for Firefox CI tests (#8671)

* Version Packages (#8672)

Version Packages for release v11.1.0

* Disable TOC array indentation (#8637)

* Disable TOC array indentation

* add function streaming toc docs

* Fix: sort document reference by long type id (#8673)

* Set e2e test workflow to poll npm to check the version is available (#8684)

* fix regex to include non-numeric (#8692)

* feat(rc): Add custom signals support (#8602)

Add support for custom signal targeting in Remote Config. Using this feature, developers can set custom signals (key/value pairs) in their apps and use them for building custom targeting conditions in their templates.

Design doc (internal): [go/rc-custom-targeting-dd](http://goto.google.com/rc-custom-targeting-dd)
API Proposal (internal): [go/remote-config-custom-targeting-signals-api-review](https://goto.google.com/remote-config-custom-targeting-signals-api-review)

* Replace uuidv4 generator with `crypto.randomUUID()` (#8600)

* Replace uuidv4 generator with `crypto.randomUUID()`

The uuidv4 generator in util used `Math.random()`, which does not provide strong uniqueness guarantees
(https://www.bocoup.com/blog/random-numbers).

The places where the uuidv4 generator were used didn't require strong
uniqueness guarantees (nothing security related), but I think it's good
to move away from this from util in case we try to use it in the future.

A better built-in alternative is `crypto.randomUUID()`, which does provide strong
uniqueness guarantees. Since this is a more modern JS built-in, it's
only [defined in secure
contexts](https://blog.mozilla.org/security/2018/01/15/secure-contexts-everywhere/).
Is this something we're concerned about? Are there any App Check users
with apps running in non-secure environments?

* Update API reports

* Add changeset

* Add comment about availability restricted to secure contexts

---------

Co-authored-by: dlarocque <dlarocque@users.noreply.github.com>

* Update CODEOWNERS for Auth (#8694)

* Update GitHub Artifact Actions to v4 (#8128)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Updated FDC to include promise instead of promiselike (#8667)

* Update actions/setup-node action to v4 (#8186)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/github-script action to v7 (#8154)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/checkout action to v4 (#8153)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Use versions instead of commits in vertexai responses actions scripts (#8702)

* Add FDC Integration Tests (#8703)

* Upgrade two more `download-artifact` v3 actions to v4  in Firestore workflow (#8706)

There were a pair of `download-artifact` GitHub actions that were still set to `v3` instead of `v4`. The `v3` actions were unable to find the build archive in the test-changed-firestore workflow. This PR upgrades those to `v4` actions.

* Version Packages (#8705) v11.2.0

Release v11.2.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore(deps): replace dependency npm-run-all with npm-run-all2 5.0.0 (#8112)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Add App Check token to FirebaseServerApp (#8651)

 FirebaseServerApp now accepts an optional App Check token at initialization. The product SDKs will look for this token, and if it's present, the SDKs will use this value in lieu of calling getToken on App Check.

This change affects the following SDKs: Auth, Cloud Functions, Data Connect, Firestore, Realtime Database, Vertex AI

* Update rollup-plugin-terser dep (#8709)

* chore(deps): update actions/github-script action to v7 (#8711)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Fireperf web vitals (#8644)

* Add support for capturing web vitals metrics in Firebase performance for Web (Largest Contentful Paint, Interaction to Next Paint, Cumulative Layout Shift)
* Modifies export to use sendBeacon instead of fetch API, and shifts the upload time to the first time the page is hidden or unloaded.

* Update a lot of dependencies (#8716)

* chore(config): migrate config renovate.json (#8723)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/setup-node action to v4 (#8712)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency firebase-tools to v13 [security] (#8607)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Have renovate ignore karma-webpack (#8725)

* Workflow CI: Update CHROME_VALIDATED_VERSION for Auth tests (#8722)

Update our CI's logged `CHROME_VALIDATED_VERSION` to the currently tested version. We haven't updated it in a while.

Keeping this up to date should reduce support burden later.

* chore(deps): update dependency @rollup/plugin-json to v6 (#8727)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dev dependency firebase-tools

13.6.0 -> 13.29.2

* Discard earliest heartbeat once there are 30 heartbeats (#8724)

* Delete earliest heartbeats only once there are 30 heartbeats

* Add changeset

* Use max heartbeat const in tests

* Fix test name in all caps

* Fix test names

* Formatting

* Fix negative offset of reconnect delay (#8718) (#8719)

RTDB Fix negative offset of reconnect delay. Fixes #8718.

* Swap Performance's owner from jposuna to visumickey (#8737)

* Give `check-version` job pull request write permissions (#8743)

* Add pull_request write permissions

* fix typo

* Skip flaky auth recaptcha test (#8753)

* Update dependencies in packages and repo-scripts (#8729)

* Add ActionCodeSettings.linkDomain and deprecate ActionCodeSettings.dynamicLinkDomain (#8738)

* Add linkDomain field to ActionCodeSettings (#8428)

* Add linkDomain field to ActionCodeSettings

* Update API reports

* Update error message for ERROR_INVALID_HOSTING_LINK_DOMAIN to include that default hosting domains cannot be used.

* Use constants for test values

---------

Co-authored-by: NhienLam <NhienLam@users.noreply.github.com>

* FDL Deprecation & Hosting link Integration Test (#8603)

* Implement Integration test for passwordless email sign-in via firebase-hosting links.

* Add license to new test file created' did not match any files

* Remove unwanted _

* Add support for setting custom hosting link domain in test app (#8614)

* Add afterEach method and apply formatting to the hosting links integration test (#8615)

* Mark ActionCodeSettings.dynamicLinkDomain as deprecated

* Add changeset

* Update API reports

* Address review comments

* Fix changeset

* Update refdocs and address review comments

* Update deprecated comment

* Add FDL deprecation FAQ link

* Fix linkDomain link in refdocs

---------

Co-authored-by: NhienLam <NhienLam@users.noreply.github.com>
Co-authored-by: mansisampat <sammansi@google.com>

* FIX: sort strings in UTF-8 encoded byte order (#8691)

* Added more granular tracking for web frameworks

* fix "TextEncoder undefined" issue in some platforms (#8765)

* Version Packages (#8766)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Adds a "firebase" changeset to release PR as needed (#8770)

* Use Node's `TextEncoder` in E2E JSDOM Environment (#8783)

* Update Firebase index.d.ts type definition file reference (#8543)

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>

* Revert the UTF-8 encoding in string sorting (#8782)

* Version Packages (#8786)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Emulator Idempotency: Firestore (#8780)

Update `connectFirestoreEmulator` to support its invocation more than once. If the Firestore instance is already in use, and `connectFirestoreEmulator` is invoked with the same configuration, then the invocation will now succeed instead of assert.

The implementation takes the Data Connect implementation as inspiration. Data Connect stores the parameters passed to `connectDataConnectEmulator` on the instance of Data Connect itself, so that they can be quickly checked to see if subsequent invocations match. This PR implements a similar storage and compare process with the optional `emulatorOptions` parameter (host and port are already stored).

This PR unlocks support for SSR frameworks which render the page numerous times with the same instances of Firestore. Before this PR customers were required to guard against calling `connectFirestoreEmulator` in their SSR logic, which added to code complexity. Now the Firebase SDK does that guarding logic so that our users' apps don't have to.

* Emulator Idempotency: Database (#8769)

Update the `connectDatabaseEmulator` function to support its invocation more than once. If the Database instance is already in use, and `connectDatabaseEmulator` is invoked with the same configuration, then the invocation will now succeed instead of assert.

This unlocks support for web frameworks which may render the page numerous times with the same instances of RTDB. Before this PR customers needed to add extra code to guard against calling `connectDatabaseEmulator` in their SSR logic. Now we do that guarding logic on their behalf which should simplify our customer's apps.

Fixes #6824.

* SSR related improvements for RC client SDK. (#8699)

SSR related improvements for RC client SDK.

* Exposes an initialFetchResponse arg that pre-hydrates the client SDK state
* Adds an argument that allows setting an alternate template ID to fetch from
* Splits storage impls into a simple in-memory version that can be run in SSR contexts
* Adds some basic tests for the API functions, which were previously untested

* Emulator Idempotency: Auth (#8750)

Update the `connectAuthEmulator` function to support its invocation more than once. If the Auth instance is already in use, and `connectAuthEmulator` is invoked with the same configuration, then the invocation will now succeed instead of assert.

This unlocks support for web frameworks which may render the page numerous times with the same instances of auth. Before this PR customers needed to add extra code to guard against calling `connectAuthEmulator` in their SSR logic. Now we do that guarding logic on their behalf which should simplify our customer's apps.

Fixes #6824.

* Upgrade dependencies (#8781)

* first batch

* @rollup/plugin-node-resolve 13 -> 16

* Publish VertexAI API's tagged with `@beta` (#8788)

* Filter empty text parts when streaming (#8736)

* Filter empty text parts when streaming

* Add changeset

* Remove unused filterEmptyTextParts()

* Move logic into a function

* final

* dont throw if mock response file isn't found

* update responses version to 6

* Only ignore empty text parts in the aggregated response.

* review fixes

* Throw in `aggregateResponses` if `newPart` has no properties

* Change API Documenter (BETA) annotation to (Public Preview) (#8789)

* Change (BETA) annotation to (Public Preview)

* format

* Minor bump

* Create VertexAI Node CJS and ESM bundles (#8728)

* Create Node CJS and ESM bundles

* Add changeset

* Run formatter

* register version with node

* Catch errors in debug token exchange logic (#8792)

* Throw error if mock response file not found (#8739)

* Fix vectorvalue docs (#8453)

* Fix vectorvalue docs

* Use @link vector

* Fix vector link with code tag

* Re-enable auth redirect tests (#8803)

* Re-enable redirect tests

* Fix lint

* Add Image Generation support using Imagen (#8683)

* WIP

* Introduce VertexAIModel base class, add documentation, and respond to other comments

* Generate devsite docs

* revert dataconnect change

* formatting

* WIP

* Introduce VertexAIModel base class, add documentation, and respond to other comments

* Generate devsite docs

* revert dataconnect change

* formatting

* Fix ImagenRequestConfig comment

* Improve tests

* Formatting

* Add ImagenGenerationResponse

* Formatting

* Update to match API changes

* fixes

* format

* Update API reports

* add changeset

* update

* format

* Update API reports

* remove public docs

* Nest imageFormat in outputOptions

* remove unecessary console.log

* Log warning if compressionQuality outside of range

* format

* Imagen Documentation (#8776)

* Revert "remove public docs"

This reverts commit f095563.

* update docs

* update docs

* format

* minor fixes

* format

* mark all APIs beta instead of public

* review fixes

* format

* Replace (BETA) with (Public Preview) in docs

* fix links

* another pass

* format

* review fixes

* Cleanup

* update changeset

---------

Co-authored-by: dlarocque <dlarocque@users.noreply.github.com>

* Add support for token-based usage metrics.  (#8757)

* Add support for token-based usage metrics.

Token measurement is broken down by modaliy, with separate counters for image, audio, etc.

Tests are in version 6.*, so this change also includes bumping update_responses.sh

* Use right name for unspecified enum

* Update API reports

* Make promptTokensDetails an array

* Update API reports

* Add missing documentation

* Add changeset entry

* Fix formatting errors

* Update API reports

* Add missing refdoc

* Update API reports

* Use correct formatting for Modality documentation.

* Update API reports

* Update docs

* Update packages/vertexai/src/types/enums.ts

Co-authored-by: rachelsaunders <52258509+rachelsaunders@users.noreply.github.com>

* Update md files

* Revert changes to api-extractor.json

---------

Co-authored-by: rachelsaunders <52258509+rachelsaunders@users.noreply.github.com>

* Add Vertex and DataConnect E2E smoke tests (#8805)

* Update dev script dependency @changesets/types to v6 (#8806)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Bump cross-spawn from 7.0.3 to 7.0.6 in /e2e (#8645)

Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](moxystudio/node-cross-spawn@v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Revert "Bump cross-spawn from 7.0.3 to 7.0.6 in /e2e (#8645)" (#8811)

This reverts commit 117279e.

* App Hosting JS SDK autoinit (#8483)

Adds a `postinstall` step to `@firebase/util` which hardcodes autoinit defaults into `@firebase/util/dist/postinstall.(m)js` for both CJS and ESM variants [go/firestack-autoinit](http://goto.google.com/firestack-autoinit). 

Hardcoding is important since environment variable substitution doesn't dive into a developer's `node_modules` folder. This gives us a framework agnostic way to inject configuration and is a more robust solution than the _experimental_ autoinit methods provided by Web Frameworks [go/firebase-api-client-autoinit](https://goto.google.com/firebase-api-client-autoinit). Once this lands, we'll backport to Hosting and Functions and aim to deprecate the other autoinit methods.

* Added non-null properties to database.ThenableReference (#8800)

* Version Packages (#8794)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* DataConnect: Update requests to point to v1 backend endpoints instead of v1beta (#8820)

* update API requests to point to v1 instead of v1beta

* update changelog

* Remove auto-commit API report workflow (#8808)

* Add missing `BlockReason` and `FinishReason` enum values (#8741)

* Convert enum comments to JSDoc comments (#8742)

* Add `systemInstruction`, `tools`, and `generationConfig` to `CountTokensRequest` (#8827)

* Update yarn.lock in e2e (#8831)

* Fix transport service retry logic condition (Fixes #8813) (#8814)

Modify the retry mechanism to stop when remaining tries is less than or equal to zero, improving the robustness of the retry handling.

Fixes #8813

* Give `check-changeset` job pull request write permissions (#8833)

* Fix: sort strings in UTF-8 encoded byte order with lazy encoding (#8787)

* fix golden files test (#8843)

* fix golden files test

* update responses version

---------

Co-authored-by: David Motsonashvili <davidmotson@google.com>

* Surface all App Check errors in public getToken() method (#8842)

* Grant Create PR workflow pull-request write perms. (#8846)

Our staging release workflow failed to create a Version Packages PR. Grant the PR creation workflow `pull-request` `write` permissions.

* Grant Create PR content write permissions. (#8848)

Our staging release workflow failed to merge branch. Grant the PR creation workflow `content` `write` permissions to fix this.

* Version Packages (#8849) - v11.5.0

Release version 11.5.0.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Deprecate `GroundingAttribution` (#8832)

* Stream full logs of test-all firestore job (#8851)

* Set github actions to use commit hashes (#8852)

* Implement Partial Errors for FDC (#8821)

* Add `X-Firebase-AppId` header to VertexAI requests (#8809)

* Update dependency webpack to v5.94.0 [SECURITY] (#8734)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency express to v4.20.0 [SECURITY] (#8759)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* karma.base.js: replace "BROWSER" with "BROWSERS" in log messages, to reflect the actual name of the environment variable (see #8491) (#8875)

* Auth cookie persistence (#8839)

Adding `Persistence.COOKIE` a new persistence method backed by cookies. The `browserCookiePersistence` implementation is designed to be used in conjunction with middleware that ensures both your front and backend authentication state remains synchronized.

* firestore: fix `undefined` document snapshot data after "clear site data" (#8871)

* Use base browsers variable in Firestore karma config (#8876)

* [chore] Update some dependencies (#8868)

* Version Packages (#8878)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Fix 'window is not defined' error when calling clearIndexedDbPersistence

* Fix Data Connect Types (#8898)

* test(vertexai): update mock responses to v8 (#8904)

* Fix: display WebChannel error message (#8907)

* test(vertexai): add `backendName` param to mock response getters (#8906)

`backendName` can be either `googleAI` or `vertexAI`. This can be passed
to `getMockResponse` or `getMockResponseStreaming` to specify whether
the mock response lookup should be done in the set of vertexAI or
googleAI mock files.

Modified the `convert-mocks.ts` script to read mock responses from the
'developerapi' directory, and add an export to the generated file for
the new lookup object with those mock responses.

* fix: remove `null` value inclusion from `!=` and `not-in` filter results (#8915)

* Add assertion IDs that will be included in production log statements for fail and hardAsserts (#8313)

* docs(vertexai): remove HTML `<code>` tags (#8900)

We wrap links that reference public APIs with `<code>` tags so that they
can be rendered as code in devsite. Unfortunately, VSCode's hover
feature can not render these links at all.

Since there are no other alternatives for creating code-formatted links,
we should remove the problematic HTML `<code>` tags.

* test(vertexai): update developerapi mock response dir to googleai (#8921)

* Fix languageCode parameter in action_code_url (#8912)

* Fix languageCode parameter in action_code_url

* Add changeset

* test(vertexai): update mock responses to v10 (#8959)

* Version Packages (#8956)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Improve the integration test coverage for online vs offline comparisons. (#8975)

* Improve the integration test coverage for online vs offline comparisons.

* prettier.

* Add missing cases.

* fix(vertexai): add missing quote to chat role error message (#8979)

* Auto Enable SSL for Firebase Studio (#8980)

* Add support for running the emulators in Cloud Workstation (#8968)

* Add Cookie Support For Firebase Studio (#8986)

* Fix Auth Port for Firebase Studio (#8998)

* Change automaticDataCollectionEnabled to default to true. (#8999)

* Version Packages (#8997)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Roll back #8999 (#9007)

* Revert "Change automaticDataCollectionEnabled to default to true. (#8999)"

This reverts commit 3789b5a.

* Revert #8999 - backend is not ready

* Version Packages (#9008)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(vertexai): pass `GenerativeModel`'s `BaseParams` to `ChatSession` (#8972)

startChat wasn't passing GenerativeModel's BaseParams to ChatSession.
So, if a model had a generationConfig, it would never be passed to ChatSession.

* feat(vertexai): Gemini multimodal output (#8922)

Adds new ResponseModality enum that allows users to specify which modalities should be included in a response.
Since we provide a text() accessor, a similar inlineDataParts() accessor was added to return all InlineDataPart[] in the first candidate.

* test: Clean up vscode launch file and add vertexai debug config (#9000)

* Fix encoding of CSI keys in Safari (#8993)

* Restore #8999 (#9010)

* Revert "Roll back #8999 (#9007)"

This reverts commit 51e7b48.

* Changeset

* feat(ai): Migrate to `AI` and add GoogleAI support (#8931)

* Add Emulator Overlay (#8977)

* Rename `@firebase/vertexai` package to `@firebase/ai` (#9011)

* Add Emulator Overlay (#8977) (#9031)

Co-authored-by: Maneesh Tewani <maneesht@users.noreply.github.com>

* add temporary release branch (#9032)

* Allow custom branch for release (#9033)

* add temporary release branch

* restore Vertex token for temp publish (#9036)

* Version Packages (manual PR) (#9034)

* Fixed scroll behavior (#9043)

* Version Packages (manual PR) (#9044)

* Remove redundant changeset

* Update e2e tests to reflect AI package and new API (#9017)

* Version Packages (#9016)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Revert "Fixed scroll behavior (#8977)" (#9053)

* Revert "Fixed scroll behavior (#9043)"

This reverts commit 9bcd1ea.

* Revert "Add Emulator Overlay (#8977) (#9031)"

This reverts commit 8593fa0.

* Undid revert of util

* Create dirty-crews-cross.md

* Removed unnecessary markdown file

* Updated to only show banner when calling connect*Emulator (#9055)

* Version Packages (#9054)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Close webchannel instances on terminate (#9041)

Explicitly close any unclosed WebChannel instances on Firestore#terminate()

* Reorder reporters to prevent log message duplication in CI (#9040)

* docs(ai): Fix 'occured' typo in error codes (#9021)

* feat(ai): Add `HarmBlockThreshold.OFF` (#9050)

* feat(ai): Schema `title`, `maximum`, `minimum`, and `propertyOrdering` (#9047)

* feat(ai): Add support for `minItems` and `maxItems` to `Schema` (#9026)

* Build out e2e subdirectories (#9065)

* Added test project to fdc (#8924)

* Version Packages (#9073)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

Release version 11.9.0.

* test(ai): add integration tests (#8853)

* Update issue template to rename VertexAI > AI (#9074)

* ci: Fix Firefox error and streamline cross-browser tests (#9015)

* Fixed issue where requestSts wasn't including the Studio cookie in it (#9075)

* Fix issue where we ping an endpoint that hasn't been implemented (#9059)

* Updated firebase auth changeset (#9088)

* build(all): Version Packages v11.9.1 (#9089)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

v11.9.1 release.

* test(ai): Upgrade mock responses to v14 (#9091)

* Feat/google3 typings support (#9085)

* fix(ai): Add deprecation tag to `totalBillableCharacters` (#9090)

* test(ai): Add `gemini-2.5-flash` to integration tests (#9110)

Added gemini-2.5-flash to our integration tests now that it's publicly available.

The token counts differ slightly between 2.0-flash and 2.5-flash so I introduced conditionals when checking token counts.

* firestore: minor refactor of listener registration of "versionchange" indexedb events (#9087)

* Fixed issue where storage wasn't passing cookies when using firebase Studio (#9111)

* fix: Add "react-native" entry point to @firebase/app (#9112)

* Feat(Firestore) JSON serialization of types to improve SSR support. (#8926)

Support the ability to resume `onSnapshot` listeners in the CSR phase based on serialized `DataSnapshot`s and `QuerySnapshot`s built in the SSR phase. Allow Firestore result types to be serialized with `toJSON` and then deserialized with `fromJSON` methods on the objects.

`DocumentSnapshot` and `QuerySnapshot` deserialization methods will be standalone, tree-shakable functions `dataSnapshotFromJSON` and `querySnapshotFromJSON`.

* chore(Firestore) add changeset for PR #8926 (#9115)

Add the missing changset for PR #8926.

* Build fixes

* yarn.lock

* formatting

---------

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Google Open Source Bot <firebase-oss-bot@google.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Christina Holland <chholland@google.com>
Co-authored-by: Daniel La Rocque <dlarocque@google.com>
Co-authored-by: Daniel Lee <taeold@gmail.com>
Co-authored-by: Maneesh Tewani <maneesht@users.noreply.github.com>
Co-authored-by: DellaBitta <drsanta@google.com>
Co-authored-by: Mila <107142260+milaGGL@users.noreply.github.com>
Co-authored-by: Ashish Kothari <ashish.k3194@gmail.com>
Co-authored-by: dlarocque <dlarocque@users.noreply.github.com>
Co-authored-by: Nhien (Ricky) Lam <62775270+NhienLam@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: DellaBitta <DellaBitta@users.noreply.github.com>
Co-authored-by: Bryan Atkinson <bryanatkinson@google.com>
Co-authored-by: Alexander <74536256+alexander-at-t@users.noreply.github.com>
Co-authored-by: jposuna <49734+jposuna@users.noreply.github.com>
Co-authored-by: NhienLam <NhienLam@users.noreply.github.com>
Co-authored-by: mansisampat <sammansi@google.com>
Co-authored-by: Stephen Rosa <84193009+stephenarosaj@users.noreply.github.com>
Co-authored-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Co-authored-by: Kevin Elko <kjelko@gmail.com>
Co-authored-by: Rodrigo Lazo <rlazo@users.noreply.github.com>
Co-authored-by: rachelsaunders <52258509+rachelsaunders@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Daniels <jamesdaniels@google.com>
Co-authored-by: Rich Hodgkins <rich@bookcreator.com>
Co-authored-by: Leo <khalx.leo@gmail.com>
Co-authored-by: David Motsonashvili <davidmotson@gmail.com>
Co-authored-by: David Motsonashvili <davidmotson@google.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Denver Coneybeare <dconeybe@google.com>
Co-authored-by: Pavan Shankar <pavanshankar@google.com>
Co-authored-by: Ehsan <ehsannas@gmail.com>
Co-authored-by: eranc-google <eranc@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants