sentry 0.34.0 → 0.36.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/README.md +19 -13
- package/dist/bin.cjs +1 -1
- package/dist/index.cjs +1912 -1037
- package/dist/index.d.cts +467 -22
- package/dist/ink-app.js +205 -81
- package/package.json +54 -39
package/README.md
CHANGED
|
@@ -33,13 +33,19 @@ brew install getsentry/tools/sentry
|
|
|
33
33
|
```bash
|
|
34
34
|
npm install -g sentry
|
|
35
35
|
pnpm add -g sentry
|
|
36
|
+
yarn global add sentry
|
|
36
37
|
bun add -g sentry
|
|
37
38
|
```
|
|
38
39
|
|
|
40
|
+
> The npm/pnpm/yarn packages require Node.js 22.15+.
|
|
41
|
+
|
|
39
42
|
### Run Without Installing
|
|
40
43
|
|
|
41
44
|
```bash
|
|
42
45
|
npx sentry@latest
|
|
46
|
+
pnpm dlx sentry --help
|
|
47
|
+
yarn dlx sentry --help
|
|
48
|
+
bunx sentry --help
|
|
43
49
|
```
|
|
44
50
|
|
|
45
51
|
## Quick Start
|
|
@@ -77,7 +83,7 @@ Credentials are stored in `~/.sentry/` with restricted permissions (mode 600).
|
|
|
77
83
|
## Library Usage
|
|
78
84
|
|
|
79
85
|
<!-- GENERATED:START library-prereq -->
|
|
80
|
-
Use Sentry CLI programmatically in Node.js (≥22.
|
|
86
|
+
Use Sentry CLI programmatically in Node.js (≥22.15) without spawning a subprocess:
|
|
81
87
|
<!-- GENERATED:END library-prereq -->
|
|
82
88
|
|
|
83
89
|
```typescript
|
|
@@ -118,7 +124,7 @@ Errors are thrown as `SentryError` with `.exitCode` and `.stderr`.
|
|
|
118
124
|
### Prerequisites
|
|
119
125
|
|
|
120
126
|
<!-- GENERATED:START dev-prereq -->
|
|
121
|
-
- [
|
|
127
|
+
- [Node.js](https://nodejs.org) v22.15+ and [pnpm](https://pnpm.io) v10.11+
|
|
122
128
|
<!-- GENERATED:END dev-prereq -->
|
|
123
129
|
|
|
124
130
|
### Setup
|
|
@@ -126,30 +132,30 @@ Errors are thrown as `SentryError` with `.exitCode` and `.stderr`.
|
|
|
126
132
|
```bash
|
|
127
133
|
git clone https://github.com/getsentry/cli.git
|
|
128
134
|
cd cli
|
|
129
|
-
|
|
135
|
+
pnpm install
|
|
130
136
|
```
|
|
131
137
|
|
|
132
138
|
### Running Locally
|
|
133
139
|
|
|
134
140
|
```bash
|
|
135
141
|
# Run CLI in development mode
|
|
136
|
-
|
|
142
|
+
pnpm run cli -- --help
|
|
137
143
|
|
|
138
|
-
# With environment variables
|
|
139
|
-
|
|
144
|
+
# With environment variables (create .env.local first, see DEVELOPMENT.md)
|
|
145
|
+
pnpm run cli -- --help
|
|
140
146
|
```
|
|
141
147
|
|
|
142
148
|
### Scripts
|
|
143
149
|
|
|
144
150
|
<!-- GENERATED:START dev-scripts -->
|
|
145
151
|
```bash
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
pnpm run build # Build for current platform
|
|
153
|
+
pnpm run typecheck # Type checking
|
|
154
|
+
pnpm run lint # Check for issues
|
|
155
|
+
pnpm run lint:fix # Auto-fix issues
|
|
156
|
+
pnpm run test:unit # Run unit tests
|
|
157
|
+
pnpm run test:e2e # Run end-to-end tests
|
|
158
|
+
pnpm run generate:docs # Regenerate command docs and skills
|
|
153
159
|
```
|
|
154
160
|
<!-- GENERATED:END dev-scripts -->
|
|
155
161
|
|
package/dist/bin.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
{let v=process.versions.node.split(".").map(Number);if(v[0]<22||(v[0]===22&&v[1]<
|
|
2
|
+
{let v=process.versions.node.split(".").map(Number);if(v[0]<22||(v[0]===22&&v[1]<15)){console.error("Error: sentry requires Node.js 22.15 or later (found "+process.version+").\n\nEither upgrade Node.js, or install the standalone binary instead:\n curl -fsSL https://cli.sentry.dev/install | bash\n");process.exit(1)}}
|
|
3
3
|
{let e=process.emit;process.emit=function(n,...a){return n==="warning"?!1:e.apply(this,[n,...a])}}
|
|
4
4
|
require('./index.cjs')._cli().catch(()=>{process.exitCode=1});
|