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

fix(v2): Fix update-notifier not run at first and not notifying consistently #5110

Merged
merged 2 commits into from Jul 1, 2021

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Jul 1, 2021

Motivation

Motived by this comment: #5105 (comment)

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

local tests

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Jul 1, 2021
@slorber slorber requested a review from lex111 as a code owner July 1, 2021 13:13
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jul 1, 2021
@netlify
Copy link

netlify bot commented Jul 1, 2021

✔️ [V2]

🔨 Explore the source changes: cbc6ceb

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/60ddc1871a17c5000794fdf2

😎 Browse the preview: https://deploy-preview-5110--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Jul 1, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 80
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5110--docusaurus-2.netlify.app/

@github-actions
Copy link

github-actions bot commented Jul 1, 2021

Size Change: 0 B

Total Size: 635 kB

ℹ️ View Unchanged
Filename Size
website/build/assets/css/styles.********.css 87.7 kB
website/build/assets/js/main.********.js 445 kB
website/build/blog/2017/12/14/introducing-docusaurus/index.html 68.8 kB
website/build/docs/introduction/index.html 235 B
website/build/index.html 33.6 kB

compressed-size-action

@slorber slorber merged commit fbdeefc into master Jul 1, 2021
@slorber slorber deleted the slorber/fix-updates-notifier branch August 17, 2021 17:57
// Note: the notification will only happen in the 2nd run
// See https://github.com/yeoman/update-notifier/issues/209
if (
!notifier.disabled &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

@slorber I didn't find this field anywhere in the docs...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this update notifier package is a bit complicated, you'd rather read source code to understand how it works 😅

Copy link
Collaborator

Choose a reason for hiding this comment

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

The reason is because I'm touching that source code a little and ts-check throws an error because this field is not in the typedef. That means it's not public API? I do see that exists, just not sure if it's actually useful...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

pretty sure we had failures without that check, I'd rather not change something that works just to please TS ;)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, I clearly see that. I'm not saying to remove it, just curious how you dug it up if it's neither typedefed nor documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants