This repository was archived by the owner on Jan 23, 2025. It is now read-only.
fix!: ESM, drop API, drop Node 12 support #611
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This package is quite unique compared to other things in
googleapis
repository. It's a tool and not a library, and it has some dependencies we don't normally mess with, such aschalk
,ora
, andmeow
.Since most of the dependencies dropped Node 12 in their latest versions and became ESM friendly, I'm suggesting this refactor to make this tool ESM compatible. I used
ncu -u
to bump all the dependencies to their latest versions, and make some code fixes to make it all work together.BREAKING CHANGE: originally this tool was created (by me!) as a library, providing some API, with an expectation that the users will actually write the code to maintain GitHub repositories. It's not the case anymore, it was converted to a CLI tool long ago, and the main use case now is just use the
repo
CLI. I'm dropping parts of the API previously exported and the samples showing how to use it, because I don't want to keep that bad code (also, because its tests usedproxyquire
, which does not play well with ESM).BREAKING CHANGE: drop Node 12 support.
Other than that, everything should just work!