Closed dconeybe closed 1 month ago
Latest commit: 8e6bd381944cf062fd6424141bb11c61840a5f09
The changes in this PR will be included in the next version bump.
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](https://github.com/firebase/firebase-js-sdk/new/dconeybe/BundleSizeSimpleDbFix?filename=.changeset/great-elephants-refuse.md&value=---%0A%22%40firebase%2Ffirestore%22%3A%20patch%0A---%0A%0AFirestore%3A%20simple_db.ts%3A%20move%20getAndroidVersion()%20to%20a%20free%20function%0A)
<!DOCTYPE html>
@firebase/firestore
Type | Base (55fef6d) | Merge (6394a2e) | Diff |
---|---|---|---|
browser | 377 kB | 377 kB | +39 B (+0.0%) |
esm5 | 362 kB | 362 kB | -4 B (-0.0%) |
main | 580 kB | 580 kB | -16 B (-0.0%) |
module | 377 kB | 377 kB | +39 B (+0.0%) |
react-native | 377 kB | 377 kB | +39 B (+0.0%) |
bundle
Type | Base (55fef6d) | Merge (6394a2e) | Diff |
---|---|---|---|
firestore (CSI Auto Indexing Disable and Delete) | 268 kB | 268 kB | -4 B (-0.0%) |
firestore (CSI Auto Indexing Enable) | 268 kB | 268 kB | -4 B (-0.0%) |
firestore (Persistence) | 303 kB | 303 kB | -4 B (-0.0%) |
firestore (Query Cursors) | 247 kB | 240 kB | -6.51 kB (-2.6%) |
firestore (Query) | 245 kB | 238 kB | -6.51 kB (-2.7%) |
firestore (Read data once) | 233 kB | 226 kB | -6.51 kB (-2.8%) |
firestore (Read Write w Persistence) | 323 kB | 323 kB | -4 B (-0.0%) |
firestore (Realtime updates) | 235 kB | 229 kB | -6.51 kB (-2.8%) |
firestore (Transaction) | 212 kB | 205 kB | -6.51 kB (-3.1%) |
firestore (Write data) | 212 kB | 205 kB | -6.51 kB (-3.1%) |
firebase
Type | Base (55fef6d) | Merge (6394a2e) | Diff |
---|---|---|---|
firebase-compat.js | 786 kB | 786 kB | -4 B (-0.0%) |
firebase-firestore-compat.js | 342 kB | 342 kB | -4 B (-0.0%) |
firebase-firestore.js | 436 kB | 436 kB | +39 B (+0.0%) |
<!DOCTYPE html>
https://github.com/firebase/firebase-js-sdk/pull/7929 accidentally pulled in the IndexedDB persistence code even in Firestore applications that did not used IndexedDB, unnecessarily increasing the code size by 6.5 kB starting in v10.7.2. This PR fixes this code size increase by moving the
getAndroidVersion()
function from a static member of theSimpleDB
class to a free function to avoid pulling in all of the IndexedDB code.