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
{{ message }}
Repository navigation
Dependency links with version union ("1.0 || 2.0") resolves to 404 page #1120
💭 I actually just had an idea for an alternative, simpler solution with a better UX (potentially), that also happens to unlock a simple solution to #1416. I'm working on a PR 👀.
@serhalp Hi Philippe. Do you think you will able to merge #1723 before tomorrow? Otherwise, maybe it worth to merge this as a hotfix and later it could be overwritten by your feature. Thanks!
{
"error": true,
"url": "https://npm.antfu.dev/nuxt@%3E2%3C4",
"statusCode": 400,
"statusMessage": "Server Error",
"message": "Invalid tag name \">2<4\" of package \"nuxt@>2<4\": Tags may not have any characters that encodeURIComponent encodes."
}
@danielroe When you have time please see my comment above and advise: should I open another issue for described cases or just re-open this one. Thanks!
After investigation I've found that version resolution should work with spaces, so hotfix impemented in #1874 could be reverted.
But only after https://npm.antfu.dev is updated
Activity
alex-key commentedon Feb 6, 2026
I will work on the fix
serhalp commentedon Feb 27, 2026
💭 I actually just had an idea for an alternative, simpler solution with a better UX (potentially), that also happens to unlock a simple solution to #1416. I'm working on a PR 👀.
fix: route dependency version ranges to pkg page with semver filter i…
alex-key commentedon Mar 2, 2026
@serhalp Hi Philippe. Do you think you will able to merge #1723 before tomorrow? Otherwise, maybe it worth to merge this as a hotfix and later it could be overwritten by your feature. Thanks!
alex-key commentedon Mar 3, 2026
#1874 resolves just part of the issues. But there are still multiple cases which results in error 404.
The app is relying on a third-party service (by @antfu) which is resolving complex semver expressions into a single max version.
See app/composables/npm/useResolvedVersion.ts
But it is not handling many valid cases, which results in 404 on npmx. Examples:
Union version works with
||https://npm.antfu.dev/nuxt@2%7C%7C%3C4
But fails with valid Range version (w/o
||)https://npm.antfu.dev/nuxt@%3E2%3C4
Range version with hyphen does not work
https://npm.antfu.dev/internmap@1-2
Taken from: https://npmx.dev/package/d3-array
alex-key commentedon Mar 3, 2026
@antfu Is this a valid issue in https://github.com/antfu/fast-npm-meta ? Or am I missing something?
alex-key commentedon Mar 3, 2026
@danielroe When you have time please see my comment above and advise: should I open another issue for described cases or just re-open this one. Thanks!
antfu commentedon Mar 4, 2026
@alex-key would be great if you want to work on it and made a PR to fast-npm-meta, thanks!
alex-key commentedon Mar 4, 2026
Thank you for the confirmation. I will work on the fix
alex-key commentedon Mar 4, 2026
Root case for this resolved in antfu/fast-npm-meta#32
After investigation I've found that version resolution should work with spaces, so hotfix impemented in #1874 could be reverted.
But only after https://npm.antfu.dev is updated
fix: route dependency version ranges to pkg page with semver filter i…