Skip to content

Commit 94c0d82

Browse files
Merge
2 parents b78bbba + cc16b4a commit 94c0d82

File tree

157 files changed

+7028
-978
lines changed

Some content is hidden

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

157 files changed

+7028
-978
lines changed

.changeset/tall-mugs-shop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/messaging': patch
3+
---
4+
5+
stops redirecting user to non-origin urls.

.github/workflows/health-metrics-test.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ name: Health Metrics
22

33
on: [push, pull_request]
44

5+
env:
6+
METRICS_SERVICE_URL: ${{ secrets.METRICS_SERVICE_URL }}
7+
GITHUB_PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
8+
GITHUB_PULL_REQUEST_BASE_SHA: ${{ github.event.pull_request.base.sha }}
9+
510
jobs:
6-
binary-size-test:
11+
binary-size:
712
name: Binary Size
813
if: github.event_name == 'push' || !(github.event.pull_request.head.repo.fork)
914
runs-on: ubuntu-latest
10-
env:
11-
METRICS_SERVICE_URL: ${{ secrets.METRICS_SERVICE_URL }}
12-
GITHUB_PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
13-
GITHUB_PULL_REQUEST_BASE_SHA: ${{ github.event.pull_request.base.sha }}
1415
steps:
1516
- uses: actions/checkout@v2
1617
- uses: actions/setup-node@v1
@@ -19,12 +20,24 @@ jobs:
1920
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
2021
with:
2122
service_account_key: ${{ secrets.GCP_SA_KEY }}
22-
- run: cp config/ci.config.json config/project.json
2323
- run: yarn install
2424
- run: yarn build
2525
- name: Run health-metrics/binary-size test
2626
run: yarn size-report
27+
modular-export-size:
28+
name: Binary Size For Modular Exports
29+
if: github.event_name == 'push' || !(github.event.pull_request.head.repo.fork)
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions/setup-node@v1
34+
with:
35+
node-version: 10.x
36+
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
37+
with:
38+
service_account_key: ${{ secrets.GCP_SA_KEY }}
39+
- run: yarn install
40+
- run: yarn build
2741
- name: Run health-metrics/modular-exports-binary-size test
2842
run: yarn modular-export-size-report
29-
3043
# TODO(yifany): Enable startup times testing on CI.

.github/workflows/test-changed-auth.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: pull_request
44

55
jobs:
66
test:
7-
name: If Changed
7+
name: Test Auth If Changed
88
runs-on: ubuntu-latest
99

1010
steps:

.github/workflows/test-changed-fcm-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: pull_request
44

55
jobs:
66
test:
7-
name: If Changed
7+
name: Test FCM integration If Changed
88
runs-on: ubuntu-latest
99

1010
steps:

.github/workflows/test-changed-firestore-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: pull_request
44

55
jobs:
66
test:
7-
name: If Changed
7+
name: Test Firestore Integration If Changed
88
runs-on: ubuntu-latest
99

1010
steps:

.github/workflows/test-changed-firestore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: pull_request
44

55
jobs:
66
test:
7-
name: If Changed
7+
name: Test Firestore If Changed
88
runs-on: ubuntu-latest
99

1010
steps:

.github/workflows/test-changed-misc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: pull_request
44

55
jobs:
66
test:
7-
name: If Changed
7+
name: Test Misc Packages If Changed
88
runs-on: ubuntu-latest
99

1010
steps:

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

Lines changed: 1 addition & 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)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## API Report File for "@firebase/installations-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 { FirebaseInstallations } from '@firebase/installations-types-exp';
9+
10+
// @public (undocumented)
11+
export function deleteInstallations(installations: FirebaseInstallations): Promise<void>;
12+
13+
// @public (undocumented)
14+
export function getId(installations: FirebaseInstallations): Promise<string>;
15+
16+
// @public (undocumented)
17+
export function getInstallations(app: FirebaseApp): FirebaseInstallations;
18+
19+
// @public (undocumented)
20+
export function getToken(installations: FirebaseInstallations, forceRefresh?: boolean): Promise<string>;
21+
22+
// @public (undocumented)
23+
export type IdChangeCallbackFn = (installationId: string) => void;
24+
25+
// @public (undocumented)
26+
export type IdChangeUnsubscribeFn = () => void;
27+
28+
// @public
29+
export function onIdChange(installations: FirebaseInstallations, callback: IdChangeCallbackFn): IdChangeUnsubscribeFn;
30+
31+
32+
// (No @packageDocumentation comment for this package)
33+
34+
```
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## API Report File for "@firebase/installations-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 FirebaseInstallations {}
9+
10+
// @internal
11+
export interface _FirebaseInstallationsInternal {
12+
getId(): Promise<string>;
13+
14+
getToken(forceRefresh?: boolean): Promise<string>;
15+
}
16+
17+
18+
// (No @packageDocumentation comment for this package)
19+
20+
```

docs-exp/app.setloglevel.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ All of the log types above the current log level are captured (i.e. if you set t
1111
<b>Signature:</b>
1212

1313
```typescript
14-
export declare function setLogLevel(logLevel: LogLevel): void;
14+
export declare function setLogLevel(logLevel: LogLevelString): void;
1515
```
1616

1717
## Parameters
1818

1919
| Parameter | Type | Description |
2020
| --- | --- | --- |
21-
| logLevel | LogLevel | |
21+
| logLevel | LogLevelString | |
2222

2323
<b>Returns:</b>
2424

docs-exp/firestore_.blob.md

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

docs-exp/firestore_.blob.frombase64string.md renamed to docs-exp/firestore_.bytes.frombase64string.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
22

3-
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Blob](./firestore_.blob.md) &gt; [fromBase64String](./firestore_.blob.frombase64string.md)
3+
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Bytes](./firestore_.bytes.md) &gt; [fromBase64String](./firestore_.bytes.frombase64string.md)
44

5-
## Blob.fromBase64String() method
5+
## Bytes.fromBase64String() method
66

77
<b>Signature:</b>
88

@@ -18,5 +18,5 @@ static fromBase64String(base64: string): Blob;
1818

1919
<b>Returns:</b>
2020

21-
[Blob](./firestore_.blob.md)
21+
Blob
2222

docs-exp/firestore_.blob.fromuint8array.md renamed to docs-exp/firestore_.bytes.fromuint8array.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
22

3-
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Blob](./firestore_.blob.md) &gt; [fromUint8Array](./firestore_.blob.fromuint8array.md)
3+
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Bytes](./firestore_.bytes.md) &gt; [fromUint8Array](./firestore_.bytes.fromuint8array.md)
44

5-
## Blob.fromUint8Array() method
5+
## Bytes.fromUint8Array() method
66

77
<b>Signature:</b>
88

@@ -18,5 +18,5 @@ static fromUint8Array(array: Uint8Array): Blob;
1818

1919
<b>Returns:</b>
2020

21-
[Blob](./firestore_.blob.md)
21+
Blob
2222

docs-exp/firestore_.blob.isequal.md renamed to docs-exp/firestore_.bytes.isequal.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
22

3-
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Blob](./firestore_.blob.md) &gt; [isEqual](./firestore_.blob.isequal.md)
3+
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Bytes](./firestore_.bytes.md) &gt; [isEqual](./firestore_.bytes.isequal.md)
44

5-
## Blob.isEqual() method
5+
## Bytes.isEqual() method
66

77
<b>Signature:</b>
88

@@ -14,7 +14,7 @@ isEqual(other: Blob): boolean;
1414

1515
| Parameter | Type | Description |
1616
| --- | --- | --- |
17-
| other | [Blob](./firestore_.blob.md) | |
17+
| other | Blob | |
1818

1919
<b>Returns:</b>
2020

docs-exp/firestore_.bytes.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Bytes](./firestore_.bytes.md)
4+
5+
## Bytes class
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
export class Bytes
11+
```
12+
13+
## Methods
14+
15+
| Method | Modifiers | Description |
16+
| --- | --- | --- |
17+
| [fromBase64String(base64)](./firestore_.bytes.frombase64string.md) | <code>static</code> | |
18+
| [fromUint8Array(array)](./firestore_.bytes.fromuint8array.md) | <code>static</code> | |
19+
| [isEqual(other)](./firestore_.bytes.isequal.md) | | |
20+
| [toBase64()](./firestore_.bytes.tobase64.md) | | |
21+
| [toUint8Array()](./firestore_.bytes.touint8array.md) | | |
22+

docs-exp/firestore_.blob.tobase64.md renamed to docs-exp/firestore_.bytes.tobase64.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
22

3-
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Blob](./firestore_.blob.md) &gt; [toBase64](./firestore_.blob.tobase64.md)
3+
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Bytes](./firestore_.bytes.md) &gt; [toBase64](./firestore_.bytes.tobase64.md)
44

5-
## Blob.toBase64() method
5+
## Bytes.toBase64() method
66

77
<b>Signature:</b>
88

docs-exp/firestore_.blob.touint8array.md renamed to docs-exp/firestore_.bytes.touint8array.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
22

3-
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Blob](./firestore_.blob.md) &gt; [toUint8Array](./firestore_.blob.touint8array.md)
3+
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Bytes](./firestore_.bytes.md) &gt; [toUint8Array](./firestore_.bytes.touint8array.md)
44

5-
## Blob.toUint8Array() method
5+
## Bytes.toUint8Array() method
66

77
<b>Signature:</b>
88

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [CollectionReference](./firestore_.collectionreference.md) &gt; [doc](./firestore_.collectionreference.doc.md)
4+
5+
## CollectionReference.doc() method
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
doc(documentPath?: string): DocumentReference<T>;
11+
```
12+
13+
## Parameters
14+
15+
| Parameter | Type | Description |
16+
| --- | --- | --- |
17+
| documentPath | string | |
18+
19+
<b>Returns:</b>
20+
21+
[DocumentReference](./firestore_.documentreference.md)<!-- -->&lt;T&gt;
22+

docs-exp/firestore_.collectionreference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ export class CollectionReference<T = DocumentData> extends Query<T>
1616
| Property | Modifiers | Type | Description |
1717
| --- | --- | --- | --- |
1818
| [id](./firestore_.collectionreference.id.md) | | string | |
19+
| [parent](./firestore_.collectionreference.parent.md) | | [DocumentReference](./firestore_.documentreference.md)<!-- -->&lt;[DocumentData](./firestore_.documentdata.md)<!-- -->&gt; \| null | |
1920
| [path](./firestore_.collectionreference.path.md) | | string | |
2021
| [type](./firestore_.collectionreference.type.md) | | 'collection' | |
2122
2223
## Methods
2324
2425
| Method | Modifiers | Description |
2526
| --- | --- | --- |
27+
| [doc(documentPath)](./firestore_.collectionreference.doc.md) | | |
2628
| [withConverter(converter)](./firestore_.collectionreference.withconverter.md) | | |
2729
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) &gt; [/](./firestore_.md) &gt; [CollectionReference](./firestore_.collectionreference.md) &gt; [parent](./firestore_.collectionreference.parent.md)
4+
5+
## CollectionReference.parent property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
get parent(): DocumentReference<DocumentData> | null;
11+
```
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [DocumentReference](./firestore_.documentreference.md) &gt; [collection](./firestore_.documentreference.collection.md)
4+
5+
## DocumentReference.collection() method
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
collection(collectionPath: string): CollectionReference<DocumentData>;
11+
```
12+
13+
## Parameters
14+
15+
| Parameter | Type | Description |
16+
| --- | --- | --- |
17+
| collectionPath | string | |
18+
19+
<b>Returns:</b>
20+
21+
[CollectionReference](./firestore_.collectionreference.md)<!-- -->&lt;[DocumentData](./firestore_.documentdata.md)<!-- -->&gt;
22+

docs-exp/firestore_.documentreference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ export class DocumentReference<T = DocumentData>
1717
| [converter](./firestore_.documentreference.converter.md) | | [FirestoreDataConverter](./firestore_.firestoredataconverter.md)<!-- -->&lt;T&gt; \| null | |
1818
| [firestore](./firestore_.documentreference.firestore.md) | | [FirebaseFirestore](./firestore_.firebasefirestore.md) | |
1919
| [id](./firestore_.documentreference.id.md) | | string | |
20+
| [parent](./firestore_.documentreference.parent.md) | | [CollectionReference](./firestore_.collectionreference.md)<!-- -->&lt;T&gt; | |
2021
| [path](./firestore_.documentreference.path.md) | | string | |
2122
| [type](./firestore_.documentreference.type.md) | | 'document' | |
2223

2324
## Methods
2425

2526
| Method | Modifiers | Description |
2627
| --- | --- | --- |
28+
| [collection(collectionPath)](./firestore_.documentreference.collection.md) | | |
2729
| [withConverter(converter)](./firestore_.documentreference.withconverter.md) | | |
2830

0 commit comments

Comments
 (0)