mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
56f31628f7
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>
43 lines
1.5 KiB
Text
43 lines
1.5 KiB
Text
{
|
|
"version": "4",
|
|
"specifiers": {
|
|
"jsr:@denotest/add@1": "1.0.0",
|
|
"jsr:@denotest/multiple-exports@1": "1.0.0",
|
|
"jsr:@denotest/subtract@1": "1.0.0",
|
|
"npm:@denotest/bin@1": "1.0.0",
|
|
"npm:@denotest/breaking-change-between-versions@2": "2.0.0",
|
|
"npm:@denotest/has-patch-versions@0.2": "0.2.0"
|
|
},
|
|
"jsr": {
|
|
"@denotest/add@1.0.0": {
|
|
"integrity": "3b2e675c1ad7fba2a45bc251992e01aff08a3c974ac09079b11e6a5b95d4bfcb"
|
|
},
|
|
"@denotest/multiple-exports@1.0.0": {
|
|
"integrity": "efe9748a0c0939c7ac245fee04acc0c42bd7a61874ff71a360c4543e4f5f6b36"
|
|
},
|
|
"@denotest/subtract@1.0.0": {
|
|
"integrity": "e178a7101c073e93d9efa6833d5cbf83bc1bc8d509b7c2a5ecbf74265e917597"
|
|
}
|
|
},
|
|
"npm": {
|
|
"@denotest/bin@1.0.0": {
|
|
"integrity": "sha512-ZtrWnYYPIzw4a9H1uNeZRZRWuLCpHZZU/SllIyFLqcTLH/3zdRI8UH4Z1Kf+8N++bWGO3fg8Ev4vvS1LoLlidg=="
|
|
},
|
|
"@denotest/breaking-change-between-versions@2.0.0": {
|
|
"integrity": "sha512-3eQpPhhJYbSHaAmpgyVT8IM3+MkxcAQl90Uw8zmuTiFs64Wt3HGzSz74cwPlvfqqesRktm8fBZMmrtxVo3ENzw=="
|
|
},
|
|
"@denotest/has-patch-versions@0.2.0": {
|
|
"integrity": "sha512-7XIVGrBMyqnts5/wcc7dn7rVl4IWrCiGUT2GLDSLWnogOMIZBapJJLW9n8Leq1bDTJ3U6aDTEFKz9fVSOwZfLQ=="
|
|
}
|
|
},
|
|
"workspace": {
|
|
"dependencies": [
|
|
"jsr:@denotest/add@1",
|
|
"jsr:@denotest/multiple-exports@1",
|
|
"jsr:@denotest/subtract@1",
|
|
"npm:@denotest/bin@1",
|
|
"npm:@denotest/breaking-change-between-versions@2",
|
|
"npm:@denotest/has-patch-versions@0.2"
|
|
]
|
|
}
|
|
}
|