Skip to content
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

Merge v11 Feature Branch #8475

Merged
merged 24 commits into from
Oct 17, 2024
Merged

Merge v11 Feature Branch #8475

merged 24 commits into from
Oct 17, 2024

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Sep 3, 2024

This feature branch is targeted for Oct 1 and is expected to include:

  • Node engines fields set to 18+
  • Remove undici/node-fetch
  • Remove ESM5 support
  • Updates for Vertex GA

Copy link

changeset-bot bot commented Sep 3, 2024

🦋 Changeset detected

Latest commit: b5392d9

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

This PR includes changesets to release 34 packages
Name Type
firebase Major
@firebase/vertexai Major
@firebase/installations-compat Patch
@firebase/remote-config-compat Patch
@firebase/performance-compat Patch
@firebase/rules-unit-testing Major
@firebase/webchannel-wrapper Patch
@firebase/analytics-compat Patch
@firebase/app-check-compat Patch
@firebase/firestore-compat Patch
@firebase/functions-compat Patch
@firebase/messaging-compat Patch
@firebase/database-compat Patch
@firebase/storage-compat Patch
@firebase/installations Patch
@firebase/remote-config Patch
@firebase/auth-compat Patch
@firebase/performance Patch
@firebase/app-compat Patch
@firebase/analytics Patch
@firebase/app-check Patch
@firebase/component Patch
@firebase/firestore Patch
@firebase/functions Patch
@firebase/messaging Patch
@firebase/database Patch
@firebase/template Patch
@firebase/storage Patch
@firebase/logger Patch
@firebase/auth Patch
@firebase/util Patch
@firebase/app Patch
@firebase/data-connect Patch
@firebase/database-types 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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 3, 2024

Size Report 1

Affected Products

  • @firebase/analytics

    TypeBase (64db192)Merge (d4858c7)Diff
    main28.4 kB23.1 kB-5.36 kB (-18.9%)
  • @firebase/analytics-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main3.24 kB3.01 kB-230 B (-7.1%)
  • @firebase/app

    TypeBase (64db192)Merge (d4858c7)Diff
    browser18.4 kB18.4 kB-8 B (-0.0%)
    main25.2 kB19.3 kB-5.90 kB (-23.5%)
    module18.4 kB18.4 kB-8 B (-0.0%)
  • @firebase/app-check

    TypeBase (64db192)Merge (d4858c7)Diff
    main32.8 kB27.3 kB-5.51 kB (-16.8%)
  • @firebase/app-check-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main2.94 kB2.74 kB-205 B (-7.0%)
  • @firebase/app-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main6.78 kB5.90 kB-885 B (-13.0%)
  • @firebase/auth

    TypeBase (64db192)Merge (d4858c7)Diff
    cordova209 kB161 kB-48.4 kB (-23.1%)
    main179 kB142 kB-36.8 kB (-20.6%)
    react-native199 kB157 kB-42.1 kB (-21.2%)
  • @firebase/auth-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main29.5 kB22.4 kB-7.15 kB (-24.2%)
  • @firebase/auth-cordova

    TypeBase (64db192)Merge (d4858c7)Diff
    browser209 kB161 kB-48.4 kB (-23.1%)
    module209 kB161 kB-48.4 kB (-23.1%)
  • @firebase/auth/internal

    TypeBase (64db192)Merge (d4858c7)Diff
    main214 kB168 kB-46.2 kB (-21.5%)
  • @firebase/component

    TypeBase (64db192)Merge (d4858c7)Diff
    main9.08 kB6.87 kB-2.21 kB (-24.3%)
  • @firebase/data-connect

    TypeBase (64db192)Merge (d4858c7)Diff
    browser19.8 kB19.9 kB+130 B (+0.7%)
    main24.3 kB21.7 kB-2.63 kB (-10.8%)
    module19.8 kB19.9 kB+130 B (+0.7%)
  • @firebase/database

    TypeBase (64db192)Merge (d4858c7)Diff
    main282 kB254 kB-28.7 kB (-10.2%)
  • @firebase/database-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main22.2 kB18.9 kB-3.21 kB (-14.5%)
  • @firebase/database-compat/standalone

    TypeBase (64db192)Merge (d4858c7)Diff
    main372 kB340 kB-31.9 kB (-8.6%)
  • @firebase/firestore

    TypeBase (64db192)Merge (d4858c7)Diff
    browser381 kB381 kB+33 B (+0.0%)
    main587 kB587 kB+39 B (+0.0%)
    module381 kB381 kB+33 B (+0.0%)
    react-native381 kB381 kB+33 B (+0.0%)
  • @firebase/firestore-lite

    TypeBase (64db192)Merge (d4858c7)Diff
    browser111 kB111 kB-56 B (-0.1%)
    main153 kB153 kB-153 B (-0.1%)
    module111 kB111 kB-56 B (-0.1%)
    react-native111 kB111 kB-56 B (-0.1%)
  • @firebase/functions

    TypeBase (64db192)Merge (d4858c7)Diff
    browser9.76 kB9.72 kB-45 B (-0.5%)
    main12.8 kB10.3 kB-2.46 kB (-19.3%)
    module9.76 kB9.72 kB-45 B (-0.5%)
  • @firebase/functions-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main2.34 kB2.12 kB-212 B (-9.1%)
  • @firebase/installations

    TypeBase (64db192)Merge (d4858c7)Diff
    main23.9 kB18.3 kB-5.55 kB (-23.2%)
  • @firebase/installations-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main1.48 kB1.27 kB-215 B (-14.5%)
  • @firebase/logger

    TypeBase (64db192)Merge (d4858c7)Diff
    main5.41 kB3.83 kB-1.58 kB (-29.2%)
  • @firebase/messaging

    TypeBase (64db192)Merge (d4858c7)Diff
    main27.4 kB21.7 kB-5.69 kB (-20.8%)
  • @firebase/messaging-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main2.90 kB2.43 kB-468 B (-16.2%)
  • @firebase/messaging-sw

    TypeBase (64db192)Merge (d4858c7)Diff
    main30.4 kB24.1 kB-6.27 kB (-20.7%)
  • @firebase/performance

    TypeBase (64db192)Merge (d4858c7)Diff
    main31.4 kB29.5 kB-1.96 kB (-6.2%)
  • @firebase/performance-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main1.69 kB1.42 kB-276 B (-16.3%)
  • @firebase/remote-config

    TypeBase (64db192)Merge (d4858c7)Diff
    main25.3 kB20.2 kB-5.12 kB (-20.2%)
  • @firebase/remote-config-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main3.09 kB2.18 kB-908 B (-29.4%)
  • @firebase/rules-unit-testing

    TypeBase (64db192)Merge (d4858c7)Diff
    main17.8 kB12.3 kB-5.57 kB (-31.2%)
  • @firebase/storage

    TypeBase (64db192)Merge (d4858c7)Diff
    main59.4 kB59.3 kB-90 B (-0.2%)
  • @firebase/storage-compat

    TypeBase (64db192)Merge (d4858c7)Diff
    main8.82 kB6.05 kB-2.77 kB (-31.4%)
  • @firebase/util

    TypeBase (64db192)Merge (d4858c7)Diff
    main30.9 kB29.2 kB-1.69 kB (-5.5%)
  • @firebase/vertexai

    TypeBase (64db192)Merge (d4858c7)Diff
    browser?28.7 kB? (?)
    main?29.6 kB? (?)
    module?28.7 kB? (?)
  • bundle

    46 size changes

    TypeBase (64db192)Merge (d4858c7)Diff
    analytics (logEvent)44.6 kB44.6 kB-8 B (-0.0%)
    app-check (CustomProvider)37.5 kB37.5 kB-8 B (-0.0%)
    app-check (ReCaptchaEnterpriseProvider)40.0 kB40.0 kB-8 B (-0.0%)
    app-check (ReCaptchaV3Provider)40.0 kB39.9 kB-8 B (-0.0%)
    auth (Anonymous)76.3 kB76.2 kB-8 B (-0.0%)
    auth (EmailAndPassword)84.6 kB84.5 kB-8 B (-0.0%)
    auth (GoogleFBTwitterGitHubPopup)103 kB103 kB-8 B (-0.0%)
    auth (GooglePopup)100 kB100 kB-8 B (-0.0%)
    auth (GoogleRedirect)100 kB100 kB-8 B (-0.0%)
    auth (Phone)86.9 kB86.9 kB-8 B (-0.0%)
    database (Append to a list of data)149 kB149 kB-8 B (-0.0%)
    database (Filtering data)148 kB148 kB-8 B (-0.0%)
    database (Listen for child events)164 kB164 kB-8 B (-0.0%)
    database (Listen for value events + Detach listeners)164 kB164 kB-8 B (-0.0%)
    database (Listen for value events)164 kB164 kB-8 B (-0.0%)
    database (Read data once)164 kB164 kB-8 B (-0.0%)
    database (Save data as transactions)166 kB166 kB-8 B (-0.0%)
    database (Sort data)150 kB150 kB-8 B (-0.0%)
    database (Write data)148 kB148 kB-8 B (-0.0%)
    firestore (CSI Auto Indexing Disable and Delete)270 kB272 kB+2.50 kB (+0.9%)
    firestore (CSI Auto Indexing Enable)270 kB272 kB+2.50 kB (+0.9%)
    firestore (Persistence)303 kB303 kB-8 B (-0.0%)
    firestore (Query Cursors)242 kB249 kB+6.18 kB (+2.5%)
    firestore (Query)240 kB246 kB+6.18 kB (+2.6%)
    firestore (Read data once)228 kB234 kB+6.18 kB (+2.7%)
    firestore (Read Write w Persistence)325 kB328 kB+2.50 kB (+0.8%)
    firestore (Realtime updates)230 kB236 kB+6.18 kB (+2.7%)
    firestore (Transaction)207 kB214 kB+6.44 kB (+3.1%)
    firestore (Write data)207 kB213 kB+6.18 kB (+3.0%)
    firestore-lite (Query Cursors)91.5 kB91.4 kB-64 B (-0.1%)
    firestore-lite (Query)87.6 kB87.6 kB-64 B (-0.1%)
    firestore-lite (Read data once)63.1 kB63.1 kB-61 B (-0.1%)
    firestore-lite (Transaction)88.4 kB88.3 kB-64 B (-0.1%)
    firestore-lite (Write data)72.7 kB72.6 kB-64 B (-0.1%)
    functions (call)32.0 kB32.0 kB-16 B (-0.0%)
    messaging (send + receive)46.9 kB46.9 kB-8 B (-0.0%)
    performance (trace)51.8 kB51.8 kB-8 B (-0.0%)
    remote-config (getAndFetch)46.3 kB46.3 kB-8 B (-0.0%)
    storage (getBytes)42.1 kB42.1 kB-8 B (-0.0%)
    storage (getDownloadURL)44.2 kB44.2 kB-8 B (-0.0%)
    storage (getMetadata)43.7 kB43.6 kB-8 B (-0.0%)
    storage (list + listAll)43.1 kB43.1 kB-8 B (-0.0%)
    storage (updateMetadata)43.9 kB43.9 kB-8 B (-0.0%)
    storage (uploadBytes)48.8 kB48.8 kB-8 B (-0.0%)
    storage (uploadBytesResumable)58.7 kB58.7 kB-8 B (-0.0%)
    storage (uploadString)49.0 kB49.0 kB-8 B (-0.0%)

  • firebase

    18 size changes

    TypeBase (64db192)Merge (d4858c7)Diff
    firebase-analytics.js29.7 kB29.7 kB+28 B (+0.1%)
    firebase-app-compat.js31.8 kB31.8 kB-8 B (-0.0%)
    firebase-app.js103 kB103 kB+577 B (+0.6%)
    firebase-auth-cordova.js177 kB134 kB-43.0 kB (-24.3%)
    firebase-compat.js788 kB791 kB+2.42 kB (+0.3%)
    firebase-data-connect.js16.5 kB16.6 kB+100 B (+0.6%)
    firebase-firestore-compat.js344 kB346 kB+2.45 kB (+0.7%)
    firebase-firestore-lite.js119 kB119 kB-56 B (-0.0%)
    firebase-firestore.js440 kB440 kB+33 B (+0.0%)
    firebase-functions-compat.js8.22 kB8.21 kB-12 B (-0.1%)
    firebase-functions.js12.0 kB12.0 kB+19 B (+0.2%)
    firebase-installations.js15.1 kB15.2 kB+28 B (+0.2%)
    firebase-messaging-sw.js30.1 kB30.1 kB+28 B (+0.1%)
    firebase-messaging.js28.7 kB28.7 kB+28 B (+0.1%)
    firebase-performance-standalone-compat.js70.8 kB93.7 kB+22.9 kB (+32.3%)
    firebase-performance.js35.0 kB35.1 kB+28 B (+0.1%)
    firebase-remote-config.js29.6 kB29.6 kB+28 B (+0.1%)
    firebase-vertexai.js?22.2 kB? (?)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 3, 2024

Size Analysis Report 1

This report is too large (655,550 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/vMQENXuXeD.html

wu-hui and others added 3 commits September 9, 2024 18:10
* Make memory lru gc the default

* undo yarn.lock

* Make memory lru gc the default

* Fix tests
Our v11 release will require node 18+. Since fetch has been introduced in these node versions, we can remove our dependency on third party fetch implementations.

This change removes our usage of fetch variants undici and node-fetch for our node target builds and our CI tools.
Copy link
Contributor

github-actions bot commented Sep 20, 2024

Changeset File Check ⚠️

  • Warning: This PR modifies files in the following packages but they have not been included in the changeset file:%0A - @firebase/analytics-compat%0A - @firebase/analytics%0A - @firebase/app-check-compat%0A - @firebase/app-check%0A - @firebase/app-compat%0A - @firebase/app%0A - @firebase/auth-compat%0A - @firebase/auth%0A - @firebase/component%0A - @firebase/database-compat%0A - @firebase/database%0A - firebase%0A - @firebase/firestore-compat%0A - @firebase/firestore%0A - @firebase/installations-compat%0A - @firebase/installations%0A - @firebase/logger%0A - @firebase/messaging-compat%0A - @firebase/messaging%0A - @firebase/performance-compat%0A - @firebase/performance%0A - @firebase/remote-config-compat%0A - @firebase/remote-config%0A - @firebase/rules-unit-testing%0A - @firebase/storage-compat%0A - @firebase/storage%0A - @firebase/template%0A - @firebase/util%0A - @firebase/vertexai%0A - @firebase/webchannel-wrapper%0A%0A Make sure this was intentional.

DellaBitta and others added 20 commits September 23, 2024 15:07
With the removal of fetch we no long need to create a node bundle for functions. Instead the sourcebase may become isomorphic, so long as we remove the older node sources. And that's what the PR does!
These should have been part of the bigger PR, but I missed these.
The rollup-typescript-plugin does not transpile JS files using the TS
compiler by default. This means that external dependencies that provide
JS bundles will not be transpiled to the target ES version specified in
the TypeScript config used by the plugin.

This resulted in one of our dependencies (https://github.com/jakearchibald/idb)
being included in the CDN bundles without being transpiled to
ES5 (the target ES version). Since this dependencies bundle uses
ES2018 syntax (object spread operator `{ ...x }`), this upgraded our CDN
bundles' minimum ES version requirement to ES2018 which isn't compatible with older browser versions.
To see the ES2018 syntax in one of the CDN bundles, see
https://www.gstatic.com/firebasejs/10.13.1/firebase-app.js and search for `...oldTraps`.
* Make SafetySettings.method optional

* Update API reports

---------

Co-authored-by: hsubox76 <[email protected]>
* close file

* Add test:ci to end of test command in CI

* revert workflow file changes

* format
* Overwrite undefined candidate index

* Fix index overwrite condition to only be true when index is not a property
* Upgrade to mock responses v4

* Upgrade from v4 to v5 mock responses
@hsubox76 hsubox76 marked this pull request as ready for review October 17, 2024 17:15
@hsubox76 hsubox76 requested a review from a team as a code owner October 17, 2024 17:15
@hsubox76 hsubox76 merged commit 479226b into main Oct 17, 2024
48 of 50 checks passed
@hsubox76 hsubox76 deleted the v11 branch October 17, 2024 21:07
@google-oss-bot google-oss-bot mentioned this pull request Oct 17, 2024
@firebase firebase locked and limited conversation to collaborators Nov 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants