Skip to content

Commit 62c4c98

Browse files
Merge main into release
2 parents 8547b44 + cfca9c6 commit 62c4c98

Some content is hidden

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

55 files changed

+856
-655
lines changed

.changeset/mighty-shirts-pump.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/auth': patch
3+
---
4+
5+
Remove localStorage synchronization on storage events in Safari iframes. See [GitHub PR #8408](https://github.com/firebase/firebase-js-sdk/pull/8408).

.changeset/nice-eyes-tan.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@firebase/firestore": minor
3+
"firebase": minor
4+
---
5+
6+
Add support for reading and writing Firestore vectors.

.changeset/slow-emus-vanish.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/app-compat': patch
3+
---
4+
5+
Updated how app-compat checks the global scope.

.github/workflows/canary-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Checkout Repo
30-
uses: actions/checkout@master
30+
uses: actions/checkout@v4
3131
with:
3232
# Canary release script requires git history and tags.
3333
fetch-depth: 0

.github/workflows/check-changeset.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout Repo
33-
uses: actions/checkout@master
33+
uses: actions/checkout@v4
3434
with:
3535
# This makes Actions fetch all Git history so check_changeset script can diff properly.
3636
fetch-depth: 0
@@ -68,10 +68,10 @@ jobs:
6868
### Changeset File Check :warning:
6969
${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
7070
- name: Update comment (missing packages)
71-
if: ${{steps.fc.outputs.comment-id}}
71+
if: ${{steps.fc.outputs.comment-id && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
7272
uses: peter-evans/create-or-update-comment@v4
7373
with:
74-
comment-id: ${{steps.fc.outputs.comment-id}} && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
74+
comment-id: ${{steps.fc.outputs.comment-id}}
7575
edit-mode: replace
7676
body: |
7777
### Changeset File Check :warning:

.github/workflows/check-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- name: Checkout Repo
26-
uses: actions/checkout@master
26+
uses: actions/checkout@v4
2727
with:
2828
# get all history for the diff
2929
fetch-depth: 0

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- name: Checkout Repo
26-
uses: actions/checkout@master
26+
uses: actions/checkout@v4
2727
with:
2828
# This makes Actions fetch all Git history so run-changed script can diff properly.
2929
fetch-depth: 0

.github/workflows/deploy-config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
steps:
3333
- name: Checkout Repo
34-
uses: actions/checkout@master
34+
uses: actions/checkout@v4
3535
with:
3636
# This makes Actions fetch all Git history so run-changed script can diff properly.
3737
fetch-depth: 0

.github/workflows/e2e-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout Repo
38-
uses: actions/checkout@master
38+
uses: actions/checkout@v4
3939
- name: Set up Node (20)
4040
uses: actions/setup-node@master
4141
with:

.github/workflows/format.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Checkout Repo
30-
uses: actions/checkout@master
30+
uses: actions/checkout@v4
3131
with:
3232
# get all history for the diff
3333
fetch-depth: 0

.github/workflows/merge-release-branch.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
contents: write
2525
steps:
2626
- name: Checkout Release Branch
27-
uses: actions/checkout@master
27+
uses: actions/checkout@v4
2828
with:
2929
ref: release
3030
- name: Get release version

.github/workflows/prerelease-manual-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout Repo
33-
uses: actions/checkout@master
33+
uses: actions/checkout@v4
3434
with:
3535
# Canary release script requires git history and tags.
3636
fetch-depth: 0

.github/workflows/release-log.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout Repo
29-
uses: actions/checkout@master
29+
uses: actions/checkout@v4
3030

3131
- name: Setup Node.js 20.x
3232
uses: actions/setup-node@master

.github/workflows/release-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
if: ${{ !startsWith(github.event.head_commit.message, 'Version Packages (#') }}
2828
steps:
2929
- name: Checkout Repo
30-
uses: actions/checkout@master
30+
uses: actions/checkout@v4
3131
with:
3232
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
3333
fetch-depth: 0

.github/workflows/release-prod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
node-version: 20.x
3939
- name: Checkout release branch (with history)
40-
uses: actions/checkout@master
40+
uses: actions/checkout@v4
4141
with:
4242
# Release script requires git history and tags.
4343
fetch-depth: 0

.github/workflows/release-staging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
})
6464
console.log(result)
6565
- name: Checkout current branch (with history)
66-
uses: actions/checkout@master
66+
uses: actions/checkout@v4
6767
with:
6868
# Release script requires git history and tags.
6969
fetch-depth: 0

.github/workflows/release-tweet.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout Repo
36-
uses: actions/checkout@master
36+
uses: actions/checkout@v4
3737
- name: Setup Node.js 20.x
3838
uses: actions/setup-node@master
3939
with:

.github/workflows/test-all.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,10 @@ jobs:
5050
yarn
5151
- name: yarn build
5252
run: yarn build
53-
- name: Remove git directory
54-
run: rm -rf .git
5553
- name: Archive build
5654
if: ${{ !cancelled() }}
5755
run: |
58-
tar -cf build.tar .
56+
tar -cf build.tar --exclude=.git .
5957
gzip build.tar
6058
- name: Upload build archive
6159
if: ${{ !cancelled() }}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: |
5353
echo $CHROME_VERSION_NOTES=$CHROME_VERSION_MISMATCH_MESSAGE
5454
- name: Checkout Repo
55-
uses: actions/checkout@master
55+
uses: actions/checkout@v4
5656
with:
5757
# This makes Actions fetch all Git history so run-changed script can diff properly.
5858
fetch-depth: 0
@@ -84,7 +84,7 @@ jobs:
8484
sudo apt-get install wget
8585
8686
- name: Checkout Repo
87-
uses: actions/checkout@master
87+
uses: actions/checkout@v4
8888
with:
8989
# This makes Actions fetch all Git history so run-changed script can diff properly.
9090
fetch-depth: 0

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
sudo apt-get update
3535
sudo apt-get install google-chrome-stable
3636
- name: Checkout Repo
37-
uses: actions/checkout@master
37+
uses: actions/checkout@v4
3838
with:
3939
# This makes Actions fetch all Git history so run-changed script can diff properly.
4040
fetch-depth: 0

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: Checkout Repo
32-
uses: actions/checkout@master
32+
uses: actions/checkout@v4
3333
with:
3434
# This makes Actions fetch all Git history so run-changed script can diff properly.
3535
fetch-depth: 0

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: Checkout Repo
36-
uses: actions/checkout@master
36+
uses: actions/checkout@v4
3737
with:
3838
# This makes Actions fetch all Git history so run-changed script can diff properly.
3939
fetch-depth: 0

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Checkout Repo
30-
uses: actions/checkout@master
30+
uses: actions/checkout@v4
3131
with:
3232
# This makes Actions fetch all Git history so run-changed script can diff properly.
3333
fetch-depth: 0

.github/workflows/test-changed.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Checkout Repo
30-
uses: actions/checkout@master
30+
uses: actions/checkout@v4
3131
with:
3232
# This makes Actions fetch all Git history so run-changed script can diff properly.
3333
fetch-depth: 0
@@ -57,7 +57,7 @@ jobs:
5757

5858
steps:
5959
- name: Checkout Repo
60-
uses: actions/checkout@master
60+
uses: actions/checkout@v4
6161
with:
6262
fetch-depth: 0
6363
- name: Set up Node (20)

.github/workflows/test-firebase-integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: Checkout Repo
30-
uses: actions/checkout@master
30+
uses: actions/checkout@v4
3131
with:
3232
# This makes Actions fetch all Git history so run-changed script can diff properly.
3333
fetch-depth: 0

.github/workflows/update-api-reports.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
contents: write
2626
steps:
2727
- name: Checkout Repo
28-
uses: actions/checkout@master
28+
uses: actions/checkout@v4
2929
with:
3030
# checkout HEAD commit instead of merge commit
3131
ref: ${{ github.event.pull_request.head.ref }}

common/api-review/firestore-lite.api.md

+10
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,16 @@ export function updateDoc<AppModelType, DbModelType extends DocumentData>(refere
460460
// @public
461461
export function updateDoc<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>, field: string | FieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): Promise<void>;
462462

463+
// @public
464+
export function vector(values?: number[]): VectorValue;
465+
466+
// @public
467+
export class VectorValue {
468+
/* Excluded from this release type: __constructor */
469+
isEqual(other: VectorValue): boolean;
470+
toArray(): number[];
471+
}
472+
463473
// @public
464474
export function where(fieldPath: string | FieldPath, opStr: WhereFilterOp, value: unknown): QueryFieldFilterConstraint;
465475

common/api-review/firestore.api.md

+10
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,16 @@ export function updateDoc<AppModelType, DbModelType extends DocumentData>(refere
745745
// @public
746746
export function updateDoc<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>, field: string | FieldPath, value: unknown, ...moreFieldsAndValues: unknown[]): Promise<void>;
747747

748+
// @public
749+
export function vector(values?: number[]): VectorValue;
750+
751+
// @public
752+
export class VectorValue {
753+
/* Excluded from this release type: __constructor */
754+
isEqual(other: VectorValue): boolean;
755+
toArray(): number[];
756+
}
757+
748758
// @public
749759
export function waitForPendingWrites(firestore: Firestore): Promise<void>;
750760

0 commit comments

Comments
 (0)