Deno
Categories: js
Renovate supports updating Deno dependencies.
File Matching¶
By default, Renovate will check any files matching any of the following regular expressions:
/(^|/)deno\.lock$/
/(^|/)deno\.(json|jsonc)$/
For details on how to extend a manager's managerFilePatterns value, please follow this link.
Supported datasources¶
This manager supports extracting the following datasources: npm, jsr, deno.
Dependency types¶
This manager has no documented depType values.
Default config¶
{
"managerFilePatterns": [
"/(^|/)deno\\.lock$/",
"/(^|/)deno\\.(json|jsonc)$/"
],
"digest": {
"prBodyDefinitions": {
"Change": "{{#if displayFrom}}`{{{displayFrom}}}` -> {{else}}{{#if currentValue}}`{{{currentValue}}}` -> {{/if}}{{/if}}{{#if displayTo}}`{{{displayTo}}}`{{else}}`{{{newValue}}}`{{/if}}"
}
},
"prBodyDefinitions": {
"Change": "{{#if (equals datasource \"npm\")}}[{{#if displayFrom}}`{{{displayFrom}}}` -> {{else}}{{#if currentValue}}`{{{currentValue}}}` -> {{/if}}{{/if}}{{#if displayTo}}`{{{displayTo}}}`{{else}}`{{{newValue}}}`{{/if}}]({{#if depName}}https://renovatebot.com/diffs/npm/{{replace '/' '%2f' depName}}/{{{currentVersion}}}/{{{newVersion}}}{{/if}}){{else}}{{#if displayFrom}}`{{{displayFrom}}}` -> {{else}}{{#if currentValue}}`{{{currentValue}}}` -> {{/if}}{{/if}}{{#if displayTo}}`{{{displayTo}}}`{{else}}`{{{newValue}}}`{{/if}}{{/if}}"
}
}
Lock File Maintenance¶
This manager supports lockFileMaintenance for the following file(s):
deno.lock
Additional Information¶
Extracts dependencies from the Deno's projects deno.json and deno.jsonc files.
The deno manager also supports the package.json file for Deno's node-compat as long as a deno.lock file is placed next to the package.json file. It could support another lock filename that specified in deno.json or deno.jsonc.
Supported Dependency Types¶
The following depTypes of deno.json or deno.jsonc are currently supported by the deno manager:
importsscopes.<mapping>.<specifier>tasks.<name>,tasks.command.<name>: Renovate will not update any lock files.compilerOptions.types,compilerOptions.jsxImportSource,compilerOptions.jsxImportSourceTypeslint.plugins
Additionally, an import map JSON file containing imports and scopes.<mapping>.<specifier> like the examples above is supported.
The deno manager also supports some depTypes that supported by npm manager.
Note
Deno cli supports private npm compatible registries itself, however the deno managaer is not yet ready to support Private npm module.
Note
In source dependencies are not supported.
import { assert } from "jsr:@std/assert@1.0.0";