Back to Dependabot Core

README

deno/README.md

0.379.01.6 KB
Original Source

dependabot-deno

Deno support for dependabot-core.

Running locally

  1. Start a development shell
$ bin/docker-dev-shell deno
  1. Run tests
[dependabot-core-dev] ~ $ cd deno && rspec

The lockfile-regeneration specs (spec/dependabot/deno/file_updater/lockfile_updater_spec.rb) shell out to a real deno install and hit the JSR/npm registries. They expect the deno binary on PATH and network access — both are provided by the bin/docker-dev-shell deno image, but local runs outside the container need them too.

Implementation Status

Required Classes

  • FileFetcher
  • FileParser
  • UpdateChecker
  • FileUpdater (manifest + deno.lock regeneration)

Optional Classes

  • MetadataFinder (npm sources; jsr returns nil)
  • Version
  • Requirement

Supporting Infrastructure

  • Comprehensive unit tests
  • CI/CD integration
  • Documentation

Supported

  • deno.json and deno.jsonc import maps
  • jsr: and npm: specifiers (scoped, unscoped, versionless, sub-path)
  • deno.lock regeneration when the manifest changes
  • Cooldown for direct dependencies

Not yet supported (planned)

  • HTTPS imports (https://deno.land/x/...)
  • scopes field overrides
  • vendor/ directory regeneration
  • Workspaces (nested deno.json)
  • links field (local package overrides)
  • DENO_AUTH_TOKENS / private registries
  • Frozen-lockfile UX (we pass --frozen=false and may overwrite a frozen lockfile)
  • Custom lockfile path ("lock": { "path": "..." })