1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/tests/registry/npm
Nathan Whitaker 56f31628f7
feat: subcommand to view and update outdated dependencies (#26942)
Closes #20487

Currently spelled

```
deno outdated
```
and
```
deno outdated --update
```

Works across package.json and deno.json, and in workspaces.

There's a bit of duplicated code, I'll refactor to reduce this in follow
ups

## Currently supported:
### Printing outdated deps (current output below which basically mimics
pnpm, but requesting feedback / suggestions)

```
deno outdated
```
![Screenshot 2024-11-19 at 2 01
56 PM](https://github.com/user-attachments/assets/51fea83a-181a-4082-b388-163313ce15e7)

### Updating deps

semver compatible:
```
deno outdated --update
```
latest:
```
deno outdated --latest
```
current output is basic, again would love suggestions
![Screenshot 2024-11-19 at 2 13
46 PM](https://github.com/user-attachments/assets/e4c4db87-cd67-4b74-9ea7-4bd80106d5e9)

#### Filters
```
deno outdated --update "@std/*"
deno outdated --update --latest "@std/* "!@std/fmt"
```
#### Update to specific versions
```
deno outdated --update @std/fmt@1.0.2 @std/cli@^1.0.3
```

### Include all workspace members
```
deno outdated --recursive
deno outdated --update --recursive
```

## Future work
- interactive update
- update deps in js/ts files
- better support for transitive deps

Known issues (to be fixed in follow ups):
- If no top level dependencies have changed, we won't update transitive
deps (even if they could be updated)
- Can't filter transitive deps, or update them to specific versions

## TODO (in this PR):
- ~~spec tests for filters~~
- ~~spec test for mixed workspace (have tested manually)~~
- tweak output
- suggestion when you try `deno update`

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-11-20 15:22:15 -08:00
..
@babel/parser chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
@denotest feat: subcommand to view and update outdated dependencies (#26942) 2024-11-20 15:22:15 -08:00
@isaacs/cliui chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
@ljharb/has-package-exports-patterns chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
@npmcli chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
@opentelemetry feat(runtime): remove public OTEL trace API (#26854) 2024-11-18 23:55:22 +00:00
@pkgjs/parseargs chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
@types feat(lsp): quick fix for @deno-types="npm:@types/*" (#25954) 2024-10-01 22:55:02 +01:00
@vue chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
abbrev chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
agent-base chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
aggregate-error chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
ajv chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
ajv-formats chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
ansi-regex chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
ansi-styles chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
asn1 chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
assertion-error chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
autoprefixer chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
balanced-match chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
bcrypt-pbkdf chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
brace-expansion chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
browserslist chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
buildcheck chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
cacache chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
camelcase chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
caniuse-lite chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
chai chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
chalk chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
check-error chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
chownr chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
clean-stack chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
cliui chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
color-convert chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
color-name chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
cowsay chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
cpu-features chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
cross-spawn chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
crypto-js chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
csstype feat(lsp): quick fix for @deno-types="npm:@types/*" (#25954) 2024-10-01 22:55:02 +01:00
debug chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
decamelize chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
deep-eql chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
define-properties chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
eastasianwidth chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
electron-to-chromium chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
emoji-regex chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
encoding chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
env-paths chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
err-code chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
escalade chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
estree-walker chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
exponential-backoff chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
fast-deep-equal chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
find-up chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
foreground-child chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
fraction.js chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
fs-extra chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
fs-minipass chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
fsevents chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
function-bind chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
get-caller-file chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
get-func-name chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
get-intrinsic chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
get-stdin chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
glob chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
globals chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
graceful-fs chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
has chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
has-flag chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
has-package-exports chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
has-property-descriptors chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
has-symbols chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
http-cache-semantics chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
http-proxy-agent chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
https-proxy-agent chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
iconv-lite chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
imurmurhash chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
indent-string chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
ip-address chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
is-fullwidth-code-point chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
is-lambda chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
isexe chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
jackspeak chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
js-tokens chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
jsbn chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
json-schema-traverse chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
jsonfile chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
locate-path chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
loose-envify chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
loupe chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
lru-cache chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
lz-string chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
magic-string chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
make-fetch-happen chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
minimatch chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
minipass chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
minipass-collect chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
minipass-fetch chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
minipass-flush chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
minipass-pipeline chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
minipass-sized chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
minizlib chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
mkdirp chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
ms chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
nan chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
nanoid chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
negotiator chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
node-gyp chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
node-releases chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
nopt chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
normalize-range chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
object-keys chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
p-limit chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
p-locate chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
p-map chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
p-try chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
package-json-from-dist chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
path-exists chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
path-key chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
path-scurry chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
pathval chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
picocolors chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
postcss chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
postcss-value-parser chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
preact chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
preact-render-to-string chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
pretty-format chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
proc-log chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
promise-retry chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
punycode chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
react chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
react-dom chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
require-directory chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
require-from-string chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
require-main-filename chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
retry chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
safer-buffer chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
scheduler chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
semver chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
set-blocking chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
shebang-command chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
shebang-regex chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
signal-exit chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
smart-buffer chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
socks chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
socks-proxy-agent chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
source-map chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
source-map-js chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
sourcemap-codec chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
sprintf-js chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
ssh2 chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
ssri chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
string-width chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
strip-ansi chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
strip-final-newline chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
supports-color chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
supports-esm chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
tar chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
tweetnacl chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
type-detect chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
type-fest chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
undici-types feat: TypeScript 5.6 and npm:@types/node@22 (#25614) 2024-09-14 11:58:47 +01:00
unique-filename chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
unique-slug chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
universalify chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
update-browserslist-db chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
uri-js chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
v8flags chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
vue chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
which chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
which-module chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
wrap-ansi chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
y18n chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
yallist chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
yargs chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
yargs-parser chore: update more registry.json files (#25615) 2024-09-13 15:27:20 +01:00
trim_registry_files.js feat: TypeScript 5.6 and npm:@types/node@22 (#25614) 2024-09-14 11:58:47 +01:00