Skip to content

Commit ed35559

Browse files
Merge
2 parents 203da28 + b6925be commit ed35559

File tree

382 files changed

+47239
-903
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

382 files changed

+47239
-903
lines changed

.changeset/dirty-rings-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/functions': patch
3+
---
4+
5+
Fixes a bug introduced in #3782 that causes callable functions to throw an error in browser extensions.

.changeset/fifty-snakes-shout.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@firebase/performance': patch
3+
'firebase': patch
4+
---
5+
6+
Moved `loggingEnabled` check to wait until performance initialization finishes, thus avoid dropping custom traces right after getting `performance` object.

.changeset/gentle-doors-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/firestore": patch
3+
---
4+
5+
The SDK now include more information in the error message for failed IndexedDB transactions.

.changeset/lucky-squids-explode.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/analytics': minor
3+
---
4+
5+
Analytics now warns instead of throwing if it detects a browser environment where analytics does not work.

.changeset/poor-eagles-think.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ packages/messaging-types @zwu52 @firebase/jssdk-global-approvers
5555
integration/messaging @zwu52 @firebase/jssdk-global-approvers
5656

5757
# Auth Code
58-
packages/auth @bojeil-google @avolkovi @samhorlbeck @scottcrossen @firebase/jssdk-global-approvers
59-
packages/auth-types @bojeil-google @avolkovi @samhorlbeck @scottcrossen @firebase/jssdk-global-approvers
58+
packages/auth @bojeil-google @avolkovi @samhorlbeck @firebase/jssdk-global-approvers
59+
packages/auth-types @bojeil-google @avolkovi @samhorlbeck @firebase/jssdk-global-approvers
6060

6161
# Testing Code
62-
packages/testing @avolkovi @samhorlbeck @scottcrossen @yuchenshi @firebase/jssdk-global-approvers
63-
packages/rules-unit-testing @avolkovi @samhorlbeck @scottcrossen @yuchenshi @firebase/jssdk-global-approvers
62+
packages/testing @avolkovi @samhorlbeck @yuchenshi @firebase/jssdk-global-approvers
63+
packages/rules-unit-testing @avolkovi @samhorlbeck @yuchenshi @firebase/jssdk-global-approvers
6464

6565
# RxFire Code
6666
packages/rxfire @davideast @jamesdaniels @firebase/jssdk-global-approvers
@@ -87,3 +87,8 @@ scripts/docgen/content-sources/ @firebase/firebase-techwriters @firebase/jssdk-g
8787

8888
# Changeset
8989
.changeset @firebase/firebase-techwriters @firebase/jssdk-changeset-approvers @firebase/firestore-js-team @firebase/jssdk-global-approvers
90+
91+
# Auth-Exp Code
92+
packages-exp/auth-exp @avolkovi @samhorlbeck @firebase/jssdk-global-approvers
93+
packages-exp/auth-types-exp @avolkovi @samhorlbeck @firebase/jssdk-global-approvers
94+
packages-exp/auth-compat-exp @avolkovi @samhorlbeck @firebase/jssdk-global-approvers

common/api-review/functions-exp.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { HttpsCallable } from '@firebase/functions-types-exp';
1010
import { HttpsCallableOptions } from '@firebase/functions-types-exp';
1111

1212
// @public
13-
export function getFunctions(app: FirebaseApp, region?: string): Functions;
13+
export function getFunctions(app: FirebaseApp, regionOrCustomDomain?: string): Functions;
1414

1515
// @public
1616
export function httpsCallable(functionsInstance: Functions, name: string, options?: HttpsCallableOptions): HttpsCallable;

common/api-review/functions-types-exp.api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import { FirebaseError } from '@firebase/util';
1111
export interface Functions {
1212
app: FirebaseApp;
1313

14+
customDomain: string | null;
15+
1416
region: string;
1517
}
1618

common/api-review/installations-types-exp.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
```ts
66

7-
// @public (undocumented)
7+
// @public
88
export interface FirebaseInstallations {}
99

1010
// @internal
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## API Report File for "@firebase/performance-exp"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
import { FirebaseApp } from '@firebase/app-types-exp';
8+
import { FirebasePerformance } from '@firebase/performance-types-exp';
9+
import { PerformanceSettings } from '@firebase/performance-types-exp';
10+
import { PerformanceTrace } from '@firebase/performance-types-exp';
11+
12+
// @public
13+
export function getPerformance(app: FirebaseApp, settings?: PerformanceSettings): FirebasePerformance;
14+
15+
// @public
16+
export function trace(performance: FirebasePerformance, name: string): PerformanceTrace;
17+
18+
19+
// (No @packageDocumentation comment for this package)
20+
21+
```
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## API Report File for "@firebase/performance-types-exp"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
// @public (undocumented)
8+
export interface FirebasePerformance {
9+
dataCollectionEnabled: boolean;
10+
11+
instrumentationEnabled: boolean;
12+
}
13+
14+
// @public (undocumented)
15+
export interface PerformanceSettings {
16+
dataCollectionEnabled?: boolean;
17+
18+
instrumentationEnabled?: boolean;
19+
}
20+
21+
// @public (undocumented)
22+
export interface PerformanceTrace {
23+
getAttribute(attr: string): string | undefined;
24+
getAttributes(): { [key: string]: string };
25+
getMetric(metricName: string): number;
26+
incrementMetric(metricName: string, num?: number): void;
27+
putAttribute(attr: string, value: string): void;
28+
putMetric(metricName: string, num: number): void;
29+
record(
30+
startTime: number,
31+
duration: number,
32+
options?: {
33+
metrics?: { [key: string]: number };
34+
attributes?: { [key: string]: string };
35+
}
36+
): void;
37+
removeAttribute(attr: string): void;
38+
start(): void;
39+
stop(): void;
40+
}
41+
42+
43+
// (No @packageDocumentation comment for this package)
44+
45+
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/functions-types](./functions-types.md) &gt; [Functions](./functions-types.functions.md) &gt; [customDomain](./functions-types.functions.customdomain.md)
4+
5+
## Functions.customDomain property
6+
7+
A custom domain hosting the callable Cloud Functions. ex: https://mydomain.com
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
customDomain: string | null;
13+
```

docs-exp/functions-types.functions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ export interface Functions
1717
| Property | Type | Description |
1818
| --- | --- | --- |
1919
| [app](./functions-types.functions.app.md) | [FirebaseApp](./app-types.firebaseapp.md) | The FirebaseApp this Functions instance is associated with. |
20+
| [customDomain](./functions-types.functions.customdomain.md) | string \| null | A custom domain hosting the callable Cloud Functions. ex: https://mydomain.com |
2021
| [region](./functions-types.functions.region.md) | string | The region the callable Cloud Functions are located in. Default is <code>us-central-1</code>. |
2122

docs-exp/functions.getfunctions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ Returns a Functions instance for the given app.
99
<b>Signature:</b>
1010

1111
```typescript
12-
export declare function getFunctions(app: FirebaseApp, region?: string): Functions;
12+
export declare function getFunctions(app: FirebaseApp, regionOrCustomDomain?: string): Functions;
1313
```
1414

1515
## Parameters
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
1919
| app | [FirebaseApp](./app-types.firebaseapp.md) | The FirebaseApp to use. |
20-
| region | string | The region the callable functions are located in. |
20+
| regionOrCustomDomain | string | one of: a) The region the callable functions are located in (ex: us-central1) b) A custom domain hosting the callable functions (ex: https://mydomain.com) |
2121

2222
<b>Returns:</b>
2323

docs-exp/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
| Function | Description |
1010
| --- | --- |
11-
| [getFunctions(app, region)](./functions.getfunctions.md) | Returns a Functions instance for the given app. |
11+
| [getFunctions(app, regionOrCustomDomain)](./functions.getfunctions.md) | Returns a Functions instance for the given app. |
1212
| [httpsCallable(functionsInstance, name, options)](./functions.httpscallable.md) | Returns a reference to the callable https trigger with the given name. |
1313
| [useFunctionsEmulator(functionsInstance, origin)](./functions.usefunctionsemulator.md) | Changes this instance to point to a Cloud Functions emulator running locally. See https://firebase.google.com/docs/functions/local-emulator |
1414

docs-exp/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
| --- | --- |
1111
| [@firebase/app](./app.md) | Firebase App |
1212
| [@firebase/app-types](./app-types.md) | |
13-
| [@firebase/firestore](./firestore.md) | |
1413
| [@firebase/functions](./functions.md) | |
1514
| [@firebase/functions-types](./functions-types.md) | |
15+
| [@firebase/installations](./installations.md) | |
16+
| [@firebase/installations-types](./installations-types.md) | |
17+
| [@firebase/performance](./performance.md) | |
18+
| [@firebase/performance-types](./performance-types.md) | |
1619

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/installations-types](./installations-types.md) &gt; [FirebaseInstallations](./installations-types.firebaseinstallations.md)
4+
5+
## FirebaseInstallations interface
6+
7+
Public interface of the FirebaseInstallations SDK.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export interface FirebaseInstallations
13+
```

docs-exp/installations-types.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/installations-types](./installations-types.md)
4+
5+
## installations-types package
6+
7+
## Interfaces
8+
9+
| Interface | Description |
10+
| --- | --- |
11+
| [FirebaseInstallations](./installations-types.firebaseinstallations.md) | Public interface of the FirebaseInstallations SDK. |
12+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/installations](./installations.md) &gt; [deleteInstallations](./installations.deleteinstallations.md)
4+
5+
## deleteInstallations() function
6+
7+
Deletes the Firebase Installation and all associated data.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare function deleteInstallations(installations: FirebaseInstallations): Promise<void>;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| installations | [FirebaseInstallations](./installations-types.firebaseinstallations.md) | |
20+
21+
<b>Returns:</b>
22+
23+
Promise&lt;void&gt;
24+

docs-exp/installations.getid.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/installations](./installations.md) &gt; [getId](./installations.getid.md)
4+
5+
## getId() function
6+
7+
Creates a Firebase Installation if there isn't one for the app and returns the Installation ID.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare function getId(installations: FirebaseInstallations): Promise<string>;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| installations | [FirebaseInstallations](./installations-types.firebaseinstallations.md) | |
20+
21+
<b>Returns:</b>
22+
23+
Promise&lt;string&gt;
24+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/installations](./installations.md) &gt; [getInstallations](./installations.getinstallations.md)
4+
5+
## getInstallations() function
6+
7+
Returns an instance of FirebaseInstallations associated with the given FirebaseApp instance.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare function getInstallations(app: FirebaseApp): FirebaseInstallations;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| app | [FirebaseApp](./app-types.firebaseapp.md) | |
20+
21+
<b>Returns:</b>
22+
23+
[FirebaseInstallations](./installations-types.firebaseinstallations.md)
24+

docs-exp/installations.gettoken.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/installations](./installations.md) &gt; [getToken](./installations.gettoken.md)
4+
5+
## getToken() function
6+
7+
Returns an Installation auth token, identifying the current Firebase Installation.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare function getToken(installations: FirebaseInstallations, forceRefresh?: boolean): Promise<string>;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| installations | [FirebaseInstallations](./installations-types.firebaseinstallations.md) | |
20+
| forceRefresh | boolean | |
21+
22+
<b>Returns:</b>
23+
24+
Promise&lt;string&gt;
25+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/installations](./installations.md) &gt; [IdChangeCallbackFn](./installations.idchangecallbackfn.md)
4+
5+
## IdChangeCallbackFn type
6+
7+
An user defined callback function that gets called when Installations ID changes.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare type IdChangeCallbackFn = (installationId: string) => void;
13+
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/installations](./installations.md) &gt; [IdChangeUnsubscribeFn](./installations.idchangeunsubscribefn.md)
4+
5+
## IdChangeUnsubscribeFn type
6+
7+
Unsubscribe a callback function previously added via .
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare type IdChangeUnsubscribeFn = () => void;
13+
```

docs-exp/installations.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/installations](./installations.md)
4+
5+
## installations package
6+
7+
## Functions
8+
9+
| Function | Description |
10+
| --- | --- |
11+
| [deleteInstallations(installations)](./installations.deleteinstallations.md) | Deletes the Firebase Installation and all associated data. |
12+
| [getId(installations)](./installations.getid.md) | Creates a Firebase Installation if there isn't one for the app and returns the Installation ID. |
13+
| [getInstallations(app)](./installations.getinstallations.md) | Returns an instance of FirebaseInstallations associated with the given FirebaseApp instance. |
14+
| [getToken(installations, forceRefresh)](./installations.gettoken.md) | Returns an Installation auth token, identifying the current Firebase Installation. |
15+
| [onIdChange(installations, callback)](./installations.onidchange.md) | Sets a new callback that will get called when Installation ID changes. Returns an unsubscribe function that will remove the callback when called. |
16+
17+
## Type Aliases
18+
19+
| Type Alias | Description |
20+
| --- | --- |
21+
| [IdChangeCallbackFn](./installations.idchangecallbackfn.md) | An user defined callback function that gets called when Installations ID changes. |
22+
| [IdChangeUnsubscribeFn](./installations.idchangeunsubscribefn.md) | Unsubscribe a callback function previously added via . |
23+

0 commit comments

Comments
 (0)