-
-
Couldn't load subscription status.
- Fork 1.3k
Breaking: Next major Inquirer version #1854
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
base: main
Are you sure you want to change the base?
Conversation
3a8af47 to
999c4a6
Compare
9841826 to
3d858c7
Compare
| "packageManager": "yarn@4.9.4+sha512.7b1cb0b62abba6a537b3a2ce00811a843bea02bcf53138581a6ae5b1bf563f734872bd47de49ce32a9ca9dcaff995aa789577ffb16811da7c603dcf69e73750b", | ||
| "engines": { | ||
| "node": ">=18" | ||
| "node": ">=23 ^22.13.0 ^21.7.0 ^20.12.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect format. Here shoule be:
| "node": ">=23 ^22.13.0 ^21.7.0 ^20.12.0" | |
| "node": ">=23 || ^22.13.0 || ^21.7.0 || ^20.12.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a source for that?
The current format parsed properly, and I see that same format over here: https://docs.npmjs.com/cli/v11/configuring-npm/package-json#engines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the space between versions means and.
Here we should use or. You can reverse them and try again:
# Run this below with Node.js 23 or later
^20.12 ^20.7 >=23
Root PR to collect all breaking changes I intend to rollout with our next major version.
TODOs
attw(to be confirmed: I think it's fine and doesn't bring value anymore)yoctocolorswith built-instyleText([Breaking - Node 20] Replace yoctocolors-cjs with styleText #1850)@deprecatedacross the codebase.packages/core/src/lib/promise-polyfill.tsAnything else I'm missing?
Note about dependency substitutions
I'm very aligned with the efforts within the Node.js community to cut down on transitive dependency size.
That being said, I'm only open to considering alternatives from known and reputable maintainers. Inquirer is a very popular and trusted package. I do not to risk putting the project in the path of a supply chain of attack.
I'll look at PRs the community sends, but you might want to open a ticket first for us to discuss the alternative package you recommend. I'm also very open to rehoming some smaller packages under the Inquirer project and assume future ownership (like we did with external-editor, or
@inquirer/figures).