Skip to content

realppl type1 #8873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 83 commits into
base: feat/pipelines
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
acbf24f
add pipeline to Listen RPC
wu-hui Oct 15, 2024
93fdb23
Prepre for serializaion/deserialization
wu-hui Oct 17, 2024
8ac835e
fix rebase error
wu-hui Oct 17, 2024
422723a
quick hack to integrate with watch.
wu-hui Oct 21, 2024
ee64690
add api/pipelinesource and setup basic listen test
wu-hui Oct 31, 2024
1738c15
watch integration works.
wu-hui Nov 6, 2024
946a266
add pipeline canonify and eq
wu-hui Oct 22, 2024
6fc2050
runPipeline initial
wu-hui Oct 25, 2024
377e82f
initial offline function evaluation
wu-hui Oct 29, 2024
2b244a2
add basic tests for pipeline eval
wu-hui Oct 29, 2024
23b5135
runPipeline initial
wu-hui Oct 25, 2024
82b8303
Setting up QueryOrPipeline to replace Query
wu-hui Oct 30, 2024
7a3e789
type1 compiles
wu-hui Nov 12, 2024
4d7d917
introduce new variant for query_engine.test.ts
wu-hui Nov 13, 2024
c274177
Fix core/expression rebase error
wu-hui Nov 13, 2024
6e4a7e3
Add basic tests
wu-hui Nov 14, 2024
e6f860e
remove api/pipeline and use the lite one
wu-hui Nov 14, 2024
667c398
query_engine.test.ts pass with pipelines
wu-hui Nov 19, 2024
48a6324
local store tests PASS
wu-hui Nov 25, 2024
6ab2ba5
memory spec tests pass sans limitToLast
wu-hui Nov 28, 2024
58124c4
most spec tests PASS!
wu-hui Dec 2, 2024
0f63a54
limit to last, cursors and multitab for documents and database stages
wu-hui Dec 4, 2024
5945776
Merge remote-tracking branch 'origin/feat/pipelines' into wuandy/offp…
wu-hui Dec 6, 2024
5ad944e
fix merge errors
wu-hui Dec 10, 2024
da4dee3
Add expressions tests
wu-hui Dec 16, 2024
656e848
Ported all tests, plus some bug fixes
wu-hui Dec 19, 2024
90ce598
Merge remote-tracking branch 'origin/feat/pipelines' into wuandy/offp…
wu-hui Dec 19, 2024
34b3e71
fix merge errors
wu-hui Dec 19, 2024
c5678fe
fixed expressions tests
wu-hui Dec 20, 2024
f2a0585
Fixed all incompatibilities
wu-hui Dec 23, 2024
bc9ac99
Add gitignore entries
wu-hui Dec 28, 2024
0212394
Merge with feat/pipelines
wu-hui Dec 28, 2024
52ebef6
Proto update sync and add query spec tests back
wu-hui Dec 28, 2024
5bd8168
merge with feat/pipeline
wu-hui Jan 28, 2025
f4f1894
Fix circular dependency caused by import from api_pipelines. Also sim…
MarkDuckworth Jan 29, 2025
a654bef
Rewrite Core Pipeline
wu-hui Jan 2, 2025
410d8e1
add type1 integration tests
wu-hui Jan 27, 2025
4c8cfbb
Add realtimePipeline()
wu-hui Jan 27, 2025
ba7b9ea
realtimePipeline() conversions and tests
wu-hui Jan 30, 2025
a512bc6
fix golden files test (#8843)
davidmotson Mar 17, 2025
95b4fc6
Surface all App Check errors in public getToken() method (#8842)
hsubox76 Mar 17, 2025
8ec9376
Merge main into release
google-oss-bot Mar 18, 2025
cf3c8fb
Grant Create PR workflow pull-request write perms. (#8846)
DellaBitta Mar 18, 2025
4f6439f
Merge main into release
google-oss-bot Mar 18, 2025
e8865f2
Grant Create PR content write permissions. (#8848)
DellaBitta Mar 18, 2025
5887660
Merge main into release
google-oss-bot Mar 18, 2025
202c732
Version Packages (#8849) - v11.5.0
google-oss-bot Mar 20, 2025
faaeb48
Deprecate `GroundingAttribution` (#8832)
dlarocque Mar 20, 2025
14d9721
Stream full logs of test-all firestore job (#8851)
hsubox76 Mar 20, 2025
5718838
Set github actions to use commit hashes (#8852)
hsubox76 Mar 20, 2025
edb4001
Implement Partial Errors for FDC (#8821)
maneesht Mar 21, 2025
d248cdc
Merge with feat/pipelines
wu-hui Mar 24, 2025
648de84
Add `X-Firebase-AppId` header to VertexAI requests (#8809)
dlarocque Mar 25, 2025
ab8eb26
Update dependency webpack to v5.94.0 [SECURITY] (#8734)
renovate[bot] Mar 25, 2025
dcc62c0
Update dependency express to v4.20.0 [SECURITY] (#8759)
renovate[bot] Mar 25, 2025
5c5d80a
Changes to adapt underlying pipeline api changes
wu-hui Mar 24, 2025
fba5571
Add timestamp functions support
wu-hui Mar 26, 2025
670eba6
karma.base.js: replace "BROWSER" with "BROWSERS" in log messages, to …
dconeybe Mar 27, 2025
fb5d422
Auth cookie persistence (#8839)
jamesdaniels Mar 27, 2025
dd19924
Merge main into release
google-oss-bot Mar 27, 2025
195d943
firestore: fix `undefined` document snapshot data after "clear site d…
dconeybe Mar 28, 2025
61f0102
Use base browsers variable in Firestore karma config (#8876)
dlarocque Mar 28, 2025
c8cbfff
[chore] Update some dependencies (#8868)
hsubox76 Mar 29, 2025
4b34983
Version Packages (#8878)
google-oss-bot Mar 31, 2025
933ba9d
Merge branch 'release'
hsubox76 Mar 31, 2025
88a8055
Fix 'window is not defined' error when calling clearIndexedDbPersistence
milaGGL Apr 1, 2025
fd7583b
Updating re2js in yarn.lock
MarkDuckworth Apr 3, 2025
23d84f6
Merge branch 'main' of github.com:firebase/firebase-js-sdk into wuand…
MarkDuckworth Apr 3, 2025
d98b0d1
Experiment disable post-install
MarkDuckworth Apr 3, 2025
626407a
Updating re2js in yarn.lock
MarkDuckworth Apr 3, 2025
25971d1
Merge branch 'main' of github.com:firebase/firebase-js-sdk into wuand…
MarkDuckworth Apr 3, 2025
84b8bde
Changes to adapt underlying pipeline api changes
wu-hui Mar 24, 2025
b266798
Add timestamp functions support
wu-hui Mar 26, 2025
d7a3962
Add options to onRealtimePipelineSnapshots
wu-hui Mar 28, 2025
3101d82
Rewrite offline eval to support new mirrorins semantics, and be more
wu-hui Apr 1, 2025
8698b11
Refactoring to fix bundling. Remove extraneous exports. Add missing e…
MarkDuckworth Apr 4, 2025
af5c47c
Fix externs and circular dependency check
MarkDuckworth Apr 4, 2025
66614c4
Build fixes
MarkDuckworth Apr 4, 2025
65b0e24
add pipeline files to package.json files
MarkDuckworth Apr 4, 2025
2de74d6
alpha4 build (needs cleanup)
MarkDuckworth Apr 5, 2025
804ad63
Add more tests
wu-hui Apr 3, 2025
0fc7f7f
split tests
wu-hui Apr 7, 2025
a8d937b
Merge new expressions refactor with api fixups
wu-hui Apr 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/chilly-parrots-remember.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/floppy-schools-battle.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/gentle-rocks-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@firebase/firestore': patch
'firebase': patch
---

Fix 'window is not defined' error when calling `clearIndexedDbPersistence` from a service worker
6 changes: 0 additions & 6 deletions .changeset/large-pants-hide.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/silver-jeans-sell.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/slow-students-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@firebase/firestore': patch
'firebase': patch
---

Fix issue where Firestore would produce `undefined` for document snapshot data if using IndexedDB persistence and "clear site data" (or equivalent) button was pressed in the web browser.
6 changes: 0 additions & 6 deletions .changeset/stupid-apples-shave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tricky-actors-exercise.md

This file was deleted.

12 changes: 8 additions & 4 deletions .github/workflows/check-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,25 @@ jobs:
- name: Print blocking failure status
run: echo "${{steps.check-changeset.outputs.BLOCKING_FAILURE}}"
- name: Find Comment
uses: peter-evans/find-comment@v3
# This commit represents v3.1.0
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
id: fc
with:
issue-number: ${{github.event.number}}
body-includes: Changeset File Check
- name: Create comment (missing packages)
if: ${{!steps.fc.outputs.comment-id && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
uses: peter-evans/create-or-update-comment@v4
# This commit represents v4.0.0
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
issue-number: ${{github.event.number}}
body: |
### Changeset File Check :warning:
${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
- name: Update comment (missing packages)
if: ${{steps.fc.outputs.comment-id && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
uses: peter-evans/create-or-update-comment@v4
# This commit represents v4.0.0
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
comment-id: ${{steps.fc.outputs.comment-id}}
edit-mode: replace
Expand All @@ -81,7 +84,8 @@ jobs:
${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
- name: Update comment (no missing packages)
if: ${{steps.fc.outputs.comment-id && !steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
uses: peter-evans/create-or-update-comment@v4
# This commit represents v4.0.0
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
comment-id: ${{steps.fc.outputs.comment-id}}
edit-mode: replace
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/check-vertexai-responses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ jobs:
echo "latest_tag=$LATEST" >> $GITHUB_ENV
working-directory: packages/vertexai/test-utils/vertexai-sdk-test-data
- name: Find comment from previous run if exists
uses: peter-evans/find-comment@v3
# This commit represents v3.1.0
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
id: fc
with:
issue-number: ${{github.event.number}}
body-includes: Vertex AI Mock Responses Check
- name: Comment on PR if newer version is available
if: ${{env.cloned_tag != env.latest_tag && !steps.fc.outputs.comment-id}}
uses: peter-evans/create-or-update-comment@v4
# This commit represents v4.0.0
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
issue-number: ${{github.event.number}}
body: >
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/health-metrics-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22.10.0
- uses: 'google-github-actions/auth@v0'
# This commit represents v0.8.3
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- uses: google-github-actions/setup-gcloud@v2
# This commit represents v2.1.4
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
- run: yarn install
- run: yarn build
- name: Run health-metrics/binary-size test
Expand All @@ -59,10 +61,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22.10.0
- uses: 'google-github-actions/auth@v0'
# This commit represents v0.8.3
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- uses: google-github-actions/setup-gcloud@v2
# This commit represents v2.1.4
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
- run: yarn install
- run: yarn build
- name: Run health-metrics/modular-exports-binary-size test
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/health-metrics-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ jobs:
name: Release Diffing
runs-on: ubuntu-latest
steps:
- uses: 'google-github-actions/auth@v0'
# This commit represents v0.8.3
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- uses: google-github-actions/setup-gcloud@v2
- uses: FirebaseExtended/github-actions/health-metrics/release-diffing@master
# This commit represents v2.1.4
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
# This commit represents v1.4
- uses: FirebaseExtended/github-actions/health-metrics/release-diffing@41c787c37157e4c5932b951e531c041efa5bb7a4
with:
repo: ${{ github.repository }}
ref: ${{ github.ref }}
Expand Down
50 changes: 0 additions & 50 deletions .github/workflows/merge-release-branch.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
release:
name: Create Release PR
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
if: ${{ !startsWith(github.event.head_commit.message, 'Version Packages (#') }}
steps:
- name: Checkout Repo
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/release-tweet.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ jobs:
run: echo "FIREBASE_CI_TEST_START_TIME=$(date +%s)" >> $GITHUB_ENV
- name: Run unit tests
run: |
xvfb-run yarn lerna run test:ci --scope '@firebase/firestore*'
node scripts/print_test_logs.js
yarn lerna run test:all:ci --scope '@firebase/firestore*' --stream --concurrency 1
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
EXPERIMENTAL_MODE: true
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test-changed-firestore-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@ jobs:
with:
# This makes Actions fetch all Git history so run-changed script can diff properly.
fetch-depth: 0
- uses: 'google-github-actions/auth@v0'
# This commit represents v0.8.3
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
if: ${{ fromJSON(env.run_terraform_steps) }}
with:
credentials_json: '${{ secrets.JSSDK_ACTIONS_SA_KEY }}'

# create composite indexes with Terraform
- name: Setup Terraform
if: ${{ fromJSON(env.run_terraform_steps) }}
uses: hashicorp/setup-terraform@v2
# This commit represents v3.1.2
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd
- name: Terraform Init
if: ${{ fromJSON(env.run_terraform_steps) }}
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dist
.awcache
.cache
/config/project.json
/config/prod.project.json
scripts/docgen-compat/html

# OS Specific Files
Expand Down
5 changes: 4 additions & 1 deletion common/api-review/auth.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ export interface AuthSettings {
// @public
export function beforeAuthStateChanged(auth: Auth, callback: (user: User | null) => void | Promise<void>, onAbort?: () => void): Unsubscribe;

// @beta
export const browserCookiePersistence: Persistence;

// @public
export const browserLocalPersistence: Persistence;

Expand Down Expand Up @@ -596,7 +599,7 @@ export interface PasswordValidationStatus {

// @public
export interface Persistence {
readonly type: 'SESSION' | 'LOCAL' | 'NONE';
readonly type: 'SESSION' | 'LOCAL' | 'NONE' | 'COOKIE';
}

// @public
Expand Down
33 changes: 31 additions & 2 deletions common/api-review/data-connect.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,35 @@ export class DataConnect {
setInitialized(): void;
}

// @public
export class DataConnectError extends FirebaseError {
}

// @public (undocumented)
export type DataConnectErrorCode = 'other' | 'already-initialized' | 'not-initialized' | 'not-supported' | 'invalid-argument' | 'partial-error' | 'unauthorized';

// @public
export class DataConnectOperationError extends DataConnectError {
/* Excluded from this release type: name */
readonly response: DataConnectOperationFailureResponse;
}

// @public (undocumented)
export interface DataConnectOperationFailureResponse {
// (undocumented)
readonly data?: Record<string, unknown> | null;
// (undocumented)
readonly errors: DataConnectOperationFailureResponseErrorInfo[];
}

// @public (undocumented)
export interface DataConnectOperationFailureResponseErrorInfo {
// (undocumented)
readonly message: string;
// (undocumented)
readonly path: Array<string | number>;
}

// @public
export interface DataConnectOptions extends ConnectorConfig {
// (undocumented)
Expand All @@ -67,7 +96,7 @@ export interface DataConnectResult<Data, Variables> extends OpResult<Data> {
// @public
export interface DataConnectSubscription<Data, Variables> {
// (undocumented)
errCallback?: (e?: FirebaseError) => void;
errCallback?: (e?: DataConnectError) => void;
// (undocumented)
unsubscribe: () => void;
// (undocumented)
Expand Down Expand Up @@ -118,7 +147,7 @@ export interface MutationResult<Data, Variables> extends DataConnectResult<Data,
export type OnCompleteSubscription = () => void;

// @public
export type OnErrorSubscription = (err?: FirebaseError) => void;
export type OnErrorSubscription = (err?: DataConnectError) => void;

// @public
export type OnResultSubscription<Data, Variables> = (res: QueryResult<Data, Variables>) => void;
Expand Down
Loading
Loading