Packages

@sentry/cli

3.8.2 · 22 Oct 2026FSL-1.1-MIT24.7M / weekRepositoryHomepagenpmAtom feed

Upgrading @sentry/cli from 2.22.1 to 2.58.6

86 releases in betweennotes for 78

Other targets from 2.22.1Latest3.8.2
16+
changes to make
0
advisories fixed
71+
new
60+
fixes

Counted from 78 of 86 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • breaking2.58.0
  • breaking2.53.0
  • breaking2.50.1
  • breaking2.27.0
  • deprecated2.58.1
  • deprecated2.58.0
  • deprecated2.58.0
  • deprecated2.58.0
  • deprecated2.57.0
  • deprecated2.57.0

Release by release

  1. 2.58.5 – 2.58.62 releases, no release note

  2. 2.58.4

    12 Dec 20251 fix
    • fixed

      Use node directly in the postinstall script, instead of using npm run (#3030). This change ensures the postinstall script remains compatible with package managers other than npm.

  3. 2.58.3

    10 Dec 20252 new · 1 fix
    • new

      For the sentry-cli build upload command, we now only auto-detect Git metadata when we detect we are running in a CI environment, unless the user manually overrides this behavior (#2974). This change prevents local development builds from triggiering GitHub status checks for size analysis.

    • new

      The sentry-cli build upload command now automatically detects the correct branch or tag reference in non-PR GitHub Actions workflows (#2976). Previously, --head-ref was only auto-detected for pull request workflows. Now it works for push, release, and other workflow types by using the GITHUB_REF_NAME environment variable.

    • fixed

      Fixed a bug where the sentry-cli sourcemaps inject command could inject JavaScript code into certain incorrectly formatted source map files, corrupting their JSON structure (#3003).

  4. 2.58.2

    12 Nov 20251 new · 1 fix
    • new

      Added validation for the sentry-cli build upload command's --head-sha and --base-sha arguments (#2945). The CLI now validates that these are valid SHA1 sums. Passing an empty string is also allowed; this prevents the default values from being used, causing the values to instead be unset.

    • fixed

      Fixed a bug where providing empty-string values for the sentry-cli build upload command's --vcs-provider, --head-repo-name, --head-ref, --base-ref, and --base-repo-name arguments resulted in 400 errors (#2946). Now, setting these to empty strings instead explicitly clears the default value we would set otherwise, as expected.

  5. 2.58.1

    11 Nov 20251 new · 2 fixes
    • new

      The sentry-cli debug-files bundle-jvm no longer makes any HTTP requests to Sentry, meaning auth tokens are no longer needed, and the command can be run offline (#2926).

    • fixed

      Skip setting base_sha and base_ref when they equal head_sha during auto-inference, since comparing a commit to itself provides no meaningful baseline (#2924).

    • fixed

      Improved error message when supplying a non-existent organization to sentry-cli sourcemaps upload. The error now correctly indicates the organization doesn't exist, rather than incorrectly suggesting the Sentry server lacks artifact bundle support (#2931).

  6. 2.58.0

    6 Nov 20252 new · 1 fix
    • new

      Added CLI version metadata to build upload archives (#2890).

    • new

      Slightly sped up the sentry-cli sourcemaps upload command by eliminating an HTTP request to the Sentry server, which was not required in most cases (#2913).

    • fixed

      Fixed autofilled git base metadata (--base-ref, --base-sha) when using the build upload subcommand in git repos. Previously this worked only in the context of GitHub workflows (#2897, #2898).

  7. 2.57.0

    22 Oct 20251 new · 1 fix
    • new

      (JS API) Add projects field to SentryCliUploadSourceMapsOptions

    • fixed

      Fixed a bug where some log messages would not show up in CI environments or when redirecting stderr to a file (#2830). Specifically, this bug was affecting any subcommand that uses a progress bar, such as sentry-cli debug-files bundle-jvm and sentry-cli sourcemaps upload. Any stderr output during the progress bar was lost if stderr was redirected.

  8. 2.56.1

    10 Oct 20251 new · 1 fix
    • new

      Updated some outdated dependencies (#2816, #2818, and #2819)

    • fixed

      Fixed a bug with sourcemap injection

3 other lines we could not sort, mostly version bumps
  • Revert "feat(mobile-app): Reintroduce mobile-app feature gating (#2643)"

    2.53.0
  • Retry on cloudflare timeout

    2.53.0
  • No documented changes.

    2.25.3

118 internal lines (docs, tests, tooling) left out.