upgrade-dep

Upgrade a dependency in the Sentry JavaScript SDK. Use when upgrading packages, bumping versions, or fixing security vulnerabilities via dependency updates.

npx skills add https://github.com/getsentry/sentry-javascript --skill upgrade-dep

Dependency Upgrade

Only upgrade one package at a time.

Upgrade command

pnpm update -r --include-workspace-root --latest [package-name]

If the dependency is not defined in any package.json, run pnpm update -r <package-name> without --latest. It updates the transitive copies within their allowed ranges in pnpm-lock.yaml.

Avoid upgrading top-level dependencies (especially test dependencies) without asking the user first.

Ensure updated package.json files end with a newline.

OpenTelemetry constraint

STOP if upgrading any opentelemetry package would introduce forbidden versions:

  • 2.x.x (e.g., 2.0.0)
  • 0.2xx.x (e.g., 0.200.0, 0.201.0)

Verify before upgrading:

npm view <package-name>@<version> dependencies

E2E test dependencies

Do not upgrade the major version of a dependency in dev-packages/e2e-tests/test-applications/* if the test directory name pins a version (e.g., nestjs-8 must stay on NestJS 8).

Post-upgrade verification

pnpm install
pnpm run build:dev
pnpm run dedupe-deps:fix
pnpm run fix

Useful commands

Run them at the repo root. Without -r, pnpm list, pnpm why and pnpm outdated only check the root package.json.

pnpm list -r --depth=0       # Check the direct dependencies of all workspace packages
pnpm why -r [package-name]   # Find why a package is installed
npm view <pkg> dependencies  # Inspect package dependencies
npm view <pkg> versions      # Check available versions
pnpm outdated -r             # Check outdated dependencies
pnpm audit                   # Check for security vulnerabilities

More skills from sentry

add-ai-integration
sentry
Add a new AI provider integration to the Sentry JavaScript SDK. Use when contributing a new AI instrumentation (OpenAI, Anthropic, Vercel AI, LangChain, etc.)…
add-cdn-bundle
sentry
Create a new CDN bundle for the browser package with specified features
agent-prompt
sentry
Reference guide for writing effective agent prompts and skills. Use when creating new skills, reviewing prompt quality, or understanding Warden's prompt…
agents-md
sentry
This skill should be used when the user asks to "create AGENTS.md", "update AGENTS.md", "maintain agent docs", "set up CLAUDE.md", or needs to keep agent…
agents-md
sentry
Create and maintain minimal, high-signal agent documentation under 60 lines. Enforces research-backed best practices for agent-facing docs; instruction quality degrades with length Requires three core sections: Package Manager, File-Scoped Commands (per-file test/lint/typecheck), and Commit Attribution with agent identity Analyzes project structure (lock files, linter configs, CI commands, monorepo indicators) to determine what belongs in the file Uses headers and bullets only; references...
agents-md
sentry
This skill should be used when the user asks to "create AGENTS.md", "update AGENTS.md", "maintain agent docs", "set up CLAUDE.md", or needs to keep agent…
ai-sdk
sentry
ai-sdk — an installable skill for AI agents, published by getsentry/webvitals.com.
analytics
sentry
Instrument and discover analytics events in Sentry's frontend UI. Use when adding tracking to buttons, pages, modals, or custom interactions, when defining new…