@sentry/cli 1.69.1 → 1.72.0
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 +32 -0
- package/js/helper.js +9 -6
- package/js/index.d.ts +6 -1
- package/package.json +1 -1
- package/scripts/install.js +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
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.0
|
|
6
|
+
|
|
7
|
+
* feat: Add `CUSTOM_HEADER` support to JS wrapper (#1077)
|
|
8
|
+
* feat: Add `SENTRYCLI_SKIP_DOWNLOAD` flag for preventing download (#1074)
|
|
9
|
+
* feat: Allow for configuring max item size for dif bundles (#1099)
|
|
10
|
+
* fix: Prevent daemonize mode from crashing upload process (#1104)
|
|
11
|
+
* fix: Restore logger initialization (#1102)
|
|
12
|
+
* ref: Box `ParseDif::Object` value to prevent large enum variant (#1094)
|
|
13
|
+
* ref: Rename ini group from `dsym` to `dif` with a fallback (#1103)
|
|
14
|
+
* ref: Show `project` flag for releases command (#1065)
|
|
15
|
+
|
|
16
|
+
## 1.71.0
|
|
17
|
+
|
|
18
|
+
* feat: Add optional positional argument to `send-event` that allows to specify a path to JSON serialized events (#1058)
|
|
19
|
+
* fix: Handle `SENTRY_CLI_NO_EXIT_TRAP` unbound variable (#1059)
|
|
20
|
+
|
|
21
|
+
## 1.70.1
|
|
22
|
+
|
|
23
|
+
* feat: Add `SENTRY_CLI_NO_EXIT_TRAP` flag to control EXIT trap in `bash-hook` command (#1050)
|
|
24
|
+
* fix: Remove warning about relative urls for chunk uploads (#1054)
|
|
25
|
+
* fix: Typo in `vscRemote` TS type (#1052)
|
|
26
|
+
* fix: Use internal timer for ProgressBar duration (#1055)
|
|
27
|
+
* ref: Update dockerfile alpine image (#1057)
|
|
28
|
+
|
|
29
|
+
## 1.70.0
|
|
30
|
+
|
|
31
|
+
* feat: Add `no-upload` flag for `upload-dif` command (#1044)
|
|
32
|
+
* feat: Add support for glob patterns in `upload-sourcemaps` command (#1048)
|
|
33
|
+
* feat: Allow to load dotenv from non-standard path through `SENTRY_DOTENV_PATH` (#1046)
|
|
34
|
+
* fix: Follow symlinks when traversing during sourcemaps upload (#1043)
|
|
35
|
+
* ref: Use `SOURCE_VERSION` first prior to `HEROKU_SLUG_COMMIT` in Heroku (#1045)
|
|
36
|
+
|
|
5
37
|
## 1.69.1
|
|
6
38
|
|
|
7
39
|
* misc: Re-release of `1.69.0` due to malformed artifacts
|
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
|
-
|
|
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
package/scripts/install.js
CHANGED
|
@@ -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))
|