Skip to content

fix(version): write update notices to stderr for JSON-safe output#68

Merged
andrasbacsai merged 1 commit intov4.xfrom
66-investigate-json-output-breakage
Mar 30, 2026
Merged

fix(version): write update notices to stderr for JSON-safe output#68
andrasbacsai merged 1 commit intov4.xfrom
66-investigate-json-output-breakage

Conversation

@andrasbacsai
Copy link
Copy Markdown
Member

Summary

  • Route version update notices to stderr instead of stdout in the version checker.
  • Preserve clean machine-readable stdout output for --format json and automation pipelines.
  • Refactor tests with a shared stdout/stderr capture helper and add assertions for stream separation, including a JSON passthrough scenario.

Breaking Changes

  • None.

Fixes #66

Redirect the version update message from stdout to stderr so command JSON output stays machine-readable.

Expand checker tests with shared stdout/stderr capture helpers and assertions to verify:
- update notices are emitted on stderr only
- stdout remains clean during checks and errors
- JSON output to stdout is unaffected when an update is available
@andrasbacsai andrasbacsai merged commit c6378a8 into v4.x Mar 30, 2026
5 checks passed
@andrasbacsai andrasbacsai deleted the 66-investigate-json-output-breakage branch March 30, 2026 11:36
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.

version checker breaks json output

1 participant