Skip to content

Commit 6ca4910

Browse files
Merge
2 parents e7b78e9 + a57dac5 commit 6ca4910

File tree

166 files changed

+3768
-2777
lines changed

Some content is hidden

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

166 files changed

+3768
-2777
lines changed

.github/workflows/test-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: yarn build
2525
run: yarn build
2626
- name: Run unit tests
27-
run: xvfb-run yarn test
27+
run: xvfb-run yarn test:ci
2828
- name: Generate coverage file
2929
run: yarn ci:coverage
3030
- name: Run coverage

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"args": [
1414
"test/{,!(browser)/**/}*.test.ts",
1515
"--file", "index.node.ts",
16-
"--opts", "../../config/mocha.node.opts"
16+
"--config", "../../config/mocharc.node.js"
1717
],
1818
"env": {
1919
"TS_NODE_CACHE": "NO",

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.10.0",
7-
"firebase-functions": "3.6.0"
6+
"firebase-admin": "8.11.0",
7+
"firebase-functions": "3.6.1"
88
},
99
"private": true,
1010
"engines": {

config/karma.base.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,13 @@ if (false /* process.env.TRAVIS */) {
125125
config.browsers = [...config.browsers, ...Object.keys(sauceLabsBrowsers)];
126126
}
127127

128+
// Make it easy to spot failed tests in CI
129+
if (process.env.CI) {
130+
config.specReporter = {
131+
suppressErrorSummary: true,
132+
suppressPassed: true, // do not print information about passed tests
133+
suppressSkipped: true
134+
};
135+
}
136+
128137
module.exports = config;

config/mocha.browser.opts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
1+
/**
2+
* @license
3+
* Copyright 2020 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
118
# See:
219
# - https://mochajs.org/#usage for more information on usage of mocha flags.
320
# - https://github.com/karma-runner/karma-mocha for more information on all mocha flags which the
421
# karma runner supports.
22+
# This file is not converted to .mocharc.js format because karma-mocha doesn't work with it.
23+
524
--timeout 20000
625
--retry 3

config/mocha.node.opts

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

config/mocharc.node.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* @license
3+
* Copyright 2020 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
/**
19+
* See:
20+
* - https://mochajs.org/#usage for more information on usage of mocha flags.
21+
* - https://github.com/karma-runner/karma-mocha for more information on all mocha flags which the
22+
* karma runner supports.
23+
*/
24+
25+
const config = {
26+
require: 'ts-node/register',
27+
timeout: 5000,
28+
retries: 5,
29+
exit: true
30+
};
31+
32+
// use min reporter in CI to make it easy to spot failed tests
33+
if (process.env.CI) {
34+
config.reporter = 'min';
35+
}
36+
37+
module.exports = config;
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/app-types](./app-types.md) &gt; [FirebaseApp](./app-types.firebaseapp.md) &gt; [automaticDataCollectionEnabled](./app-types.firebaseapp.automaticdatacollectionenabled.md)
4+
5+
## FirebaseApp.automaticDataCollectionEnabled property
6+
7+
The settable config flag for GDPR opt-in/opt-out
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
automaticDataCollectionEnabled: boolean;
13+
```

docs-exp/app-types.firebaseapp.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/app-types](./app-types.md) &gt; [FirebaseApp](./app-types.firebaseapp.md)
4+
5+
## FirebaseApp interface
6+
7+
A FirebaseApp holds the initialization information for a collection of services.
8+
9+
Do not call this constructor directly. Instead, use [initializeApp()](./app.initializeapp.md) to create an app.
10+
11+
<b>Signature:</b>
12+
13+
```typescript
14+
export interface FirebaseApp
15+
```
16+
17+
## Properties
18+
19+
| Property | Type | Description |
20+
| --- | --- | --- |
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)<!-- -->. |
24+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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; [FirebaseApp](./app-types.firebaseapp.md) &gt; [name](./app-types.firebaseapp.name.md)
4+
5+
## FirebaseApp.name property
6+
7+
The (read-only) name for this app.
8+
9+
The default app's name is `"[DEFAULT]"`<!-- -->.
10+
11+
<b>Signature:</b>
12+
13+
```typescript
14+
readonly name: string;
15+
```
16+
17+
## Example 1
18+
19+
20+
```javascript
21+
// The default app's name is "[DEFAULT]"
22+
const app = initializeApp(defaultAppConfig);
23+
console.log(app.name); // "[DEFAULT]"
24+
25+
```
26+
27+
## Example 2
28+
29+
30+
```javascript
31+
// A named app's name is what you provide to initializeApp()
32+
const otherApp = initializeApp(otherAppConfig, "other");
33+
console.log(otherApp.name); // "other"
34+
35+
```
36+
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/app-types](./app-types.md) &gt; [FirebaseApp](./app-types.firebaseapp.md) &gt; [options](./app-types.firebaseapp.options.md)
4+
5+
## FirebaseApp.options property
6+
7+
The (read-only) configuration options for this app. These are the original parameters given in [initializeApp()](./app.initializeapp.md)<!-- -->.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
readonly options: FirebaseOptions;
13+
```
14+
15+
## Example
16+
17+
18+
```javascript
19+
const app = initializeApp(config);
20+
console.log(app.options.databaseURL === config.databaseURL); // true
21+
22+
```
23+
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; [FirebaseAppConfig](./app-types.firebaseappconfig.md) &gt; [automaticDataCollectionEnabled](./app-types.firebaseappconfig.automaticdatacollectionenabled.md)
4+
5+
## FirebaseAppConfig.automaticDataCollectionEnabled property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
automaticDataCollectionEnabled?: boolean;
11+
```
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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; [FirebaseAppConfig](./app-types.firebaseappconfig.md)
4+
5+
## FirebaseAppConfig interface
6+
7+
8+
<b>Signature:</b>
9+
10+
```typescript
11+
export interface FirebaseAppConfig
12+
```
13+
14+
## Properties
15+
16+
| Property | Type | Description |
17+
| --- | --- | --- |
18+
| [automaticDataCollectionEnabled](./app-types.firebaseappconfig.automaticdatacollectionenabled.md) | <code>boolean</code> | |
19+
| [name](./app-types.firebaseappconfig.name.md) | <code>string</code> | |
20+
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; [FirebaseAppConfig](./app-types.firebaseappconfig.md) &gt; [name](./app-types.firebaseappconfig.name.md)
4+
5+
## FirebaseAppConfig.name property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
name?: string;
11+
```
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; [FirebaseOptions](./app-types.firebaseoptions.md) &gt; [apiKey](./app-types.firebaseoptions.apikey.md)
4+
5+
## FirebaseOptions.apiKey property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
apiKey?: string;
11+
```
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; [FirebaseOptions](./app-types.firebaseoptions.md) &gt; [appId](./app-types.firebaseoptions.appid.md)
4+
5+
## FirebaseOptions.appId property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
appId?: string;
11+
```
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; [FirebaseOptions](./app-types.firebaseoptions.md) &gt; [authDomain](./app-types.firebaseoptions.authdomain.md)
4+
5+
## FirebaseOptions.authDomain property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
authDomain?: string;
11+
```
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; [FirebaseOptions](./app-types.firebaseoptions.md) &gt; [databaseURL](./app-types.firebaseoptions.databaseurl.md)
4+
5+
## FirebaseOptions.databaseURL property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
databaseURL?: string;
11+
```

docs-exp/app-types.firebaseoptions.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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; [FirebaseOptions](./app-types.firebaseoptions.md)
4+
5+
## FirebaseOptions interface
6+
7+
8+
<b>Signature:</b>
9+
10+
```typescript
11+
export interface FirebaseOptions
12+
```
13+
14+
## Properties
15+
16+
| Property | Type | Description |
17+
| --- | --- | --- |
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> | |
26+
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; [FirebaseOptions](./app-types.firebaseoptions.md) &gt; [measurementId](./app-types.firebaseoptions.measurementid.md)
4+
5+
## FirebaseOptions.measurementId property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
measurementId?: string;
11+
```
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; [FirebaseOptions](./app-types.firebaseoptions.md) &gt; [messagingSenderId](./app-types.firebaseoptions.messagingsenderid.md)
4+
5+
## FirebaseOptions.messagingSenderId property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
messagingSenderId?: string;
11+
```
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; [FirebaseOptions](./app-types.firebaseoptions.md) &gt; [projectId](./app-types.firebaseoptions.projectid.md)
4+
5+
## FirebaseOptions.projectId property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
projectId?: string;
11+
```
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; [FirebaseOptions](./app-types.firebaseoptions.md) &gt; [storageBucket](./app-types.firebaseoptions.storagebucket.md)
4+
5+
## FirebaseOptions.storageBucket property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
storageBucket?: string;
11+
```

docs-exp/app-types.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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)
4+
5+
## app-types package
6+
7+
## Interfaces
8+
9+
| Interface | Description |
10+
| --- | --- |
11+
| [FirebaseApp](./app-types.firebaseapp.md) | A FirebaseApp holds the initialization information for a collection of services.<!-- -->Do not call this constructor directly. Instead, use [initializeApp()](./app.initializeapp.md) to create an app. |
12+
| [FirebaseAppConfig](./app-types.firebaseappconfig.md) | |
13+
| [FirebaseOptions](./app-types.firebaseoptions.md) | |
14+
| [PlatformLoggerService](./app-types.platformloggerservice.md) | |
15+

0 commit comments

Comments
 (0)