Skip to content

main to console #9064

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

Merged
merged 185 commits into from
May 29, 2025
Merged

main to console #9064

merged 185 commits into from
May 29, 2025

Conversation

MarkDuckworth
Copy link
Contributor

@MarkDuckworth MarkDuckworth commented May 27, 2025

Merging main to console branch. Most tagged reviewers should not need to review this. Will update the process.

google-oss-bot and others added 30 commits November 12, 2024 07:48
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Clear fetch abort timeout

* Add timeout constant and bring back minimum timeout value
The new .stream() API allows the client to consume streaming responses from the WIP streaming callable functions in Firebase Functions Node.js SDK.

When client makes a request to the callable function w/ header Accept: text/event-stream, the callable function responds with response chunks in Server-Sent Event format.

The sdk changes here abstracts over the wire-protocol by parsing the response chunks and returning an instance of a AsyncIterable to consume to data:

import { getFunctions, httpsCallable } from "firebase/functions";

const functions = getFunctions();
const generateText = httpsCallable(functions, 'generateText');
const resp = await generateText.stream(
  { text: 'What is your favorite Firebase service and why?' },
  { signal: AbortSignal.timeout(60_000) },
);
try {
  for await (const message of resp.stream) {
     console.log(message); // prints "foo", "bar"
  }
  console.log(await resp.data) // prints "foo bar"
} catch (e) {
  // FirebaseError(code='cancelled', message='Request was cancelled.');
  console.error(e)
}
Version Packages for release v11.1.0
release v11.1.0
* Disable TOC array indentation

* add function streaming toc docs
Add support for custom signal targeting in Remote Config. Using this feature, developers can set custom signals (key/value pairs) in their apps and use them for building custom targeting conditions in their templates.

Design doc (internal): [go/rc-custom-targeting-dd](http://goto.google.com/rc-custom-targeting-dd)
API Proposal (internal): [go/remote-config-custom-targeting-signals-api-review](https://goto.google.com/remote-config-custom-targeting-signals-api-review)
* Replace uuidv4 generator with `crypto.randomUUID()`

The uuidv4 generator in util used `Math.random()`, which does not provide strong uniqueness guarantees
(https://www.bocoup.com/blog/random-numbers).

The places where the uuidv4 generator were used didn't require strong
uniqueness guarantees (nothing security related), but I think it's good
to move away from this from util in case we try to use it in the future.

A better built-in alternative is `crypto.randomUUID()`, which does provide strong
uniqueness guarantees. Since this is a more modern JS built-in, it's
only [defined in secure
contexts](https://blog.mozilla.org/security/2018/01/15/secure-contexts-everywhere/).
Is this something we're concerned about? Are there any App Check users
with apps running in non-secure environments?

* Update API reports

* Add changeset

* Add comment about availability restricted to secure contexts

---------

Co-authored-by: dlarocque <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…rkflow (#8706)

There were a pair of `download-artifact` GitHub actions that were still set to `v3` instead of `v4`. The `v3` actions were unable to find the build archive in the test-changed-firestore workflow. This PR upgrades those to `v4` actions.
Release v11.2.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

changeset-bot bot commented May 27, 2025

🦋 Changeset detected

Latest commit: 2faa840

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@firebase/firestore Patch
firebase Minor
@firebase/ai Minor
@firebase/firestore-compat Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Vertex AI Mock Responses Check ⚠️

A newer major version of the mock responses for Vertex AI unit tests is available. update_vertexai_responses.sh should be updated to clone the latest version of the responses: v13.0

Copy link

google-cla bot commented May 27, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@MarkDuckworth MarkDuckworth changed the title main to console WIP: main to console May 27, 2025
@MarkDuckworth MarkDuckworth reopened this May 29, 2025
@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 29, 2025

Size Report 1

Affected Products

  • @firebase/ai

    TypeBase (225004b)Merge (840e86e)Diff
    browser?42.5 kB? (?)
    main?43.7 kB? (?)
    module?42.5 kB? (?)
  • @firebase/analytics

    TypeBase (225004b)Merge (840e86e)Diff
    browser?21.8 kB? (?)
    main?23.1 kB? (?)
    module?21.8 kB? (?)
  • @firebase/analytics-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?2.57 kB? (?)
    main?3.01 kB? (?)
    module?2.57 kB? (?)
  • @firebase/api-documenter

    TypeBase (225004b)Merge (840e86e)Diff
    main?3.95 kB? (?)
  • @firebase/app

    TypeBase (225004b)Merge (840e86e)Diff
    browser?19.5 kB? (?)
    main?20.4 kB? (?)
    module?19.5 kB? (?)
  • @firebase/app-check

    TypeBase (225004b)Merge (840e86e)Diff
    browser?26.9 kB? (?)
    main?27.9 kB? (?)
    module?26.9 kB? (?)
  • @firebase/app-check-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?2.27 kB? (?)
    main?2.74 kB? (?)
    module?2.27 kB? (?)
  • @firebase/app-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?5.33 kB? (?)
    lite?4.06 kB? (?)
    main?5.90 kB? (?)
    module?5.33 kB? (?)
  • @firebase/auth

    TypeBase (225004b)Merge (840e86e)Diff
    browser?193 kB? (?)
    cordova?166 kB? (?)
    main?147 kB? (?)
    module?193 kB? (?)
    react-native?165 kB? (?)
  • @firebase/auth-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?20.2 kB? (?)
    main?22.4 kB? (?)
    module?20.2 kB? (?)
  • @firebase/auth-cordova

    TypeBase (225004b)Merge (840e86e)Diff
    browser?166 kB? (?)
    module?166 kB? (?)
  • @firebase/auth-web-extension

    TypeBase (225004b)Merge (840e86e)Diff
    browser?142 kB? (?)
    main?159 kB? (?)
    module?142 kB? (?)
  • @firebase/auth/internal

    TypeBase (225004b)Merge (840e86e)Diff
    browser?204 kB? (?)
    main?174 kB? (?)
    module?204 kB? (?)
  • @firebase/component

    TypeBase (225004b)Merge (840e86e)Diff
    browser?6.54 kB? (?)
    main?6.87 kB? (?)
    module?6.54 kB? (?)
  • @firebase/data-connect

    TypeBase (225004b)Merge (840e86e)Diff
    browser?21.7 kB? (?)
    main?24.0 kB? (?)
    module?21.7 kB? (?)
  • @firebase/database

    TypeBase (225004b)Merge (840e86e)Diff
    browser?250 kB? (?)
    main?254 kB? (?)
    module?250 kB? (?)
  • @firebase/database-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?18.3 kB? (?)
    main?18.9 kB? (?)
    module?18.3 kB? (?)
  • @firebase/database-compat/standalone

    TypeBase (225004b)Merge (840e86e)Diff
    main?366 kB? (?)
  • @firebase/firestore

    TypeBase (225004b)Merge (840e86e)Diff
    browser?419 kB? (?)
    main?654 kB? (?)
    module?419 kB? (?)
    react-native?420 kB? (?)
  • @firebase/firestore-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?20.6 kB? (?)
    main?21.0 kB? (?)
    module?20.6 kB? (?)
    react-native?20.6 kB? (?)
  • @firebase/firestore-lite

    TypeBase (225004b)Merge (840e86e)Diff
    browser?146 kB? (?)
    main?209 kB? (?)
    module?146 kB? (?)
    react-native?146 kB? (?)
  • @firebase/functions

    TypeBase (225004b)Merge (840e86e)Diff
    browser?14.2 kB? (?)
    main?14.7 kB? (?)
    module?14.2 kB? (?)
  • @firebase/functions-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?1.79 kB? (?)
    main?2.12 kB? (?)
    module?1.79 kB? (?)
  • @firebase/installations

    TypeBase (225004b)Merge (840e86e)Diff
    browser?17.8 kB? (?)
    main?18.3 kB? (?)
    module?17.8 kB? (?)
  • @firebase/installations-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?945 B? (?)
    main?1.27 kB? (?)
    module?945 B? (?)
  • @firebase/logger

    TypeBase (225004b)Merge (840e86e)Diff
    main?3.83 kB? (?)
    module?3.25 kB? (?)
  • @firebase/messaging

    TypeBase (225004b)Merge (840e86e)Diff
    browser?22.0 kB? (?)
    main?22.4 kB? (?)
    module?22.0 kB? (?)
  • @firebase/messaging-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?2.08 kB? (?)
    main?2.43 kB? (?)
    module?2.08 kB? (?)
  • @firebase/messaging-sw

    TypeBase (225004b)Merge (840e86e)Diff
    main?24.1 kB? (?)
    module?23.5 kB? (?)
  • @firebase/performance

    TypeBase (225004b)Merge (840e86e)Diff
    browser?30.6 kB? (?)
    main?31.0 kB? (?)
    module?30.6 kB? (?)
  • @firebase/performance-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?1.10 kB? (?)
    main?1.42 kB? (?)
    module?1.10 kB? (?)
  • @firebase/remote-config

    TypeBase (225004b)Merge (840e86e)Diff
    browser?23.2 kB? (?)
    main?24.4 kB? (?)
    module?23.2 kB? (?)
  • @firebase/remote-config-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?1.85 kB? (?)
    main?2.18 kB? (?)
    module?1.85 kB? (?)
  • @firebase/rules-unit-testing

    TypeBase (225004b)Merge (840e86e)Diff
    main?12.3 kB? (?)
  • @firebase/storage

    TypeBase (225004b)Merge (840e86e)Diff
    browser?58.5 kB? (?)
    main?60.0 kB? (?)
    module?58.5 kB? (?)
  • @firebase/storage-compat

    TypeBase (225004b)Merge (840e86e)Diff
    browser?5.67 kB? (?)
    main?6.05 kB? (?)
    module?5.67 kB? (?)
  • @firebase/util

    TypeBase (225004b)Merge (840e86e)Diff
    browser?29.3 kB? (?)
    main?35.7 kB? (?)
    module?29.3 kB? (?)
  • @firebase/webchannel-wrapper

    TypeBase (225004b)Merge (840e86e)Diff
    main?38 B? (?)
  • @firebase/webchannel-wrapper/bloom-blob

    TypeBase (225004b)Merge (840e86e)Diff
    browser?11.1 kB? (?)
    main?11.1 kB? (?)
    module?11.1 kB? (?)
  • @firebase/webchannel-wrapper/webchannel-blob

    TypeBase (225004b)Merge (840e86e)Diff
    browser?42.2 kB? (?)
    main?42.2 kB? (?)
    module?42.2 kB? (?)
  • bundle

    48 size changes

    TypeBase (225004b)Merge (840e86e)Diff
    analytics (logEvent)?44.7 kB? (?)
    app-check (CustomProvider)?38.0 kB? (?)
    app-check (ReCaptchaEnterpriseProvider)?40.5 kB? (?)
    app-check (ReCaptchaV3Provider)?40.5 kB? (?)
    auth (Anonymous)?77.8 kB? (?)
    auth (EmailAndPassword)?87.9 kB? (?)
    auth (GoogleFBTwitterGitHubPopup)?109 kB? (?)
    auth (GooglePopup)?102 kB? (?)
    auth (GoogleRedirect)?102 kB? (?)
    auth (Phone)?95.3 kB? (?)
    database (Append to a list of data)?154 kB? (?)
    database (Filtering data)?153 kB? (?)
    database (Listen for child events)?170 kB? (?)
    database (Listen for value events + Detach listeners)?170 kB? (?)
    database (Listen for value events)?170 kB? (?)
    database (Read data once)?169 kB? (?)
    database (Save data as transactions)?172 kB? (?)
    database (Sort data)?155 kB? (?)
    database (Write data)?154 kB? (?)
    firestore (CSI Auto Indexing Disable and Delete)?280 kB? (?)
    firestore (CSI Auto Indexing Enable)?280 kB? (?)
    firestore (Persistence)?311 kB? (?)
    firestore (Pipeline Query with lt filter)?154 kB? (?)
    firestore (Pipeline Query with lt plus and function)?154 kB? (?)
    firestore (Query Cursors)?257 kB? (?)
    firestore (Query)?255 kB? (?)
    firestore (Read data once)?242 kB? (?)
    firestore (Read Write w Persistence)?337 kB? (?)
    firestore (Realtime updates)?244 kB? (?)
    firestore (Transaction)?222 kB? (?)
    firestore (Write data)?221 kB? (?)
    firestore-lite (Query Cursors)?110 kB? (?)
    firestore-lite (Query)?106 kB? (?)
    firestore-lite (Read data once)?81.0 kB? (?)
    firestore-lite (Transaction)?107 kB? (?)
    firestore-lite (Write data)?91.1 kB? (?)
    functions (call)?39.4 kB? (?)
    messaging (send + receive)?47.5 kB? (?)
    performance (trace)?62.4 kB? (?)
    remote-config (getAndFetch)?48.8 kB? (?)
    storage (getBytes)?47.2 kB? (?)
    storage (getDownloadURL)?49.2 kB? (?)
    storage (getMetadata)?48.7 kB? (?)
    storage (list + listAll)?48.1 kB? (?)
    storage (updateMetadata)?49.0 kB? (?)
    storage (uploadBytes)?53.8 kB? (?)
    storage (uploadBytesResumable)?63.8 kB? (?)
    storage (uploadString)?54.0 kB? (?)

  • firebase

    33 size changes

    TypeBase (225004b)Merge (840e86e)Diff
    firebase-ai.js?33.8 kB? (?)
    firebase-analytics-compat.js?25.7 kB? (?)
    firebase-analytics.js?29.7 kB? (?)
    firebase-app-check-compat.js?23.1 kB? (?)
    firebase-app-check.js?25.5 kB? (?)
    firebase-app-compat.js?31.8 kB? (?)
    firebase-app.js?103 kB? (?)
    firebase-auth-compat.js?145 kB? (?)
    firebase-auth-cordova.js?142 kB? (?)
    firebase-auth-web-extension.js?125 kB? (?)
    firebase-auth.js?163 kB? (?)
    firebase-compat.js?803 kB? (?)
    firebase-data-connect.js?22.7 kB? (?)
    firebase-database-compat.js?168 kB? (?)
    firebase-database.js?192 kB? (?)
    firebase-firestore-compat.js?348 kB? (?)
    firebase-firestore-lite.js?169 kB? (?)
    firebase-firestore.js?483 kB? (?)
    firebase-functions-compat.js?14.7 kB? (?)
    firebase-functions.js?19.5 kB? (?)
    firebase-installations-compat.js?12.9 kB? (?)
    firebase-installations.js?15.2 kB? (?)
    firebase-messaging-compat.js?37.0 kB? (?)
    firebase-messaging-sw.js?30.1 kB? (?)
    firebase-messaging.js?29.1 kB? (?)
    firebase-performance-compat.js?40.0 kB? (?)
    firebase-performance-standalone-compat.js?105 kB? (?)
    firebase-performance.js?45.5 kB? (?)
    firebase-remote-config-compat.js?28.3 kB? (?)
    firebase-remote-config.js?32.7 kB? (?)
    firebase-storage-compat.js?44.2 kB? (?)
    firebase-storage.js?51.1 kB? (?)
    firebase-vertexai.js?33.8 kB? (?)

  • functions

    TypeBase (225004b)Merge (840e86e)Diff
    main?46 B? (?)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/EtShrURcTL.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 29, 2025

Size Analysis Report 1

This report is too large (2,817,310 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/EJjBcTiunh.html

@MarkDuckworth MarkDuckworth changed the title WIP: main to console main to console May 29, 2025
@MarkDuckworth MarkDuckworth merged commit 5e80c6a into console May 29, 2025
78 of 88 checks passed
@MarkDuckworth MarkDuckworth deleted the markduckworth/main-to-console branch May 29, 2025 20:33
dlarocque added a commit that referenced this pull request May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.