Create a new package version

Changed on

Creates a new version of a package

post/scopes/{scope}/packages/{package}/versions/{version}

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

Query parameters

configstring required

The path to the config file

Response

OK

idstring uuid required

The ID of the publishing task.

status'pending' | 'processing' | 'processed' | 'success' | 'failure' required

The status of the publishing task.

packageScopestring required

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

packageNamestring required

The name of a package.

packageVersionstring required

A semantic version.

createdAtstring date-time required

The date and time when the publishing task was created.

updatedAtstring date-time required

The date and time when the publishing task was last updated.

Example response

{
  "user": {
    "name": "Ryan Dahl",
    "avatarUrl": "https://avatars.githubusercontent.com/u/80?v=4",
    "githubId": 80
  },
  "packageScope": "denoland",
  "packageName": "fmt",
  "packageVersion": "1.2.3"
}

Changes

    • breaking

      the response property became optional for the status

    • 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

      added the optional property to the response with 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

      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