Skip to content

[pull] latest from npm:latest#158

Merged
pull[bot] merged 2 commits into
DavidLacombe46:latestfrom
npm:latest
May 12, 2026
Merged

[pull] latest from npm:latest#158
pull[bot] merged 2 commits into
DavidLacombe46:latestfrom
npm:latest

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 12, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

<!-- What / Why -->
The --json flag for npm view now always returns an array, even when only
a single version matches. Previously, a single item result would be
unwrapped and returned as a plain object/string, which made programmatic
parsing fragile - consumers had to handle both array and non-array
shapes depending on how many versions matched.

This doc update adds a note to npm-view.md clarifying that the output is
always an array when --json is used, reflecting the behavioral fix.


## References
Related to
npm/statusboard#1074 (comment)
@pull pull Bot locked and limited conversation to collaborators May 12, 2026
@pull pull Bot added the ⤵️ pull label May 12, 2026
@pull pull Bot merged commit b61281d into DavidLacombe46:latest May 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants