denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
93.39k stars 5.18k forks source link

Bug: `deno install` doesn't print package deprecation warnings #24013

Open marvinhagemeister opened 1 month ago

marvinhagemeister commented 1 month ago

Installing npm packages via deno install doesn't print any package deprecation messages.

Steps to reproduce

  1. Run npm init -y
  2. Run npm i uuid@3.4.0 -> prints deprecation messages
  3. Run rm -rf node_modules/
  4. Run deno i -> no deprecation messages

Output

npm:

$l npm i uuid@3.4.0
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

added 1 package, and audited 2 packages in 579ms

found 0 vulnerabilities

Deno:

$ DENO_FUTURE=1 deno i
⚠️ `deno install` behavior will change in Deno 2. To preserve the current behavior use the `-g` or `--global` flag. 

Version: Deno 1.43.6

bartlomieju commented 2 weeks ago

Some more info: