Skip to content

fix!: don't force pkg get json output - #8090

Closed
uncenter wants to merge 1 commit into
npm:latestfrom
uncenter:fix/pkg-get-json
Closed

uncenter wants to merge 1 commit into
npm:latestfrom
uncenter:fix/pkg-get-json

Conversation

@uncenter

@uncenter uncenter commented Feb 7, 2025

Copy link
Copy Markdown

This pull request removes the hard-coded override setting the json configuration option / flag to true. Now, npm pkg get commands output JSON only when the --json flag is passed (default: false). This is likely considered a breaking change due to people working around the peculiarities of this historical behavior.

References

Closes #5508.

@uncenter
uncenter requested a review from a team as a code owner February 7, 2025 21:47
@wraithgar

Copy link
Copy Markdown
Contributor

This is a breaking change and would need to be discussed and considered for the next semver major version of npm. I'm also pretty sure tests will need to be updated for this. I will add it to our future breaking changes issue for consideration then. Until now this PR is going to be closed.

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.

Feature: npm pkg get <value> --raw

2 participants