-
Notifications
You must be signed in to change notification settings - Fork 5.8k
feat(BREAKING): hard remove --unstable flag
#31365
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
WalkthroughThe PR removes global legacy Estimated code review effortMedium | ~30–60 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
🧰 Additional context used📓 Path-based instructions (2)cli/args/flags.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (1)📚 Learning: 2025-11-24T16:19:37.808ZApplied to files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
tools/wgpu_sync.js (1)
1-22: Fix typo in Deno.Command options:sdterrshould bestderrThe correct option name is
stderr(how stderr of the spawned process should be handled). The code usessdterr, which is a typo and will be silently ignored, causing stderr to use its default value instead of inheriting from the parent process as intended.Apply the fix:
- sdterr: "inherit", + stderr: "inherit",
🧹 Nitpick comments (1)
cli/args/flags.rs (1)
5186-5194:--unstablehelp text says “removed”, but flag is still accepted as a silent no-opRight now
Arg::new("unstable")is still defined and parsed, butunstable_args_parsenever looks at it, sodeno … --unstableis accepted and then ignored. The new help string says “The--unstableflag has been removed…”, which reads as “this flag is no longer valid”, but the CLI doesn’t error or warn when it’s used.To better match user expectations and the “hard remove” intent, consider one of:
- Drop the
unstablearg entirely for runtime parsing and make--unstablea genuine unknown argument, or- Keep the arg but fail fast with a clear error (or at least print a runtime warning) when
--unstableis present, instead of silently ignoring it.That way users who still rely on
--unstablediscover the change immediately, rather than having behavior subtly change with no feedback.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
tests/specs/vendor/removed/vendor_help.outis excluded by!**/*.out
📒 Files selected for processing (9)
.github/CONTRIBUTING.md(1 hunks)cli/args/flags.rs(1 hunks)cli/bench/fs/README.md(1 hunks)cli/bench/main.rs(0 hunks)cli/lib/args.rs(0 hunks)cli/main.rs(0 hunks)cli/standalone/binary.rs(0 hunks)tests/wpt/README.md(1 hunks)tools/wgpu_sync.js(1 hunks)
💤 Files with no reviewable changes (4)
- cli/bench/main.rs
- cli/lib/args.rs
- cli/main.rs
- cli/standalone/binary.rs
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: test debug linux-x86_64
- GitHub Check: test debug linux-aarch64
- GitHub Check: test debug macos-x86_64
- GitHub Check: test debug windows-x86_64
- GitHub Check: build libs
- GitHub Check: test debug macos-aarch64
- GitHub Check: test release linux-x86_64
- GitHub Check: lint debug windows-x86_64
- GitHub Check: lint debug linux-x86_64
- GitHub Check: lint debug macos-x86_64
🔇 Additional comments (3)
cli/bench/fs/README.md (1)
17-19: Bench command correctly drops removed--unstableflagThe updated
deno run -A run.mjsline matches the removal of the global--unstableflag and keeps the example valid with current CLI behavior..github/CONTRIBUTING.md (1)
264-269: TS test invocations updated for hard removal of--unstableDropping
--unstablefrom the TypeScript test commands is consistent with the flag removal and keeps the contributor docs from recommending an invalid option.tests/wpt/README.md (1)
8-11: WPT runner prefix updated to avoid removed--unstableRemoving
--unstablefrom the suggesteddeno runprefix keeps the WPT instructions compatible with the hard removal of the flag.
--unstable flag--unstable flag
|
Actually, not worth it. |
Was supposed to be removed in Deno 2.5. Proceeds #25522.