Skip to content

Commit ad17dab

Browse files
committed
Merge branch 'main' into ddb-fsa-appcheck
2 parents 1e511b5 + 46c91bc commit ad17dab

File tree

139 files changed

+4641
-3102
lines changed

Some content is hidden

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

139 files changed

+4641
-3102
lines changed

.changeset/nervous-timers-call.md

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

.changeset/six-toys-chew.md

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

.changeset/tall-peas-tell.md

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

.changeset/tame-paws-nail.md

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

.changeset/tasty-boxes-brake.md

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

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,12 @@ jobs:
7070
run: xvfb-run yarn test:changed auth
7171
test-firefox:
7272
name: Test Auth on Firefox If Changed
73-
# Whatever version of Firefox comes with 22.04 is causing Firefox
74-
# startup to hang when launched by karma. Need to look further into
75-
# why.
7673

77-
runs-on: ubuntu-20.04
74+
runs-on: ubuntu-latest
7875

7976
steps:
8077
- name: install Firefox stable
81-
run: |
82-
sudo apt-get update
83-
sudo apt-get install firefox
84-
sudo apt-get install wget
85-
78+
run: npx @puppeteer/browsers install firefox@stable
8679
- name: Checkout Repo
8780
uses: actions/checkout@v4
8881
with:

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

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,12 @@ jobs:
169169

170170
compat-test-firefox:
171171
name: Test Firestore Compatible on Firefox
172-
# Whatever version of Firefox comes with 22.04 is causing Firefox
173-
# startup to hang when launched by karma. Need to look further into
174-
# why.
175-
runs-on: ubuntu-20.04
172+
runs-on: ubuntu-latest
176173
needs: build
177174
if: ${{ needs.build.outputs.changed == 'true'}}
178175
steps:
179176
- name: install Firefox stable
180-
run: |
181-
sudo apt-get update
182-
sudo apt-get install firefox
177+
run: npx @puppeteer/browsers install firefox@stable
183178
- name: Set up Node (20)
184179
uses: actions/setup-node@v3
185180
with:
@@ -202,17 +197,12 @@ jobs:
202197
strategy:
203198
matrix:
204199
test-name: ["test:browser", "test:travis", "test:lite:browser", "test:browser:prod:nameddb", "test:lite:browser:nameddb"]
205-
# Whatever version of Firefox comes with 22.04 is causing Firefox
206-
# startup to hang when launched by karma. Need to look further into
207-
# why.
208-
runs-on: ubuntu-20.04
200+
runs-on: ubuntu-latest
209201
needs: build
210202
if: ${{ needs.build.outputs.changed == 'true'}}
211203
steps:
212204
- name: install Firefox stable
213-
run: |
214-
sudo apt-get update
215-
sudo apt-get install firefox
205+
run: npx @puppeteer/browsers install firefox@stable
216206
- name: Download build archive
217207
uses: actions/download-artifact@v3
218208
with:

.github/workflows/test-changed.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ jobs:
5050

5151
test-firefox:
5252
name: Test Packages With Changed Files in Firefox
53-
# Whatever version of Firefox comes with 22.04 is causing Firefox
54-
# startup to hang when launched by karma. Need to look further into
55-
# why.
56-
runs-on: ubuntu-20.04
53+
runs-on: ubuntu-latest
5754

5855
steps:
5956
- name: Checkout Repo
@@ -65,9 +62,7 @@ jobs:
6562
with:
6663
node-version: 22.10.0
6764
- name: install Firefox stable
68-
run: |
69-
sudo apt-get update
70-
sudo apt-get install firefox
65+
run: npx @puppeteer/browsers install firefox@stable
7166
- name: Test setup and yarn install
7267
run: |
7368
cp config/ci.config.json config/project.json

common/api-review/functions.api.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,18 @@ export type FunctionsErrorCodeCore = 'ok' | 'cancelled' | 'unknown' | 'invalid-a
3535
export function getFunctions(app?: FirebaseApp, regionOrCustomDomain?: string): Functions;
3636

3737
// @public
38-
export type HttpsCallable<RequestData = unknown, ResponseData = unknown> = (data?: RequestData | null) => Promise<HttpsCallableResult<ResponseData>>;
38+
export interface HttpsCallable<RequestData = unknown, ResponseData = unknown, StreamData = unknown> {
39+
// (undocumented)
40+
(data?: RequestData | null): Promise<HttpsCallableResult<ResponseData>>;
41+
// (undocumented)
42+
stream: (data?: RequestData | null, options?: HttpsCallableStreamOptions) => Promise<HttpsCallableStreamResult<ResponseData, StreamData>>;
43+
}
3944

4045
// @public
41-
export function httpsCallable<RequestData = unknown, ResponseData = unknown>(functionsInstance: Functions, name: string, options?: HttpsCallableOptions): HttpsCallable<RequestData, ResponseData>;
46+
export function httpsCallable<RequestData = unknown, ResponseData = unknown, StreamData = unknown>(functionsInstance: Functions, name: string, options?: HttpsCallableOptions): HttpsCallable<RequestData, ResponseData, StreamData>;
4247

4348
// @public
44-
export function httpsCallableFromURL<RequestData = unknown, ResponseData = unknown>(functionsInstance: Functions, url: string, options?: HttpsCallableOptions): HttpsCallable<RequestData, ResponseData>;
49+
export function httpsCallableFromURL<RequestData = unknown, ResponseData = unknown, StreamData = unknown>(functionsInstance: Functions, url: string, options?: HttpsCallableOptions): HttpsCallable<RequestData, ResponseData, StreamData>;
4550

4651
// @public
4752
export interface HttpsCallableOptions {
@@ -54,5 +59,19 @@ export interface HttpsCallableResult<ResponseData = unknown> {
5459
readonly data: ResponseData;
5560
}
5661

62+
// @public
63+
export interface HttpsCallableStreamOptions {
64+
limitedUseAppCheckTokens?: boolean;
65+
signal?: AbortSignal;
66+
}
67+
68+
// @public
69+
export interface HttpsCallableStreamResult<ResponseData = unknown, StreamData = unknown> {
70+
// (undocumented)
71+
readonly data: Promise<ResponseData>;
72+
// (undocumented)
73+
readonly stream: AsyncIterable<StreamData>;
74+
}
75+
5776

5877
```

config/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Uncomment this if you'd like others to create their own Firebase project.

0 commit comments

Comments
 (0)