Skip to content

Commit 9e9f7f2

Browse files
committed
Merge branch 'main' of https://github.com/firebase/firebase-js-sdk into tomandersen/restartFirestoreClient
2 parents 9d15152 + 629919e commit 9e9f7f2

File tree

83 files changed

+1099
-225
lines changed

Some content is hidden

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

83 files changed

+1099
-225
lines changed

.changeset/khaki-numbers-nail.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@firebase/auth': patch
3+
'@firebase/util': minor
4+
---
5+
6+
Suppress the use of the `fetch` parameter `referrerPolicy` within Auth for `fetch` requests originating from Cloudflare Workers. Clouldflare Worker environments do not support this parameter and throw when it's used.

.changeset/warm-oranges-itch.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+
Fix an issue with metadata `fromCache` defaulting to `true` when listening to cache in multi-tabs.

.github/ISSUE_TEMPLATE/bug_report_v2.yaml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 Google LLC
1+
# Copyright 2024 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ body:
2121
id: before-you-start
2222
attributes:
2323
value: |
24-
*[READ THIS]:* to evaluate if you are in the right place?
24+
*[READ THIS]:* Are you in the right place?
2525
- For issues or feature requests related to __the code in this repository__, file a GitHub issue.
2626
- If this is a __feature request__, make sure the issue title starts with "FR:".
2727
- For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/) with the firebase tag.
@@ -31,31 +31,31 @@ body:
3131
id: operating-system
3232
attributes:
3333
label: Operating System
34-
description: Describe your operating system
35-
placeholder: ex. iOS 16.4
34+
description: Describe the operating system(s) where you are experiencing the issue.
35+
placeholder: ex. iOS 16.4, macOS Ventura 13.4, Windows 11
3636
validations:
3737
required: true
3838
- type: input
39-
id: browser-version
39+
id: environment
4040
attributes:
41-
label: Browser Version
42-
description: Describe your browser version
43-
placeholder: ex. Safari/604.1
41+
label: Environment (if applicable)
42+
description: Describe the environment where you are experiencing the issue. This could include the browser and its version, Node.js version, or any other relevant environment details.
43+
placeholder: ex. Chrome 115, Node.js v18.16.0, React Native
4444
validations:
4545
required: true
4646
- type: input
4747
id: firebase-sdk-version
4848
attributes:
4949
label: Firebase SDK Version
50-
description: Describe your Firebase SDK Version
50+
description: The Firebase JS SDK version you're using.
5151
placeholder: ex. 9.16.0
5252
validations:
5353
required: true
5454
- type: dropdown
5555
id: firebase-sdk-products
5656
attributes:
57-
label: 'Firebase SDK Product:'
58-
description: Which Firebase Products are used in your app?
57+
label: Firebase SDK Product(s)
58+
description: Select the Firebase product(s) relevant to your issue. You can select multiple options in the dropdown.
5959
multiple: true
6060
options:
6161
- Analytics
@@ -77,16 +77,21 @@ body:
7777
- type: textarea
7878
id: project-tooling
7979
attributes:
80-
label: Describe your project's tooling
80+
label: Project Tooling
8181
description: Describe the tooling your app is built with
8282
placeholder: React app with Webpack and Jest
8383
validations:
8484
required: true
8585
- type: textarea
8686
id: describe-your-problem
8787
attributes:
88-
label: Describe the problem
89-
description: Describe what you were trying to do and what occurred
88+
label: Detailed Problem Description
89+
description: |
90+
Please provide a clear and concise description of the problem. Include:
91+
- What you were trying to achieve.
92+
- What actually happened.
93+
- Any error messages or unexpected behavior you observed.
94+
- Relevant log snippets or console output (if available).
9095
placeholder: |
9196
What were you trying to accomplish? What happened? This should include a background description, log/console output, etc.
9297
validations:
@@ -95,6 +100,8 @@ body:
95100
id: reproduce-code
96101
attributes:
97102
label: Steps and code to reproduce issue
98-
description: Please provide a description of how to replicate your issue. Copy and paste any relevant code here to reproduce the problem or links to code to reproduce it.
103+
description: |
104+
If possible, provide a minimal, self-contained code snippet or steps that consistently reproduce the issue.
105+
This will significantly aid in debugging.
99106
validations:
100107
required: true

.github/workflows/check-docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ jobs:
3636
- name: Run doc generation
3737
run: yarn docgen:all
3838
- name: Check for changes in docs-devsite dir (fail if so)
39-
run: git diff --exit-code docs-devsite
39+
run: |
40+
if [[ -n "$(git status docs-devsite --porcelain)" ]]; then
41+
echo "Unstaged changes detected:"
42+
git status -s
43+
exit 1
44+
fi
4045
- name: Reference documentation needs to be updated. See message below.
4146
if: ${{ failure() }}
4247
run: echo "Changes in this PR affect the reference docs. Run \`yarn docgen:all\` locally to regenerate docs and add them to this PR."

.github/workflows/test-all.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- name: Run unit tests
9393
# Ignore auth and firestore since they're handled in their own separate jobs.
9494
run: |
95-
xvfb-run yarn lerna run --ignore '{firebase-messaging-integration-test,@firebase/auth*,@firebase/firestore*,firebase-firestore-integration-test}' --concurrency 4 test:ci
95+
xvfb-run yarn lerna run --ignore '{firebase-messaging-integration-test,@firebase/auth*,@firebase/firestore*,firebase-firestore-integration-test}' test:ci
9696
node scripts/print_test_logs.js
9797
env:
9898
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
@@ -142,7 +142,7 @@ jobs:
142142
run: echo "FIREBASE_CI_TEST_START_TIME=$(date +%s)" >> $GITHUB_ENV
143143
- name: Run unit tests
144144
run: |
145-
xvfb-run yarn lerna run --concurrency 4 test:ci --scope '@firebase/auth*'
145+
xvfb-run yarn lerna run test:ci --scope '@firebase/auth*'
146146
node scripts/print_test_logs.js
147147
env:
148148
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
@@ -182,7 +182,7 @@ jobs:
182182
run: echo "FIREBASE_CI_TEST_START_TIME=$(date +%s)" >> $GITHUB_ENV
183183
- name: Run unit tests
184184
run: |
185-
xvfb-run yarn lerna run --concurrency 4 test:ci --scope '@firebase/firestore*'
185+
xvfb-run yarn lerna run test:ci --scope '@firebase/firestore*'
186186
node scripts/print_test_logs.js
187187
env:
188188
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}

common/api-review/util.api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ export function isBrowser(): boolean;
264264
// @public (undocumented)
265265
export function isBrowserExtension(): boolean;
266266

267+
// Warning: (ae-missing-release-tag) "isCloudflareWorker" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
268+
//
269+
// @public
270+
export function isCloudflareWorker(): boolean;
271+
267272
// Warning: (ae-missing-release-tag) "isElectron" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
268273
//
269274
// @public

config/karma.base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ const config = {
6666

6767
webpackMiddleware: { quiet: true, stats: { colors: true } },
6868

69-
singleRun: false,
69+
// Exit with an exit code of 0 if any of the tests fail.
70+
singleRun: true,
7071

7172
client: {
7273
mocha: {

0 commit comments

Comments
 (0)