Skip to content

Commit e778894

Browse files
committed
Merge branch 'master' into khanrafi/webchannelupgrade
2 parents 4f544d8 + 2bc2621 commit e778894

File tree

636 files changed

+27789
-28736
lines changed

Some content is hidden

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

636 files changed

+27789
-28736
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": ["@changesets/changelog-github", { "repo": "firebase/firebase-js-sdk"}],
3+
"changelog": ["../repo-scripts/changelog-generator", { "repo": "firebase/firebase-js-sdk"}],
44
"commit": false,
55
"linked": [],
66
"access": "public",

.changeset/friendly-crews-dream.md

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

.changeset/gorgeous-beers-build.md

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

.changeset/late-ladybugs-wash.md

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

.changeset/nice-deers-suffer.md

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

.changeset/popular-cups-melt.md

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

.changeset/rotten-owls-drive.md

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

.changeset/smart-cars-doubt.md

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

.changeset/thick-rabbits-guess.md

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

.changeset/thirty-flies-flow.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@firebase/database-types": patch
3+
"@firebase/database": patch
4+
---
5+
6+
Added interface `Database` which is implemented by `FirebaseDatabase`. This allows consumer SDKs (such as the Firebase Admin SDK) to export the database types as an interface.

.changeset/wild-otters-fly.md

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

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface FirebaseOptions {
5757
export interface _FirebaseService {
5858
// (undocumented)
5959
app: FirebaseApp;
60-
delete(): Promise<void>;
60+
delete(): Promise<void>;
6161
}
6262

6363
// @public (undocumented)
@@ -66,6 +66,14 @@ export interface PlatformLoggerService {
6666
getPlatformInfoString(): string;
6767
}
6868

69+
// @public (undocumented)
70+
export interface VersionService {
71+
// (undocumented)
72+
library: string;
73+
// (undocumented)
74+
version: string;
75+
}
76+
6977

7078
// (No @packageDocumentation comment for this package)
7179

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
## API Report File for "@firebase/functions-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+
import { FirebaseApp } from '@firebase/app-types-exp';
8+
import { FirebaseError } from '@firebase/util';
9+
10+
// @public
11+
export interface Functions {
12+
app: FirebaseApp;
13+
14+
region: string;
15+
}
16+
17+
// @public (undocumented)
18+
export interface FunctionsError extends FirebaseError {
19+
readonly code: FunctionsErrorCode;
20+
21+
readonly details?: any;
22+
}
23+
24+
// @public
25+
export type FunctionsErrorCode =
26+
| 'ok'
27+
| 'cancelled'
28+
| 'unknown'
29+
| 'invalid-argument'
30+
| 'deadline-exceeded'
31+
| 'not-found'
32+
| 'already-exists'
33+
| 'permission-denied'
34+
| 'resource-exhausted'
35+
| 'failed-precondition'
36+
| 'aborted'
37+
| 'out-of-range'
38+
| 'unimplemented'
39+
| 'internal'
40+
| 'unavailable'
41+
| 'data-loss'
42+
| 'unauthenticated';
43+
44+
// @public
45+
export interface HttpsCallable {
46+
// (undocumented)
47+
(data?: {} | null): Promise<HttpsCallableResult>;
48+
}
49+
50+
// @public
51+
export interface HttpsCallableOptions {
52+
// (undocumented)
53+
timeout?: number; // in millis
54+
}
55+
56+
// @public
57+
export interface HttpsCallableResult {
58+
// (undocumented)
59+
readonly data: any;
60+
}
61+
62+
63+
// (No @packageDocumentation comment for this package)
64+
65+
```

config/functions/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"description": "Cloud Functions for Firebase",
44
"dependencies": {
55
"cors": "2.8.5",
6-
"firebase-admin": "8.13.0",
7-
"firebase-functions": "3.7.0"
6+
"firebase-admin": "9.0.0",
7+
"firebase-functions": "3.8.0"
88
},
99
"private": true,
1010
"engines": {

docs-exp/app-types.firebaseapp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface FirebaseApp
1818

1919
| Property | Type | Description |
2020
| --- | --- | --- |
21-
| [automaticDataCollectionEnabled](./app-types.firebaseapp.automaticdatacollectionenabled.md) | <code>boolean</code> | The settable config flag for GDPR opt-in/opt-out |
22-
| [name](./app-types.firebaseapp.name.md) | <code>string</code> | The (read-only) name for this app.<!-- -->The default app's name is <code>&quot;[DEFAULT]&quot;</code>. |
23-
| [options](./app-types.firebaseapp.options.md) | <code>FirebaseOptions</code> | The (read-only) configuration options for this app. These are the original parameters given in [initializeApp()](./app.initializeapp.md)<!-- -->. |
21+
| [automaticDataCollectionEnabled](./app-types.firebaseapp.automaticdatacollectionenabled.md) | boolean | The settable config flag for GDPR opt-in/opt-out |
22+
| [name](./app-types.firebaseapp.name.md) | string | The (read-only) name for this app.<!-- -->The default app's name is <code>&quot;[DEFAULT]&quot;</code>. |
23+
| [options](./app-types.firebaseapp.options.md) | [FirebaseOptions](./app-types.firebaseoptions.md) | The (read-only) configuration options for this app. These are the original parameters given in [initializeApp()](./app.initializeapp.md)<!-- -->. |
2424

docs-exp/app-types.firebaseappconfig.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export interface FirebaseAppConfig
1515

1616
| Property | Type | Description |
1717
| --- | --- | --- |
18-
| [automaticDataCollectionEnabled](./app-types.firebaseappconfig.automaticdatacollectionenabled.md) | <code>boolean</code> | |
19-
| [name](./app-types.firebaseappconfig.name.md) | <code>string</code> | |
18+
| [automaticDataCollectionEnabled](./app-types.firebaseappconfig.automaticdatacollectionenabled.md) | boolean | |
19+
| [name](./app-types.firebaseappconfig.name.md) | string | |
2020

docs-exp/app-types.firebaseoptions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export interface FirebaseOptions
1515

1616
| Property | Type | Description |
1717
| --- | --- | --- |
18-
| [apiKey](./app-types.firebaseoptions.apikey.md) | <code>string</code> | |
19-
| [appId](./app-types.firebaseoptions.appid.md) | <code>string</code> | |
20-
| [authDomain](./app-types.firebaseoptions.authdomain.md) | <code>string</code> | |
21-
| [databaseURL](./app-types.firebaseoptions.databaseurl.md) | <code>string</code> | |
22-
| [measurementId](./app-types.firebaseoptions.measurementid.md) | <code>string</code> | |
23-
| [messagingSenderId](./app-types.firebaseoptions.messagingsenderid.md) | <code>string</code> | |
24-
| [projectId](./app-types.firebaseoptions.projectid.md) | <code>string</code> | |
25-
| [storageBucket](./app-types.firebaseoptions.storagebucket.md) | <code>string</code> | |
18+
| [apiKey](./app-types.firebaseoptions.apikey.md) | string | |
19+
| [appId](./app-types.firebaseoptions.appid.md) | string | |
20+
| [authDomain](./app-types.firebaseoptions.authdomain.md) | string | |
21+
| [databaseURL](./app-types.firebaseoptions.databaseurl.md) | string | |
22+
| [measurementId](./app-types.firebaseoptions.measurementid.md) | string | |
23+
| [messagingSenderId](./app-types.firebaseoptions.messagingsenderid.md) | string | |
24+
| [projectId](./app-types.firebaseoptions.projectid.md) | string | |
25+
| [storageBucket](./app-types.firebaseoptions.storagebucket.md) | string | |
2626

docs-exp/app-types.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
| [FirebaseAppConfig](./app-types.firebaseappconfig.md) | |
1313
| [FirebaseOptions](./app-types.firebaseoptions.md) | |
1414
| [PlatformLoggerService](./app-types.platformloggerservice.md) | |
15+
| [VersionService](./app-types.versionservice.md) | |
1516

docs-exp/app-types.platformloggerservice.getplatforminfostring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ getPlatformInfoString(): string;
1111
```
1212
<b>Returns:</b>
1313

14-
`string`
14+
string
1515

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/app-types](./app-types.md) &gt; [VersionService](./app-types.versionservice.md) &gt; [library](./app-types.versionservice.library.md)
4+
5+
## VersionService.library property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
library: string;
11+
```

docs-exp/app-types.versionservice.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/app-types](./app-types.md) &gt; [VersionService](./app-types.versionservice.md)
4+
5+
## VersionService interface
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
export interface VersionService
11+
```
12+
13+
## Properties
14+
15+
| Property | Type | Description |
16+
| --- | --- | --- |
17+
| [library](./app-types.versionservice.library.md) | string | |
18+
| [version](./app-types.versionservice.version.md) | string | |
19+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/app-types](./app-types.md) &gt; [VersionService](./app-types.versionservice.md) &gt; [version](./app-types.versionservice.version.md)
4+
5+
## VersionService.version property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
version: string;
11+
```

docs-exp/app.deleteapp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export declare function deleteApp(app: FirebaseApp): Promise<void>;
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
19-
| app | <code>FirebaseApp</code> | |
19+
| app | [FirebaseApp](./app-types.firebaseapp.md) | |
2020

2121
<b>Returns:</b>
2222

23-
`Promise<void>`
23+
Promise&lt;void&gt;
2424

2525
## Example
2626

docs-exp/app.getapp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export declare function getApp(name?: string): FirebaseApp;
2020

2121
| Parameter | Type | Description |
2222
| --- | --- | --- |
23-
| name | <code>string</code> | Optional name of the app to return. If no name is provided, the default is <code>&quot;[DEFAULT]&quot;</code>. |
23+
| name | string | Optional name of the app to return. If no name is provided, the default is <code>&quot;[DEFAULT]&quot;</code>. |
2424

2525
<b>Returns:</b>
2626

27-
`FirebaseApp`
27+
[FirebaseApp](./app-types.firebaseapp.md)
2828

2929
The app corresponding to the provided app name. If no app name is provided, the default app is returned.
3030

docs-exp/app.getapps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ export declare function getApps(): FirebaseApp[];
1313
```
1414
<b>Returns:</b>
1515

16-
`FirebaseApp[]`
16+
[FirebaseApp](./app-types.firebaseapp.md)<!-- -->\[\]
1717

docs-exp/app.initializeapp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export declare function initializeApp(options: FirebaseOptions, name?: string):
1818

1919
| Parameter | Type | Description |
2020
| --- | --- | --- |
21-
| options | <code>FirebaseOptions</code> | Options to configure the app's services. |
22-
| name | <code>string</code> | Optional name of the app to initialize. If no name is provided, the default is <code>&quot;[DEFAULT]&quot;</code>. |
21+
| options | [FirebaseOptions](./app-types.firebaseoptions.md) | Options to configure the app's services. |
22+
| name | string | Optional name of the app to initialize. If no name is provided, the default is <code>&quot;[DEFAULT]&quot;</code>. |
2323

2424
<b>Returns:</b>
2525

26-
`FirebaseApp`
26+
[FirebaseApp](./app-types.firebaseapp.md)
2727

2828
The initialized app.
2929

docs-exp/app.initializeapp_1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export declare function initializeApp(options: FirebaseOptions, config?: Firebas
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
19-
| options | <code>FirebaseOptions</code> | Options to configure the app's services. |
20-
| config | <code>FirebaseAppConfig</code> | FirebaseApp Configuration |
19+
| options | [FirebaseOptions](./app-types.firebaseoptions.md) | Options to configure the app's services. |
20+
| config | [FirebaseAppConfig](./app-types.firebaseappconfig.md) | FirebaseApp Configuration |
2121

2222
<b>Returns:</b>
2323

24-
`FirebaseApp`
24+
[FirebaseApp](./app-types.firebaseapp.md)
2525

docs-exp/app.onlog.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export declare function onLog(logCallback: LogCallback | null, options?: LogOpti
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
19-
| logCallback | <code>LogCallback &#124; null</code> | An optional custom log handler that executes user code whenever the Firebase SDK makes a logging call. |
20-
| options | <code>LogOptions</code> | |
19+
| logCallback | LogCallback \| null | An optional custom log handler that executes user code whenever the Firebase SDK makes a logging call. |
20+
| options | LogOptions | |
2121

2222
<b>Returns:</b>
2323

24-
`void`
24+
void
2525

docs-exp/app.registerversion.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export declare function registerVersion(libraryKeyOrName: string, version: strin
1616

1717
| Parameter | Type | Description |
1818
| --- | --- | --- |
19-
| libraryKeyOrName | <code>string</code> | |
20-
| version | <code>string</code> | Current version of that library. |
21-
| variant | <code>string</code> | Bundle variant, e.g., node, rn, etc. |
19+
| libraryKeyOrName | string | |
20+
| version | string | Current version of that library. |
21+
| variant | string | Bundle variant, e.g., node, rn, etc. |
2222

2323
<b>Returns:</b>
2424

25-
`void`
25+
void
2626

docs-exp/app.setloglevel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export declare function setLogLevel(logLevel: LogLevel): void;
1818

1919
| Parameter | Type | Description |
2020
| --- | --- | --- |
21-
| logLevel | <code>LogLevel</code> | |
21+
| logLevel | LogLevel | |
2222

2323
<b>Returns:</b>
2424

25-
`void`
25+
void
2626

docs-exp/firestore.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md)
4+
5+
## firestore package
6+
7+
| Entry Point | Description |
8+
| --- | --- |
9+
| [/](./firestore_.md) | |
10+
| [/lite](./firestore_lite.md) | |
11+

0 commit comments

Comments
 (0)