List the dependencies of a package version

Changed on

Returns a list of dependencies of a package

get/scopes/{scope}/packages/{package}/versions/{version}/dependencies

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

versionstring required

A semantic version.

Example:1.2.3

The version of the package

Response

OK

kind'jsr' | 'npm' required

The kind of dependency.

namestring required

The fully qualified name of the dependency.

constraintstring required

The semver constraint of the dependency.

pathstring required

The path being imported from the dependency. This may be the empty string if the "default entrypoint" is being imported.

Example response

[
  {
    "name": "@std/fs",
    "constraint": "^0.50.0",
    "path": "/exists"
  }
]

Changes

    • 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]+)*$