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

V11 - Remove functions node bundle #8507

Open
wants to merge 34 commits into
base: v11
Choose a base branch
from

Conversation

DellaBitta
Copy link
Contributor

Discussion

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!

Testing

  • ts-node scripts/ci-test/check-paths.ts
  • CI.

API Changes

N/A

Copy link

changeset-bot bot commented Sep 20, 2024

🦋 Changeset detected

Latest commit: c055cfe

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

This PR includes changesets to release 3 packages
Name Type
@firebase/functions-compat Patch
@firebase/functions Patch
firebase 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 20, 2024

Size Report 1

Affected Products

  • @firebase/app

    TypeBase (c8937e7)Merge (c04a425)Diff
    browser18.3 kB18.3 kB+1 B (+0.0%)
    esm524.0 kB24.0 kB+1 B (+0.0%)
    main25.1 kB25.1 kB+1 B (+0.0%)
    module18.3 kB18.3 kB+1 B (+0.0%)
  • @firebase/auth

    TypeBase (c8937e7)Merge (c04a425)Diff
    browser182 kB182 kB+81 B (+0.0%)
    cordova209 kB209 kB+85 B (+0.0%)
    esm5236 kB236 kB+85 B (+0.0%)
    main178 kB179 kB+71 B (+0.0%)
    module182 kB182 kB+81 B (+0.0%)
    react-native199 kB199 kB+71 B (+0.0%)
  • @firebase/auth-cordova

    TypeBase (c8937e7)Merge (c04a425)Diff
    browser209 kB209 kB+85 B (+0.0%)
    module209 kB209 kB+85 B (+0.0%)
  • @firebase/auth-web-extension

    TypeBase (c8937e7)Merge (c04a425)Diff
    browser137 kB137 kB+81 B (+0.1%)
    main152 kB152 kB+69 B (+0.0%)
    module137 kB137 kB+81 B (+0.1%)
  • @firebase/auth/internal

    TypeBase (c8937e7)Merge (c04a425)Diff
    browser193 kB193 kB+81 B (+0.0%)
    esm5249 kB249 kB+85 B (+0.0%)
    main214 kB214 kB+73 B (+0.0%)
    module193 kB193 kB+81 B (+0.0%)
  • @firebase/firestore

    TypeBase (c8937e7)Merge (c04a425)Diff
    browser382 kB381 kB-342 B (-0.1%)
    esm5366 kB367 kB+129 B (+0.0%)
    main587 kB587 kB+364 B (+0.1%)
    module382 kB381 kB-342 B (-0.1%)
    react-native382 kB381 kB-341 B (-0.1%)
  • @firebase/firestore-lite

    TypeBase (c8937e7)Merge (c04a425)Diff
    browser111 kB111 kB+179 B (+0.2%)
    esm5108 kB108 kB+399 B (+0.4%)
    main153 kB153 kB+193 B (+0.1%)
    module111 kB111 kB+179 B (+0.2%)
    react-native111 kB111 kB+179 B (+0.2%)
  • @firebase/functions

    TypeBase (c8937e7)Merge (c04a425)Diff
    main12.6 kB10.1 kB-2.45 kB (-19.4%)
  • @firebase/functions-compat

    TypeBase (c8937e7)Merge (c04a425)Diff
    main2.34 kB2.12 kB-212 B (-9.1%)
  • @firebase/util

    TypeBase (c8937e7)Merge (c04a425)Diff
    browser23.2 kB23.4 kB+131 B (+0.6%)
    esm524.9 kB25.0 kB+131 B (+0.5%)
    main30.7 kB30.9 kB+233 B (+0.8%)
    module23.2 kB23.4 kB+131 B (+0.6%)
  • bundle

    46 size changes

    TypeBase (c8937e7)Merge (c04a425)Diff
    analytics (logEvent)44.5 kB44.5 kB+1 B (+0.0%)
    app-check (CustomProvider)37.4 kB37.4 kB+1 B (+0.0%)
    app-check (ReCaptchaEnterpriseProvider)39.9 kB39.9 kB+1 B (+0.0%)
    app-check (ReCaptchaV3Provider)39.9 kB39.9 kB+1 B (+0.0%)
    auth (Anonymous)76.1 kB76.2 kB+120 B (+0.2%)
    auth (EmailAndPassword)84.4 kB84.5 kB+120 B (+0.1%)
    auth (GoogleFBTwitterGitHubPopup)103 kB103 kB+119 B (+0.1%)
    auth (GooglePopup)100 kB100 kB+120 B (+0.1%)
    auth (GoogleRedirect)100 kB100 kB+120 B (+0.1%)
    auth (Phone)86.8 kB86.9 kB+120 B (+0.1%)
    database (Append to a list of data)149 kB149 kB+1 B (+0.0%)
    database (Filtering data)148 kB148 kB+1 B (+0.0%)
    database (Listen for child events)164 kB164 kB+1 B (+0.0%)
    database (Listen for value events + Detach listeners)164 kB164 kB+1 B (+0.0%)
    database (Listen for value events)164 kB164 kB+1 B (+0.0%)
    database (Read data once)164 kB164 kB+1 B (+0.0%)
    database (Save data as transactions)166 kB166 kB+1 B (+0.0%)
    database (Sort data)150 kB150 kB+1 B (+0.0%)
    database (Write data)148 kB148 kB+1 B (+0.0%)
    firestore (CSI Auto Indexing Disable and Delete)273 kB272 kB-700 B (-0.3%)
    firestore (CSI Auto Indexing Enable)273 kB272 kB-700 B (-0.3%)
    firestore (Persistence)308 kB303 kB-4.37 kB (-1.4%)
    firestore (Query Cursors)248 kB249 kB+218 B (+0.1%)
    firestore (Query)246 kB246 kB+218 B (+0.1%)
    firestore (Read data once)234 kB234 kB+218 B (+0.1%)
    firestore (Read Write w Persistence)328 kB328 kB-75 B (-0.0%)
    firestore (Realtime updates)236 kB236 kB+211 B (+0.1%)
    firestore (Transaction)213 kB214 kB+211 B (+0.1%)
    firestore (Write data)213 kB213 kB+211 B (+0.1%)
    firestore-lite (Query Cursors)91.2 kB91.4 kB+177 B (+0.2%)
    firestore-lite (Query)87.3 kB87.5 kB+177 B (+0.2%)
    firestore-lite (Read data once)62.8 kB63.0 kB+177 B (+0.3%)
    firestore-lite (Transaction)88.1 kB88.2 kB+180 B (+0.2%)
    firestore-lite (Write data)72.4 kB72.6 kB+177 B (+0.2%)
    functions (call)31.9 kB31.9 kB+1 B (+0.0%)
    messaging (send + receive)46.9 kB46.9 kB+1 B (+0.0%)
    performance (trace)51.8 kB51.8 kB+1 B (+0.0%)
    remote-config (getAndFetch)46.3 kB46.3 kB+1 B (+0.0%)
    storage (getBytes)42.1 kB42.1 kB+1 B (+0.0%)
    storage (getDownloadURL)44.1 kB44.1 kB+1 B (+0.0%)
    storage (getMetadata)43.6 kB43.6 kB+1 B (+0.0%)
    storage (list + listAll)43.0 kB43.0 kB+1 B (+0.0%)
    storage (updateMetadata)43.9 kB43.9 kB+1 B (+0.0%)
    storage (uploadBytes)48.7 kB48.7 kB+1 B (+0.0%)
    storage (uploadBytesResumable)58.7 kB58.7 kB+1 B (+0.0%)
    storage (uploadString)48.9 kB48.9 kB+1 B (+0.0%)

  • firebase

    12 size changes

    TypeBase (c8937e7)Merge (c04a425)Diff
    firebase-app-compat.js31.8 kB31.8 kB+1 B (+0.0%)
    firebase-app.js103 kB103 kB+3 B (+0.0%)
    firebase-auth-compat.js139 kB139 kB+88 B (+0.1%)
    firebase-auth-cordova.js177 kB177 kB+124 B (+0.1%)
    firebase-auth-web-extension.js117 kB117 kB+128 B (+0.1%)
    firebase-auth.js151 kB151 kB+128 B (+0.1%)
    firebase-compat.js791 kB791 kB-76 B (-0.0%)
    firebase-firestore-compat.js346 kB346 kB-163 B (-0.0%)
    firebase-firestore-lite.js119 kB119 kB+179 B (+0.2%)
    firebase-firestore.js440 kB440 kB-305 B (-0.1%)
    firebase-performance-standalone-compat.es2017.js93.6 kB93.6 kB+1 B (+0.0%)
    firebase-performance-standalone-compat.js70.8 kB70.8 kB+1 B (+0.0%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Sep 20, 2024

Size Analysis Report 1

This report is too large (1,187,612 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/o0u9ZAVt08.html

Base automatically changed from v11-fetch-changes to v11 September 20, 2024 19:53
@DellaBitta DellaBitta marked this pull request as ready for review September 20, 2024 19:59
@DellaBitta DellaBitta requested review from a team as code owners September 20, 2024 19:59
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like functions-compat also has a src/index.node.ts, and it's also referenced in this file's test:node npm script.

@@ -57,7 +57,7 @@
"test:all": "run-p --npm-path npm test:browser test:node",
"test:browser": "karma start --single-run",
"test:browser:debug": "karma start --browsers=Chrome --auto-watch",
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/{,!(browser)/**/}*.test.ts' --config ../../config/mocharc.node.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you also remove the file itself? It's not showing up as removed in the Github diff for me.

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.

3 participants