Skip to content

feat(deno): add deno.land/x version badge#11721

Open
aadam-dev wants to merge 2 commits intobadges:masterfrom
aadam-dev:feat/deno-version-badge
Open

feat(deno): add deno.land/x version badge#11721
aadam-dev wants to merge 2 commits intobadges:masterfrom
aadam-dev:feat/deno-version-badge

Conversation

@aadam-dev
Copy link

Summary

Add a new badge service to display the latest version of modules hosted on deno.land/x, the official Deno third-party module registry.

Example

  • /deno/v/fresh - displays the latest version of the Fresh framework
  • /deno/v/oak - displays the latest version of the Oak middleware framework

Implementation

  • Uses the apiland.deno.dev API to fetch module information
  • Returns the latest_version field from the API response
  • Handles 404 errors with "module not found" message
  • Follows the standard Shields.io service patterns

Test plan

  • Service file created with proper schema validation
  • Tester file with valid module test and 404 test
  • Follows existing service patterns (similar to npm, pypi badges)

Closes #10679 (if applicable - Deno badge request)

Add a new badge service to display the latest version of modules
hosted on deno.land/x, the official Deno third-party module registry.

Example: /deno/v/fresh displays the latest version of the Fresh framework.

The service fetches version information from the apiland.deno.dev API
and renders it using the standard version badge format.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

Warnings
⚠️

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

Messages
📖 ✨ Thanks for your contribution to Shields, @aadam-dev!

Generated by 🚫 dangerJS against 3410bdb

@jNullj
Copy link
Member

jNullj commented Mar 6, 2026

Is there a documented api?
Where did you find the endpoints used in this PR?

Also you may want to fix the failing tests, we provide tasks to fix linting issues in out package.json.

@aadam-dev
Copy link
Author

Thanks for the review!

API Documentation:

The API documentation is available at:

The endpoint https://apiland.deno.dev/v2/modules/{module} is part of Deno's official apiland service (https://github.com/denoland/apiland), maintained by Denoland under MIT license.

Lint fix:

Fixed the duplicate import lint error in the latest commit.

@LitoMore
Copy link
Member

LitoMore commented Mar 7, 2026

The deno.land/x has been archived. See https://github.com/denoland/dotland. I don't think this is worth maintaining on Shields.io.

They moved to JSR and already have a badge service: https://jsr.io/docs/badges.

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.

3 participants