Skip to content

Commit d9dad0a

Browse files
committed
Merge branch 'main' of github.com:firebase/firebase-js-sdk into console
2 parents 225004b + 40be2db commit d9dad0a

File tree

658 files changed

+30909
-19742
lines changed

Some content is hidden

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

658 files changed

+30909
-19742
lines changed

.changeset/config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"baseBranch": "main",
1111
"updateInternalDependencies": "patch",
1212
"ignore": [
13-
"firebase-namespace-integration-test",
1413
"firebase-firestore-integration-test",
1514
"firebase-messaging-integration-test",
1615
"firebase-compat-interop-test",

.changeset/spotty-ghosts-kneel.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+
Clean up leaked WebChannel instances when the Firestore instance is terminated.

.changeset/tricky-years-pump.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'firebase': minor
3+
'@firebase/ai': minor
4+
---
5+
6+
Add `title`, `maximum`, `minimum`, `propertyOrdering` to Schema builder

.github/CODEOWNERS

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ packages/messaging-interop-types @zwu52 @firebase/jssdk-global-approvers
3737
integration/messaging @zwu52 @firebase/jssdk-global-approvers
3838

3939
# Auth Code
40-
packages/auth @lisajian @Xiaoshouzi-gh @sam-gc @firebase/jssdk-global-approvers
41-
packages/auth-compat @lisajian @Xiaoshouzi-gh @sam-gc @firebase/jssdk-global-approvers
42-
packages/auth-types @lisajian @Xiaoshouzi-gh @sam-gc @firebase/jssdk-global-approvers
43-
packages/auth-interop-types @lisajian @Xiaoshouzi-gh @sam-gc @firebase/jssdk-global-approvers
40+
packages/auth @lisajian @Xiaoshouzi-gh @sam-gc @pashanka @mansisampat @nhienlam @firebase/jssdk-global-approvers
41+
packages/auth-compat @lisajian @Xiaoshouzi-gh @sam-gc @pashanka @mansisampat @nhienlam @firebase/jssdk-global-approvers
42+
packages/auth-types @lisajian @Xiaoshouzi-gh @sam-gc @pashanka @mansisampat @nhienlam @firebase/jssdk-global-approvers
43+
packages/auth-interop-types @lisajian @Xiaoshouzi-gh @sam-gc @pashanka @mansisampat @nhienlam @firebase/jssdk-global-approvers
4444

4545
# Testing Code
4646
packages/rules-unit-testing @avolkovi @sam-gc @yuchenshi @firebase/jssdk-global-approvers
@@ -51,9 +51,9 @@ packages/installations-compat @avolkovi @yoyomyo @firebase/jssdk-global-approver
5151
packages/installations-types @avolkovi @yoyomyo @firebase/jssdk-global-approvers
5252

5353
# Performance Code
54-
packages/performance @jposuna @firebase/jssdk-global-approvers
55-
packages/performance-compat @jposuna @firebase/jssdk-global-approvers
56-
packages/performance-types @jposuna @firebase/jssdk-global-approvers
54+
packages/performance @visumickey @firebase/jssdk-global-approvers
55+
packages/performance-compat @visumickey @firebase/jssdk-global-approvers
56+
packages/performance-types @visumickey @firebase/jssdk-global-approvers
5757

5858
# Analytics Code
5959
packages/analytics @hsubox76 @firebase/jssdk-global-approvers
@@ -72,7 +72,7 @@ packages/app-check-types @hsubox76 @firebase/jssdk-global-approvers
7272
packages/app-check-interop-types @hsubox76 @firebase/jssdk-global-approvers
7373

7474
# Documentation Changes
75-
packages/firebase/index.d.ts @egilmorez @firebase/jssdk-global-approvers
75+
packages/firebase/compat/index.d.ts @egilmorez @firebase/jssdk-global-approvers
7676
scripts/docgen/content-sources/ @egilmorez @firebase/jssdk-global-approvers
7777
docs-devsite/ @firebase/firebase-techwriters
7878

.github/workflows/canary-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# Canary release script requires git history and tags.
3333
fetch-depth: 0
3434
- name: Set up Node (20)
35-
uses: actions/setup-node@v3
35+
uses: actions/setup-node@v4
3636
with:
3737
node-version: 22.10.0
3838
- name: Yarn install
@@ -71,6 +71,7 @@ jobs:
7171
NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}}
7272
NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}}
7373
NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}}
74+
NPM_TOKEN_AI: ${{secrets.NPM_TOKEN_AI}}
7475
NPM_TOKEN_VERTEXAI: ${{secrets.NPM_TOKEN_VERTEXAI}}
7576
NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}}
7677
NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}}

.github/workflows/check-changeset.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ jobs:
2828
name: Check changeset vs changed files
2929
runs-on: ubuntu-latest
3030

31+
permissions:
32+
pull-requests: write
33+
3134
steps:
3235
- name: Checkout Repo
3336
uses: actions/checkout@v4
3437
with:
3538
# This makes Actions fetch all Git history so check_changeset script can diff properly.
3639
fetch-depth: 0
3740
- name: Set up Node (20)
38-
uses: actions/setup-node@v3
41+
uses: actions/setup-node@v4
3942
with:
4043
node-version: 22.10.0
4144
- name: Yarn install
@@ -54,22 +57,25 @@ jobs:
5457
- name: Print blocking failure status
5558
run: echo "${{steps.check-changeset.outputs.BLOCKING_FAILURE}}"
5659
- name: Find Comment
57-
uses: peter-evans/find-comment@v3
60+
# This commit represents v3.1.0
61+
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
5862
id: fc
5963
with:
6064
issue-number: ${{github.event.number}}
6165
body-includes: Changeset File Check
6266
- name: Create comment (missing packages)
6367
if: ${{!steps.fc.outputs.comment-id && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
64-
uses: peter-evans/create-or-update-comment@v4
68+
# This commit represents v4.0.0
69+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
6570
with:
6671
issue-number: ${{github.event.number}}
6772
body: |
6873
### Changeset File Check :warning:
6974
${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
7075
- name: Update comment (missing packages)
7176
if: ${{steps.fc.outputs.comment-id && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
72-
uses: peter-evans/create-or-update-comment@v4
77+
# This commit represents v4.0.0
78+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
7379
with:
7480
comment-id: ${{steps.fc.outputs.comment-id}}
7581
edit-mode: replace
@@ -78,7 +84,8 @@ jobs:
7884
${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
7985
- name: Update comment (no missing packages)
8086
if: ${{steps.fc.outputs.comment-id && !steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
81-
uses: peter-evans/create-or-update-comment@v4
87+
# This commit represents v4.0.0
88+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
8289
with:
8390
comment-id: ${{steps.fc.outputs.comment-id}}
8491
edit-mode: replace
@@ -89,4 +96,4 @@ jobs:
8996
# Don't want it to throw before editing the comment.
9097
- name: Fail if checker script logged a blocking failure
9198
if: ${{steps.check-changeset.outputs.BLOCKING_FAILURE == 'true'}}
92-
run: exit 1
99+
run: exit 1

.github/workflows/check-docs.yml

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,34 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- name: Checkout Repo
26-
uses: actions/checkout@v4
27-
with:
28-
# get all history for the diff
29-
fetch-depth: 0
30-
- name: Set up Node (20)
31-
uses: actions/setup-node@v3
32-
with:
33-
node-version: 22.10.0
34-
- name: Yarn install
35-
run: yarn
36-
- name: Run doc generation
37-
run: yarn docgen:all
38-
- name: Check for changes in docs-devsite dir (fail if so)
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
45-
- name: Reference documentation needs to be updated. See message below.
46-
if: ${{ failure() }}
47-
run: echo "Changes in this PR affect the reference docs. Run \`yarn docgen:all\` locally to regenerate docs and add them to this PR."
25+
- name: Checkout Repo
26+
uses: actions/checkout@v4
27+
with:
28+
# get all history for the diff
29+
fetch-depth: 0
30+
- name: Set up Node (20)
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 22.10.0
34+
- name: Yarn install
35+
run: yarn
36+
- name: Run doc generation
37+
run: yarn docgen:all
38+
# Fail first if there are docs-devsite changes since running yarn docgen:all
39+
# will also regenerate any API report changes.
40+
- name: Check for changes in docs-devsite dir (fail if so)
41+
run: |
42+
if [[ -n "$(git status docs-devsite --porcelain)" ]]; then
43+
echo "Unstaged changes detected in docs-devsite/:"
44+
git status -s
45+
echo "Changes in this PR affect the reference docs or API reports. Run \`yarn docgen:all\` locally to regenerate the changed files and add them to this PR."
46+
exit 1
47+
fi
48+
- name: Check for changes in common/api-review dir (fail if so)
49+
run: |
50+
if [[ -n "$(git status common/api-review --porcelain)" ]]; then
51+
echo "Unstaged changes detected in api-report(s):"
52+
git status -s
53+
echo "Changes in this PR affect the API reports. Run \`yarn build\` locally to regenerate the API reports and add them to this PR."
54+
exit 1
55+
fi

.github/workflows/check-pkg-paths.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# This makes Actions fetch all Git history so run-changed script can diff properly.
2929
fetch-depth: 0
3030
- name: Set up Node (20)
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
3333
node-version: 22.10.0
3434
- name: Yarn install

.github/workflows/check-vertexai-responses.yml

Lines changed: 43 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,47 @@ on: pull_request
1919
jobs:
2020
check-version:
2121
runs-on: ubuntu-latest
22+
# Allow GITHUB_TOKEN to have write permissions
23+
permissions:
24+
contents: write
25+
pull-requests: write
2226
steps:
23-
- uses: actions/checkout@v4
24-
- name: Clone mock responses
25-
run: scripts/update_vertexai_responses.sh
26-
- name: Find cloned and latest versions
27-
run: |
28-
CLONED=$(git describe --tags)
29-
LATEST=$(git tag --sort=v:refname | tail -n1)
30-
echo "cloned_tag=$CLONED" >> $GITHUB_ENV
31-
echo "latest_tag=$LATEST" >> $GITHUB_ENV
32-
working-directory: packages/vertexai/test-utils/vertexai-sdk-test-data
33-
- name: Find comment from previous run if exists
34-
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
35-
id: fc
36-
with:
37-
issue-number: ${{github.event.number}}
38-
body-includes: Vertex AI Mock Responses Check
39-
- name: Comment on PR if newer version is available
40-
if: ${{env.cloned_tag != env.latest_tag && !steps.fc.outputs.comment-id}}
41-
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
42-
with:
43-
issue-number: ${{github.event.number}}
44-
body: >
45-
### Vertex AI Mock Responses Check :warning:
46-
47-
A newer major version of the mock responses for Vertex AI unit tests is available.
48-
[update_vertexai_responses.sh](https://github.com/firebase/firebase-js-sdk/blob/main/scripts/update_vertexai_responses.sh)
49-
should be updated to clone the latest version of the responses: `${{env.latest_tag}}`
50-
- name: Delete comment when version gets updated
51-
if: ${{env.cloned_tag == env.latest_tag && steps.fc.outputs.comment-id}}
52-
uses: detomarco/delete-comment@850734dd44d8b15fef55b45252613b903ceb06f0
53-
with:
54-
comment-id: ${{ steps.fc.outputs.comment-id }}
27+
- uses: actions/checkout@v4
28+
- name: Clone mock responses
29+
run: scripts/update_vertexai_responses.sh
30+
- name: Find cloned and latest versions
31+
run: |
32+
CLONED=$(git describe --tags)
33+
LATEST=$(git tag --sort=v:refname | tail -n1)
34+
echo "cloned_tag=$CLONED" >> $GITHUB_ENV
35+
echo "latest_tag=$LATEST" >> $GITHUB_ENV
36+
working-directory: packages/ai/test-utils/vertexai-sdk-test-data
37+
- name: Find comment from previous run if exists
38+
# This commit represents v3.1.0
39+
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
40+
id: fc
41+
with:
42+
issue-number: ${{github.event.number}}
43+
body-includes: Vertex AI Mock Responses Check
44+
- name: Comment on PR if newer version is available
45+
if: ${{env.cloned_tag != env.latest_tag && !steps.fc.outputs.comment-id}}
46+
# This commit represents v4.0.0
47+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
48+
with:
49+
issue-number: ${{github.event.number}}
50+
body: >
51+
### Vertex AI Mock Responses Check :warning:
52+
53+
A newer major version of the mock responses for Vertex AI unit tests is available.
54+
[update_vertexai_responses.sh](https://github.com/firebase/firebase-js-sdk/blob/main/scripts/update_vertexai_responses.sh)
55+
should be updated to clone the latest version of the responses: `${{env.latest_tag}}`
56+
- name: Delete comment when version gets updated
57+
if: ${{env.cloned_tag == env.latest_tag && steps.fc.outputs.comment-id}}
58+
uses: actions/github-script@v7
59+
with:
60+
script: |
61+
github.rest.issues.deleteComment({
62+
owner: context.repo.owner,
63+
repo: context.repo.repo,
64+
comment_id: ${{ steps.fc.outputs.comment-id }},
65+
})

.github/workflows/deploy-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# This makes Actions fetch all Git history so run-changed script can diff properly.
3737
fetch-depth: 0
3838
- name: Set up node (20)
39-
uses: actions/setup-node@v3
39+
uses: actions/setup-node@v4
4040
with:
4141
node-version: 22.10.0
4242
- name: Yarn install

.github/workflows/e2e-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ jobs:
5050
TEST_ACCOUNT: ${{ secrets.TEST_ACCOUNT }}
5151
run: |
5252
echo "export const config = $PROJECT_CONFIG; export const testAccount = $TEST_ACCOUNT" > firebase-config.js
53+
- name: Poll npm until version to test is available for install
54+
run: |
55+
echo "Polling npm for firebase@${{ github.event.client_payload.versionOrTag }}"
56+
node ../scripts/release/poll-npm-publish.js
57+
env:
58+
VERSION: ${{ github.event.client_payload.versionOrTag }}
5359
- name: Yarn install
5460
run: |
5561
echo "Installing firebase@${{ github.event.client_payload.versionOrTag }}"

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# get all history for the diff
3333
fetch-depth: 0
3434
- name: Set up node (20)
35-
uses: actions/setup-node@v3
35+
uses: actions/setup-node@v4
3636
with:
3737
node-version: 22.10.0
3838
- name: Yarn install

.github/workflows/health-metrics-pull-request.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ jobs:
3838
if: (github.event_name == 'push' || !(github.event.pull_request.head.repo.fork)) && (github.actor != 'dependabot[bot]')
3939
runs-on: ubuntu-latest
4040
steps:
41-
- uses: actions/checkout@v3
42-
- uses: actions/setup-node@v3
41+
- uses: actions/checkout@v4
42+
- uses: actions/setup-node@v4
4343
with:
4444
node-version: 22.10.0
45-
- uses: 'google-github-actions/auth@v0'
45+
# This commit represents v0.8.3
46+
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
4647
with:
4748
credentials_json: '${{ secrets.GCP_SA_KEY }}'
48-
- uses: google-github-actions/setup-gcloud@v2
49+
# This commit represents v2.1.4
50+
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
4951
- run: yarn install
5052
- run: yarn build
5153
- name: Run health-metrics/binary-size test
@@ -55,14 +57,16 @@ jobs:
5557
if: (github.event_name == 'push' || !(github.event.pull_request.head.repo.fork)) && (github.actor != 'dependabot[bot]')
5658
runs-on: ubuntu-latest
5759
steps:
58-
- uses: actions/checkout@v3
59-
- uses: actions/setup-node@v3
60+
- uses: actions/checkout@v4
61+
- uses: actions/setup-node@v4
6062
with:
6163
node-version: 22.10.0
62-
- uses: 'google-github-actions/auth@v0'
64+
# This commit represents v0.8.3
65+
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
6366
with:
6467
credentials_json: '${{ secrets.GCP_SA_KEY }}'
65-
- uses: google-github-actions/setup-gcloud@v2
68+
# This commit represents v2.1.4
69+
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
6670
- run: yarn install
6771
- run: yarn build
6872
- name: Run health-metrics/modular-exports-binary-size test

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ jobs:
2323
name: Release Diffing
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: 'google-github-actions/auth@v0'
26+
# This commit represents v0.8.3
27+
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
2728
with:
2829
credentials_json: '${{ secrets.GCP_SA_KEY }}'
29-
- uses: google-github-actions/setup-gcloud@v2
30-
- uses: FirebaseExtended/github-actions/health-metrics/release-diffing@master
30+
# This commit represents v2.1.4
31+
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
32+
# This commit represents v1.4
33+
- uses: FirebaseExtended/github-actions/health-metrics/release-diffing@41c787c37157e4c5932b951e531c041efa5bb7a4
3134
with:
3235
repo: ${{ github.repository }}
3336
ref: ${{ github.ref }}

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
- name: Set up node (20)
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
2929
node-version: 22.10.0
3030
- name: yarn install

0 commit comments

Comments
 (0)