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

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

Merged
merged 11 commits into from
Dec 4, 2024

Conversation

maneesht
Copy link
Contributor

@maneesht maneesht commented Dec 3, 2024

In SSR environments, connectDataConnectEmulator may be called more than once, and connectDataConnect only allows you to call it once.
Because of this, connectDataConnectEmulator throws an error in SSR environments. This PR only throws an error if the new transport options are different than the old one and if the object has already been initialized.

Copy link

changeset-bot bot commented Dec 3, 2024

🦋 Changeset detected

Latest commit: e7a7c2a

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

This PR includes changesets to release 2 packages
Name Type
@firebase/data-connect Patch
firebase 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 requested review from a team as code owners December 3, 2024 22:34
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Dec 3, 2024

Size Report 1

Affected Products

  • @firebase/data-connect

    TypeBase (ffbf5a6)Merge (baa570f)Diff
    browser19.9 kB20.2 kB+329 B (+1.7%)
    main21.7 kB22.1 kB+455 B (+2.1%)
    module19.9 kB20.2 kB+329 B (+1.7%)
  • @firebase/functions

    TypeBase (ffbf5a6)Merge (baa570f)Diff
    browser9.72 kB13.7 kB+3.95 kB (+40.7%)
    main10.3 kB14.2 kB+3.95 kB (+38.4%)
    module9.72 kB13.7 kB+3.95 kB (+40.7%)
  • @firebase/messaging

    TypeBase (ffbf5a6)Merge (baa570f)Diff
    browser21.3 kB22.0 kB+765 B (+3.6%)
    main21.7 kB22.4 kB+765 B (+3.5%)
    module21.3 kB22.0 kB+765 B (+3.6%)
  • @firebase/vertexai

    TypeBase (ffbf5a6)Merge (baa570f)Diff
    browser28.9 kB28.8 kB-83 B (-0.3%)
    main29.7 kB29.6 kB-83 B (-0.3%)
    module28.9 kB28.8 kB-83 B (-0.3%)
  • bundle

    TypeBase (ffbf5a6)Merge (baa570f)Diff
    functions (call)32.0 kB34.4 kB+2.36 kB (+7.4%)
    messaging (send + receive)46.9 kB47.4 kB+466 B (+1.0%)
  • firebase

    TypeBase (ffbf5a6)Merge (baa570f)Diff
    firebase-compat.js794 kB797 kB+2.63 kB (+0.3%)
    firebase-data-connect.js16.6 kB16.7 kB+186 B (+1.1%)
    firebase-functions-compat.js8.21 kB10.4 kB+2.20 kB (+26.8%)
    firebase-functions.js12.0 kB14.6 kB+2.58 kB (+21.5%)
    firebase-messaging-compat.js38.3 kB38.7 kB+408 B (+1.1%)
    firebase-messaging.js28.7 kB29.1 kB+452 B (+1.6%)
    firebase-vertexai.js23.9 kB23.8 kB-90 B (-0.4%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Dec 3, 2024

Size Analysis Report 1

Affected Products

  • @firebase/data-connect

    • DataConnect

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.6 kB11.7 kB+115 B (+1.0%)
      size-with-ext-deps29.7 kB29.8 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      14 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      15 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • MUTATION_STR

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.6 kB11.8 kB+115 B (+1.0%)
      size-with-ext-deps29.7 kB29.8 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      14 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      15 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • MutationManager

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.6 kB11.7 kB+115 B (+1.0%)
      size-with-ext-deps29.7 kB29.8 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      14 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      15 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • QUERY_STR

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.6 kB11.7 kB+115 B (+1.0%)
      size-with-ext-deps29.7 kB29.8 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      14 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      15 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • SOURCE_CACHE

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.6 kB11.7 kB+115 B (+1.0%)
      size-with-ext-deps29.7 kB29.8 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      14 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      15 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • SOURCE_SERVER

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.6 kB11.7 kB+115 B (+1.0%)
      size-with-ext-deps29.7 kB29.8 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      14 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      15 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • areTransportOptionsEqual

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size?11.8 kB? (?)
      size-with-ext-deps?29.8 kB? (?)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions?

      15 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      ?
      classes?

      AppCheckTokenProvider
      DataConnect
      DataConnectError
      FirebaseAuthProvider
      MutationManager
      QueryManager
      RESTTransport

      ?
      variables?

      11 dependencies

      Code
      FIREBASE_DATA_CONNECT_EMULATOR_HOST_VAR
      QUERY_STR
      SDK_VERSION
      SOURCE_CACHE
      SOURCE_SERVER
      connectFetch
      encoderImpl
      logger
      name
      version

      ?
      enums??

      External Dependency

      ModuleBase (ffbf5a6)Merge (baa570f)Diff
      @firebase/app?

      SDK_VERSION
      _registerComponent
      _removeServiceInstance
      registerVersion

      ?
      @firebase/component?

      Component

      ?
      @firebase/logger?

      Logger

      ?
      @firebase/util?

      FirebaseError

      ?
    • connectDataConnectEmulator

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.7 kB11.8 kB+115 B (+1.0%)
      size-with-ext-deps29.8 kB29.9 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      15 dependencies

      addToken
      compareDates
      connectDataConnectEmulator
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      16 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      connectDataConnectEmulator
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • executeMutation

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.7 kB11.8 kB+115 B (+1.0%)
      size-with-ext-deps29.8 kB29.9 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      15 dependencies

      addToken
      compareDates
      dcFetch
      executeMutation
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      16 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      executeMutation
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • executeQuery

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.7 kB11.8 kB+115 B (+1.0%)
      size-with-ext-deps29.8 kB29.9 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      15 dependencies

      addToken
      compareDates
      dcFetch
      executeQuery
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      16 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      executeQuery
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • getDataConnect

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size12.3 kB12.4 kB+115 B (+0.9%)
      size-with-ext-deps37.5 kB37.6 kB+117 B (+0.3%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      16 dependencies

      addToken
      compareDates
      dcFetch
      getDataConnect
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder
      validateDCOptions

      17 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getDataConnect
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder
      validateDCOptions

      + areTransportOptionsEqual

    • mutationRef

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.7 kB11.9 kB+115 B (+1.0%)
      size-with-ext-deps29.8 kB29.9 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      15 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      mutationRef
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      16 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      mutationRef
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • parseOptions

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.6 kB11.7 kB+115 B (+1.0%)
      size-with-ext-deps29.7 kB29.8 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      14 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      15 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • queryRef

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.7 kB11.9 kB+115 B (+1.0%)
      size-with-ext-deps29.8 kB29.9 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      15 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      queryRef
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      16 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      queryRef
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • setLogLevel

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.7 kB11.8 kB+115 B (+1.0%)
      size-with-ext-deps29.7 kB29.8 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      15 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setLogLevel
      setSDKVersion
      urlBuilder

      16 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setLogLevel
      setSDKVersion
      urlBuilder

      + areTransportOptionsEqual

    • subscribe

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size12.9 kB13.0 kB+115 B (+0.9%)
      size-with-ext-deps38.0 kB38.1 kB+117 B (+0.3%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      19 dependencies

      addToken
      compareDates
      dcFetch
      getDataConnect
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      queryRef
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      subscribe
      toQueryRef
      urlBuilder
      validateDCOptions

      20 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getDataConnect
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      queryRef
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      subscribe
      toQueryRef
      urlBuilder
      validateDCOptions

      + areTransportOptionsEqual

    • terminate

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.7 kB11.8 kB+115 B (+1.0%)
      size-with-ext-deps29.7 kB29.8 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      15 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      terminate
      urlBuilder

      16 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      terminate
      urlBuilder

      + areTransportOptionsEqual

    • toQueryRef

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size12.5 kB12.6 kB+115 B (+0.9%)
      size-with-ext-deps37.7 kB37.8 kB+117 B (+0.3%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      18 dependencies

      addToken
      compareDates
      dcFetch
      getDataConnect
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      queryRef
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      toQueryRef
      urlBuilder
      validateDCOptions

      19 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getDataConnect
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      queryRef
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      toQueryRef
      urlBuilder
      validateDCOptions

      + areTransportOptionsEqual

    • validateArgs

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size12.5 kB12.6 kB+115 B (+0.9%)
      size-with-ext-deps37.6 kB37.8 kB+117 B (+0.3%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      17 dependencies

      addToken
      compareDates
      dcFetch
      getDataConnect
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder
      validateArgs
      validateDCOptions

      18 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getDataConnect
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder
      validateArgs
      validateDCOptions

      + areTransportOptionsEqual

    • validateDCOptions

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size11.9 kB12.0 kB+115 B (+1.0%)
      size-with-ext-deps29.9 kB30.0 kB+117 B (+0.4%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      15 dependencies

      addToken
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder
      validateDCOptions

      16 dependencies

      addToken
      areTransportOptionsEqual
      compareDates
      dcFetch
      getGoogApiClientValue
      getMessage
      getRefSerializer
      logDebug
      logError
      parseOptions
      registerDataConnect
      setEncoder
      setIfNotExists
      setSDKVersion
      urlBuilder
      validateDCOptions

      + areTransportOptionsEqual

  • @firebase/functions

    • FunctionsError

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size2.48 kB2.52 kB+41 B (+1.7%)
      size-with-ext-deps20.3 kB20.3 kB+41 B (+0.2%)
    • connectFunctionsEmulator

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size2.46 kB2.50 kB+41 B (+1.7%)
      size-with-ext-deps20.3 kB20.4 kB+41 B (+0.2%)
    • getFunctions

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size2.64 kB2.68 kB+41 B (+1.6%)
      size-with-ext-deps28.1 kB28.2 kB+41 B (+0.1%)
    • httpsCallable

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size6.12 kB8.45 kB+2.33 kB (+38.1%)
      size-with-ext-deps24.0 kB26.4 kB+2.36 kB (+9.8%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      12 dependencies

      _errorForResponse
      call
      callAtURL
      codeForHTTPStatus
      decode
      encode
      failAfter
      httpsCallable
      httpsCallable$1
      mapValues
      postJSON
      registerFunctions

      16 dependencies

      _errorForResponse
      call
      callAtURL
      codeForHTTPStatus
      createResponseStream
      decode
      encode
      failAfter
      httpsCallable
      httpsCallable$1
      makeAuthHeaders
      mapValues
      postJSON
      registerFunctions
      stream
      streamAtURL

      + createResponseStream
      + makeAuthHeaders
      + stream
      + streamAtURL

      variables

      APP_CHECK_INTERNAL_NAME
      AUTH_INTERNAL_NAME
      DEFAULT_REGION
      FUNCTIONS_TYPE
      LONG_TYPE
      MESSAGING_INTERNAL_NAME
      UNSIGNED_LONG_TYPE
      errorCodeMap
      name
      version

      11 dependencies

      APP_CHECK_INTERNAL_NAME
      AUTH_INTERNAL_NAME
      DEFAULT_REGION
      FUNCTIONS_TYPE
      LONG_TYPE
      MESSAGING_INTERNAL_NAME
      UNSIGNED_LONG_TYPE
      errorCodeMap
      name
      responseLineRE
      version

      + responseLineRE

    • httpsCallableFromURL

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size6.07 kB8.35 kB+2.28 kB (+37.5%)
      size-with-ext-deps23.9 kB26.2 kB+2.30 kB (+9.6%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      11 dependencies

      _errorForResponse
      callAtURL
      codeForHTTPStatus
      decode
      encode
      failAfter
      httpsCallableFromURL
      httpsCallableFromURL$1
      mapValues
      postJSON
      registerFunctions

      14 dependencies

      _errorForResponse
      callAtURL
      codeForHTTPStatus
      createResponseStream
      decode
      encode
      failAfter
      httpsCallableFromURL
      httpsCallableFromURL$1
      makeAuthHeaders
      mapValues
      postJSON
      registerFunctions
      streamAtURL

      + createResponseStream
      + makeAuthHeaders
      + streamAtURL

      variables

      APP_CHECK_INTERNAL_NAME
      AUTH_INTERNAL_NAME
      DEFAULT_REGION
      FUNCTIONS_TYPE
      LONG_TYPE
      MESSAGING_INTERNAL_NAME
      UNSIGNED_LONG_TYPE
      errorCodeMap
      name
      version

      11 dependencies

      APP_CHECK_INTERNAL_NAME
      AUTH_INTERNAL_NAME
      DEFAULT_REGION
      FUNCTIONS_TYPE
      LONG_TYPE
      MESSAGING_INTERNAL_NAME
      UNSIGNED_LONG_TYPE
      errorCodeMap
      name
      responseLineRE
      version

      + responseLineRE

  • @firebase/messaging

    • deleteToken

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size12.7 kB13.1 kB+465 B (+3.7%)
      size-with-ext-deps39.4 kB39.9 kB+466 B (+1.2%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      39 dependencies

      _mergeStrings
      arrayToBase64
      base64ToArray
      checkTokenDetails
      dbGet
      dbRemove
      dbSet
      deleteToken
      deleteToken$1
      deleteTokenInternal
      externalizePayload
      extractAppConfig
      getBody
      getDbPromise
      getEndpoint
      getEventType
      getHeaders
      getKey
      getMissingValueError
      getNewToken
      getPushSubscription
      getToken$1
      getTokenInternal
      isConsoleMessage
      isTokenValid
      logToScion
      messageEventListener
      migrateOldDatabase
      propagateDataPayload
      propagateFcmOptions
      propagateNotificationPayload
      registerDefaultSw
      registerMessagingInWindow
      requestDeleteToken
      requestGetToken
      requestUpdateToken
      updateSwReg
      updateToken
      updateVapidKey

      40 dependencies

      _mergeStrings
      arrayToBase64
      base64ToArray
      checkTokenDetails
      dbGet
      dbRemove
      dbSet
      deleteToken
      deleteToken$1
      deleteTokenInternal
      externalizePayload
      extractAppConfig
      getBody
      getDbPromise
      getEndpoint
      getEventType
      getHeaders
      getKey
      getMissingValueError
      getNewToken
      getPushSubscription
      getToken$1
      getTokenInternal
      isConsoleMessage
      isTokenValid
      logToScion
      messageEventListener
      migrateOldDatabase
      propagateDataPayload
      propagateFcmOptions
      propagateNotificationPayload
      registerDefaultSw
      registerMessagingInWindow
      requestDeleteToken
      requestGetToken
      requestUpdateToken
      updateSwReg
      updateToken
      updateVapidKey
      waitForRegistrationActive

      + waitForRegistrationActive

      variables

      24 dependencies

      CONSOLE_CAMPAIGN_ANALYTICS_ENABLED
      CONSOLE_CAMPAIGN_ID
      CONSOLE_CAMPAIGN_NAME
      CONSOLE_CAMPAIGN_TIME
      DATABASE_NAME
      DATABASE_VERSION
      DEFAULT_SW_PATH
      DEFAULT_SW_SCOPE
      DEFAULT_VAPID_KEY
      ENDPOINT
      ERROR_FACTORY
      ERROR_MAP
      MessageType
      MessageType$1
      OBJECT_STORE_NAME
      OLD_DB_NAME
      OLD_DB_VERSION
      OLD_OBJECT_STORE_NAME
      TOKEN_EXPIRATION_MS
      WindowMessagingFactory
      WindowMessagingInternalFactory
      dbPromise
      name
      version

      25 dependencies

      CONSOLE_CAMPAIGN_ANALYTICS_ENABLED
      CONSOLE_CAMPAIGN_ID
      CONSOLE_CAMPAIGN_NAME
      CONSOLE_CAMPAIGN_TIME
      DATABASE_NAME
      DATABASE_VERSION
      DEFAULT_REGISTRATION_TIMEOUT
      DEFAULT_SW_PATH
      DEFAULT_SW_SCOPE
      DEFAULT_VAPID_KEY
      ENDPOINT
      ERROR_FACTORY
      ERROR_MAP
      MessageType
      MessageType$1
      OBJECT_STORE_NAME
      OLD_DB_NAME
      OLD_DB_VERSION
      OLD_OBJECT_STORE_NAME
      TOKEN_EXPIRATION_MS
      WindowMessagingFactory
      WindowMessagingInternalFactory
      dbPromise
      name
      version

      + DEFAULT_REGISTRATION_TIMEOUT

    • getMessaging

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size12.7 kB13.2 kB+465 B (+3.6%)
      size-with-ext-deps46.6 kB47.0 kB+466 B (+1.0%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      37 dependencies

      _mergeStrings
      arrayToBase64
      base64ToArray
      checkTokenDetails
      dbGet
      dbSet
      externalizePayload
      extractAppConfig
      getBody
      getDbPromise
      getEndpoint
      getEventType
      getHeaders
      getKey
      getMessagingInWindow
      getMissingValueError
      getNewToken
      getPushSubscription
      getToken$1
      getTokenInternal
      isConsoleMessage
      isTokenValid
      isWindowSupported
      logToScion
      messageEventListener
      migrateOldDatabase
      propagateDataPayload
      propagateFcmOptions
      propagateNotificationPayload
      registerDefaultSw
      registerMessagingInWindow
      requestDeleteToken
      requestGetToken
      requestUpdateToken
      updateSwReg
      updateToken
      updateVapidKey

      38 dependencies

      _mergeStrings
      arrayToBase64
      base64ToArray
      checkTokenDetails
      dbGet
      dbSet
      externalizePayload
      extractAppConfig
      getBody
      getDbPromise
      getEndpoint
      getEventType
      getHeaders
      getKey
      getMessagingInWindow
      getMissingValueError
      getNewToken
      getPushSubscription
      getToken$1
      getTokenInternal
      isConsoleMessage
      isTokenValid
      isWindowSupported
      logToScion
      messageEventListener
      migrateOldDatabase
      propagateDataPayload
      propagateFcmOptions
      propagateNotificationPayload
      registerDefaultSw
      registerMessagingInWindow
      requestDeleteToken
      requestGetToken
      requestUpdateToken
      updateSwReg
      updateToken
      updateVapidKey
      waitForRegistrationActive

      + waitForRegistrationActive

      variables

      24 dependencies

      CONSOLE_CAMPAIGN_ANALYTICS_ENABLED
      CONSOLE_CAMPAIGN_ID
      CONSOLE_CAMPAIGN_NAME
      CONSOLE_CAMPAIGN_TIME
      DATABASE_NAME
      DATABASE_VERSION
      DEFAULT_SW_PATH
      DEFAULT_SW_SCOPE
      DEFAULT_VAPID_KEY
      ENDPOINT
      ERROR_FACTORY
      ERROR_MAP
      MessageType
      MessageType$1
      OBJECT_STORE_NAME
      OLD_DB_NAME
      OLD_DB_VERSION
      OLD_OBJECT_STORE_NAME
      TOKEN_EXPIRATION_MS
      WindowMessagingFactory
      WindowMessagingInternalFactory
      dbPromise
      name
      version

      25 dependencies

      CONSOLE_CAMPAIGN_ANALYTICS_ENABLED
      CONSOLE_CAMPAIGN_ID
      CONSOLE_CAMPAIGN_NAME
      CONSOLE_CAMPAIGN_TIME
      DATABASE_NAME
      DATABASE_VERSION
      DEFAULT_REGISTRATION_TIMEOUT
      DEFAULT_SW_PATH
      DEFAULT_SW_SCOPE
      DEFAULT_VAPID_KEY
      ENDPOINT
      ERROR_FACTORY
      ERROR_MAP
      MessageType
      MessageType$1
      OBJECT_STORE_NAME
      OLD_DB_NAME
      OLD_DB_VERSION
      OLD_OBJECT_STORE_NAME
      TOKEN_EXPIRATION_MS
      WindowMessagingFactory
      WindowMessagingInternalFactory
      dbPromise
      name
      version

      + DEFAULT_REGISTRATION_TIMEOUT

    • getToken

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size12.2 kB12.6 kB+467 B (+3.8%)
      size-with-ext-deps38.9 kB39.3 kB+466 B (+1.2%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      36 dependencies

      _mergeStrings
      arrayToBase64
      base64ToArray
      checkTokenDetails
      dbGet
      dbSet
      externalizePayload
      extractAppConfig
      getBody
      getDbPromise
      getEndpoint
      getEventType
      getHeaders
      getKey
      getMissingValueError
      getNewToken
      getPushSubscription
      getToken
      getToken$1
      getTokenInternal
      isConsoleMessage
      isTokenValid
      logToScion
      messageEventListener
      migrateOldDatabase
      propagateDataPayload
      propagateFcmOptions
      propagateNotificationPayload
      registerDefaultSw
      registerMessagingInWindow
      requestDeleteToken
      requestGetToken
      requestUpdateToken
      updateSwReg
      updateToken
      updateVapidKey

      37 dependencies

      _mergeStrings
      arrayToBase64
      base64ToArray
      checkTokenDetails
      dbGet
      dbSet
      externalizePayload
      extractAppConfig
      getBody
      getDbPromise
      getEndpoint
      getEventType
      getHeaders
      getKey
      getMissingValueError
      getNewToken
      getPushSubscription
      getToken
      getToken$1
      getTokenInternal
      isConsoleMessage
      isTokenValid
      logToScion
      messageEventListener
      migrateOldDatabase
      propagateDataPayload
      propagateFcmOptions
      propagateNotificationPayload
      registerDefaultSw
      registerMessagingInWindow
      requestDeleteToken
      requestGetToken
      requestUpdateToken
      updateSwReg
      updateToken
      updateVapidKey
      waitForRegistrationActive

      + waitForRegistrationActive

      variables

      24 dependencies

      CONSOLE_CAMPAIGN_ANALYTICS_ENABLED
      CONSOLE_CAMPAIGN_ID
      CONSOLE_CAMPAIGN_NAME
      CONSOLE_CAMPAIGN_TIME
      DATABASE_NAME
      DATABASE_VERSION
      DEFAULT_SW_PATH
      DEFAULT_SW_SCOPE
      DEFAULT_VAPID_KEY
      ENDPOINT
      ERROR_FACTORY
      ERROR_MAP
      MessageType
      MessageType$1
      OBJECT_STORE_NAME
      OLD_DB_NAME
      OLD_DB_VERSION
      OLD_OBJECT_STORE_NAME
      TOKEN_EXPIRATION_MS
      WindowMessagingFactory
      WindowMessagingInternalFactory
      dbPromise
      name
      version

      25 dependencies

      CONSOLE_CAMPAIGN_ANALYTICS_ENABLED
      CONSOLE_CAMPAIGN_ID
      CONSOLE_CAMPAIGN_NAME
      CONSOLE_CAMPAIGN_TIME
      DATABASE_NAME
      DATABASE_VERSION
      DEFAULT_REGISTRATION_TIMEOUT
      DEFAULT_SW_PATH
      DEFAULT_SW_SCOPE
      DEFAULT_VAPID_KEY
      ENDPOINT
      ERROR_FACTORY
      ERROR_MAP
      MessageType
      MessageType$1
      OBJECT_STORE_NAME
      OLD_DB_NAME
      OLD_DB_VERSION
      OLD_OBJECT_STORE_NAME
      TOKEN_EXPIRATION_MS
      WindowMessagingFactory
      WindowMessagingInternalFactory
      dbPromise
      name
      version

      + DEFAULT_REGISTRATION_TIMEOUT

    • isSupported

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size12.5 kB13.0 kB+465 B (+3.7%)
      size-with-ext-deps39.2 kB39.7 kB+466 B (+1.2%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      36 dependencies

      _mergeStrings
      arrayToBase64
      base64ToArray
      checkTokenDetails
      dbGet
      dbSet
      externalizePayload
      extractAppConfig
      getBody
      getDbPromise
      getEndpoint
      getEventType
      getHeaders
      getKey
      getMissingValueError
      getNewToken
      getPushSubscription
      getToken$1
      getTokenInternal
      isConsoleMessage
      isTokenValid
      isWindowSupported
      logToScion
      messageEventListener
      migrateOldDatabase
      propagateDataPayload
      propagateFcmOptions
      propagateNotificationPayload
      registerDefaultSw
      registerMessagingInWindow
      requestDeleteToken
      requestGetToken
      requestUpdateToken
      updateSwReg
      updateToken
      updateVapidKey

      37 dependencies

      _mergeStrings
      arrayToBase64
      base64ToArray
      checkTokenDetails
      dbGet
      dbSet
      externalizePayload
      extractAppConfig
      getBody
      getDbPromise
      getEndpoint
      getEventType
      getHeaders
      getKey
      getMissingValueError
      getNewToken
      getPushSubscription
      getToken$1
      getTokenInternal
      isConsoleMessage
      isTokenValid
      isWindowSupported
      logToScion
      messageEventListener
      migrateOldDatabase
      propagateDataPayload
      propagateFcmOptions
      propagateNotificationPayload
      registerDefaultSw
      registerMessagingInWindow
      requestDeleteToken
      requestGetToken
      requestUpdateToken
      updateSwReg
      updateToken
      updateVapidKey
      waitForRegistrationActive

      + waitForRegistrationActive

      variables

      24 dependencies

      CONSOLE_CAMPAIGN_ANALYTICS_ENABLED
      CONSOLE_CAMPAIGN_ID
      CONSOLE_CAMPAIGN_NAME
      CONSOLE_CAMPAIGN_TIME
      DATABASE_NAME
      DATABASE_VERSION
      DEFAULT_SW_PATH
      DEFAULT_SW_SCOPE
      DEFAULT_VAPID_KEY
      ENDPOINT
      ERROR_FACTORY
      ERROR_MAP
      MessageType
      MessageType$1
      OBJECT_STORE_NAME
      OLD_DB_NAME
      OLD_DB_VERSION
      OLD_OBJECT_STORE_NAME
      TOKEN_EXPIRATION_MS
      WindowMessagingFactory
      WindowMessagingInternalFactory
      dbPromise
      name
      version

      25 dependencies

      CONSOLE_CAMPAIGN_ANALYTICS_ENABLED
      CONSOLE_CAMPAIGN_ID
      CONSOLE_CAMPAIGN_NAME
      CONSOLE_CAMPAIGN_TIME
      DATABASE_NAME
      DATABASE_VERSION
      DEFAULT_REGISTRATION_TIMEOUT
      DEFAULT_SW_PATH
      DEFAULT_SW_SCOPE
      DEFAULT_VAPID_KEY
      ENDPOINT
      ERROR_FACTORY
      ERROR_MAP
      MessageType
      MessageType$1
      OBJECT_STORE_NAME
      OLD_DB_NAME
      OLD_DB_VERSION
      OLD_OBJECT_STORE_NAME
      TOKEN_EXPIRATION_MS
      WindowMessagingFactory
      WindowMessagingInternalFactory
      dbPromise
      name
      version

      + DEFAULT_REGISTRATION_TIMEOUT

    • onMessage

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size12.3 kB12.8 kB+467 B (+3.8%)
      size-with-ext-deps39.0 kB39.5 kB+466 B (+1.2%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      37 dependencies

      _mergeStrings
      arrayToBase64
      base64ToArray
      checkTokenDetails
      dbGet
      dbSet
      externalizePayload
      extractAppConfig
      getBody
      getDbPromise
      getEndpoint
      getEventType
      getHeaders
      getKey
      getMissingValueError
      getNewToken
      getPushSubscription
      getToken$1
      getTokenInternal
      isConsoleMessage
      isTokenValid
      logToScion
      messageEventListener
      migrateOldDatabase
      onMessage
      onMessage$1
      propagateDataPayload
      propagateFcmOptions
      propagateNotificationPayload
      registerDefaultSw
      registerMessagingInWindow
      requestDeleteToken
      requestGetToken
      requestUpdateToken
      updateSwReg
      updateToken
      updateVapidKey

      38 dependencies

      _mergeStrings
      arrayToBase64
      base64ToArray
      checkTokenDetails
      dbGet
      dbSet
      externalizePayload
      extractAppConfig
      getBody
      getDbPromise
      getEndpoint
      getEventType
      getHeaders
      getKey
      getMissingValueError
      getNewToken
      getPushSubscription
      getToken$1
      getTokenInternal
      isConsoleMessage
      isTokenValid
      logToScion
      messageEventListener
      migrateOldDatabase
      onMessage
      onMessage$1
      propagateDataPayload
      propagateFcmOptions
      propagateNotificationPayload
      registerDefaultSw
      registerMessagingInWindow
      requestDeleteToken
      requestGetToken
      requestUpdateToken
      updateSwReg
      updateToken
      updateVapidKey
      waitForRegistrationActive

      + waitForRegistrationActive

      variables

      24 dependencies

      CONSOLE_CAMPAIGN_ANALYTICS_ENABLED
      CONSOLE_CAMPAIGN_ID
      CONSOLE_CAMPAIGN_NAME
      CONSOLE_CAMPAIGN_TIME
      DATABASE_NAME
      DATABASE_VERSION
      DEFAULT_SW_PATH
      DEFAULT_SW_SCOPE
      DEFAULT_VAPID_KEY
      ENDPOINT
      ERROR_FACTORY
      ERROR_MAP
      MessageType
      MessageType$1
      OBJECT_STORE_NAME
      OLD_DB_NAME
      OLD_DB_VERSION
      OLD_OBJECT_STORE_NAME
      TOKEN_EXPIRATION_MS
      WindowMessagingFactory
      WindowMessagingInternalFactory
      dbPromise
      name
      version

      25 dependencies

      CONSOLE_CAMPAIGN_ANALYTICS_ENABLED
      CONSOLE_CAMPAIGN_ID
      CONSOLE_CAMPAIGN_NAME
      CONSOLE_CAMPAIGN_TIME
      DATABASE_NAME
      DATABASE_VERSION
      DEFAULT_REGISTRATION_TIMEOUT
      DEFAULT_SW_PATH
      DEFAULT_SW_SCOPE
      DEFAULT_VAPID_KEY
      ENDPOINT
      ERROR_FACTORY
      ERROR_MAP
      MessageType
      MessageType$1
      OBJECT_STORE_NAME
      OLD_DB_NAME
      OLD_DB_VERSION
      OLD_OBJECT_STORE_NAME
      TOKEN_EXPIRATION_MS
      WindowMessagingFactory
      WindowMessagingInternalFactory
      dbPromise
      name
      version

      + DEFAULT_REGISTRATION_TIMEOUT

  • @firebase/vertexai

    • ChatSession

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size14.7 kB14.6 kB-48 B (-0.3%)
      size-with-ext-deps33.2 kB33.1 kB-48 B (-0.1%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      22 dependencies

      addHelpers
      aggregateResponses
      assignRoleToPartsAndValidateSendMessageRequest
      buildFetchOptions
      constructRequest
      createEnhancedContentResponse
      formatBlockErrorMessage
      formatNewContent
      generateContent
      generateContentStream
      generateResponseSequence
      getClientHeaders
      getFunctionCalls
      getHeaders
      getResponsePromise
      getResponseStream
      getText
      hadBadFinishReason
      makeRequest
      processStream
      registerVertex
      validateChatHistory

      21 dependencies

      addHelpers
      aggregateResponses
      assignRoleToPartsAndValidateSendMessageRequest
      constructRequest
      createEnhancedContentResponse
      formatBlockErrorMessage
      formatNewContent
      generateContent
      generateContentStream
      generateResponseSequence
      getClientHeaders
      getFunctionCalls
      getHeaders
      getResponsePromise
      getResponseStream
      getText
      hadBadFinishReason
      makeRequest
      processStream
      registerVertex
      validateChatHistory

      - buildFetchOptions

      variables

      26 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      27 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      + DEFAULT_FETCH_TIMEOUT_MS

    • GenerativeModel

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size17.2 kB17.1 kB-48 B (-0.3%)
      size-with-ext-deps35.7 kB35.6 kB-48 B (-0.1%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      25 dependencies

      addHelpers
      aggregateResponses
      assignRoleToPartsAndValidateSendMessageRequest
      buildFetchOptions
      constructRequest
      countTokens
      createEnhancedContentResponse
      formatBlockErrorMessage
      formatGenerateContentInput
      formatNewContent
      formatSystemInstruction
      generateContent
      generateContentStream
      generateResponseSequence
      getClientHeaders
      getFunctionCalls
      getHeaders
      getResponsePromise
      getResponseStream
      getText
      hadBadFinishReason
      makeRequest
      processStream
      registerVertex
      validateChatHistory

      24 dependencies

      addHelpers
      aggregateResponses
      assignRoleToPartsAndValidateSendMessageRequest
      constructRequest
      countTokens
      createEnhancedContentResponse
      formatBlockErrorMessage
      formatGenerateContentInput
      formatNewContent
      formatSystemInstruction
      generateContent
      generateContentStream
      generateResponseSequence
      getClientHeaders
      getFunctionCalls
      getHeaders
      getResponsePromise
      getResponseStream
      getText
      hadBadFinishReason
      makeRequest
      processStream
      registerVertex
      validateChatHistory

      - buildFetchOptions

      variables

      26 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      27 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      + DEFAULT_FETCH_TIMEOUT_MS

    • getGenerativeModel

      Size

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      size17.3 kB17.3 kB-48 B (-0.3%)
      size-with-ext-deps35.8 kB35.8 kB-48 B (-0.1%)

      Dependency

      TypeBase (ffbf5a6)Merge (baa570f)Diff
      functions

      26 dependencies

      addHelpers
      aggregateResponses
      assignRoleToPartsAndValidateSendMessageRequest
      buildFetchOptions
      constructRequest
      countTokens
      createEnhancedContentResponse
      formatBlockErrorMessage
      formatGenerateContentInput
      formatNewContent
      formatSystemInstruction
      generateContent
      generateContentStream
      generateResponseSequence
      getClientHeaders
      getFunctionCalls
      getGenerativeModel
      getHeaders
      getResponsePromise
      getResponseStream
      getText
      hadBadFinishReason
      makeRequest
      processStream
      registerVertex
      validateChatHistory

      25 dependencies

      addHelpers
      aggregateResponses
      assignRoleToPartsAndValidateSendMessageRequest
      constructRequest
      countTokens
      createEnhancedContentResponse
      formatBlockErrorMessage
      formatGenerateContentInput
      formatNewContent
      formatSystemInstruction
      generateContent
      generateContentStream
      generateResponseSequence
      getClientHeaders
      getFunctionCalls
      getGenerativeModel
      getHeaders
      getResponsePromise
      getResponseStream
      getText
      hadBadFinishReason
      makeRequest
      processStream
      registerVertex
      validateChatHistory

      - buildFetchOptions

      variables

      26 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      27 dependencies

      BlockReason
      DEFAULT_API_VERSION
      DEFAULT_BASE_URL
      DEFAULT_FETCH_TIMEOUT_MS
      DEFAULT_LOCATION
      FinishReason
      FunctionCallingMode
      HarmBlockMethod
      HarmBlockThreshold
      HarmCategory
      HarmProbability
      HarmSeverity
      LANGUAGE_TAG
      PACKAGE_VERSION
      POSSIBLE_ROLES
      SILENT_ERROR
      SchemaType
      Task
      VALID_PARTS_PER_ROLE
      VALID_PART_FIELDS
      VALID_PREVIOUS_CONTENT_ROLES
      VERTEX_TYPE
      badFinishReasons
      logger
      name
      responseLineRE
      version

      + DEFAULT_FETCH_TIMEOUT_MS

Test Logs

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

packages/data-connect/src/api/DataConnect.ts Outdated Show resolved Hide resolved
@maneesht maneesht merged commit cb4309f into main Dec 4, 2024
39 checks passed
@maneesht maneesht deleted the mtewani/fix-non-idempotent-emulator-fdc branch December 4, 2024 19:36
@google-oss-bot google-oss-bot mentioned this pull request Dec 10, 2024
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.

5 participants