SIGN IN SIGN UP
denoland / deno UNCLAIMED

A modern runtime for JavaScript and TypeScript.

0 0 19 Rust

fix(npm): downgrade latest tag for release age (#34581)

## Summary

- Treat npm `@latest` as a fallback-to-newest-allowed request when the
latest dist-tag target is newer than `minimumDependencyAge` / npmrc
`min-release-age`.
- Preserve the existing too-new dist-tag error for non-`latest` tags.
- Add resolver unit coverage and CLI regressions for `deno add
npm:@...@latest` with both config sources.

## Tests

- `cargo fmt --check`
- `cargo test -p deno_npm resolution::common::test --lib`
- `cargo test -p deno_npm newest_dependency_date --lib`
- `cargo test -p integration_tests --test integration add_npm_latest`

Closes denoland/orchid#336

Fixes https://github.com/denoland/deno/issues/34579

Co-authored-by: divybot <divybot@users.noreply.github.com>
Co-authored-by: Divy Srivastava <me@littledivy.com>
E
em committed
7b5badabef65712486ba0169626ba82300024215
Parent: 13a1c9d
Committed by GitHub <noreply@github.com> on 5/31/2026, 4:20:42 AM