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

Enable changesets #3268

Merged
merged 28 commits into from
Jun 25, 2020
Merged

Enable changesets #3268

merged 28 commits into from
Jun 25, 2020

Conversation

Feiyang1
Copy link
Member

@Feiyang1 Feiyang1 commented Jun 24, 2020

Once merged, we will need to install the changeset Github App.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 24, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (5de3ec6) Head (c5a9ad9) Diff
    browser 248 kB 248 kB -97 B (-0.0%)
    esm2017 194 kB 194 kB -103 B (-0.1%)
    main 492 kB 493 kB +632 B (+0.1%)
    module 246 kB 246 kB -97 B (-0.0%)
  • @firebase/firestore/exp

    Type Base (5de3ec6) Head (c5a9ad9) Diff
    main ? 37.4 kB ? (?)
  • @firebase/firestore/lite

    Type Base (5de3ec6) Head (c5a9ad9) Diff
    main 140 kB 140 kB +434 B (+0.3%)
  • @firebase/firestore/memory

    Type Base (5de3ec6) Head (c5a9ad9) Diff
    browser 186 kB 186 kB -123 B (-0.1%)
    esm2017 145 kB 145 kB -129 B (-0.1%)
    main 362 kB 363 kB +440 B (+0.1%)
    module 184 kB 184 kB -123 B (-0.1%)
  • firebase

    Type Base (5de3ec6) Head (c5a9ad9) Diff
    firebase-firestore.js 287 kB 287 kB -123 B (-0.0%)
    firebase-firestore.memory.js 226 kB 226 kB -149 B (-0.1%)
    firebase.js 820 kB 820 kB -123 B (-0.0%)

Test Logs

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.

Looks good! I had one question but just asking for my knowledge.

return packagePaths
.map(path => {
try {
return require(`${path}/package.json`);
return JSON.parse(readFileSync(`${path}/package.json`, 'utf8'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Just out of curiosity is it because ts-node can't require json files?

Copy link
Member Author

Choose a reason for hiding this comment

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

require caches the content of the package.json, so you will read stale package.json if you read it first, update it, then read it again. using readFile will always get the latest version from disk.

@Feiyang1 Feiyang1 merged commit fa70d0a into master Jun 25, 2020
@Feiyang1 Feiyang1 deleted the fei-changesets branch June 25, 2020 16:59
@firebase firebase locked and limited conversation to collaborators Jul 26, 2020
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.

3 participants