badges/shields

Badge request: SDK constraint and dependency version for Dart packages

Open

#3.471 geöffnet am 20. Mai 2019

Auf GitHub ansehen
 (5 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)JavaScript (5.423 Forks)batch import
good first issueservice-badge

Repository-Metriken

Stars
 (22.337 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4T 17h) (40 gemergte PRs in 30 T)

Beschreibung

The support for Dart packages is currently pretty basic: we can only get a bagde for the latest version of a package (i.e. https://img.shields.io/pub/v/<package_name>.svg).

It exists a specification for the API endpoints exposed by Pub package manager: https://github.com/dart-lang/pub/blob/master/doc/repository-spec-v2.md

The API let us access two missing things from shields.io:

  • the SDK constraint: we can get the Node.js constraint from a npm package, the PHP constraint from a Packagist package, but it's currently impossible with a Dart package.
  • the version of a dependency: same here. The badges are available for npm and Packagist packages but not for Pub packages.

It would be very cool if more kind of badges could be generated for Dart projets.

Contributor Guide