github getsentry/sentry-cli 2.0.0

latest releases: 2.32.1, 2.32.0, 2.31.2...
2 years ago

This is the first, long-overdue major release in over 5 years of sentry-cli's life.
Some APIs were removed, some reworked, some newly added.

Most of introduced API changes are backward compatible through hidden aliases, so there is no immediate need for users developing 3rd party tools to make all the changes immediatelly.
We do however encourage everyone to do it sooner or later, as deprecated items will be removed in the next major releases.

Breaking changes are denotated with (breaking) tag, and appropriate required changes are provided for each entry.

New APIs

  • feat: Add debug-files command, which is a joined functionality of difutil and upload-dif commands.
  • feat: Add deploys command, which was extracted from releases deploys subcommand.
  • feat: Add files command, which was extracted from releases files subcommand.
  • feat: Add sourcemaps upload command, which was extracted from releases files upload-sourcemaps subcommand.
  • feat: Add sourcemaps resolve command.
  • feat: Allow for specifying global --header argument, which supports multiple occurences, to configure outgoing requests
  • feat: Implement global --quiet/--silent flags to allow silencing stdout output (This flag is currently implemented only for selected subcommands)

Removed APIs

  • ref: Remove difutil id subcommand (use debug-files check instead) (breaking)
  • ref: Remove monitors command (support for this feature has been dropped) (breaking)
  • ref: Remove react-native codepush subcommand (use react-native appcenter instead) (breaking)
  • ref: Remove react-native-gradle and react-native-xcode commands (use react-native gradle and react-native xcode instead) (breaking)
  • ref: Remove upload-dsym command (use debug-files upload instead) (breaking)
  • ref: Remove deprecated and hidden flags from commands (remove listed flags usage) (breaking)
    • react-native xcode --verbose
    • releases new --ref
    • releases list --no-abbrev
    • releases upload-sourcemaps --verbose
    • releases upload-sourcemaps --rewrite (it's a default behavior now)
    • upload-dif --upload-symbol-maps
  • ref: Remove bash-hook command (use 1.x if you still need the functionality; it will eventually be ported as a separate repository - https://github.com/getsentry/sentry-cli-bash-hook) (breaking)
  • ref: Remove crash_reporting related code and with_crash_reporting crate feature (no required changes) (breaking)
  • ref: Remove SENTRY_NO_PROGRESS_BAR env var in favor of SENTRYCLI_NO_PROGRESS_BAR (rename env variable) (breaking)

Breaking Changes

  • ref: Update minimal required node version to v12 (update node version) (breaking)
  • ref: Rename --header argument of releases files upload command to --file-header (rename flag) (breaking)
  • ref: Rename CUSTOM_HEADER to SENTRY_HEADER and defaults.custom_header to http.header (rename env variable or update config file) (breaking)
  • ref: Make ignore-empty for releases set-commits a default behavior and remove --ignore-empty flag (remove --ignore-empty usage) (breaking)

Various fixes & improvements

  • feat: Implement --quiet flag for releases upload-sourcemaps command
  • feat: Implement --quiet flag for difutil check command
  • ref: Make --auth-token a global argument
  • ref: Make all ProgressBar instances and logs always write to stderr
  • ref: Migrate error handling from failure to anyhow crate

Don't miss a new sentry-cli release

NewReleases is sending notifications on new releases.