Skip to content

Commit

Permalink
Merge main into release
Browse files Browse the repository at this point in the history
  • Loading branch information
google-oss-bot authored Feb 14, 2025
2 parents 8b3bcfc + b92592d commit fa5f8da
Show file tree
Hide file tree
Showing 63 changed files with 1,172 additions and 410 deletions.
6 changes: 6 additions & 0 deletions .changeset/flat-plums-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@firebase/remote-config': minor
'firebase': minor
---

Adds support for initial state hydration (from SSR contexts)
8 changes: 8 additions & 0 deletions .changeset/forty-bags-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@firebase/database-compat': patch
'@firebase/database': patch
'firebase': patch
---

Fixed: invoking `connectDatabaseEmulator` multiple times with the same parameters will no longer
cause an error. Fixes [GitHub Issue #6824](https://github.com/firebase/firebase-js-sdk/issues/6824).
8 changes: 8 additions & 0 deletions .changeset/lemon-candles-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@firebase/auth': patch
'firebase': patch
---

Fixed: invoking `connectAuthEmulator` multiple times with the same parameters will no longer cause
an error. Fixes [GitHub Issue #6824](https://github.com/firebase/firebase-js-sdk/issues/6824).

5 changes: 5 additions & 0 deletions .changeset/seven-oranges-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@firebase/vertexai': patch
---

Filter out empty text parts from streaming responses.
1 change: 1 addition & 0 deletions common/api-review/firestore-lite.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,4 +494,5 @@ export class WriteBatch {
// @public
export function writeBatch(firestore: Firestore): WriteBatch;


```
21 changes: 20 additions & 1 deletion common/api-review/remote-config.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,22 @@ export function fetchAndActivate(remoteConfig: RemoteConfig): Promise<boolean>;
// @public
export function fetchConfig(remoteConfig: RemoteConfig): Promise<void>;

// @public
export interface FetchResponse {
config?: FirebaseRemoteConfigObject;
eTag?: string;
status: number;
}

// @public
export type FetchStatus = 'no-fetch-yet' | 'success' | 'failure' | 'throttle';

// @public
export interface FirebaseRemoteConfigObject {
// (undocumented)
[key: string]: string;
}

// @public
export function getAll(remoteConfig: RemoteConfig): Record<string, Value>;

Expand All @@ -37,7 +50,7 @@ export function getBoolean(remoteConfig: RemoteConfig, key: string): boolean;
export function getNumber(remoteConfig: RemoteConfig, key: string): number;

// @public (undocumented)
export function getRemoteConfig(app?: FirebaseApp): RemoteConfig;
export function getRemoteConfig(app?: FirebaseApp, options?: RemoteConfigOptions): RemoteConfig;

// @public
export function getString(remoteConfig: RemoteConfig, key: string): string;
Expand All @@ -62,6 +75,12 @@ export interface RemoteConfig {
settings: RemoteConfigSettings;
}

// @public
export interface RemoteConfigOptions {
initialFetchResponse?: FetchResponse;
templateId?: string;
}

// @public
export interface RemoteConfigSettings {
fetchTimeoutMillis: number;
Expand Down
6 changes: 6 additions & 0 deletions docs-devsite/_toc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,14 @@ toc:
section:
- title: CustomSignals
path: /docs/reference/js/remote-config.customsignals.md
- title: FetchResponse
path: /docs/reference/js/remote-config.fetchresponse.md
- title: FirebaseRemoteConfigObject
path: /docs/reference/js/remote-config.firebaseremoteconfigobject.md
- title: RemoteConfig
path: /docs/reference/js/remote-config.remoteconfig.md
- title: RemoteConfigOptions
path: /docs/reference/js/remote-config.remoteconfigoptions.md
- title: RemoteConfigSettings
path: /docs/reference/js/remote-config.remoteconfigsettings.md
- title: Value
Expand Down
4 changes: 2 additions & 2 deletions docs-devsite/firestore_.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export declare interface Index

| Property | Type | Description |
| --- | --- | --- |
| [collectionGroup](./firestore_.index.md#indexcollectiongroup) | string | <b><i>(BETA)</i></b> The ID of the collection to index. |
| [fields](./firestore_.index.md#indexfields) | [IndexField](./firestore_.indexfield.md#indexfield_interface)<!-- -->\[\] | <b><i>(BETA)</i></b> A list of fields to index. |
| [collectionGroup](./firestore_.index.md#indexcollectiongroup) | string | <b><i>(Public Preview)</i></b> The ID of the collection to index. |
| [fields](./firestore_.index.md#indexfields) | [IndexField](./firestore_.indexfield.md#indexfield_interface)<!-- -->\[\] | <b><i>(Public Preview)</i></b> A list of fields to index. |

## Index.collectionGroup

Expand Down
2 changes: 1 addition & 1 deletion docs-devsite/firestore_.indexconfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export declare interface IndexConfiguration

| Property | Type | Description |
| --- | --- | --- |
| [indexes](./firestore_.indexconfiguration.md#indexconfigurationindexes) | [Index](./firestore_.index.md#index_interface)<!-- -->\[\] | <b><i>(BETA)</i></b> A list of all Firestore indexes. |
| [indexes](./firestore_.indexconfiguration.md#indexconfigurationindexes) | [Index](./firestore_.index.md#index_interface)<!-- -->\[\] | <b><i>(Public Preview)</i></b> A list of all Firestore indexes. |

## IndexConfiguration.indexes

Expand Down
6 changes: 3 additions & 3 deletions docs-devsite/firestore_.indexfield.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export declare interface IndexField

| Property | Type | Description |
| --- | --- | --- |
| [arrayConfig](./firestore_.indexfield.md#indexfieldarrayconfig) | 'CONTAINS' | <b><i>(BETA)</i></b> What type of array index to create. Set to <code>CONTAINS</code> for <code>array-contains</code> and <code>array-contains-any</code> indexes.<!-- -->Only one of <code>arrayConfig</code> or <code>order</code> should be set; |
| [fieldPath](./firestore_.indexfield.md#indexfieldfieldpath) | string | <b><i>(BETA)</i></b> The field path to index. |
| [order](./firestore_.indexfield.md#indexfieldorder) | 'ASCENDING' \| 'DESCENDING' | <b><i>(BETA)</i></b> What type of array index to create. Set to <code>ASCENDING</code> or 'DESCENDING<code> for </code>==<code>, </code>!=<code>, </code>&lt;<!-- -->=<code>, </code>&lt;<!-- -->=<code>, </code>in<code> and </code>not-in<!-- -->\` filters.<!-- -->Only one of <code>arrayConfig</code> or <code>order</code> should be set. |
| [arrayConfig](./firestore_.indexfield.md#indexfieldarrayconfig) | 'CONTAINS' | <b><i>(Public Preview)</i></b> What type of array index to create. Set to <code>CONTAINS</code> for <code>array-contains</code> and <code>array-contains-any</code> indexes.<!-- -->Only one of <code>arrayConfig</code> or <code>order</code> should be set; |
| [fieldPath](./firestore_.indexfield.md#indexfieldfieldpath) | string | <b><i>(Public Preview)</i></b> The field path to index. |
| [order](./firestore_.indexfield.md#indexfieldorder) | 'ASCENDING' \| 'DESCENDING' | <b><i>(Public Preview)</i></b> What type of array index to create. Set to <code>ASCENDING</code> or 'DESCENDING<code> for </code>==<code>, </code>!=<code>, </code>&lt;<!-- -->=<code>, </code>&lt;<!-- -->=<code>, </code>in<code> and </code>not-in<!-- -->\` filters.<!-- -->Only one of <code>arrayConfig</code> or <code>order</code> should be set. |

## IndexField.arrayConfig

Expand Down
Loading

0 comments on commit fa5f8da

Please sign in to comment.