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

Update compat typing for app #7294

Merged
merged 5 commits into from
May 25, 2023
Merged

Conversation

dwyfrequency
Copy link
Contributor

@dwyfrequency dwyfrequency commented May 11, 2023

Update /compat/app type path to deliver the proper typings to the compat packages. Fixes #7279

@changeset-bot
Copy link

changeset-bot bot commented May 11, 2023

🦋 Changeset detected

Latest commit: 9cac66b

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

This PR includes changesets to release 1 package
Name Type
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 May 11, 2023

Size Report 1

Affected Products

  • @firebase/app

    TypeBase (6d332b4)Merge (ae67dcf)Diff
    browser14.4 kB14.4 kB+1 B (+0.0%)
    esm518.9 kB18.9 kB+1 B (+0.0%)
    main19.8 kB19.8 kB+1 B (+0.0%)
    module14.4 kB14.4 kB+1 B (+0.0%)
  • @firebase/app-check

    TypeBase (6d332b4)Merge (ae67dcf)Diff
    browser26.2 kB26.2 kB+54 B (+0.2%)
    esm531.4 kB31.5 kB+69 B (+0.2%)
    main32.6 kB32.7 kB+69 B (+0.2%)
    module26.2 kB26.2 kB+54 B (+0.2%)
  • @firebase/app-compat

    TypeBase (6d332b4)Merge (ae67dcf)Diff
    browser5.28 kB5.28 kB+1 B (+0.0%)
    esm56.13 kB6.13 kB+1 B (+0.0%)
    lite4.06 kB4.06 kB+1 B (+0.0%)
    main6.73 kB6.73 kB+1 B (+0.0%)
    module5.28 kB5.28 kB+1 B (+0.0%)
  • @firebase/functions

    TypeBase (6d332b4)Merge (ae67dcf)Diff
    browser9.55 kB9.72 kB+170 B (+1.8%)
    esm511.8 kB12.1 kB+256 B (+2.2%)
    main12.6 kB12.9 kB+256 B (+2.0%)
    module9.55 kB9.72 kB+170 B (+1.8%)
  • bundle

    43 size changes

    TypeBase (6d332b4)Merge (ae67dcf)Diff
    analytics (logEvent)43.8 kB43.8 kB+1 B (+0.0%)
    app-check (CustomProvider)36.3 kB36.6 kB+255 B (+0.7%)
    app-check (ReCaptchaEnterpriseProvider)38.8 kB39.1 kB+255 B (+0.7%)
    app-check (ReCaptchaV3Provider)38.8 kB39.1 kB+255 B (+0.7%)
    auth (Anonymous)71.1 kB71.1 kB+1 B (+0.0%)
    auth (EmailAndPassword)76.1 kB76.1 kB+1 B (+0.0%)
    auth (GoogleFBTwitterGitHubPopup)97.3 kB97.3 kB+1 B (+0.0%)
    auth (GooglePopup)94.6 kB94.6 kB+1 B (+0.0%)
    auth (GoogleRedirect)94.8 kB94.8 kB+1 B (+0.0%)
    auth (Phone)81.0 kB81.0 kB+1 B (+0.0%)
    database (Append to a list of data)148 kB148 kB+1 B (+0.0%)
    database (Filtering data)147 kB147 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)163 kB163 kB+1 B (+0.0%)
    database (Read data once)163 kB163 kB+1 B (+0.0%)
    database (Save data as transactions)166 kB166 kB+1 B (+0.0%)
    database (Sort data)149 kB149 kB+1 B (+0.0%)
    database (Write data)147 kB147 kB+1 B (+0.0%)
    firestore (Persistence)300 kB300 kB+1 B (+0.0%)
    firestore (Query Cursors)238 kB238 kB+1 B (+0.0%)
    firestore (Query)235 kB235 kB+1 B (+0.0%)
    firestore (Read data once)223 kB223 kB+1 B (+0.0%)
    firestore (Realtime updates)225 kB225 kB+1 B (+0.0%)
    firestore (Transaction)202 kB202 kB+1 B (+0.0%)
    firestore (Write data)202 kB202 kB+1 B (+0.0%)
    firestore-lite (Query Cursors)82.6 kB82.6 kB+1 B (+0.0%)
    firestore-lite (Query)78.7 kB78.7 kB+1 B (+0.0%)
    firestore-lite (Read data once)60.9 kB60.9 kB+1 B (+0.0%)
    firestore-lite (Transaction)85.6 kB85.6 kB+1 B (+0.0%)
    firestore-lite (Write data)70.4 kB70.4 kB+1 B (+0.0%)
    functions (call)31.1 kB31.2 kB+73 B (+0.2%)
    messaging (send + receive)46.5 kB46.5 kB+1 B (+0.0%)
    performance (trace)51.0 kB51.0 kB+1 B (+0.0%)
    remote-config (getAndFetch)45.5 kB45.5 kB+1 B (+0.0%)
    storage (getBytes)41.3 kB41.3 kB+1 B (+0.0%)
    storage (getDownloadURL)43.4 kB43.4 kB+1 B (+0.0%)
    storage (getMetadata)42.8 kB42.8 kB+1 B (+0.0%)
    storage (list + listAll)42.2 kB42.2 kB+1 B (+0.0%)
    storage (updateMetadata)43.1 kB43.1 kB+1 B (+0.0%)
    storage (uploadBytes)48.2 kB48.2 kB+1 B (+0.0%)
    storage (uploadBytesResumable)58.1 kB58.1 kB+1 B (+0.0%)
    storage (uploadString)48.4 kB48.4 kB+1 B (+0.0%)

  • firebase

    TypeBase (6d332b4)Merge (ae67dcf)Diff
    firebase-app-check-compat.js23.1 kB23.3 kB+246 B (+1.1%)
    firebase-app-check.js22.1 kB22.1 kB+34 B (+0.2%)
    firebase-app-compat.js28.9 kB28.9 kB+3 B (+0.0%)
    firebase-app.js93.4 kB93.4 kB+1 B (+0.0%)
    firebase-compat.js773 kB773 kB+324 B (+0.0%)
    firebase-functions-compat.js8.12 kB8.19 kB+72 B (+0.9%)
    firebase-functions.js11.0 kB11.0 kB+72 B (+0.7%)
    firebase-performance-standalone-compat.es2017.js90.1 kB90.1 kB+2 B (+0.0%)
    firebase-performance-standalone-compat.js67.3 kB67.3 kB+3 B (+0.0%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 12, 2023

Size Analysis Report 1

This report is too large (147,946 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/cHmQRFfZle.html

@dwyfrequency dwyfrequency marked this pull request as ready for review May 16, 2023 17:23
@dwyfrequency dwyfrequency requested review from hsubox76 and a team as code owners May 16, 2023 17:23
Copy link
Contributor

@hsubox76 hsubox76 left a comment

Choose a reason for hiding this comment

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

Needs a changeset, hm, I think for firebase, patch.

@dwyfrequency dwyfrequency requested review from a team as code owners May 24, 2023 16:31
'firebase': patch
---

Update `/compat/app` type path to accommodate the new `"moduleResolution": "bundler"` mode of TypeScript 5.0+.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is too specific, this is not a special accommodation for TypeScript 5, it was just wrong in the first place. Simply "Fixed the types path for compat/app" should work.

If you want to make sure this is linked back to the original bug report, you can put "Fixes [link to bug]" in the PR description. This will close the issue once you merge this, and it will appear as ("fixes #xxxx") in the Version Packages PR during release which will make it easy for the release operator to follow the link and understand the background.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good! I'll update the changeset

@dwyfrequency dwyfrequency merged commit 4a86f4e into master May 25, 2023
21 of 22 checks passed
@dwyfrequency dwyfrequency deleted the jd-update-compat-typing-path branch May 25, 2023 04:16
@google-oss-bot google-oss-bot mentioned this pull request May 25, 2023
ch5zzy pushed a commit that referenced this pull request Jun 6, 2023
* Update compat typing for app

* Add changeset

* Update changeset

* Update changeset

* Revert update to node-fetch
@firebase firebase locked and limited conversation to collaborators Jun 25, 2023
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.

Cannot find namespace 'firebase'.ts(2503) for with firebase/compat/app and "moduleResolution": "bundler"
4 participants