deno outdated
Check which dependencies in your project have newer versions available.Basic usage
Syntax
Features
Thedeno outdated command:
- Checks dependencies in
deno.jsonimports - Checks dependencies in
package.json(for npm packages) - Shows current versions and available updates
- Works with JSR, npm, and HTTP imports
Example output
Dependency sources
JSR packages
For JSR packages specified indeno.json:
deno.json
npm packages
For npm packages indeno.json or package.json:
deno.json
HTTP imports
HTTP imports with version specifiers:deno.json
Update strategies
Manual updates
Manual updates
Review the outdated packages and manually update Then run:
deno.json:Using deno add
Using deno add
Update specific packages with
deno add:Lock file updates
Lock file updates
After updating versions, update the lock file:
Checking specific packages
Whiledeno outdated checks all dependencies, you can focus on specific ones:
Integration with CI/CD
Run in CI to detect outdated dependencies:.github/workflows/check-deps.yml
Understanding version compatibility
The output shows three version columns:| Column | Description |
|---|---|
| Current | Version currently specified in your config |
| Latest | Newest version available |
| Latest compatible | Newest version that matches your version constraint |
^4.18.0:
- Current:
4.18.0 - Latest:
5.0.0 - Latest compatible:
4.19.2(satisfies^4.18.0)
Best practices
Regular checks
Run
deno outdated regularly to stay currentTest updates
Test your app after updating dependencies
Review changelogs
Check package changelogs before updating
Update incrementally
Update one package at a time for easier debugging
Related commands
deno add- Add new dependencies or update existing onesdeno remove- Remove dependenciesdeno install- Install all dependencies