温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/docs/pm/cli/outdated
点击访问原文链接

bun outdated - Bun

bun outdated - BunSkip to main contentBun home pageSearch...⌘KInstall BunSearch...NavigationPublishing & Analysisbun outdatedRuntimePackage ManagerBundlerTest RunnerGuidesReferenceBlogFeedbackdiv:first-child]:!hidden peer-[.is-custom]:[&>div:first-child]:sm:!hidden peer-[.is-custom]:[&>div:first-child]:md:!hidden peer-[.is-custom]:[&>div:first-child]:lg:!hidden peer-[.is-custom]:[&>div:first-child]:xl:!hidden">Core Commandsbun installbun addbun removebun updatebunxPublishing & Analysisbun publishbun outdatedbun whybun auditbun infoWorkspace ManagementWorkspacesCatalogsbun linkbun pmAdvanced Configurationbun patchbun --filterGlobal cacheIsolated installsLockfileLifecycle scriptsScopes and registriesOverrides and resolutionsSecurity Scanner API.npmrc supportOn this pageVersion InformationDependency FiltersWorkspace FiltersCatalog DependenciesCLI UsageGeneral OptionsOutput & LoggingDependency Scope & TargetLockfile & Package.jsonNetwork & RegistryCachingExecution BehaviorPublishing & Analysisbun outdatedCopy pagespan]:line-clamp-1 overflow-hidden group flex items-center py-0.5 gap-1 text-sm text-gray-950/50 dark:text-white/50 group-hover:text-gray-950/70 dark:group-hover:text-white/70 rounded-none rounded-r-xl border px-3 border-gray-200 aspect-square dark:border-white/[0.07] bg-background-light dark:bg-background-dark hover:bg-gray-600/5 dark:hover:bg-gray-200/5" aria-label="More actions" type="button" id="radix-_R_2shjinpfd9rqaabsnpfdb_" aria-haspopup="menu" aria-expanded="false" data-state="closed">*]:[overflow-wrap:anywhere]">Check for outdated dependencies

Copy pagespan]:line-clamp-1 overflow-hidden group flex items-center py-0.5 gap-1 text-sm text-gray-950/50 dark:text-white/50 group-hover:text-gray-950/70 dark:group-hover:text-white/70 rounded-none rounded-r-xl border px-3 border-gray-200 aspect-square dark:border-white/[0.07] bg-background-light dark:bg-background-dark hover:bg-gray-600/5 dark:hover:bg-gray-200/5" aria-label="More actions" type="button" id="radix-_R_5hjinpfd9rqaabsnpfdb_" aria-haspopup="menu" aria-expanded="false" data-state="closed">Use bun outdated to check for outdated dependencies in your project. This command displays a table of dependencies that have newer versions available. terminalCopybun outdated Copy| Package | Current | Update | Latest | | ------------------------------ | ------- | --------- | ---------- | | @sinclair/typebox | 0.34.15 | 0.34.16 | 0.34.16 | | @types/bun (dev) | 1.3.0 | 1.3.3 | 1.3.3 | | eslint (dev) | 8.57.1 | 8.57.1 | 9.20.0 | | eslint-plugin-security (dev) | 2.1.1 | 2.1.1 | 3.0.1 | | eslint-plugin-sonarjs (dev) | 0.23.0 | 0.23.0 | 3.0.1 | | expect-type (dev) | 0.16.0 | 0.16.0 | 1.1.0 | | prettier (dev) | 3.4.2 | 3.5.0 | 3.5.0 | | tsup (dev) | 8.3.5 | 8.3.6 | 8.3.6 | | typescript (dev) | 5.7.2 | 5.7.3 | 5.7.3 | ​Version Information The output table shows three version columns: Current: The version currently installed Update: The latest version that satisfies your package.json version range Latest: The latest version published to the registry ​Dependency Filters bun outdated supports searching for outdated dependencies by package names and glob patterns. To check if specific dependencies are outdated, pass the package names as positional arguments: terminalCopybun outdated eslint-plugin-security eslint-plugin-sonarjs Copy| Package | Current | Update | Latest | | ------------------------------ | ------- | ------ | --------- | | eslint-plugin-security (dev) | 2.1.1 | 2.1.1 | 3.0.1 | | eslint-plugin-sonarjs (dev) | 0.23.0 | 0.23.0 | 3.0.1 | You can also pass glob patterns to check for outdated packages: terminalCopybun outdated 'eslint*' Copy| Package | Current | Update | Latest | | ------------------------------ | ------- | ------ | ---------- | | eslint (dev) | 8.57.1 | 8.57.1 | 9.20.0 | | eslint-plugin-security (dev) | 2.1.1 | 2.1.1 | 3.0.1 | | eslint-plugin-sonarjs (dev) | 0.23.0 | 0.23.0 | 3.0.1 | For example, to check for outdated @types/* packages: terminalCopybun outdated '@types/*' Copy| Package | Current | Update | Latest | | ------------------ | ------- | ------ | ------ | | @types/bun (dev) | 1.3.0 | 1.3.3 | 1.3.3 | Or to exclude all @types/* packages: terminalCopybun outdated '!@types/*' Copy| Package | Current | Update | Latest | | ------------------------------ | ------- | --------- | ---------- | | @sinclair/typebox | 0.34.15 | 0.34.16 | 0.34.16 | | eslint (dev) | 8.57.1 | 8.57.1 | 9.20.0 | | eslint-plugin-security (dev) | 2.1.1 | 2.1.1 | 3.0.1 | | eslint-plugin-sonarjs (dev) | 0.23.0 | 0.23.0 | 3.0.1 | | expect-type (dev) | 0.16.0 | 0.16.0 | 1.1.0 | | prettier (dev) | 3.4.2 | 3.5.0 | 3.5.0 | | tsup (dev) | 8.3.5 | 8.3.6 | 8.3.6 | | typescript (dev) | 5.7.2 | 5.7.3 | 5.7.3 | ​Workspace Filters Use the --filter flag to check for outdated dependencies in a different workspace package: terminalCopybun outdated --filter='@monorepo/types' Copy| Package | Current | Update | Latest | | ------------------ | ------- | ------ | ------ | | tsup (dev) | 8.3.5 | 8.3.6 | 8.3.6 | | typescript (dev) | 5.7.2 | 5.7.3 | 5.7.3 | You can pass multiple --filter flags to check multiple workspaces: terminalCopybun outdated --filter @monorepo/types --filter @monorepo/cli Copy| Package | Current | Update | Latest | | ------------------------------ | ------- | ------ | ---------- | | eslint (dev) | 8.57.1 | 8.57.1 | 9.20.0 | | eslint-plugin-security (dev) | 2.1.1 | 2.1.1 | 3.0.1 | | eslint-plugin-sonarjs (dev) | 0.23.0 | 0.23.0 | 3.0.1 | | expect-type (dev) | 0.16.0 | 0.16.0 | 1.1.0 | | tsup (dev) | 8.3.5 | 8.3.6 | 8.3.6 | | typescript (dev) | 5.7.2 | 5.7.3 | 5.7.3 | You can also pass glob patterns to filter by workspace names: terminalCopybun outdated --filter='@monorepo/{types,cli}' Copy| Package | Current | Update | Latest | | ------------------------------ | ------- | ------ | ---------- | | eslint (dev) | 8.57.1 | 8.57.1 | 9.20.0 | | eslint-plugin-security (dev) | 2.1.1 | 2.1.1 | 3.0.1 | | eslint-plugin-sonarjs (dev) | 0.23.0 | 0.23.0 | 3.0.1 | | expect-type (dev) | 0.16.0 | 0.16.0 | 1.1.0 | | tsup (dev) | 8.3.5 | 8.3.6 | 8.3.6 | | typescript (dev) | 5.7.2 | 5.7.3 | 5.7.3 | ​Catalog Dependencies bun outdated supports checking catalog dependencies defined inpackage.json: terminalCopybun outdated -r Copy┌────────────────────┬─────────┬─────────┬─────────┬────────────────────────────────┐ │ Package │ Current │ Update │ Latest │ Workspace │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ body-parser │ 1.19.0 │ 1.19.0 │ 2.2.0 │ @test/shared │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ cors │ 2.8.0 │ 2.8.0 │ 2.8.5 │ @test/shared │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ chalk │ 4.0.0 │ 4.0.0 │ 5.6.2 │ @test/utils │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ uuid │ 8.0.0 │ 8.0.0 │ 13.0.0 │ @test/utils │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ axios │ 0.21.0 │ 0.21.0 │ 1.12.2 │ catalog (@test/app) │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ lodash │ 4.17.15 │ 4.17.15 │ 4.17.21 │ catalog (@test/app, @test/app) │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ react │ 17.0.0 │ 17.0.0 │ 19.1.1 │ catalog (@test/app) │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ react-dom │ 17.0.0 │ 17.0.0 │ 19.1.1 │ catalog (@test/app) │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ express │ 4.17.0 │ 4.17.0 │ 5.1.0 │ catalog (@test/shared) │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ moment │ 2.24.0 │ 2.24.0 │ 2.30.1 │ catalog (@test/utils) │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ @types/node (dev) │ 14.0.0 │ 14.0.0 │ 24.5.2 │ @test/shared │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ @types/react (dev) │ 17.0.0 │ 17.0.0 │ 19.1.15 │ catalog:testing (@test/app) │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ eslint (dev) │ 7.0.0 │ 7.0.0 │ 9.36.0 │ catalog:testing (@test/app) │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ typescript (dev) │ 4.9.5 │ 4.9.5 │ 5.9.2 │ catalog:build (@test/app) │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ jest (dev) │ 26.0.0 │ 26.0.0 │ 30.2.0 │ catalog:testing (@test/shared) │ ├────────────────────┼─────────┼─────────┼─────────┼────────────────────────────────┤ │ prettier (dev) │ 2.0.0 │ 2.0.0 │ 3.6.2 │ catalog:build (@test/utils) │ └────────────────────┴─────────┴─────────┴─────────┴────────────────────────────────┘ ​CLI Usage terminalCopybun outdated filter> ​General Options ​-c, --configstringp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Specify path to config file (bunfig.toml) ​--cwdstringp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Set a specific cwd ​-h, --helpbooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Print this help menu ​-F, --filterstringp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Display outdated dependencies for each matching workspace ​Output & Logging ​--silentbooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Don’t log anything ​--verbosebooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Excessively verbose logging ​--no-progressbooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Disable the progress bar ​--no-summarybooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Don’t print a summary ​Dependency Scope & Target ​-p, --productionbooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Don’t install devDependencies ​--omitstringp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Exclude dev, optional, or peer dependencies from install ​-g, --globalbooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Install globally ​Lockfile & Package.json ​-y, --yarnbooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Write a yarn.lock file (yarn v1) ​--no-savebooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Don’t update package.json or save a lockfile ​--savebooleandefault:"true"p:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Save to package.json (true by default) ​--frozen-lockfilebooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Disallow changes to lockfile ​--save-text-lockfilebooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Save a text-based lockfile ​--lockfile-onlybooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Generate a lockfile without installing dependencies ​--trustbooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Add to trustedDependencies in the project’s package.json and install the package(s) ​Network & Registry ​--castringp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Provide a Certificate Authority signing certificate ​--cafilestringp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Same as —ca, but as a file path to the certificate ​--registrystringp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Use a specific registry by default, overriding .npmrc, bunfig.toml and environment variables ​--network-concurrencynumberdefault:"48"p:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Maximum number of concurrent network requests (default 48) ​Caching ​--cache-dirstringp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Store & load cached data from a specific directory path ​--no-cachebooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Ignore manifest cache entirely ​Execution Behavior ​--dry-runbooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Don’t install anything ​-f, --forcebooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Always request the latest versions from the registry & reinstall all dependencies ​--no-verifybooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Skip verifying integrity of newly downloaded packages ​--ignore-scriptsbooleanp:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Skip lifecycle scripts in the project’s package.json (dependency scripts are never run) ​--backendstringdefault:"clonefile"p:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Platform-specific optimizations for installing dependencies. Possible values: clonefile (default), hardlink, symlink, copyfile ​--concurrent-scriptsnumberdefault:"5"p:first-child]:mt-0 [&_.prose>p:last-child]:mb-0" data-component-part="field-content">Maximum number of concurrent jobs for lifecycle scripts (default 5)

Was this page helpful?

YesNoSuggest editsRaise issuebun publishPreviousbun whyNext⌘IxgithubdiscordyoutubePowered by

智能索引记录