Skip to content

main to console #9124

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 207 commits into from
Jun 26, 2025
Merged

main to console #9124

merged 207 commits into from
Jun 26, 2025

Conversation

MarkDuckworth
Copy link
Contributor

Auto-tagged reviewers not required

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 <dlarocque@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>
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 Jun 25, 2025

🦋 Changeset detected

Latest commit: 0e27118

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

This PR includes changesets to release 30 packages
Name Type
@firebase/remote-config Patch
@firebase/analytics Patch
firebase Minor
@firebase/storage Patch
@firebase/util Patch
@firebase/app Patch
@firebase/firestore Minor
@firebase/ai Patch
@firebase/remote-config-compat Patch
@firebase/analytics-compat Patch
@firebase/storage-compat Patch
@firebase/app-check-compat Patch
@firebase/app-check Patch
@firebase/app-compat Patch
@firebase/auth-compat Patch
@firebase/auth Patch
@firebase/component Patch
@firebase/data-connect Patch
@firebase/database-compat Patch
@firebase/database-types Patch
@firebase/database Patch
@firebase/firestore-compat Patch
@firebase/functions-compat Patch
@firebase/functions Patch
@firebase/installations-compat Patch
@firebase/installations Patch
@firebase/messaging-compat Patch
@firebase/messaging Patch
@firebase/performance-compat Patch
@firebase/performance 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

google-cla bot commented Jun 25, 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.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 26, 2025

Size Report 1

Affected Products

  • @firebase/app

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    react-native?20.4 kB? (?)
  • @firebase/auth

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    browser193 kB193 kB+122 B (+0.1%)
    cordova166 kB166 kB+122 B (+0.1%)
    main147 kB147 kB+127 B (+0.1%)
    module193 kB193 kB+122 B (+0.1%)
    react-native165 kB165 kB+127 B (+0.1%)
  • @firebase/auth-cordova

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    browser166 kB166 kB+122 B (+0.1%)
    module166 kB166 kB+122 B (+0.1%)
  • @firebase/auth-web-extension

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    browser142 kB142 kB+122 B (+0.1%)
    main159 kB160 kB+129 B (+0.1%)
    module142 kB142 kB+122 B (+0.1%)
  • @firebase/auth/internal

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    browser204 kB204 kB+122 B (+0.1%)
    main174 kB174 kB+129 B (+0.1%)
    module204 kB204 kB+122 B (+0.1%)
  • @firebase/firestore

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    browser419 kB429 kB+9.92 kB (+2.4%)
    main654 kB674 kB+20.0 kB (+3.1%)
    module419 kB429 kB+9.92 kB (+2.4%)
    react-native420 kB430 kB+9.92 kB (+2.4%)
  • @firebase/firestore-lite

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    browser146 kB149 kB+2.56 kB (+1.8%)
    main209 kB212 kB+2.92 kB (+1.4%)
    module146 kB149 kB+2.56 kB (+1.8%)
    react-native146 kB149 kB+2.56 kB (+1.8%)
  • @firebase/storage

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    browser58.5 kB58.5 kB+2 B (+0.0%)
    main60.0 kB60.0 kB+2 B (+0.0%)
    module58.5 kB58.5 kB+2 B (+0.0%)
  • @firebase/util

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    browser29.3 kB29.4 kB+118 B (+0.4%)
    main35.7 kB35.8 kB+118 B (+0.3%)
    module29.3 kB29.4 kB+118 B (+0.4%)
  • bundle

    41 size changes

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    auth (Anonymous)77.8 kB78.0 kB+188 B (+0.2%)
    auth (EmailAndPassword)87.9 kB88.1 kB+188 B (+0.2%)
    auth (GoogleFBTwitterGitHubPopup)109 kB109 kB+188 B (+0.2%)
    auth (GooglePopup)102 kB102 kB+188 B (+0.2%)
    auth (GoogleRedirect)102 kB102 kB+188 B (+0.2%)
    auth (Phone)95.3 kB95.5 kB+188 B (+0.2%)
    database (Append to a list of data)154 kB154 kB+107 B (+0.1%)
    database (Filtering data)153 kB153 kB+107 B (+0.1%)
    database (Listen for child events)170 kB170 kB+107 B (+0.1%)
    database (Listen for value events + Detach listeners)170 kB170 kB+107 B (+0.1%)
    database (Listen for value events)170 kB170 kB+107 B (+0.1%)
    database (Read data once)169 kB169 kB+107 B (+0.1%)
    database (Save data as transactions)172 kB172 kB+107 B (+0.1%)
    database (Sort data)155 kB155 kB+107 B (+0.1%)
    database (Write data)154 kB154 kB+107 B (+0.1%)
    firestore (CSI Auto Indexing Disable and Delete)280 kB291 kB+11.2 kB (+4.0%)
    firestore (CSI Auto Indexing Enable)280 kB291 kB+11.2 kB (+4.0%)
    firestore (Persistence)311 kB322 kB+10.9 kB (+3.5%)
    firestore (Pipeline Query with lt filter)154 kB161 kB+7.60 kB (+4.9%)
    firestore (Pipeline Query with lt plus and function)154 kB161 kB+7.60 kB (+4.9%)
    firestore (Query Cursors)257 kB261 kB+4.07 kB (+1.6%)
    firestore (Query)255 kB259 kB+4.06 kB (+1.6%)
    firestore (Read data once)242 kB248 kB+5.98 kB (+2.5%)
    firestore (Read Write w Persistence)337 kB343 kB+6.17 kB (+1.8%)
    firestore (Realtime updates)244 kB249 kB+4.19 kB (+1.7%)
    firestore (Transaction)222 kB228 kB+5.86 kB (+2.6%)
    firestore (Write data)221 kB229 kB+7.48 kB (+3.4%)
    firestore-lite (Query Cursors)110 kB112 kB+2.14 kB (+1.9%)
    firestore-lite (Query)106 kB108 kB+2.14 kB (+2.0%)
    firestore-lite (Read data once)81.0 kB83.2 kB+2.26 kB (+2.8%)
    firestore-lite (Transaction)107 kB109 kB+2.14 kB (+2.0%)
    firestore-lite (Write data)91.1 kB93.2 kB+2.14 kB (+2.3%)
    functions (call)39.4 kB39.5 kB+107 B (+0.3%)
    storage (getBytes)47.2 kB47.3 kB+109 B (+0.2%)
    storage (getDownloadURL)49.2 kB49.4 kB+109 B (+0.2%)
    storage (getMetadata)48.7 kB48.8 kB+109 B (+0.2%)
    storage (list + listAll)48.1 kB48.2 kB+109 B (+0.2%)
    storage (updateMetadata)49.0 kB49.1 kB+109 B (+0.2%)
    storage (uploadBytes)53.8 kB53.9 kB+109 B (+0.2%)
    storage (uploadBytesResumable)63.8 kB63.9 kB+109 B (+0.2%)
    storage (uploadString)54.0 kB54.1 kB+109 B (+0.2%)

  • firebase

    15 size changes

    TypeBase (5e80c6a)Merge (70e36c8)Diff
    firebase-auth-compat.js145 kB146 kB+162 B (+0.1%)
    firebase-auth-cordova.js142 kB143 kB+191 B (+0.1%)
    firebase-auth-web-extension.js125 kB125 kB+191 B (+0.2%)
    firebase-auth.js163 kB163 kB+191 B (+0.1%)
    firebase-compat.js803 kB808 kB+4.34 kB (+0.5%)
    firebase-data-connect.js22.7 kB22.8 kB+94 B (+0.4%)
    firebase-database-compat.js168 kB168 kB+94 B (+0.1%)
    firebase-database.js192 kB192 kB+94 B (+0.0%)
    firebase-firestore-compat.js348 kB352 kB+4.25 kB (+1.2%)
    firebase-firestore-lite.js169 kB172 kB+2.65 kB (+1.6%)
    firebase-firestore.js483 kB493 kB+9.99 kB (+2.1%)
    firebase-functions-compat.js14.7 kB14.8 kB+94 B (+0.6%)
    firebase-functions.js19.5 kB19.6 kB+94 B (+0.5%)
    firebase-storage-compat.js44.2 kB44.3 kB+98 B (+0.2%)
    firebase-storage.js51.1 kB51.2 kB+96 B (+0.2%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 26, 2025

Size Analysis Report 1

This report is too large (2,408,431 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/RiB9Zmuffk.html

@MarkDuckworth MarkDuckworth merged commit d3cfa53 into console Jun 26, 2025
66 of 71 checks passed
@MarkDuckworth MarkDuckworth deleted the markduckworth/main-to-console branch June 26, 2025 19:00
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.