-
Notifications
You must be signed in to change notification settings - Fork 893
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
Add custom domain support to callable functions #3825
Conversation
🦋 Changeset detectedLatest commit: 05e6e0a The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
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 |
Binary Size ReportAffected SDKs
Test Logs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, one question, we have to update packages-exp/functions-exp as well with any changes. Would you like to add them here, in a separate PR, or do you want me to take care of it? (I don't mind, should be simple enough to mirror the changes over.)
@hsubox76 I'll give it a try! |
Changeset File Check
|
@@ -84,7 +86,7 @@ export class FunctionsService implements _FirebaseService { | |||
readonly app: FirebaseApp, | |||
authProvider: Provider<FirebaseAuthInternalName>, | |||
messagingProvider: Provider<FirebaseMessagingName>, | |||
readonly region: string = DEFAULT_REGION, | |||
regionOrCustomDomain: string = DEFAULT_REGION, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be private?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So if I make it private
then it remains a private instance field, but I want it to just be a constructor arg that's not saved outside this scope. So I think it's correct as-is?
Size Analysis ReportAffected Products
|
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.63 kB | ? (?) |
size_with_ext_deps | ? | 4.05 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | _addComponent _registerComponent isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 22 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING SDK_VERSION _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version version$1 |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
_DEFAULT_ENTRY_NAME
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.63 kB | ? (?) |
size_with_ext_deps | ? | 4.05 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | _addComponent _registerComponent isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 21 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _DEFAULT_ENTRY_NAME _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
_addComponent
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.61 kB | ? (?) |
size_with_ext_deps | ? | 4.02 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | _addComponent _registerComponent isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
_addOrOverwriteComponent
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.67 kB | ? (?) |
size_with_ext_deps | ? | 4.09 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | Click to show 6 deps_addComponent _addOrOverwriteComponent _registerComponent isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
_apps
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.60 kB | ? (?) |
size_with_ext_deps | ? | 4.02 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | _addComponent _registerComponent isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
_clearComponents
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.63 kB | ? (?) |
size_with_ext_deps | ? | 4.05 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | Click to show 6 deps_addComponent _clearComponents _registerComponent isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
_components
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.61 kB | ? (?) |
size_with_ext_deps | ? | 4.02 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | _addComponent _registerComponent isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
_getProvider
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.66 kB | ? (?) |
size_with_ext_deps | ? | 4.07 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | Click to show 6 deps_addComponent _getProvider _registerComponent isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
_registerComponent
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.61 kB | ? (?) |
size_with_ext_deps | ? | 4.03 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | _addComponent _registerComponent isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
_removeServiceInstance
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.73 kB | ? (?) |
size_with_ext_deps | ? | 4.15 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | Click to show 7 deps_addComponent _getProvider _registerComponent _removeServiceInstance isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 21 depsDEFAULT_ENTRY_NAME ERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
deleteApp
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.75 kB | ? (?) |
size_with_ext_deps | ? | 4.16 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | Click to show 6 deps_addComponent _registerComponent deleteApp isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
getApp
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.71 kB | ? (?) |
size_with_ext_deps | ? | 5.39 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | Click to show 6 deps_addComponent _registerComponent getApp isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 21 depsDEFAULT_ENTRY_NAME ERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
getApps
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.64 kB | ? (?) |
size_with_ext_deps | ? | 4.06 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | Click to show 6 deps_addComponent _registerComponent getApps isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
initializeApp
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 3.69 kB | ? (?) |
size_with_ext_deps | ? | 9.05 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | Click to show 6 deps_addComponent _registerComponent initializeApp isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | FirebaseAppImpl PlatformLoggerService |
? |
variables | ? | Click to show 21 depsDEFAULT_ENTRY_NAME ERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component ComponentContainer |
? |
onLog
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.74 kB | ? (?) |
size_with_ext_deps | ? | 5.95 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | Click to show 6 deps_addComponent _registerComponent isVersionServiceProvider onLog registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger setUserLogHandler |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
registerVersion
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.61 kB | ? (?) |
size_with_ext_deps | ? | 4.03 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | _addComponent _registerComponent isVersionServiceProvider registerCoreComponents registerVersion |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
setLogLevel
Size
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
size | ? | 2.64 kB | ? (?) |
size_with_ext_deps | ? | 4.11 kB | ? (?) |
Dependencies
Type | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
functions | ? | Click to show 6 deps_addComponent _registerComponent isVersionServiceProvider registerCoreComponents registerVersion setLogLevel |
? |
classes | ? | PlatformLoggerService |
? |
variables | ? | Click to show 20 depsERRORS ERROR_FACTORY PLATFORM_LOG_STRING _apps _components logger name$1 name$2 name$3 name$4 name$5 name$6 name$7 name$8 name$9 name$a name$b name$c name$d version |
? |
External Dependencies
Module | Base (0a1181b) | Head (c79740d) | Diff |
---|---|---|---|
@firebase/logger |
? | Logger setLogLevel |
? |
@firebase/util |
? | ErrorFactory |
? |
@firebase/component |
? | Component |
? |
@firebase/functions-exp
-
getFunctions
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 1.98 kB ? (?) size_with_ext_deps ? 5.86 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? getFunctions
registerFunctions
? classes ? ContextProvider
FunctionsService
? variables ? DEFAULT_REGION
FUNCTIONS_TYPE
name
version
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/app-exp
? _getProvider
_registerComponent
registerVersion
? @firebase/component
? Component
? -
httpsCallable
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 5.33 kB ? (?) size_with_ext_deps ? 9.92 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? Click to show 10 deps
_errorForResponse
call
codeForHTTPStatus
decode
encode
failAfter
httpsCallable
mapValues
postJSON
registerFunctions
? classes ? ContextProvider
FunctionsError
FunctionsService
? variables ? Click to show 7 deps
DEFAULT_REGION
FUNCTIONS_TYPE
LONG_TYPE
UNSIGNED_LONG_TYPE
errorCodeMap
name
version
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/util
? FirebaseError
? @firebase/app-exp
? _registerComponent
registerVersion
? @firebase/component
? Component
? -
useFunctionsEmulator
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 1.94 kB ? (?) size_with_ext_deps ? 5.79 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? registerFunctions
useFunctionsEmulator
? classes ? ContextProvider
FunctionsService
? variables ? DEFAULT_REGION
FUNCTIONS_TYPE
name
version
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/app-exp
? _registerComponent
registerVersion
? @firebase/component
? Component
?
@firebase/installations-exp
-
deleteInstallations
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 8.90 kB ? (?) size_with_ext_deps ? 17.3 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? Click to show 52 deps
broadcastFidChange
bufferToBase64UrlSafe
callFidChangeCallbacks
clearTimedOutRequest
closeBroadcastChannel
completeInstallationRegistration
createInstallationRequest
deleteInstallationRequest
deleteInstallations
encode
extractAppConfig
extractAuthTokenInfoFromResponse
fetchAuthTokenFromServer
fidChanged
generateAuthTokenRequest
generateFid
getAuthorizationHeader
getBroadcastChannel
getDbPromise
getDeleteEndpoint
getErrorFromResponse
getExpiresInFromResponseExpiresIn
getGenerateAuthTokenEndpoint
getHeaders
getHeadersWithAuth
getId
getInstallationEntry
getInstallationsEndpoint
getKey
getMissingValueError
getToken
hasAuthTokenRequestTimedOut
hasInstallationRequestTimedOut
isAuthTokenExpired
isAuthTokenValid
isEntryRegistered
isServerError
makeAuthTokenRequestInProgressEntry
refreshAuthToken
registerInstallation
registerInstallations
remove
retryIfServerError
set
sleep
triggerRegistrationIfNecessary
update
updateAuthTokenRequest
updateInstallationRequest
updateOrCreateInstallationEntry
waitUntilAuthTokenRequest
waitUntilFidRegistration
? variables ? Click to show 23 deps
DATABASE_NAME
DATABASE_VERSION
ERROR_DESCRIPTION_MAP
ERROR_FACTORY
INSTALLATIONS_API_URL
INSTALLATIONS_NAME
INSTALLATIONS_NAME_INTERNAL
INTERNAL_AUTH_VERSION
INVALID_FID
OBJECT_STORE_NAME
PACKAGE_VERSION
PENDING_TIMEOUT_MS
SERVICE
SERVICE_NAME
TOKEN_EXPIRATION_BUFFER
VALID_FID_PATTERN
broadcastChannel
dbPromise
fidChangeCallbacks
internalFactory
name
publicFactory
version
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/util
? ErrorFactory
FirebaseError
? idb
? openDb
? @firebase/app-exp
? _getProvider
_registerComponent
registerVersion
? @firebase/component
? Component
? -
getId
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 8.34 kB ? (?) size_with_ext_deps ? 16.8 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? Click to show 49 deps
broadcastFidChange
bufferToBase64UrlSafe
callFidChangeCallbacks
clearTimedOutRequest
closeBroadcastChannel
completeInstallationRegistration
createInstallationRequest
encode
extractAppConfig
extractAuthTokenInfoFromResponse
fetchAuthTokenFromServer
fidChanged
generateAuthTokenRequest
generateFid
getAuthorizationHeader
getBroadcastChannel
getDbPromise
getErrorFromResponse
getExpiresInFromResponseExpiresIn
getGenerateAuthTokenEndpoint
getHeaders
getHeadersWithAuth
getId
getInstallationEntry
getInstallationsEndpoint
getKey
getMissingValueError
getToken
hasAuthTokenRequestTimedOut
hasInstallationRequestTimedOut
isAuthTokenExpired
isAuthTokenValid
isEntryRegistered
isServerError
makeAuthTokenRequestInProgressEntry
refreshAuthToken
registerInstallation
registerInstallations
remove
retryIfServerError
set
sleep
triggerRegistrationIfNecessary
update
updateAuthTokenRequest
updateInstallationRequest
updateOrCreateInstallationEntry
waitUntilAuthTokenRequest
waitUntilFidRegistration
? variables ? Click to show 23 deps
DATABASE_NAME
DATABASE_VERSION
ERROR_DESCRIPTION_MAP
ERROR_FACTORY
INSTALLATIONS_API_URL
INSTALLATIONS_NAME
INSTALLATIONS_NAME_INTERNAL
INTERNAL_AUTH_VERSION
INVALID_FID
OBJECT_STORE_NAME
PACKAGE_VERSION
PENDING_TIMEOUT_MS
SERVICE
SERVICE_NAME
TOKEN_EXPIRATION_BUFFER
VALID_FID_PATTERN
broadcastChannel
dbPromise
fidChangeCallbacks
internalFactory
name
publicFactory
version
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/util
? ErrorFactory
FirebaseError
? idb
? openDb
? @firebase/app-exp
? _getProvider
_registerComponent
registerVersion
? @firebase/component
? Component
? -
getInstallations
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 8.43 kB ? (?) size_with_ext_deps ? 16.9 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? Click to show 50 deps
broadcastFidChange
bufferToBase64UrlSafe
callFidChangeCallbacks
clearTimedOutRequest
closeBroadcastChannel
completeInstallationRegistration
createInstallationRequest
encode
extractAppConfig
extractAuthTokenInfoFromResponse
fetchAuthTokenFromServer
fidChanged
generateAuthTokenRequest
generateFid
getAuthorizationHeader
getBroadcastChannel
getDbPromise
getErrorFromResponse
getExpiresInFromResponseExpiresIn
getGenerateAuthTokenEndpoint
getHeaders
getHeadersWithAuth
getId
getInstallationEntry
getInstallations
getInstallationsEndpoint
getKey
getMissingValueError
getToken
hasAuthTokenRequestTimedOut
hasInstallationRequestTimedOut
isAuthTokenExpired
isAuthTokenValid
isEntryRegistered
isServerError
makeAuthTokenRequestInProgressEntry
refreshAuthToken
registerInstallation
registerInstallations
remove
retryIfServerError
set
sleep
triggerRegistrationIfNecessary
update
updateAuthTokenRequest
updateInstallationRequest
updateOrCreateInstallationEntry
waitUntilAuthTokenRequest
waitUntilFidRegistration
? variables ? Click to show 23 deps
DATABASE_NAME
DATABASE_VERSION
ERROR_DESCRIPTION_MAP
ERROR_FACTORY
INSTALLATIONS_API_URL
INSTALLATIONS_NAME
INSTALLATIONS_NAME_INTERNAL
INTERNAL_AUTH_VERSION
INVALID_FID
OBJECT_STORE_NAME
PACKAGE_VERSION
PENDING_TIMEOUT_MS
SERVICE
SERVICE_NAME
TOKEN_EXPIRATION_BUFFER
VALID_FID_PATTERN
broadcastChannel
dbPromise
fidChangeCallbacks
internalFactory
name
publicFactory
version
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/util
? ErrorFactory
FirebaseError
? idb
? openDb
? @firebase/app-exp
? _getProvider
_registerComponent
registerVersion
? @firebase/component
? Component
? -
getToken
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 8.35 kB ? (?) size_with_ext_deps ? 16.8 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? Click to show 49 deps
broadcastFidChange
bufferToBase64UrlSafe
callFidChangeCallbacks
clearTimedOutRequest
closeBroadcastChannel
completeInstallationRegistration
createInstallationRequest
encode
extractAppConfig
extractAuthTokenInfoFromResponse
fetchAuthTokenFromServer
fidChanged
generateAuthTokenRequest
generateFid
getAuthorizationHeader
getBroadcastChannel
getDbPromise
getErrorFromResponse
getExpiresInFromResponseExpiresIn
getGenerateAuthTokenEndpoint
getHeaders
getHeadersWithAuth
getId
getInstallationEntry
getInstallationsEndpoint
getKey
getMissingValueError
getToken
hasAuthTokenRequestTimedOut
hasInstallationRequestTimedOut
isAuthTokenExpired
isAuthTokenValid
isEntryRegistered
isServerError
makeAuthTokenRequestInProgressEntry
refreshAuthToken
registerInstallation
registerInstallations
remove
retryIfServerError
set
sleep
triggerRegistrationIfNecessary
update
updateAuthTokenRequest
updateInstallationRequest
updateOrCreateInstallationEntry
waitUntilAuthTokenRequest
waitUntilFidRegistration
? variables ? Click to show 23 deps
DATABASE_NAME
DATABASE_VERSION
ERROR_DESCRIPTION_MAP
ERROR_FACTORY
INSTALLATIONS_API_URL
INSTALLATIONS_NAME
INSTALLATIONS_NAME_INTERNAL
INTERNAL_AUTH_VERSION
INVALID_FID
OBJECT_STORE_NAME
PACKAGE_VERSION
PENDING_TIMEOUT_MS
SERVICE
SERVICE_NAME
TOKEN_EXPIRATION_BUFFER
VALID_FID_PATTERN
broadcastChannel
dbPromise
fidChangeCallbacks
internalFactory
name
publicFactory
version
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/util
? ErrorFactory
FirebaseError
? idb
? openDb
? @firebase/app-exp
? _getProvider
_registerComponent
registerVersion
? @firebase/component
? Component
? -
onIdChange
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 8.60 kB ? (?) size_with_ext_deps ? 17.0 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? Click to show 52 deps
addCallback
broadcastFidChange
bufferToBase64UrlSafe
callFidChangeCallbacks
clearTimedOutRequest
closeBroadcastChannel
completeInstallationRegistration
createInstallationRequest
encode
extractAppConfig
extractAuthTokenInfoFromResponse
fetchAuthTokenFromServer
fidChanged
generateAuthTokenRequest
generateFid
getAuthorizationHeader
getBroadcastChannel
getDbPromise
getErrorFromResponse
getExpiresInFromResponseExpiresIn
getGenerateAuthTokenEndpoint
getHeaders
getHeadersWithAuth
getId
getInstallationEntry
getInstallationsEndpoint
getKey
getMissingValueError
getToken
hasAuthTokenRequestTimedOut
hasInstallationRequestTimedOut
isAuthTokenExpired
isAuthTokenValid
isEntryRegistered
isServerError
makeAuthTokenRequestInProgressEntry
onIdChange
refreshAuthToken
registerInstallation
registerInstallations
remove
removeCallback
retryIfServerError
set
sleep
triggerRegistrationIfNecessary
update
updateAuthTokenRequest
updateInstallationRequest
updateOrCreateInstallationEntry
waitUntilAuthTokenRequest
waitUntilFidRegistration
? variables ? Click to show 23 deps
DATABASE_NAME
DATABASE_VERSION
ERROR_DESCRIPTION_MAP
ERROR_FACTORY
INSTALLATIONS_API_URL
INSTALLATIONS_NAME
INSTALLATIONS_NAME_INTERNAL
INTERNAL_AUTH_VERSION
INVALID_FID
OBJECT_STORE_NAME
PACKAGE_VERSION
PENDING_TIMEOUT_MS
SERVICE
SERVICE_NAME
TOKEN_EXPIRATION_BUFFER
VALID_FID_PATTERN
broadcastChannel
dbPromise
fidChangeCallbacks
internalFactory
name
publicFactory
version
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/util
? ErrorFactory
FirebaseError
? idb
? openDb
? @firebase/app-exp
? _getProvider
_registerComponent
registerVersion
? @firebase/component
? Component
?
@firebase/performance-exp
-
getPerformance
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 16.8 kB ? (?) size_with_ext_deps ? 21.8 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? Click to show 50 deps
addToQueue
changeInitializationStatus
configValid
convertMetricValueToInteger
createNetworkRequestEntry
createUserTimingTrace
dispatchQueueEvents
getApiKey
getAppId
getApplicationInfo
getAuthTokenPromise
getConfig
getDocumentReadyComplete
getEffectiveConnectionType
getIid
getIidPromise
getInitializationPromise
getPerformance
getProjectId
getRemoteConfig
getServiceWorkerStatus
getStoredConfig
getVisibilityState
initializePerf
isPerfInitialized
isValidCustomAttributeName
isValidCustomAttributeValue
isValidMetricName
logNetworkRequest
logTrace
mergeStrings
postToFlEndpoint
processConfig
processQueue
registerPerformance
sendEventsToFl
sendLog
sendTraceLog
serializeNetworkRequest
serializeTrace
serializer
setupApi
setupNetworkRequests
setupOobResources
setupOobTraces
setupTransportService
setupUserTimingTraces
shouldLogAfterSampling
storeConfig
transportHandler
? classes ? Api
PerformanceController
SettingsService
Trace
? variables ? Click to show 45 deps
ATTRIBUTE_FORMAT_REGEX
CONFIG_EXPIRY_LOCAL_STORAGE_KEY
CONFIG_LOCAL_STORAGE_KEY
COULD_NOT_GET_CONFIG_MSG
DEFAULT_CONFIGS
DEFAULT_ENTRY_NAME
DEFAULT_REMAINING_TRIES
DEFAULT_SEND_INTERVAL_MS
ERROR_DESCRIPTION_MAP
ERROR_FACTORY
FID_WAIT_TIME_MS
FIRST_CONTENTFUL_PAINT_COUNTER_NAME
FIRST_INPUT_DELAY_COUNTER_NAME
FIRST_PAINT_COUNTER_NAME
FIS_AUTH_PREFIX
INITIAL_SEND_TIME_DELAY_MS
MAX_ATTRIBUTE_NAME_LENGTH
MAX_ATTRIBUTE_VALUE_LENGTH
MAX_METRIC_NAME_LENGTH
OOB_TRACE_PAGE_LOAD_PREFIX
REMOTE_CONFIG_SDK_VERSION
RESERVED_ATTRIBUTE_PREFIXES
RESERVED_AUTO_PREFIX
SDK_VERSION
SERVICE
SERVICE_NAME
TRACE_MEASURE_PREFIX
TRACE_START_MARK_PREFIX
TRACE_STOP_MARK_PREFIX
VisibilityState
apiInstance
consoleLogger
factory
iid
initializationPromise
initializationStatus
isTransportSetup
logger
name
oobMetrics
queue
remainingTries
settingsServiceInstance
version
windowInstance
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/logger
? LogLevel
Logger
? @firebase/util
? ErrorFactory
isIndexedDBAvailable
validateIndexedDBOpenable
? @firebase/app-exp
? _getProvider
_registerComponent
registerVersion
? @firebase/component
? Component
? -
registerPerformance
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 16.7 kB ? (?) size_with_ext_deps ? 21.7 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? Click to show 49 deps
addToQueue
changeInitializationStatus
configValid
convertMetricValueToInteger
createNetworkRequestEntry
createUserTimingTrace
dispatchQueueEvents
getApiKey
getAppId
getApplicationInfo
getAuthTokenPromise
getConfig
getDocumentReadyComplete
getEffectiveConnectionType
getIid
getIidPromise
getInitializationPromise
getProjectId
getRemoteConfig
getServiceWorkerStatus
getStoredConfig
getVisibilityState
initializePerf
isPerfInitialized
isValidCustomAttributeName
isValidCustomAttributeValue
isValidMetricName
logNetworkRequest
logTrace
mergeStrings
postToFlEndpoint
processConfig
processQueue
registerPerformance
sendEventsToFl
sendLog
sendTraceLog
serializeNetworkRequest
serializeTrace
serializer
setupApi
setupNetworkRequests
setupOobResources
setupOobTraces
setupTransportService
setupUserTimingTraces
shouldLogAfterSampling
storeConfig
transportHandler
? classes ? Api
PerformanceController
SettingsService
Trace
? variables ? Click to show 45 deps
ATTRIBUTE_FORMAT_REGEX
CONFIG_EXPIRY_LOCAL_STORAGE_KEY
CONFIG_LOCAL_STORAGE_KEY
COULD_NOT_GET_CONFIG_MSG
DEFAULT_CONFIGS
DEFAULT_ENTRY_NAME
DEFAULT_REMAINING_TRIES
DEFAULT_SEND_INTERVAL_MS
ERROR_DESCRIPTION_MAP
ERROR_FACTORY
FID_WAIT_TIME_MS
FIRST_CONTENTFUL_PAINT_COUNTER_NAME
FIRST_INPUT_DELAY_COUNTER_NAME
FIRST_PAINT_COUNTER_NAME
FIS_AUTH_PREFIX
INITIAL_SEND_TIME_DELAY_MS
MAX_ATTRIBUTE_NAME_LENGTH
MAX_ATTRIBUTE_VALUE_LENGTH
MAX_METRIC_NAME_LENGTH
OOB_TRACE_PAGE_LOAD_PREFIX
REMOTE_CONFIG_SDK_VERSION
RESERVED_ATTRIBUTE_PREFIXES
RESERVED_AUTO_PREFIX
SDK_VERSION
SERVICE
SERVICE_NAME
TRACE_MEASURE_PREFIX
TRACE_START_MARK_PREFIX
TRACE_STOP_MARK_PREFIX
VisibilityState
apiInstance
consoleLogger
factory
iid
initializationPromise
initializationStatus
isTransportSetup
logger
name
oobMetrics
queue
remainingTries
settingsServiceInstance
version
windowInstance
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/logger
? LogLevel
Logger
? @firebase/util
? ErrorFactory
isIndexedDBAvailable
validateIndexedDBOpenable
? @firebase/app-exp
? _registerComponent
registerVersion
? @firebase/component
? Component
? -
trace
Size
Type Base (0a1181b) Head (c79740d) Diff size ? 16.7 kB ? (?) size_with_ext_deps ? 21.7 kB ? (?) Dependencies
Type Base (0a1181b) Head (c79740d) Diff functions ? Click to show 50 deps
addToQueue
changeInitializationStatus
configValid
convertMetricValueToInteger
createNetworkRequestEntry
createUserTimingTrace
dispatchQueueEvents
getApiKey
getAppId
getApplicationInfo
getAuthTokenPromise
getConfig
getDocumentReadyComplete
getEffectiveConnectionType
getIid
getIidPromise
getInitializationPromise
getProjectId
getRemoteConfig
getServiceWorkerStatus
getStoredConfig
getVisibilityState
initializePerf
isPerfInitialized
isValidCustomAttributeName
isValidCustomAttributeValue
isValidMetricName
logNetworkRequest
logTrace
mergeStrings
postToFlEndpoint
processConfig
processQueue
registerPerformance
sendEventsToFl
sendLog
sendTraceLog
serializeNetworkRequest
serializeTrace
serializer
setupApi
setupNetworkRequests
setupOobResources
setupOobTraces
setupTransportService
setupUserTimingTraces
shouldLogAfterSampling
storeConfig
trace
transportHandler
? classes ? Api
PerformanceController
SettingsService
Trace
? variables ? Click to show 45 deps
ATTRIBUTE_FORMAT_REGEX
CONFIG_EXPIRY_LOCAL_STORAGE_KEY
CONFIG_LOCAL_STORAGE_KEY
COULD_NOT_GET_CONFIG_MSG
DEFAULT_CONFIGS
DEFAULT_ENTRY_NAME
DEFAULT_REMAINING_TRIES
DEFAULT_SEND_INTERVAL_MS
ERROR_DESCRIPTION_MAP
ERROR_FACTORY
FID_WAIT_TIME_MS
FIRST_CONTENTFUL_PAINT_COUNTER_NAME
FIRST_INPUT_DELAY_COUNTER_NAME
FIRST_PAINT_COUNTER_NAME
FIS_AUTH_PREFIX
INITIAL_SEND_TIME_DELAY_MS
MAX_ATTRIBUTE_NAME_LENGTH
MAX_ATTRIBUTE_VALUE_LENGTH
MAX_METRIC_NAME_LENGTH
OOB_TRACE_PAGE_LOAD_PREFIX
REMOTE_CONFIG_SDK_VERSION
RESERVED_ATTRIBUTE_PREFIXES
RESERVED_AUTO_PREFIX
SDK_VERSION
SERVICE
SERVICE_NAME
TRACE_MEASURE_PREFIX
TRACE_START_MARK_PREFIX
TRACE_STOP_MARK_PREFIX
VisibilityState
apiInstance
consoleLogger
factory
iid
initializationPromise
initializationStatus
isTransportSetup
logger
name
oobMetrics
queue
remainingTries
settingsServiceInstance
version
windowInstance
? External Dependencies
Module Base (0a1181b) Head (c79740d) Diff @firebase/logger
? LogLevel
Logger
? @firebase/util
? ErrorFactory
isIndexedDBAvailable
validateIndexedDBOpenable
? @firebase/app-exp
? _registerComponent
registerVersion
? @firebase/component
? Component
?
Test Logs
- Head (
c79740d7
): https://github.com/firebase/firebase-js-sdk/actions/runs/272193288
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG, by the way
- I notice in the design doc the signature is given as
firebase.functions(region)
but it should befirebase.functions(app, region)
- But it looks like that is not documented and in fact there is currently a bug where setting region doesn't work through
firebase.functions(app, region)
but only throughSo we will fix that separately.const app = firebase.initializeApp({...}); app.functions(region);
@hsubox76 says I can ignore the test. |
Hello @samtstern, a question we have about this PR: |
@LanderBeeuwsaert no this won't really change that. You could already use callable functions in your app from any region. This is about allowing you to use functions redirects with Callable Functions. So if your callable function (still in |
@samtstern What I seem to understand out of your response is that this PR enables the possibility for functions redirects , but only still for us-central1. Correct? |
@LanderBeeuwsaert we'd like to enable redirects to other regions one day but that won't require any changes in the JS SDK! That's a Hosting backend change. |
top, thanks for the quick response! |
Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:
Discussion
Googlers: see API review here
Testing
API Changes