@sentry/cli 1.70.0 → 1.72.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,13 +2,42 @@
2
2
 
3
3
  "You know what they say. Fool me once, strike one, but fool me twice... strike three." — Michael Scott
4
4
 
5
+ ## 1.72.1
6
+
7
+ * fix: Dont include `debug_id` during assemble when not PDBs are not supported (#1110)
8
+ * ref: Remove all release files instantaneously with `--all` flag (#1108)
9
+
10
+ ## 1.72.0
11
+
12
+ * feat: Add `CUSTOM_HEADER` support to JS wrapper (#1077)
13
+ * feat: Add `SENTRYCLI_SKIP_DOWNLOAD` flag for preventing download (#1074)
14
+ * feat: Allow for configuring max item size for dif bundles (#1099)
15
+ * fix: Prevent daemonize mode from crashing upload process (#1104)
16
+ * fix: Restore logger initialization (#1102)
17
+ * ref: Box `ParseDif::Object` value to prevent large enum variant (#1094)
18
+ * ref: Rename ini group from `dsym` to `dif` with a fallback (#1103)
19
+ * ref: Show `project` flag for releases command (#1065)
20
+
21
+ ## 1.71.0
22
+
23
+ * feat: Add optional positional argument to `send-event` that allows to specify a path to JSON serialized events (#1058)
24
+ * fix: Handle `SENTRY_CLI_NO_EXIT_TRAP` unbound variable (#1059)
25
+
26
+ ## 1.70.1
27
+
28
+ * feat: Add `SENTRY_CLI_NO_EXIT_TRAP` flag to control EXIT trap in `bash-hook` command (#1050)
29
+ * fix: Remove warning about relative urls for chunk uploads (#1054)
30
+ * fix: Typo in `vscRemote` TS type (#1052)
31
+ * fix: Use internal timer for ProgressBar duration (#1055)
32
+ * ref: Update dockerfile alpine image (#1057)
33
+
5
34
  ## 1.70.0
6
35
 
7
- feat: Add `no-upload` flag for `upload-dif` command (#1044)
8
- feat: Add support for glob patterns in `upload-sourcemaps` command (#1048)
9
- feat: Allow to load dotenv from non-standard path through `SENTRY_DOTENV_PATH` (#1046)
10
- fix: Follow symlinks when traversing during sourcemaps upload (#1043)
11
- ref: Use `SOURCE_VERSION` first prior to `HEROKU_SLUG_COMMIT` in Heroku (#1045)
36
+ * feat: Add `no-upload` flag for `upload-dif` command (#1044)
37
+ * feat: Add support for glob patterns in `upload-sourcemaps` command (#1048)
38
+ * feat: Allow to load dotenv from non-standard path through `SENTRY_DOTENV_PATH` (#1046)
39
+ * fix: Follow symlinks when traversing during sourcemaps upload (#1043)
40
+ * ref: Use `SOURCE_VERSION` first prior to `HEROKU_SLUG_COMMIT` in Heroku (#1045)
12
41
 
13
42
  ## 1.69.1
14
43
 
package/js/helper.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ const childProcess = require('child_process');
3
4
  const os = require('os');
4
5
  const path = require('path');
5
- const childProcess = require('child_process');
6
6
 
7
7
  /**
8
8
  * Absolute path to the sentry-cli binary (platform dependent).
@@ -159,9 +159,12 @@ function execute(args, live, silent, configFile, config = {}) {
159
159
  if (config.vcsRemote) {
160
160
  env.SENTRY_VCS_REMOTE = config.vcsRemote;
161
161
  }
162
+ if (config.customHeader) {
163
+ env.CUSTOM_HEADER = config.customHeader;
164
+ }
162
165
  return new Promise((resolve, reject) => {
163
166
  if (live === true) {
164
- const output = silent ? 'ignore' : 'inherit'
167
+ const output = silent ? 'ignore' : 'inherit';
165
168
  const pid = childProcess.spawn(getPath(), args, {
166
169
  env,
167
170
  // stdin, stdout, stderr
@@ -187,10 +190,10 @@ function getProjectFlagsFromOptions({ projects = [] } = {}) {
187
190
  }
188
191
 
189
192
  module.exports = {
190
- mockBinaryPath,
191
- serializeOptions,
192
- prepareCommand,
193
- getPath,
194
193
  execute,
194
+ getPath,
195
195
  getProjectFlagsFromOptions,
196
+ mockBinaryPath,
197
+ prepareCommand,
198
+ serializeOptions,
196
199
  };
package/js/index.d.ts CHANGED
@@ -37,7 +37,7 @@ declare module '@sentry/cli' {
37
37
  * Version control system remote name.
38
38
  * This value will update `SENTRY_VCS_REMOTE` env variable.
39
39
  */
40
- vscRemote?: string;
40
+ vcsRemote?: string;
41
41
  /**
42
42
  * Unique identifier for the distribution, used to further segment your release.
43
43
  * Usually your build number.
@@ -47,6 +47,11 @@ declare module '@sentry/cli' {
47
47
  * If true, all logs are suppressed.
48
48
  */
49
49
  silent?: boolean;
50
+ /**
51
+ * A header added to every outgoing network request.
52
+ * This value will update `CUSTOM_HEADER` env variable.
53
+ */
54
+ customHeader?: string;
50
55
  }
51
56
 
52
57
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/cli",
3
- "version": "1.70.0",
3
+ "version": "1.72.1",
4
4
  "description": "A command line utility to work with Sentry. https://docs.sentry.io/hosted/learn/cli/",
5
5
  "homepage": "https://docs.sentry.io/hosted/learn/cli/",
6
6
  "license": "BSD-3-Clause",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "https-proxy-agent": "^5.0.0",
39
39
  "mkdirp": "^0.5.5",
40
- "node-fetch": "^2.6.0",
40
+ "node-fetch": "^2.6.7",
41
41
  "npmlog": "^4.1.2",
42
42
  "progress": "^2.0.3",
43
43
  "proxy-from-env": "^1.1.0"
@@ -259,6 +259,11 @@ if (process.env.SENTRYCLI_LOCAL_CDNURL) {
259
259
 
260
260
  npmLog.stream = getLogStream('stderr');
261
261
 
262
+ if (process.env.SENTRYCLI_SKIP_DOWNLOAD === '1') {
263
+ npmLog.info('sentry-cli', `Skipping download because SENTRYCLI_SKIP_DOWNLOAD=1 detected.`);
264
+ process.exit(0);
265
+ }
266
+
262
267
  downloadBinary()
263
268
  .then(() => checkVersion())
264
269
  .then(() => process.exit(0))