1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 16:49:18 -05:00
denoland-deno/tests
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
..
config chore: use @std prefix for internal module specifiers (#24543) 2024-07-25 10:26:54 +10:00
ffi fix(ext/ffi): return u64/i64 as bigints from nonblocking ffi calls (#26486) 2024-10-24 09:41:38 +05:30
integration feat: permission stack traces in ops (#26938) 2024-11-20 21:24:04 +00:00
napi chore: upgrade to rust 1.82 and LLVM 19 (#26615) 2024-11-01 16:13:02 +05:30
node_compat chore: temporarily disable dns tests for Node compat (#26915) 2024-11-18 19:27:44 +00:00
registry feat: subcommand to view and update outdated dependencies (#26942) 2024-11-20 15:22:15 -08:00
specs feat: subcommand to view and update outdated dependencies (#26942) 2024-11-20 15:22:15 -08:00
testdata feat: permission stack traces in ops (#26938) 2024-11-20 21:24:04 +00:00
unit feat(jupyter): Add Deno.jupyter.image API (#26284) 2024-11-16 15:13:50 +00:00
unit_node feat(ext/node): perf_hooks.monitorEventLoopDelay() (#26905) 2024-11-19 16:49:25 +05:30
util feat: subcommand to view and update outdated dependencies (#26942) 2024-11-20 15:22:15 -08:00
wpt feat(fetch): accept async iterables for body (#26882) 2024-11-15 15:54:28 +01:00
Cargo.toml refactor(ext/net): Use hickory dns instead of unmaintained trust-dns (#26741) 2024-11-06 15:49:32 -08:00
lib.rs chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
README.md chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00

Deno Integration Tests