You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be fantastic if there were an endpoint in the registry API to allow uploading a package.json (and optionally a package-lock.json) that would return a payload of update suggestions.
Tools such as npm-check, and Yarn's interactive upgrade command currently implement their own upgrade suggestion logic and are limited to issuing multiple requests with huge packument responses to fetch all the available upgrades.
This proposed endpoint would allow all ecosystem tools (including the outdated command in the npm CLI) to simplify the request and ensure the accuracy of upgrade suggestions.
The response payload could look something like this:
(Notice the retaining of the SemVer operator).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It would be fantastic if there were an endpoint in the registry API to allow uploading a
package.json
(and optionally apackage-lock.json
) that would return a payload of update suggestions.Tools such as
npm-check
, and Yarn's interactive upgrade command currently implement their own upgrade suggestion logic and are limited to issuing multiple requests with huge packument responses to fetch all the available upgrades.This proposed endpoint would allow all ecosystem tools (including the
outdated
command in the npm CLI) to simplify the request and ensure the accuracy of upgrade suggestions.The response payload could look something like this:
(Notice the retaining of the SemVer operator).
One of the most useful things here is that it could automatically return suggested peer dependency range expansions.
Beta Was this translation helpful? Give feedback.
All reactions