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

Fall cleanup #493

Merged
merged 34 commits into from
Sep 2, 2022
Merged

Fall cleanup #493

merged 34 commits into from
Sep 2, 2022

Conversation

niik
Copy link
Member

@niik niik commented Aug 18, 2022

Time to give some maintenance love to dugite.

  • Upgrades typescript to 4.7
  • Enforces Node12+
  • Runs CI on Node 12, 14, 16
  • Switches us to using yarn (closes: standardize on using yarn and yarn lockfile #277)
  • Removes got dependency in favor of built-in https module
  • Removes checksum dependency in favor of built-in crypto module
  • Removed rimraf dependency in favor of built-in recursive remove

@niik niik marked this pull request as ready for review August 18, 2022 12:17
@sergiou87 sergiou87 self-assigned this Aug 18, 2022
Copy link
Member

@sergiou87 sergiou87 left a comment

Choose a reason for hiding this comment

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

Great cleanup! 🤩 Only a couple of comments/suggestions

@@ -30,23 +36,23 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Node.js ${{ matrix.arch }}
uses: niik/setup-node@f9547c97f4c519f71dc42e652d6d2c53f9527c1d
Copy link
Member

Choose a reason for hiding this comment

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

Didn't notice we used a custom setup-node 🤯

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, and from some super untrustworthy source too!

docs/releases.md Outdated Show resolved Hide resolved
Comment on lines +15 to +23
if (process.stdout) {
process.stdout.on('data', chunk => {
if (chunk instanceof Buffer) {
stdout.push(chunk)
} else {
stdout.push(Buffer.from(chunk))
}
})
}
Copy link
Member

Choose a reason for hiding this comment

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

Can't we use optional chaining here? 🤔

Suggested change
if (process.stdout) {
process.stdout.on('data', chunk => {
if (chunk instanceof Buffer) {
stdout.push(chunk)
} else {
stdout.push(Buffer.from(chunk))
}
})
}
process.stdout?.on('data', chunk => {
if (chunk instanceof Buffer) {
stdout.push(chunk)
} else {
stdout.push(Buffer.from(chunk))
}
})

Copy link
Member Author

Choose a reason for hiding this comment

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

Not yet, the version of prettier that we use in dugite didn't support which is why I did it this way (sorry, should have made a comment or at least a review comment about it) it but I'm planning on bumping prettier in a separate PR (this one got noisy enough)

niik and others added 2 commits August 18, 2022 16:32
Co-authored-by: Sergio Padrino <sergio.padrino@gmail.com>
@niik
Copy link
Member Author

niik commented Sep 2, 2022

@sergiou87 Would you like me to do a prettier PR targeting this or are you happy to approve this as-is?

@niik niik requested a review from sergiou87 September 2, 2022 06:31
Copy link
Member

@sergiou87 sergiou87 left a comment

Choose a reason for hiding this comment

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

Happy to approve it as is! (sorry, I missed your changes after my review two weeks ago 😓 )

@niik
Copy link
Member Author

niik commented Sep 2, 2022

sorry, I missed your changes after my review two weeks ago

Oh no worries, I got distracted away from it anyway. I should have requested a re-review. Thanks for taking a look!

@niik niik merged commit 6b2dd3f into main Sep 2, 2022
@niik niik deleted the fall-cleanup branch September 2, 2022 07:07
This was referenced Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

standardize on using yarn and yarn lockfile
2 participants