List package dependents

Changed on

Returns a list of packages that depend on a package

get/scopes/{scope}/packages/{package}/dependents

Request

  • Base URL
    https://api.jsr.io
  • Auth
    HTTP bearer

Path parameters

scopestring required

The name of a scope. This must not be @ prefixed.

Example:denoland

The name of the scope

packagestring required

The name of a package.

Example:fmt

The name of the package

Query parameters

limitinteger

The maximum number of dependents to return

pageinteger

The page number of dependents to return

versions_per_package_limitinteger

The maximum number of versions per package to return

Response

OK

totalinteger

Example response

{
  "items": [
    {
      "scope": "denoland",
      "package": "fmt",
      "versions": [
        "1.2.3"
      ]
    }
  ]
}

Changes

    • breaking

      removed the required property // from the response with the status

    • warning

      changed the pattern of the path request parameter package from /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/ to ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$

    • warning

      changed the pattern of the path request parameter scope from /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/ to ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$

    • info

      the response property // became required for the status

    • info

      the // response's property pattern was changed from /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/ to ^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$ for the status

    • info

      added the required property // to the response with the status