chore(deps): update CLI to v3.0.0 #245
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps scripts/update-cli.ps1 from 2.19.2 to 3.0.0.
Auto-generated by a dependency updater.
Changelog
3.0.0
New Sentry Support Policy
sentry-cli3.0.0 and above only officially supports Sentry SaaS and Sentry self-hosted versions 25.11.1 and higher. While many Sentry CLI features may, in practice, continue working with some older Sentry versions, continued support for Sentry versions older than 25.11.1 is not guaranteed. Changes which break support for Sentry versions below 25.11.1 may occur in minor or patch releases.New Versioning Policy
Sentry CLI now defines a semantic versioning policy. We did not explicitly define a versioning policy before, but the new versioning policy contains some notable changes versus the previous implicit policy we had been following. The main change is that dropping support for self-hosted Sentry versions now only requires a minor version bump, although such changes will be clearly communicated in the changelog.
Important
Self-hosted users: We strongly recommend pinning your Sentry CLI version, since Sentry CLI may drop support for your self-hosted Sentry version in any future minor release. Always check the changelog before upgrading Sentry CLI.
Breaking Changes
sentry-cli files ...andsentry-cli releases files ...subcommands (#2956). These commands provided functionality for managing release files, a feature that has been deprecated in Sentry. Users still usingsentry-cli files uploadto upload source maps should migrate tosentry-cli sourcemaps upload.sentry-cli sourcemaps explaincommand (#2947). The command had been deprecated for some time, since Sentry now has a better in-product debugging flow for source map problems via the "Unminify Code" button, which is displayed on any JavaScript issues which could not be unminified.sentry-cli send-metric ...subcommands (#3006). These commands have been deprecated, and the data they send is no longer accepted by Sentry.--api-keyCLI flagSENTRY_API_KEYenvironment variableapi_keyconfiguration file fieldapiKeyoption in the JavaScript APIupload-proguardsubcommand's--app-id,--version,--version-code,--android-manifest, and--platformarguments (#2876, #2940, #2948). Users using these arguments should stop using them, as they are unnecessary. The information passed to these arguments is no longer visible in Sentry.--startedargument from thesentry-cli releases finalizecommand (#2972). This argument is a no-op, so any users using it should simply stop using it.--use-artifact-bundleflag fromsentry-cli sourcemaps upload(#3002). The flag was a no-op that only emitted a deprecation warning.Node.js Wrapper Breakages
The following changes only apply when using
sentry-clivia the npm packagesentry/cli:The
SentryCli.executemethod'sliveparameter now only takes boolean values (#2971). Settinglivetotruenow behaves like'rejectOnError'did previously, with a zero exit status resolving the returned promise with"success (live mode)"and a non-zero status rejecting the promise with an error message.The
optionparameter toReleases.uploadSourceMapsno longer takes aliveproperty (#2971). We now always execute the command withliveset totrue.Removed the
apiKeyoption fromSentryCliOptions(#2935). If you are usingapiKey, you need to generate and use an Auth Token via theauthTokenoption, instead.Removed the
useArtifactBundleoption fromSentryCliUploadSourceMapsOptions(#3002). This deprecated option was a no-op that users should simply stop passing.Drop support for Node.js <18. The minimum required Node.js version is now 18.0.0 (#2985).
The type export
SentryCliReleaseshas been removed.The JavaScript wrapper now uses named exports instead of default exports (#2989). You need to update your imports:
For ESM imports:
Improvements
sentry-cli upload-proguardcommand now uses chunked uploading by default (#2918). Users who previously set theSENTRY_EXPERIMENTAL_PROGUARD_CHUNK_UPLOADenvironment variable to opt into this behavior no longer need to set the variable.debugIdfield, per the TC39 Debug ID proposal (#3005). This change affects thesentry-cli sourcemaps injectcommand and, unless--no-rewriteis passed, thesentry-cli sourcemaps uploadcommand. Sentry CLI can still read thedebug_idfield, but whenever the CLI writes or rewrites a source map, we always usedebugId.sentry-cli build uploadcommand now automatically tracks Sentry plugin versions from theSENTRY_PIPELINEenvironment variable (#2994). WhenSENTRY_PIPELINEcontains a recognized Sentry plugin (e.g.,sentry-gradle-plugin/4.12.0orsentry-fastlane-plugin/1.2.3), the plugin version is written to the.sentry-cli-metadata.txtfile in uploaded build archives, enabling the backend to store metadata for size analysis and build distribution tracking.Fixes
2.58.4
Fixes
npm run(#3030). This change ensures the postinstall script remains compatible with package managers other thannpm.2.58.3
Improvements
sentry-cli build uploadcommand, 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.--force-git-metadataand--no-git-metadata, which force-enable and force-disable automatic Git data collection, respectively, overriding the default behavior.sentry-cli build uploadcommand now automatically detects the correct branch or tag reference in non-PR GitHub Actions workflows (#2976). Previously,--head-refwas only auto-detected for pull request workflows. Now it works for push, release, and other workflow types by using theGITHUB_REF_NAMEenvironment variable.Fixes
sentry-cli sourcemaps injectcommand could inject JavaScript code into certain incorrectly formatted source map files, corrupting their JSON structure (#3003).2.58.2
Improvements
sentry-cli build uploadcommand's--head-shaand--base-shaarguments (#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.Fixes
sentry-cli build uploadcommand's--vcs-provider,--head-repo-name,--head-ref,--base-ref, and--base-repo-namearguments resulted in 400 errors (#2946). Now, setting these to empty strings instead explicitly clears the default value we would set otherwise, as expected.2.58.1
Deprecations
Improvements
sentry-cli debug-files bundle-jvmno longer makes any HTTP requests to Sentry, meaning auth tokens are no longer needed, and the command can be run offline (#2926).Fixes
base_shaandbase_refwhen they equalhead_shaduring auto-inference, since comparing a commit to itself provides no meaningful baseline (#2924).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).2.58.0
New Features
sentry-cli build uploadcommands (#2899, #2905). At the time of this release, build uploads are still in closed beta on the server side, so most customers cannot use this functionality quite yet.Deprecations
upload-proguardsubcommand's--platformflag (#2863). This flag was a no-op for some time, so we will remove it in the next major.upload-proguardsubcommand's--android-manifestflag (#2891). This flag was a no-op for some time, so we will remove it in the next major.sentry-cli sourcemaps uploadcommand's--no-dedupeflag (#2913). The flag was no longer relevant for sourcemap uploads to modern Sentry servers and was made a no-op.Fixes
--base-ref,--base-sha) when using thebuild uploadsubcommand in git repos. Previously this worked only in the context of GitHub workflows (#2897, #2898).Performance
sentry-cli sourcemaps uploadcommand by eliminating an HTTP request to the Sentry server, which was not required in most cases (#2913).Internal changes
2.57.0
New Features
projectsfield toSentryCliUploadSourceMapsOptions(#2856)Deprecations
upload-proguardsubcommand's--app-id,--version, and--version-codeflags (#2852), as we plan to remove these flags in Sentry CLI 3.x. Users should simply stop using the flags; the values specified there have never had an effect on deobfuscation, and are no longer visible in Sentry.Fixes
sentry-cli debug-files bundle-jvmandsentry-cli sourcemaps upload. Any stderr output during the progress bar was lost if stderr was redirected.2.56.1
Deprecations
Fixes & improvements
2.56.0
Various fixes & improvements
SENTRY_RELEASEenvironment variable (#2807) by szokeasaurusrex2.55.0
Various fixes & improvements
2.54.0
Various fixes & improvements
2.53.0
Various fixes & improvements
Changes from 2.53.0-alpha
2.53.0-alpha reintroduced the
build(previously namedmobile-app) commands. 2.53.0 is the first stable release to reintroduce them.Please note, the
buildcommands are still experimental, and are therefore subject to breaking changes, including removal, in any release, without notice.2.53.0-alpha
This release reintroduces the
build(previously namedmobile-app) commands.Various fixes & improvements
2.52.0
Various fixes & improvements
dart-symbol-map uploadcommand (#2691) by buenaflorcollect(#2705) by szokeasaurusrex--no-upload(#2693) by P1n3appl32.51.1
Various fixes & improvements
logscommand as beta (#2690) by szokeasaurusrex2.51.0
Logs command
This release introduces a new
sentry-cli logs listcommand, which lists your Sentry logs. For more details, seesentry-cli logs list --help.Please note: if you receive a
403error when using the new command, you may need to generate a new auth token with different permissions. You can do this by navigating to Settings → Developer Settings → Personal Tokens in Sentry. On the Personal Tokens page, generate a token withorg:readscope, and pass this to the command using--auth-tokenor by setting theSENTRY_AUTH_TOKENenvironment variable.Various fixes & improvements
releases files upload-sourcemaps(#2676) by szokeasaurusrex2.50.2
This change removes the
mobile-app uploadexperimental feature which was introduced in 2.50.1.2.50.1
Various fixes & improvements
New experimental feature
This release introduces the new experimental
mobile-app uploadsubcommand. This command is experimental, and therefore subject to changes, including breaking changes and/or removal, in any release. The command might not work as expected.2.50.0
Various fixes & improvements
rejectOnErrorin publicexecutetype declarations (#2628) by Lms242.49.0
Various fixes & improvements
liveoption type forreleases.uploadSourceMaps(#2627) by Lms242.48.0
Various fixes & improvements
live: 'rejectOnError'execution mode toexecutemethod (#2605) by Lms24Build-time changes
2.47.1
No user-facing changes.
2.47.0
Various fixes & improvements
mobile-appcommand from release builds (#2582) by szokeasaurusrex2.46.0
Various fixes & improvements
react-native appcenteras deprecated (#2522) by chromynpmpackage on Android (#2524) by szokeasaurusrex--startedflag (#2515) by szokeasaurusrexorig_pathfor bundle sources output file name (#2514) by szokeasaurusrexfilessubcommands as deprecated. (#2512) by Swatinem2.45.0
New feature
sentry-cli sourcemaps uploadcommand, like so:Various fixes & improvements
fixup_js_file_end(#2475) by szokeasaurusrexLegacyUploadContextfor legacy uploads (#2494) by szokeasaurusrex2.44.0
Various fixes & improvements
2.43.1
Various fixes & improvements
tokioto1.44.2(#2474) by szokeasaurusrex2.43.0
This release explicitly deprecates the
sentry-cli debug-files uploadcommand's--info-plistargument, since the argument does nothing. If you are using the--info-plistargument, you should stop using it.Various fixes & improvements
xcodebuild(#2443) by szokeasaurusrex2.42.5
This is a re-release of 2.45.5-alpha as a stable release. There are no code changes from 2.45.5-alpha, since the Windows ARM build for that version was published successfully.
2.42.5-alpha
This release adds a binary for Windows on ARM.
We are releasing this as an alpha to test that the new Windows ARM build is published to NPM correctly.
Various fixes & improvements
npm(#2436) by szokeasaurusrexis_homebrew_install(#2434) by szokeasaurusrexset_executable_mode(#2433) by szokeasaurusrexusernamewithwhoami(#2432) by szokeasaurusrexwinapidependency (#2431) by szokeasaurusrex-D warnings(#2425) by szokeasaurusrexactions-rs(#2424) by szokeasaurusrexzipdependency (#2421) by szokeasaurusrex2.42.4
Various fixes & improvements
2.42.3
Various fixes & improvements
2.42.2
Various fixes & improvements
semver5.*dependencies (#2399) by szokeasaurusrexsemver6.*(#2400) by szokeasaurusrexsemver^7.*dependencies (#2398) by szokeasaurusrexcross-spawn7.0.X(#2396) by szokeasaurusrexcross-spawn^6.0.5(#2395) by szokeasaurusrex2.42.1
This release is a re-release of 2.42.0. There are no code changes to the CLI. We are performing this re-release because 2.42.0 failed to publish to Docker Hub.
Various fixes & improvements
2.42.0
With this release, we now build and publish multi-architecture (arm64 and aarch64) Docker images for Sentry CLI.
Various fixes & improvements
--use-artifact-bundleoption (#2349) by szokeasaurusrexuseArtifactBundleJS option (#2348) by szokeasaurusrexNon-user-facing changes
docker(#2390) by szokeasaurusrexurlcrate (#2379) by szokeasaurusrexunnecessary_wrapsforadd_debug_id_references(#2369) by szokeasaurusrexunnecessary_wrapsforadd_sourcemap_references(#2368) by szokeasaurusrexunnecessary_wrapslint forSourceMapsProcessor::add(#2367) by szokeasaurusrexlookup_posnot returnOption(#2366) by szokeasaurusrexApi::with_bodyreturnSelf(#2363) by szokeasaurusrexwith_retryreturnSelf(#2365) by szokeasaurusrexprogress_bar_modereturnSelf(#2364) by szokeasaurusrexunnecessary_wrapslint forset_auth(#2362) by szokeasaurusrexResultfromConfig::from_file(#2361) by szokeasaurusrexclippy::unnecessary_wrapslint (#2358) by szokeasaurusrex-D warnings(#2359) by szokeasaurusrex--log-levelparsing (#2356) by szokeasaurusrex2.41.1
Various fixes & improvements
dotenvwithdotenvy(#2351) by szokeasaurusrex.envfiles2.41.0
Various fixes & improvements
symbolicto12.13.3(#2346) by szokeasaurusrexmemmap2(#2340) by szokeasaurusrexdebug-files uploadwhen file is too big (#2331) by szokeasaurusrexcollect(#2333) by szokeasaurusrex2.40.0
New features
globalThiswhen available (#2301) by lforstImprovements
Bug fixes
Non-user-facing changes
We made several refactors and added several tests in this release. These changes should not affect users.
upload-difreference frompoll_assemble(#2321) by szokeasaurusrexrender_detailtakeOption<&str>(#2317) by szokeasaurusrexupload_difs_chunked(#2316) by szokeasaurusrexuploadmodule tooptions(#2315) by szokeasaurusrexChunkOptionsastruct(#2314) by szokeasaurusrex&strinDifUploadstruct (#2307) by szokeasaurusrexpoll_assemble(#2300) by szokeasaurusrex/to uploaded Proguard file name (#2304) by szokeasaurusrextry_assembleoptionsparameter (#2299) by szokeasaurusrexChunkedUploadOptionsto indicate they are set by server (#2298) by szokeasaurusrexChunked<ProguardMapping>for proguard upload (#2296) by szokeasaurusrexChunkedDifRequesttakeCow<'_, str>forname(#2295) by szokeasaurusrexMappingRefwithProguardMapping(#2294) by szokeasaurusrexproguardutilssubmodule (#2293) by szokeasaurusrexByteView(#2292) by szokeasaurusrexChunkedDifRequest(#2290) by szokeasaurusrexNamedtrait toAssemblable(#2289) by szokeasaurusrexpoll_assemblegeneric (#2287) by szokeasaurusrexToAssembletraittry_assemble_difgenericChunkedDifMatchwith genericChunkedObjectusizeinget_sha1_checksumssignatureassert_cmdtest manager2.39.1
Various fixes & improvements
2.39.0
Features/improvements
debugIdfield in sourcemaps (#2222)Various fixes & improvements
assert_cmdas a dev dependencySENTRY_DUMP_REPONSEenvironment variable (#2212)allow(dead_code)from update utils (#2216)allow(dead_code)(#2215)Changes to tests
with_header_matchertypes (#2261) by szokeasaurusreximpl Into<Matcher>forwith_matcher(#2260) by szokeasaurusrexwith_reponse_bodyparameter tomockito(#2259) by szokeasaurusrex200(#2258) by szokeasaurusrexmockitomocking library (#2254) by szokeasaurusrexTestManagerin new chunk upload test (#2253) by szokeasaurusrexTestManagerstruct for uniform test setup (#2252) by szokeasaurusrexmock_common_endpointsrefactor (#2251) by szokeasaurusrexmock_common_upload_endpoints(#2250) by szokeasaurusrexmock_common_upload_endpointsinto module (#2249) by szokeasaurusrexmockingtomock_endpoint_builder(#2248) by szokeasaurusrexEndpointOptionstoMockEndpointBuilder(#2247) by szokeasaurusrexEndpointOptions(#2246) by szokeasaurusrexEndpointOptions(#2245) by szokeasaurusrextrycmdtests withRUST_BACKTRACE=0(#2242) by szokeasaurusrextarget_os(#2240) by szokeasaurusrexbash_hooktests together (#2226)assembleendpoint call2.38.2
Various fixes & improvements
2.38.1
Various fixes & improvements
.vscodedirectory from version control (#2208) by szokeasaurusrexmainto indicate it does not return (#2192) by szokeasaurusrexcommands::maindoes not return (#2191) by szokeasaurusrex2.38.0
Various fixes & improvements
RUST_BACKTRACE=1(#2189) by szokeasaurusrex--auth-token(#2172) by szokeasaurusrex2.37.0
All Xcode uploads are now executed in the foreground, which should allow for easier debugging of any problems that occur while uploading files during the build process, since errors will be logged directly within Xcode.
With this change, the
--force-foregroundflag is no longer needed, since we always upload in the foreground. The flag is now a deprecated no-op.2.36.6
There are no code changes in this release. It is being performed to test an update to the release build process.
2.36.5
There are no code changes in this release. It is a re-release of 2.36.4, which we are making because 2.36.4 and 2.36.3
failed to publish to PyPI.
2.36.4
This releases fixes includes a bugfix (#2171 by szokeasaurusrex) for #2169. The bug caused any command run with
sentry-cli monitors runto not be executed whenever sending the cron checkin to Sentry failed, e.g. during a Sentryoutage or due to some other network failure. With the bugfix, we log the error and execute the program even when there
was an error sending the checkin.
We recommend that all users using
sentry-cli monitors runupgrade to Sentry CLI version 2.36.4 immediately.2.36.3
Various fixes & improvements
curl-sys(#2164) by szokeasaurusrex2.36.2
Various fixes & improvements
--projectindeploys newsubcommand (#2160) by szokeasaurusrexsend-metriccommands (#2154) by szokeasaurusrex2.36.1
Various fixes & improvements
2.36.0
Various fixes & improvements
12.11.0. This fixes a bug where uploading source files sometimes failed when any of the files werenot UTF-8 encoded
2.35.0
Various fixes & improvements
upload-proguardon 507 status (#2141) by szokeasaurusrex2.34.1
Various fixes & improvements
12.10.1(#2134) by szokeasaurusrexsources were not valid UTF-8.