Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: firebase/firebase-js-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: firebase@11.4.0
Choose a base ref
...
head repository: firebase/firebase-js-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: firebase@11.5.0
Choose a head ref
  • 19 commits
  • 81 files changed
  • 11 contributors

Commits on Feb 27, 2025

  1. Added non-null properties to database.ThenableReference (#8800)

    rhodgkins authored Feb 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    113c965 View commit details
  2. Merge branch 'release'

    Release 11.4.0
    hsubox76 committed Feb 27, 2025
    Copy the full SHA
    a24a76a View commit details

Commits on Mar 3, 2025

  1. DataConnect: Update requests to point to v1 backend endpoints instead…

    … of v1beta (#8820)
    
    * update API requests to point to v1 instead of v1beta
    
    * update changelog
    stephenarosaj authored Mar 3, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    43d6b67 View commit details
  2. Remove auto-commit API report workflow (#8808)

    hsubox76 authored Mar 3, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7ae4824 View commit details

Commits on Mar 4, 2025

  1. Add missing BlockReason and FinishReason enum values (#8741)

    dlarocque authored Mar 4, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    058afa2 View commit details

Commits on Mar 5, 2025

  1. Convert enum comments to JSDoc comments (#8742)

    dlarocque authored Mar 5, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    42cea48 View commit details

Commits on Mar 6, 2025

  1. Add systemInstruction, tools, and generationConfig to `CountTok…

    …ensRequest` (#8827)
    dlarocque authored Mar 6, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    25985ac View commit details
  2. Update yarn.lock in e2e (#8831)

    dlarocque authored Mar 6, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    33acc6e View commit details
  3. Fix transport service retry logic condition (Fixes #8813) (#8814)

    Modify the retry mechanism to stop when remaining tries is less than or equal to zero, improving the robustness of the retry handling.
    
    Fixes #8813
    khaaleoo authored Mar 6, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5611175 View commit details
  4. Give check-changeset job pull request write permissions (#8833)

    dlarocque authored Mar 6, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    51465ce View commit details

Commits on Mar 10, 2025

  1. Fix: sort strings in UTF-8 encoded byte order with lazy encoding (#8787)

    milaGGL authored Mar 10, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    feb2c9d View commit details

Commits on Mar 17, 2025

  1. fix golden files test (#8843)

    * fix golden files test
    
    * update responses version
    
    ---------
    
    Co-authored-by: David Motsonashvili <davidmotson@google.com>
    davidmotson and David Motsonashvili authored Mar 17, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a512bc6 View commit details
  2. Surface all App Check errors in public getToken() method (#8842)

    hsubox76 authored Mar 17, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    95b4fc6 View commit details

Commits on Mar 18, 2025

  1. Merge main into release

    google-oss-bot authored Mar 18, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8ec9376 View commit details
  2. Grant Create PR workflow pull-request write perms. (#8846)

    Our staging release workflow failed to create a Version Packages PR. Grant the PR creation workflow `pull-request` `write` permissions.
    DellaBitta authored Mar 18, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    cf3c8fb View commit details
  3. Merge main into release

    google-oss-bot authored Mar 18, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4f6439f View commit details
  4. Grant Create PR content write permissions. (#8848)

    Our staging release workflow failed to merge branch. Grant the PR creation workflow `content` `write` permissions to fix this.
    DellaBitta authored Mar 18, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e8865f2 View commit details
  5. Merge main into release

    google-oss-bot authored Mar 18, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5887660 View commit details

Commits on Mar 20, 2025

  1. Version Packages (#8849) - v11.5.0

    Release version 11.5.0.
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    google-oss-bot and github-actions[bot] authored Mar 20, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    202c732 View commit details
Showing with 1,252 additions and 355 deletions.
  1. +4 −1 .github/workflows/check-changeset.yml
  2. +31 −23 .github/workflows/check-docs.yml
  3. +3 −0 .github/workflows/release-pr.yml
  4. +0 −48 .github/workflows/update-api-reports.yml
  5. +4 −0 common/api-review/database.api.md
  6. +9 −24 common/api-review/vertexai.api.md
  7. +22 −0 docs-devsite/database.thenablereference.md
  8. +33 −0 docs-devsite/vertexai.counttokensrequest.md
  9. +30 −24 docs-devsite/vertexai.md
  10. +231 −98 e2e/yarn.lock
  11. +4 −4 integration/compat-interop/package.json
  12. +2 −2 integration/firestore/package.json
  13. +1 −1 integration/messaging/package.json
  14. +1 −1 packages/analytics-compat/package.json
  15. +1 −1 packages/analytics/package.json
  16. +7 −0 packages/app-check-compat/CHANGELOG.md
  17. +3 −3 packages/app-check-compat/package.json
  18. +6 −0 packages/app-check/CHANGELOG.md
  19. +2 −2 packages/app-check/package.json
  20. +3 −0 packages/app-check/src/api.ts
  21. +4 −1 packages/app-check/src/errors.ts
  22. +3 −5 packages/app-check/src/internal-api.test.ts
  23. +13 −7 packages/app-check/src/internal-api.ts
  24. +2 −2 packages/app-check/src/providers.ts
  25. +7 −0 packages/app-compat/CHANGELOG.md
  26. +2 −2 packages/app-compat/package.json
  27. +6 −0 packages/app/CHANGELOG.md
  28. +1 −1 packages/app/package.json
  29. +1 −1 packages/auth-compat/package.json
  30. +1 −1 packages/auth/package.json
  31. +6 −0 packages/data-connect/CHANGELOG.md
  32. +2 −2 packages/data-connect/package.json
  33. +1 −1 packages/data-connect/src/util/url.ts
  34. +1 −1 packages/data-connect/test/dataconnect/dataconnect.yaml
  35. +2 −2 packages/data-connect/test/unit/gmpid.test.ts
  36. +2 −2 packages/data-connect/test/unit/userAgent.test.ts
  37. +10 −0 packages/database-compat/CHANGELOG.md
  38. +4 −4 packages/database-compat/package.json
  39. +6 −0 packages/database-types/CHANGELOG.md
  40. +4 −1 packages/database-types/index.d.ts
  41. +1 −1 packages/database-types/package.json
  42. +6 −0 packages/database/CHANGELOG.md
  43. +2 −2 packages/database/package.json
  44. +4 −1 packages/database/src/api/Reference.ts
  45. +4 −1 packages/database/src/api/Reference_impl.ts
  46. +26 −0 packages/firebase/CHANGELOG.md
  47. +4 −1 packages/firebase/compat/index.d.ts
  48. +13 −13 packages/firebase/package.json
  49. +7 −0 packages/firestore-compat/CHANGELOG.md
  50. +3 −3 packages/firestore-compat/package.json
  51. +6 −0 packages/firestore/CHANGELOG.md
  52. +3 −3 packages/firestore/package.json
  53. +4 −0 packages/firestore/src/local/indexeddb_remote_document_cache.ts
  54. +3 −8 packages/firestore/src/model/path.ts
  55. +7 −3 packages/firestore/src/model/values.ts
  56. +62 −0 packages/firestore/src/util/misc.ts
  57. +239 −0 packages/firestore/test/integration/api/database.test.ts
  58. +225 −1 packages/firestore/test/unit/util/misc.test.ts
  59. +1 −1 packages/functions-compat/package.json
  60. +1 −1 packages/functions/package.json
  61. +1 −1 packages/installations-compat/package.json
  62. +1 −1 packages/installations/package.json
  63. +1 −1 packages/messaging-compat/package.json
  64. +1 −1 packages/messaging/package.json
  65. +7 −0 packages/performance-compat/CHANGELOG.md
  66. +3 −3 packages/performance-compat/package.json
  67. +6 −0 packages/performance/CHANGELOG.md
  68. +2 −2 packages/performance/package.json
  69. +1 −1 packages/performance/src/services/transport_service.ts
  70. +1 −1 packages/remote-config-compat/package.json
  71. +1 −1 packages/remote-config/package.json
  72. +1 −1 packages/storage-compat/package.json
  73. +1 −1 packages/storage/package.json
  74. +1 −1 packages/template/package.json
  75. +8 −0 packages/vertexai/CHANGELOG.md
  76. +2 −2 packages/vertexai/package.json
  77. +103 −31 packages/vertexai/src/types/enums.ts
  78. +12 −0 packages/vertexai/src/types/requests.ts
  79. +1 −1 packages/vertexai/test-utils/convert-mocks.ts
  80. +1 −1 repo-scripts/size-analysis/package.json
  81. +1 −1 scripts/update_vertexai_responses.sh
5 changes: 4 additions & 1 deletion .github/workflows/check-changeset.yml
Original file line number Diff line number Diff line change
@@ -28,6 +28,9 @@ jobs:
name: Check changeset vs changed files
runs-on: ubuntu-latest

permissions:
pull-requests: write

steps:
- name: Checkout Repo
uses: actions/checkout@v4
@@ -89,4 +92,4 @@ jobs:
# Don't want it to throw before editing the comment.
- name: Fail if checker script logged a blocking failure
if: ${{steps.check-changeset.outputs.BLOCKING_FAILURE == 'true'}}
run: exit 1
run: exit 1
54 changes: 31 additions & 23 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
@@ -22,26 +22,34 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
# get all history for the diff
fetch-depth: 0
- name: Set up Node (20)
uses: actions/setup-node@v4
with:
node-version: 22.10.0
- name: Yarn install
run: yarn
- name: Run doc generation
run: yarn docgen:all
- name: Check for changes in docs-devsite dir (fail if so)
run: |
if [[ -n "$(git status docs-devsite --porcelain)" ]]; then
echo "Unstaged changes detected:"
git status -s
exit 1
fi
- name: Reference documentation needs to be updated. See message below.
if: ${{ failure() }}
run: echo "Changes in this PR affect the reference docs. Run \`yarn docgen:all\` locally to regenerate docs and add them to this PR."
- name: Checkout Repo
uses: actions/checkout@v4
with:
# get all history for the diff
fetch-depth: 0
- name: Set up Node (20)
uses: actions/setup-node@v4
with:
node-version: 22.10.0
- name: Yarn install
run: yarn
- name: Run doc generation
run: yarn docgen:all
# Fail first if there are docs-devsite changes since running yarn docgen:all
# will also regenerate any API report changes.
- name: Check for changes in docs-devsite dir (fail if so)
run: |
if [[ -n "$(git status docs-devsite --porcelain)" ]]; then
echo "Unstaged changes detected in docs-devsite/:"
git status -s
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."
exit 1
fi
- name: Check for changes in common/api-review dir (fail if so)
run: |
if [[ -n "$(git status common/api-review --porcelain)" ]]; then
echo "Unstaged changes detected in api-report(s):"
git status -s
echo "Changes in this PR affect the API reports. Run \`yarn build\` locally to regenerate the API reports and add them to this PR."
exit 1
fi
3 changes: 3 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -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
48 changes: 0 additions & 48 deletions .github/workflows/update-api-reports.yml

This file was deleted.

4 changes: 4 additions & 0 deletions common/api-review/database.api.md
Original file line number Diff line number Diff line change
@@ -228,6 +228,10 @@ export function startAt(value?: number | string | boolean | null, key?: string):

// @public
export interface ThenableReference extends DatabaseReference, Pick<Promise<DatabaseReference>, 'then' | 'catch'> {
// (undocumented)
key: string;
// (undocumented)
parent: DatabaseReference;
}

// @public
33 changes: 9 additions & 24 deletions common/api-review/vertexai.api.md
Original file line number Diff line number Diff line change
@@ -28,9 +28,9 @@ export interface BaseParams {

// @public
export enum BlockReason {
// (undocumented)
BLOCKLIST = "BLOCKLIST",
OTHER = "OTHER",
// (undocumented)
PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
SAFETY = "SAFETY"
}

@@ -88,6 +88,9 @@ export interface Content {
export interface CountTokensRequest {
// (undocumented)
contents: Content[];
generationConfig?: GenerationConfig;
systemInstruction?: string | Part | Content;
tools?: Tool[];
}

// @public
@@ -158,15 +161,14 @@ export interface FileDataPart {

// @public
export enum FinishReason {
// (undocumented)
BLOCKLIST = "BLOCKLIST",
MALFORMED_FUNCTION_CALL = "MALFORMED_FUNCTION_CALL",
MAX_TOKENS = "MAX_TOKENS",
// (undocumented)
OTHER = "OTHER",
// (undocumented)
PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
RECITATION = "RECITATION",
// (undocumented)
SAFETY = "SAFETY",
// (undocumented)
SPII = "SPII",
STOP = "STOP"
}

@@ -188,11 +190,8 @@ export interface FunctionCallingConfig {

// @public (undocumented)
export enum FunctionCallingMode {
// (undocumented)
ANY = "ANY",
// (undocumented)
AUTO = "AUTO",
// (undocumented)
NONE = "NONE"
}

@@ -377,21 +376,15 @@ export interface GroundingMetadata {

// @public (undocumented)
export enum HarmBlockMethod {
// (undocumented)
PROBABILITY = "PROBABILITY",
// (undocumented)
SEVERITY = "SEVERITY"
}

// @public
export enum HarmBlockThreshold {
// (undocumented)
BLOCK_LOW_AND_ABOVE = "BLOCK_LOW_AND_ABOVE",
// (undocumented)
BLOCK_MEDIUM_AND_ABOVE = "BLOCK_MEDIUM_AND_ABOVE",
// (undocumented)
BLOCK_NONE = "BLOCK_NONE",
// (undocumented)
BLOCK_ONLY_HIGH = "BLOCK_ONLY_HIGH"
}

@@ -409,25 +402,17 @@ export enum HarmCategory {

// @public
export enum HarmProbability {
// (undocumented)
HIGH = "HIGH",
// (undocumented)
LOW = "LOW",
// (undocumented)
MEDIUM = "MEDIUM",
// (undocumented)
NEGLIGIBLE = "NEGLIGIBLE"
}

// @public
export enum HarmSeverity {
// (undocumented)
HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH",
// (undocumented)
HARM_SEVERITY_LOW = "HARM_SEVERITY_LOW",
// (undocumented)
HARM_SEVERITY_MEDIUM = "HARM_SEVERITY_MEDIUM",
// (undocumented)
HARM_SEVERITY_NEGLIGIBLE = "HARM_SEVERITY_NEGLIGIBLE"
}

22 changes: 22 additions & 0 deletions docs-devsite/database.thenablereference.md
Original file line number Diff line number Diff line change
@@ -19,3 +19,25 @@ export declare interface ThenableReference extends DatabaseReference, Pick<Promi
```
<b>Extends:</b> [DatabaseReference](./database.databasereference.md#databasereference_interface)<!-- -->, Pick&lt;Promise&lt;[DatabaseReference](./database.databasereference.md#databasereference_interface)<!-- -->&gt;, 'then' \| 'catch'&gt;
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [key](./database.thenablereference.md#thenablereferencekey) | string | |
| [parent](./database.thenablereference.md#thenablereferenceparent) | [DatabaseReference](./database.databasereference.md#databasereference_interface) | |
## ThenableReference.key
<b>Signature:</b>
```typescript
key: string;
```
## ThenableReference.parent
<b>Signature:</b>
```typescript
parent: DatabaseReference;
```
33 changes: 33 additions & 0 deletions docs-devsite/vertexai.counttokensrequest.md
Original file line number Diff line number Diff line change
@@ -23,6 +23,9 @@ export interface CountTokensRequest
| Property | Type | Description |
| --- | --- | --- |
| [contents](./vertexai.counttokensrequest.md#counttokensrequestcontents) | [Content](./vertexai.content.md#content_interface)<!-- -->\[\] | |
| [generationConfig](./vertexai.counttokensrequest.md#counttokensrequestgenerationconfig) | [GenerationConfig](./vertexai.generationconfig.md#generationconfig_interface) | Configuration options that control how the model generates a response. |
| [systemInstruction](./vertexai.counttokensrequest.md#counttokensrequestsysteminstruction) | string \| [Part](./vertexai.md#part) \| [Content](./vertexai.content.md#content_interface) | Instructions that direct the model to behave a certain way. |
| [tools](./vertexai.counttokensrequest.md#counttokensrequesttools) | [Tool](./vertexai.md#tool)<!-- -->\[\] | <code>[Tool](./vertexai.md#tool)</code> configuration. |

## CountTokensRequest.contents

@@ -31,3 +34,33 @@ export interface CountTokensRequest
```typescript
contents: Content[];
```

## CountTokensRequest.generationConfig

Configuration options that control how the model generates a response.

<b>Signature:</b>

```typescript
generationConfig?: GenerationConfig;
```

## CountTokensRequest.systemInstruction

Instructions that direct the model to behave a certain way.

<b>Signature:</b>

```typescript
systemInstruction?: string | Part | Content;
```

## CountTokensRequest.tools

<code>[Tool](./vertexai.md#tool)</code> configuration.

<b>Signature:</b>

```typescript
tools?: Tool[];
```
Loading