Skip to content

feat(cli): add outdated command for checking package updates - #262

Merged
fengmk2 merged 1 commit into
mainfrom
10-24-feat_pm_add_outdated_commands
Oct 28, 2025
Merged

feat(cli): add outdated command for checking package updates#262
fengmk2 merged 1 commit into
mainfrom
10-24-feat_pm_add_outdated_commands

Conversation

@fengmk2

@fengmk2fengmk2 commented Oct 28, 2025

Copy link
Copy Markdown
Member

TL;DR

Added a new vite outdated command to check for outdated packages, with support for all package managers (pnpm, npm, yarn).

What changed?

  • Added a new outdated command to the Vite CLI that checks for outdated packages
  • Implemented package manager-specific command resolution for pnpm, npm, and yarn
  • Added support for various output formats (table, list, JSON)
  • Implemented workspace filtering with --filter flag
  • Added dependency type filtering options (--prod, --dev, --no-optional)
  • Added support for global package checking with -g flag
  • Implemented special handling for yarn@2+ which uses upgrade-interactive
  • Added appropriate warnings when flags aren't supported by specific package managers

How to test?

# Basic usage
vite outdated
# Check specific packages
vite outdated react lodash
# Output formats
vite outdated --format json
vite outdated --format list
vite outdated --long
# Workspace operations
vite outdated --filter app
vite outdated -r
# Dependency type filtering (pnpm-specific)
vite outdated --prod
vite outdated --dev
vite outdated --no-optional
# Global packages
vite outdated -g

Why make this change?

This command simplifies dependency management by providing a unified interface for checking outdated packages across all package managers. It automatically adapts to the detected package manager (pnpm/npm/yarn) and translates flags appropriately, making it easier for developers to maintain up-to-date dependencies without needing to remember different syntaxes for each package manager.

@fengmk2fengmk2 changed the title feat(pm): add outdated commandsfeat(cli): add outdated commandsOct 28, 2025
@fengmk2Graphite App

fengmk2 commented Oct 28, 2025

Copy link
Copy Markdown
MemberAuthor

@fengmk2fengmk2 changed the title feat(cli): add outdated commandsfeat(pm): add outdated command for checking package updatesOct 28, 2025
@fengmk2fengmk2 changed the title feat(pm): add outdated command for checking package updatesfeat(cli): add outdated command for checking package updatesOct 28, 2025
@fengmk2
fengmk2force-pushed the 10-24-feat_pm_add_outdated_commands branch from e45b398 to 87e0cdcCompareOctober 28, 2025 04:38
@fengmk2
fengmk2force-pushed the 10-24-feat_pm_add_dedupe_commands branch from 1ed0db7 to 6ee1da6CompareOctober 28, 2025 04:38
@fengmk2
fengmk2force-pushed the 10-24-feat_pm_add_outdated_commands branch from 87e0cdc to 17e4fd0CompareOctober 28, 2025 04:54
@fengmk2
fengmk2force-pushed the 10-24-feat_pm_add_dedupe_commands branch 2 times, most recently from fc6dcc9 to f0e4bb4CompareOctober 28, 2025 06:36
@fengmk2
fengmk2force-pushed the 10-24-feat_pm_add_outdated_commands branch 4 times, most recently from b8e90fc to 520eaf1CompareOctober 28, 2025 07:38
Comment threadcrates/vite_install/src/commands/outdated.rs
@fengmk2
fengmk2 marked this pull request as ready for review October 28, 2025 07:40
@fengmk2fengmk2 self-assigned this Oct 28, 2025
@fengmk2
fengmk2 changed the base branch from 10-24-feat_pm_add_dedupe_commands to graphite-base/262October 28, 2025 08:23
@fengmk2
fengmk2force-pushed the 10-24-feat_pm_add_outdated_commands branch from 520eaf1 to 6dc7356CompareOctober 28, 2025 09:56
@fengmk2
fengmk2 changed the base branch from graphite-base/262 to 10-24-feat_pm_add_dedupe_commandsOctober 28, 2025 09:57
@fengmk2
fengmk2 changed the base branch from 10-24-feat_pm_add_dedupe_commands to graphite-base/262October 28, 2025 10:01
@fengmk2
fengmk2 changed the base branch from graphite-base/262 to mainOctober 28, 2025 10:02
@fengmk2
fengmk2force-pushed the 10-24-feat_pm_add_outdated_commands branch from 6dc7356 to 79e9e40CompareOctober 28, 2025 10:02
@fengmk2
fengmk2force-pushed the 10-24-feat_pm_add_outdated_commands branch from 79e9e40 to 16ef856CompareOctober 28, 2025 10:03
@fengmk2
fengmk2 merged commit 08a11f1 into mainOct 28, 2025
8 of 10 checks passed
@fengmk2Graphite App

Copy link
Copy Markdown
MemberAuthor

Merge activity

@fengmk2
fengmk2 deleted the 10-24-feat_pm_add_outdated_commands branch October 28, 2025 10:10
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@fengmk2@wan9chi