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

Upgrade individual packages to TS 4.7.4 #6799

Merged
merged 14 commits into from Nov 30, 2022
Merged

Upgrade individual packages to TS 4.7.4 #6799

merged 14 commits into from Nov 30, 2022

Conversation

hsubox76
Copy link
Contributor

Previously only the main package.json had its typescript version bumped.

@changeset-bot
Copy link

changeset-bot bot commented Nov 15, 2022

🦋 Changeset detected

Latest commit: 70cf8a7

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

This PR includes changesets to release 45 packages
Name Type
@firebase/analytics Minor
@firebase/analytics-compat Minor
@firebase/analytics-interop-types Minor
@firebase/analytics-types Minor
@firebase/app Minor
@firebase/app-check Minor
@firebase/app-check-compat Minor
@firebase/app-check-interop-types Minor
@firebase/app-check-types Minor
@firebase/app-compat Minor
@firebase/app-types Minor
@firebase/auth Minor
@firebase/auth-compat Minor
@firebase/auth-interop-types Minor
@firebase/auth-types Minor
@firebase/component Minor
@firebase/database Minor
@firebase/database-compat Minor
@firebase/database-types Minor
@firebase/functions Minor
@firebase/functions-compat Minor
@firebase/functions-types Minor
@firebase/installations Minor
@firebase/installations-compat Minor
@firebase/installations-types Minor
@firebase/logger Minor
@firebase/messaging Minor
@firebase/messaging-compat Minor
@firebase/messaging-interop-types Minor
@firebase/performance Minor
@firebase/performance-compat Minor
@firebase/performance-types Minor
@firebase/remote-config Minor
@firebase/remote-config-compat Minor
@firebase/remote-config-types Minor
@firebase/storage Minor
@firebase/storage-compat Minor
@firebase/storage-types Minor
@firebase/template Minor
@firebase/template-types Minor
@firebase/util Minor
@firebase/webchannel-wrapper Minor
firebase Minor
@firebase/firestore Patch
@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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 15, 2022

Size Report 1

Affected Products

  • @firebase/analytics

    TypeBase (09dfc3a)Merge (969bef4)Diff
    browser20.2 kB20.1 kB-24 B (-0.1%)
    esm524.7 kB24.8 kB+89 B (+0.4%)
    main26.0 kB26.1 kB+89 B (+0.3%)
    module20.2 kB20.1 kB-24 B (-0.1%)
  • @firebase/app

    TypeBase (09dfc3a)Merge (969bef4)Diff
    browser14.4 kB14.3 kB-28 B (-0.2%)
    esm518.7 kB18.8 kB+103 B (+0.6%)
    main19.6 kB19.7 kB+103 B (+0.5%)
    module14.4 kB14.3 kB-28 B (-0.2%)
  • @firebase/app-check

    TypeBase (09dfc3a)Merge (969bef4)Diff
    browser25.2 kB25.2 kB+10 B (+0.0%)
    esm530.0 kB30.3 kB+230 B (+0.8%)
    main31.1 kB31.3 kB+230 B (+0.7%)
    module25.2 kB25.2 kB+10 B (+0.0%)
  • @firebase/auth

    TypeBase (09dfc3a)Merge (969bef4)Diff
    browser156 kB156 kB-92 B (-0.1%)
    cordova183 kB184 kB+330 B (+0.2%)
    esm5204 kB205 kB+441 B (+0.2%)
    main148 kB149 kB+266 B (+0.2%)
    module156 kB156 kB-92 B (-0.1%)
    react-native168 kB168 kB+301 B (+0.2%)
  • @firebase/auth-compat

    TypeBase (09dfc3a)Merge (969bef4)Diff
    browser20.2 kB20.2 kB-10 B (-0.0%)
    esm527.1 kB27.1 kB-10 B (-0.0%)
    main29.6 kB29.6 kB-10 B (-0.0%)
    module20.2 kB20.2 kB-10 B (-0.0%)
  • @firebase/auth/cordova

    TypeBase (09dfc3a)Merge (969bef4)Diff
    browser183 kB184 kB+330 B (+0.2%)
    module183 kB184 kB+330 B (+0.2%)
  • @firebase/auth/internal

    TypeBase (09dfc3a)Merge (969bef4)Diff
    browser167 kB167 kB-92 B (-0.1%)
    esm5218 kB218 kB+452 B (+0.2%)
    main184 kB184 kB+319 B (+0.2%)
    module167 kB167 kB-92 B (-0.1%)
  • @firebase/auth/react-native

    TypeBase (09dfc3a)Merge (969bef4)Diff
    browser168 kB168 kB+301 B (+0.2%)
    module168 kB168 kB+301 B (+0.2%)
  • @firebase/component

    TypeBase (09dfc3a)Merge (969bef4)Diff
    esm58.61 kB8.70 kB+87 B (+1.0%)
    main8.99 kB9.08 kB+87 B (+1.0%)
  • @firebase/database

    TypeBase (09dfc3a)Merge (969bef4)Diff
    esm5275 kB276 kB+223 B (+0.1%)
    main281 kB281 kB+223 B (+0.1%)
  • @firebase/database-compat/standalone

    TypeBase (09dfc3a)Merge (969bef4)Diff
    main369 kB370 kB+217 B (+0.1%)
  • @firebase/functions

    TypeBase (09dfc3a)Merge (969bef4)Diff
    esm511.7 kB11.8 kB+117 B (+1.0%)
    main12.5 kB12.6 kB+117 B (+0.9%)
  • @firebase/installations

    TypeBase (09dfc3a)Merge (969bef4)Diff
    esm522.9 kB23.1 kB+104 B (+0.5%)
    main23.8 kB23.9 kB+104 B (+0.4%)
  • @firebase/logger

    TypeBase (09dfc3a)Merge (969bef4)Diff
    esm54.65 kB4.75 kB+98 B (+2.1%)
    main5.32 kB5.41 kB+98 B (+1.8%)
  • @firebase/messaging

    TypeBase (09dfc3a)Merge (969bef4)Diff
    browser21.4 kB21.4 kB-44 B (-0.2%)
    esm526.8 kB26.8 kB+42 B (+0.2%)
    main27.5 kB27.5 kB+42 B (+0.2%)
    module21.4 kB21.4 kB-44 B (-0.2%)
  • @firebase/messaging-sw

    TypeBase (09dfc3a)Merge (969bef4)Diff
    main30.2 kB30.2 kB+60 B (+0.2%)
    module23.4 kB23.4 kB-30 B (-0.1%)
  • @firebase/performance

    TypeBase (09dfc3a)Merge (969bef4)Diff
    esm530.8 kB31.0 kB+171 B (+0.6%)
    main31.3 kB31.5 kB+171 B (+0.5%)
  • @firebase/remote-config

    TypeBase (09dfc3a)Merge (969bef4)Diff
    esm524.0 kB24.1 kB+81 B (+0.3%)
    main25.2 kB25.3 kB+81 B (+0.3%)
  • @firebase/storage

    TypeBase (09dfc3a)Merge (969bef4)Diff
    esm562.3 kB62.5 kB+229 B (+0.4%)
    main58.5 kB58.5 kB-28 B (-0.0%)
  • @firebase/util

    TypeBase (09dfc3a)Merge (969bef4)Diff
    esm524.1 kB24.2 kB+112 B (+0.5%)
    main29.6 kB29.7 kB+112 B (+0.4%)
  • bundle

    43 size changes

    TypeBase (09dfc3a)Merge (969bef4)Diff
    analytics (logEvent)43.0 kB43.0 kB-36 B (-0.1%)
    app-check (CustomProvider)36.2 kB36.1 kB-46 B (-0.1%)
    app-check (ReCaptchaEnterpriseProvider)38.5 kB38.4 kB-46 B (-0.1%)
    app-check (ReCaptchaV3Provider)38.4 kB38.4 kB-46 B (-0.1%)
    auth (Anonymous)67.5 kB67.4 kB-70 B (-0.1%)
    auth (EmailAndPassword)71.6 kB71.5 kB-70 B (-0.1%)
    auth (GoogleFBTwitterGitHubPopup)93.9 kB93.8 kB-80 B (-0.1%)
    auth (GooglePopup)91.2 kB91.1 kB-80 B (-0.1%)
    auth (GoogleRedirect)91.4 kB91.3 kB-80 B (-0.1%)
    auth (Phone)77.6 kB77.6 kB-70 B (-0.1%)
    database (Append to a list of data)148 kB148 kB-20 B (-0.0%)
    database (Filtering data)147 kB147 kB-20 B (-0.0%)
    database (Listen for child events)163 kB163 kB-20 B (-0.0%)
    database (Listen for value events + Detach listeners)163 kB163 kB-20 B (-0.0%)
    database (Listen for value events)163 kB163 kB-20 B (-0.0%)
    database (Read data once)163 kB163 kB-20 B (-0.0%)
    database (Save data as transactions)165 kB165 kB-20 B (-0.0%)
    database (Sort data)148 kB148 kB-20 B (-0.0%)
    database (Write data)147 kB147 kB-20 B (-0.0%)
    firestore (Persistence)281 kB281 kB-20 B (-0.0%)
    firestore (Query Cursors)220 kB220 kB-20 B (-0.0%)
    firestore (Query)217 kB217 kB-20 B (-0.0%)
    firestore (Read data once)204 kB204 kB-20 B (-0.0%)
    firestore (Realtime updates)207 kB207 kB-20 B (-0.0%)
    firestore (Transaction)188 kB188 kB-20 B (-0.0%)
    firestore (Write data)188 kB188 kB-20 B (-0.0%)
    firestore-lite (Query Cursors)81.0 kB81.0 kB-20 B (-0.0%)
    firestore-lite (Query)77.2 kB77.1 kB-20 B (-0.0%)
    firestore-lite (Read data once)59.1 kB59.1 kB-20 B (-0.0%)
    firestore-lite (Transaction)83.7 kB83.7 kB-20 B (-0.0%)
    firestore-lite (Write data)68.9 kB68.9 kB-20 B (-0.0%)
    functions (call)30.9 kB30.9 kB-20 B (-0.1%)
    messaging (send + receive)46.4 kB46.3 kB-60 B (-0.1%)
    performance (trace)50.8 kB50.8 kB-20 B (-0.0%)
    remote-config (getAndFetch)45.4 kB45.3 kB-92 B (-0.2%)
    storage (getBytes)40.1 kB40.0 kB-20 B (-0.0%)
    storage (getDownloadURL)42.1 kB42.1 kB-20 B (-0.0%)
    storage (getMetadata)41.6 kB41.6 kB-20 B (-0.0%)
    storage (list + listAll)41.0 kB41.0 kB-20 B (-0.0%)
    storage (updateMetadata)41.8 kB41.8 kB-20 B (-0.0%)
    storage (uploadBytes)46.8 kB46.8 kB-20 B (-0.0%)
    storage (uploadBytesResumable)56.8 kB56.7 kB-20 B (-0.0%)
    storage (uploadString)47.0 kB47.0 kB-20 B (-0.0%)

  • firebase

    18 size changes

    TypeBase (09dfc3a)Merge (969bef4)Diff
    firebase-analytics-compat.js25.8 kB25.8 kB-30 B (-0.1%)
    firebase-analytics.js24.9 kB24.9 kB-42 B (-0.2%)
    firebase-app-check-compat.js22.7 kB22.6 kB-39 B (-0.2%)
    firebase-app-check.js21.4 kB21.3 kB-65 B (-0.3%)
    firebase-app-compat.js28.8 kB28.7 kB-26 B (-0.1%)
    firebase-app.js91.7 kB91.9 kB+260 B (+0.3%)
    firebase-auth-compat.js126 kB126 kB-104 B (-0.1%)
    firebase-auth-cordova.js137 kB138 kB+277 B (+0.2%)
    firebase-auth-react-native.js149 kB150 kB+391 B (+0.3%)
    firebase-auth.js117 kB117 kB-161 B (-0.1%)
    firebase-compat.js746 kB745 kB-394 B (-0.1%)
    firebase-messaging-compat.js38.3 kB38.2 kB-91 B (-0.2%)
    firebase-messaging-sw.js26.0 kB26.0 kB-69 B (-0.3%)
    firebase-messaging.js24.9 kB24.8 kB-92 B (-0.4%)
    firebase-performance-standalone-compat.es2017.js90.0 kB89.9 kB-46 B (-0.1%)
    firebase-performance-standalone-compat.js66.5 kB67.0 kB+538 B (+0.8%)
    firebase-remote-config-compat.js27.3 kB27.2 kB-104 B (-0.4%)
    firebase-remote-config.js26.4 kB26.3 kB-176 B (-0.7%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 15, 2022

Size Analysis Report 1

This report is too large (144,373 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/l0fLhYRffN.html

@@ -24,6 +24,6 @@
"@firebase/remote-config-compat": "0.1.16"
},
"devDependencies": {
"typescript": "4.2.2"
"typescript": "4.7.4"
}
}
Copy link
Member

Choose a reason for hiding this comment

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

nit: should we fix these new lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, while we're in this file. Fixed.

@@ -44,12 +44,12 @@ const enum EffectiveConnectionType {
*
* ref: https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation
*/
interface NetworkInformation {
interface NetworkInformationWithEffectiveType extends NetworkInformation {
Copy link
Member

Choose a reason for hiding this comment

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

Just curious: what made these types to rename to NetworkInformationWithEffectiveType? Could this be breaking?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, it's not publicly exposed and is only used here. I will add a comment about what the deal is:

  // `effectiveType` is an experimental property and not included in
  // TypeScript's typings for the native NetworkInformation interface

@hsubox76 hsubox76 merged commit 1625f7a into master Nov 30, 2022
@hsubox76 hsubox76 deleted the ch-tsupgrade-1 branch November 30, 2022 20:56
@google-oss-bot google-oss-bot mentioned this pull request Dec 6, 2022
levino pushed a commit to levino/firebase-js-sdk that referenced this pull request Dec 10, 2022
@firebase firebase locked and limited conversation to collaborators Dec 31, 2022
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.

None yet

3 participants