Skip to content

Conversation

@droyad
Copy link

@droyad droyad commented Feb 2, 2026

Fixes #11623

Problem

Shields is using the default RegistrationsBaseUrl endpoint, which excludes SemVer2 packages. According to the NuGet API documentation, the RegistrationsBaseUrl resource has different versions with varying SemVer2 support:

  • RegistrationsBaseUrl (default): SemVer 2.0.0 packages are excluded
  • RegistrationsBaseUrl/3.4.0: SemVer 2.0.0 packages are excluded (but responses are gzip-compressed)
  • RegistrationsBaseUrl/3.6.0: SemVer 2.0.0 packages are included (and responses are gzip-compressed)

The Feedz.io service was calling searchServiceUrl(baseUrl, 'RegistrationsBaseUrl'), which returned the default endpoint that excludes SemVer2 versions.

Solution

Changed the service to request RegistrationsBaseUrl/3.6.0 instead of RegistrationsBaseUrl. This ensures that SemVer2 versions are included in the API response, allowing the service to properly display them in badges.

The modified method is only used by feedz.

The downside to this approach is that it takes quite a few requests and returns lots of extra data that is not needed, making it slower.

Testing

Running npm run badge -- /feedz/vpre/xunit/xunit/xunit.v3:

Before

 Service data
 { label: 'feedz', message: 'v3.2.2', color: 'blue' }
 Rendered badge
 {
  label: 'feedz',
  message: 'v3.2.2',
  color: 'blue',
  link: [],
  name: 'feedz',
  value: 'v3.2.2'
}

After

 Service data
 { label: 'feedz', message: 'v4.0.0-pre.11', color: 'orange' }
 Rendered badge
 {
  label: 'feedz',
  message: 'v4.0.0-pre.11',
  color: 'orange',
  link: [],
  name: 'feedz',
  value: 'v4.0.0-pre.11'
}

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Warnings
⚠️ This PR modified service code for feedz but not its test code.
That's okay so long as it's refactoring existing code.
⚠️

This PR modified service code.
Please run tests by including affected services in the pull request title.

Messages
📖 ✨ Thanks for your contribution to Shields, @droyad!

Generated by 🚫 dangerJS against 64c7851

@droyad droyad marked this pull request as ready for review February 2, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

vpre not working for feedz

1 participant