Skip to content

Force yargs 16/17 to resolve to yargs 18#17988

Merged
nicolo-ribaudo merged 2 commits into
babel:mainfrom
nicolo-ribaudo:yargs-no-16
May 9, 2026
Merged

Force yargs 16/17 to resolve to yargs 18#17988
nicolo-ribaudo merged 2 commits into
babel:mainfrom
nicolo-ribaudo:yargs-no-16

Conversation

@nicolo-ribaudo

@nicolo-ribaudo nicolo-ribaudo commented May 8, 2026

Copy link
Copy Markdown
Member
Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

Node.js 26 breaks (knowingly, so it's not going to be fixed) old versions of Yargs. Let's see if the newer versions are compatible enough that we can just use resolutions.

Ref: yargs/yargs#2509, nodejs/node#62083

@babel-bot

babel-bot commented May 8, 2026

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/61511

@pkg-pr-new

pkg-pr-new Bot commented May 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: dae567d

@nicolo-ribaudo

This comment was marked as outdated.

@nicolo-ribaudo nicolo-ribaudo changed the title Force yargs 16 to resolve to yargs 17 Force yargs 16/17 to resolve to yargs 18 May 8, 2026
@nicolo-ribaudo

Copy link
Copy Markdown
Member Author

If it works I might release the patch as a yargs-18-with-singleton package, in case others need it.

@nicolo-ribaudo nicolo-ribaudo marked this pull request as ready for review May 8, 2026 10:10
@JLHwung

JLHwung commented May 8, 2026

Copy link
Copy Markdown
Contributor

If it works I might release the patch as a yargs-18-with-singleton package, in case others need it.

I would say let's wait for yargs team's response. If they explicitly oppose the idea of patch release for old versions, then maybe it is a better time for releasing the patched package.

@nicolo-ribaudo nicolo-ribaudo merged commit 3b4cbdc into babel:main May 9, 2026
56 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the yargs-no-16 branch May 9, 2026 14:10
JLHwung pushed a commit to nicolo-ribaudo/babel that referenced this pull request Jun 8, 2026
* Force yargs 16 to resolve to yargs 17

* Force yargs 17 to resolve to yargs 18 + backwards compat patch
# Conflicts:
#	yarn.lock
JLHwung added a commit that referenced this pull request Jun 9, 2026
* Test Node.js 26 on CI

* Test Node.js 26 on CI

* Update node flags list

* workaround

---------

Co-authored-by: Babel Bot <30521560+liuxingbaoyu@users.noreply.github.com>

* Only use realpathSync.native when available

* test

* Force c8/yargs 17 to resolve to yargs 18 (#17988)

* Force yargs 16 to resolve to yargs 17

* Force yargs 17 to resolve to yargs 18 + backwards compat patch
# Conflicts:
#	yarn.lock

* ci: bump vue-cli/yargs to ^18.0.0

* ci: run e2e-tests on 7.x branch

* debug

* Revert "debug"

This reverts commit 7b4d605.

* workaround extract-zip bug on Node.js 26.1.0

* Revert "test"

This reverts commit 39950f6.

---------

Co-authored-by: Babel Bot <30521560+liuxingbaoyu@users.noreply.github.com>
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
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.

4 participants