Skip to content

Commit 38faba5

Browse files
committed
Merge remote-tracking branch 'origin-public/main' into mila/new-types
2 parents b640454 + 3d44792 commit 38faba5

File tree

386 files changed

+17146
-4867
lines changed

Some content is hidden

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

386 files changed

+17146
-4867
lines changed

.changeset/brave-boats-arrive.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@firebase/remote-config': patch
3+
'@firebase/analytics': patch
4+
'firebase': patch
5+
---
6+
7+
Add rollup config to generate modular typings for google3

.changeset/brown-pens-confess.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@firebase/storage": patch
3+
"@firebase/util": patch
4+
---
5+
6+
Fixed issue where Storage on Firebase Studio throws CORS errors.

.changeset/giant-lamps-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/app': patch
3+
---
4+
5+
Add "react-native" entry point to @firebase/app

.changeset/long-pets-sell.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+
Internal listener registration change for IndexedDB "versionchange" events.

.changeset/moody-comics-speak.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@firebase/firestore': minor
3+
'firebase': minor
4+
---
5+
6+
Added support for Firestore result types to be serialized with `toJSON` and then deserialized with `fromJSON` methods on the objects.
7+
8+
Addeed support to resume `onSnapshot` listeners in the CSR phase based on serialized `DataSnapshot`s and `QuerySnapshot`s built in the SSR phase.

.changeset/nervous-needles-sit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/performance': patch
3+
---
4+
5+
Fix bug where events are not sent if they exceed sendBeacon payload limit

.changeset/nice-plants-thank.md

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

.changeset/nine-pugs-crash.md

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

.changeset/old-candles-confess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/ai': patch
3+
---
4+
5+
Add deprecation label to `totalBillableCharacters`. `totalTokens` should be used instead.

.github/ISSUE_TEMPLATE/bug_report_v2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ body:
5858
description: Select the Firebase product(s) relevant to your issue. You can select multiple options in the dropdown.
5959
multiple: true
6060
options:
61+
- AI
6162
- Analytics
6263
- AppCheck
6364
- Auth
@@ -72,7 +73,6 @@ body:
7273
- Performance
7374
- Remote-Config
7475
- Storage
75-
- VertexAI
7676
validations:
7777
required: true
7878
- type: textarea

.github/workflows/canary-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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-vertexai-responses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
LATEST=$(git tag --sort=v:refname | tail -n1)
3434
echo "cloned_tag=$CLONED" >> $GITHUB_ENV
3535
echo "latest_tag=$LATEST" >> $GITHUB_ENV
36-
working-directory: packages/vertexai/test-utils/vertexai-sdk-test-data
36+
working-directory: packages/ai/test-utils/vertexai-sdk-test-data
3737
- name: Find comment from previous run if exists
3838
# This commit represents v3.1.0
3939
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e

.github/workflows/e2e-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030

3131
defaults:
3232
run:
33-
# Run any command steps in the /e2e subdir
34-
working-directory: './e2e'
33+
# Run any command steps in the /e2e/smoke-tests subdir
34+
working-directory: './e2e/smoke-tests'
3535

3636
steps:
3737
- name: Checkout Repo
@@ -53,7 +53,9 @@ jobs:
5353
- name: Poll npm until version to test is available for install
5454
run: |
5555
echo "Polling npm for firebase@${{ github.event.client_payload.versionOrTag }}"
56-
node ../scripts/release/poll-npm-publish.js
56+
node ./scripts/release/poll-npm-publish.js
57+
# run in root
58+
working-directory: '.'
5759
env:
5860
VERSION: ${{ github.event.client_payload.versionOrTag }}
5961
- name: Yarn install

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}}
7575
NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}}
7676
NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}}
77+
NPM_TOKEN_AI: ${{secrets.NPM_TOKEN_AI}}
7778
NPM_TOKEN_VERTEXAI: ${{secrets.NPM_TOKEN_VERTEXAI}}
7879
NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}}
7980
NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}}

.github/workflows/release-prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}}
8585
NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}}
8686
NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}}
87+
NPM_TOKEN_AI: ${{secrets.NPM_TOKEN_AI}}
8788
NPM_TOKEN_VERTEXAI: ${{secrets.NPM_TOKEN_VERTEXAI}}
8889
NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}}
8990
NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}}

.github/workflows/release-staging.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ on:
3030
options:
3131
- main
3232
- v8
33+
- at-11-7-1
3334
verbose:
3435
description: 'Enable verbose logging'
3536
type: boolean
@@ -110,6 +111,7 @@ jobs:
110111
NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}}
111112
NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}}
112113
NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}}
114+
NPM_TOKEN_AI: ${{secrets.NPM_TOKEN_AI}}
113115
NPM_TOKEN_VERTEXAI: ${{secrets.NPM_TOKEN_VERTEXAI}}
114116
NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}}
115117
NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ vertexai-sdk-test-data
103103
mocks-lookup.ts
104104

105105
# temp changeset output
106-
changeset-temp.json
106+
changeset-temp.json

.vscode/launch.json

Lines changed: 85 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,46 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "AI Unit Tests (node)",
9+
"type": "node",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/node_modules/.bin/_mocha",
12+
"cwd": "${workspaceRoot}/packages/ai",
13+
"args": [
14+
"--require",
15+
"ts-node/register",
16+
"--require",
17+
"src/index.node.ts",
18+
"--timeout",
19+
"5000",
20+
"src/**/*.test.ts"
21+
],
22+
"env": {
23+
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}"
24+
},
25+
"sourceMaps": true
26+
},
27+
{
28+
"name": "AI Integration Tests (node)",
29+
"type": "node",
30+
"request": "launch",
31+
"program": "${workspaceFolder}/node_modules/.bin/_mocha",
32+
"cwd": "${workspaceRoot}/packages/ai",
33+
"args": [
34+
"--require",
35+
"ts-node/register",
36+
"--require",
37+
"src/index.node.ts",
38+
"--timeout",
39+
"5000",
40+
"integration/**/*.test.ts"
41+
],
42+
"env": {
43+
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}"
44+
},
45+
"sourceMaps": true
46+
},
747
{
848
"type": "node",
949
"request": "launch",
@@ -18,9 +58,9 @@
1858
"${workspaceFolder}/repo-scripts/prune-dts/*.test.ts"
1959
],
2060
"env": {
21-
"TS_NODE_COMPILER_OPTIONS" : "{\"module\":\"commonjs\"}"
61+
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}"
2262
},
23-
"sourceMaps": true,
63+
"sourceMaps": true
2464
},
2565
{
2666
"type": "node",
@@ -30,16 +70,17 @@
3070
"cwd": "${workspaceRoot}/packages/database",
3171
"args": [
3272
"test/{,!(browser)/**/}*.test.ts",
33-
"--file", "src/index.node.ts",
34-
"--config", "../../config/mocharc.node.js",
73+
"--file",
74+
"src/index.node.ts",
75+
"--config",
76+
"../../config/mocharc.node.js"
3577
],
3678
"env": {
37-
"TS_NODE_FILES":true,
79+
"TS_NODE_FILES": true,
3880
"TS_NODE_CACHE": "NO",
39-
"TS_NODE_COMPILER_OPTIONS" : "{\"module\":\"commonjs\"}"
81+
"TS_NODE_COMPILER_OPTIONS": "{\"module\":\"commonjs\"}"
4082
},
41-
"sourceMaps": true,
42-
"protocol": "inspector"
83+
"sourceMaps": true
4384
},
4485
{
4586
"type": "node",
@@ -48,14 +89,16 @@
4889
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
4990
"cwd": "${workspaceRoot}/packages/firestore",
5091
"args": [
51-
"--require", "babel-register.js",
52-
"--require", "src/index.node.ts",
53-
"--timeout", "5000",
92+
"--require",
93+
"babel-register.js",
94+
"--require",
95+
"src/index.node.ts",
96+
"--timeout",
97+
"5000",
5498
"test/{,!(browser|integration)/**/}*.test.ts",
5599
"--exit"
56100
],
57-
"sourceMaps": true,
58-
"protocol": "inspector"
101+
"sourceMaps": true
59102
},
60103
{
61104
"type": "node",
@@ -64,18 +107,21 @@
64107
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
65108
"cwd": "${workspaceRoot}/packages/firestore",
66109
"args": [
67-
"--require", "babel-register.js",
68-
"--require", "index.node.ts",
69-
"--require", "test/util/node_persistence.ts",
70-
"--timeout", "5000",
110+
"--require",
111+
"babel-register.js",
112+
"--require",
113+
"index.node.ts",
114+
"--require",
115+
"test/util/node_persistence.ts",
116+
"--timeout",
117+
"5000",
71118
"test/{,!(browser|integration)/**/}*.test.ts",
72119
"--exit"
73120
],
74121
"env": {
75122
"USE_MOCK_PERSISTENCE": "YES"
76123
},
77-
"sourceMaps": true,
78-
"protocol": "inspector"
124+
"sourceMaps": true
79125
},
80126
{
81127
"type": "node",
@@ -84,17 +130,19 @@
84130
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
85131
"cwd": "${workspaceRoot}/packages/firestore",
86132
"args": [
87-
"--require", "babel-register.js",
88-
"--require", "index.node.ts",
89-
"--timeout", "5000",
133+
"--require",
134+
"babel-register.js",
135+
"--require",
136+
"index.node.ts",
137+
"--timeout",
138+
"5000",
90139
"test/{,!(browser|unit)/**/}*.test.ts",
91140
"--exit"
92141
],
93142
"env": {
94-
"FIRESTORE_TARGET_BACKEND" : "emulator",
143+
"FIRESTORE_TARGET_BACKEND": "emulator"
95144
},
96-
"sourceMaps": true,
97-
"protocol": "inspector"
145+
"sourceMaps": true
98146
},
99147
{
100148
"type": "node",
@@ -103,45 +151,38 @@
103151
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
104152
"cwd": "${workspaceRoot}/packages/firestore",
105153
"args": [
106-
"--require", "babel-register.js",
107-
"--require", "index.node.ts",
108-
"--require", "test/util/node_persistence.ts",
109-
"--timeout", "5000",
154+
"--require",
155+
"babel-register.js",
156+
"--require",
157+
"index.node.ts",
158+
"--require",
159+
"test/util/node_persistence.ts",
160+
"--timeout",
161+
"5000",
110162
"test/{,!(browser|unit)/**/}*.test.ts",
111163
"--exit"
112164
],
113165
"env": {
114166
"USE_MOCK_PERSISTENCE": "YES",
115-
"FIRESTORE_TARGET_BACKEND" : "emulator",
167+
"FIRESTORE_TARGET_BACKEND": "emulator"
116168
},
117-
"sourceMaps": true,
118-
"protocol": "inspector"
169+
"sourceMaps": true
119170
},
120171
{
121172
"type": "node",
122173
"request": "launch",
123174
"name": "Firestore Unit Tests (Browser)",
124175
"program": "${workspaceRoot}/node_modules/.bin/karma",
125176
"cwd": "${workspaceRoot}/packages/firestore",
126-
"args": [
127-
"start",
128-
"--auto-watch",
129-
"--unit",
130-
"--browsers", "Chrome"
131-
]
177+
"args": ["start", "--auto-watch", "--unit", "--browsers", "Chrome"]
132178
},
133179
{
134180
"type": "node",
135181
"request": "launch",
136182
"name": "Firestore Integration Tests (Browser)",
137183
"program": "${workspaceRoot}/node_modules/.bin/karma",
138184
"cwd": "${workspaceRoot}/packages/firestore",
139-
"args": [
140-
"start",
141-
"--auto-watch",
142-
"--integration",
143-
"--browsers", "Chrome"
144-
]
185+
"args": ["start", "--auto-watch", "--integration", "--browsers", "Chrome"]
145186
}
146187
]
147188
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ and follow the instructions to login.
143143

144144
For more information, visit https://firebase.google.com/docs/storage/web/download-files#cors_configuration
145145

146+
Then, make sure you have anonymous sign-in provider enabled:
147+
146148
#### Authentication Support
147149

148150
Visit the authentication config in your project and enable the `Anonymous`

0 commit comments

Comments
 (0)