You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,25 @@
9
9
> **Note**: These changes only apply if you use `sentry-cli` through the npm package [`@sentry/cli`](https://www.npmjs.com/package/@sentry/cli). If you use the standalone binary, these changes do not affect you.
10
10
11
11
- Drop support for Node.js <18. The minimum required Node.js version is now 18.0.0 ([#2985](https://github.com/getsentry/sentry-cli/issues/2985)).
12
+
- The JavaScript wrapper now uses named exports instead of default exports ([#2989](https://github.com/getsentry/sentry-cli/pull/2989))
13
+
. You need to update your imports:
14
+
```js
15
+
// Old (default import)
16
+
const SentryCli = require('@sentry/cli');
17
+
18
+
// New (named import)
19
+
const { SentryCli } = require('@sentry/cli');
20
+
```
21
+
22
+
For ESM imports:
23
+
```js
24
+
// Old
25
+
import SentryCli from '@sentry/cli';
26
+
27
+
// New
28
+
import { SentryCli } from '@sentry/cli';
29
+
```
30
+
12
31
13
32
## 2.58.2
14
33
@@ -517,7 +536,7 @@ We made several refactors and added several tests in this release. These changes
517
536
518
537
<details>
519
538
<summary><h3>Changes to tests</h3></summary>
520
-
539
+
521
540
- ref(test): Broaden `with_header_matcher` types (#2261) by @szokeasaurusrex
522
541
- ref(test): Accept `impl Into<Matcher>` for `with_matcher` (#2260) by @szokeasaurusrex
523
542
- ref(test): Align `with_reponse_body` parameter to `mockito` (#2259) by @szokeasaurusrex
* If the `configFile` parameter is specified, configuration located in the default
36
39
* location and the value specified in the `SENTRY_PROPERTIES` environment variable is
37
40
* overridden.
38
41
*
39
-
* @param{string | null} [configFile] - Path to Sentry CLI config properties, as described in https://docs.sentry.io/learn/cli/configuration/#properties-files.
42
+
* @param configFile Path to Sentry CLI config properties, as described in https://docs.sentry.io/learn/cli/configuration/#properties-files.
40
43
* By default, the config file is looked for upwards from the current path and defaults from ~/.sentryclirc are always loaded.
41
44
* This value will update `SENTRY_PROPERTIES` env variable.
42
-
* @param{SentryCliOptions} [options] - More options to pass to the CLI
0 commit comments