Firestore: Add tests to verify bundles produced by rollup
This PR adds a test suite to perform some checks on the bundles produced by rollup for Firestore. The immediate motivation for this test suite is to provide an automated way to validate the "development" bundles proposed in https://github.com/firebase/firebase-js-sdk/pull/7945.
Work In Progress
This PR is a work-in-progress. As of Jan 22, 2024, work on this PR has been de-prioritized but I'm leaving it here so it can be picked up in the future. Googlers see b/302682954 for details.
⚠️ No Changeset found
Latest commit: 1ae1d198db942f39a2f49beb16f7328a5ed15ae8
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Size Report 1
Affected Products
@firebase/firestoreType Base (434f841) Merge (5b0d73a) Diff browser 375 kB 375 kB +55 B (+0.0%) esm5 360 kB 360 kB +50 B (+0.0%) main 577 kB 577 kB +132 B (+0.0%) module 375 kB 375 kB +55 B (+0.0%) react-native 375 kB 375 kB +56 B (+0.0%) @firebase/firestore-liteType Base (434f841) Merge (5b0d73a) Diff browser 109 kB 109 kB +50 B (+0.0%) esm5 106 kB 106 kB +51 B (+0.0%) main 150 kB 150 kB +129 B (+0.1%) module 109 kB 109 kB +50 B (+0.0%) react-native 109 kB 109 kB +41 B (+0.0%) firebaseType Base (434f841) Merge (5b0d73a) Diff firebase-firestore-lite.js 117 kB 117 kB +50 B (+0.0%) firebase-firestore.js 434 kB 435 kB +61 B (+0.0%)
Test Logs
Size Analysis Report 1
Affected Products
@firebase/firestore_ROLLUP_BUNDLE_IDSize
Type Base (434f841) Merge (5b0d73a) Diff size ? 17.8 kB ? (?) size-with-ext-deps ? 87.6 kB ? (?) Dependency
Type Base (434f841) Merge (5b0d73a) Diff functions ? 12 dependencies
__PRIVATE_argToString __PRIVATE_cloneLongPollingOptions __PRIVATE_configureFirestore __PRIVATE_hardAssert __PRIVATE_isIndexedDbTransactionError __PRIVATE_logDebug __PRIVATE_logError __PRIVATE_randomBytes __PRIVATE_validateIsNotUsedTogether __PRIVATE_wrapInUserErrorIfRecoverable fail getDocument
? classes ? 20 dependencies
AppCheckToken DatabaseId DatabaseInfo DelayedOperation Firestore Firestore$1 FirestoreClient FirestoreError FirestoreSettingsImpl User __PRIVATE_AsyncQueueImpl __PRIVATE_AutoId __PRIVATE_Deferred __PRIVATE_EmptyAuthCredentialsProvider __PRIVATE_ExponentialBackoff __PRIVATE_FirebaseAppCheckTokenProvider __PRIVATE_FirebaseAuthCredentialsProvider __PRIVATE_FirstPartyAuthCredentialsProvider __PRIVATE_FirstPartyToken __PRIVATE_OAuthToken
? variables ? D S ae b be me ue w
? enums ? ? External Dependency
Module Base (434f841) Merge (5b0d73a) Diff @firebase/app? SDK_VERSION _registerComponent registerVersion
? @firebase/component? Component
? @firebase/logger? LogLevel Logger
? @firebase/util? FirebaseError
? @firebase/webchannel-wrapper? Integer
?