@theholocron/holocron-plugin-sentry 5.0.0-alpha.404 → 5.0.0-alpha.405
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 +7 -4
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +2 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -47,12 +47,15 @@ user-owned and org-owned tokens are accepted.
|
|
|
47
47
|
|
|
48
48
|
| Method | What it does |
|
|
49
49
|
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
50
|
-
| `describe` | Returns `{ provider: "sentry", envKeys: ["SENTRY_DSN", "NEXT_PUBLIC_SENTRY_DSN"] }` — the env vars the app reads at runtime.
|
|
50
|
+
| `describe` | Returns `{ provider: "sentry", envKeys: ["SENTRY_DSN"], frameworkEnvKeys: { next: ["NEXT_PUBLIC_SENTRY_DSN"] } }` — the env vars the app reads at runtime. |
|
|
51
51
|
| `whoami` | Fetches the org by slug to verify the token and confirm the org exists. |
|
|
52
52
|
| `ensureProject` | Looks up the project by slug (derived from `name`); creates it under the configured team if absent. Returns the DSN and an `alreadyExists` flag. Idempotent. |
|
|
53
53
|
|
|
54
54
|
A provider entry in `holocron.config` is only needed to enable `holocron
|
|
55
|
-
setup` provisioning (`ensureProject` + pushing `SENTRY_DSN`
|
|
56
|
-
`NEXT_PUBLIC_SENTRY_DSN`
|
|
55
|
+
setup` provisioning (`ensureProject` + pushing `SENTRY_DSN` to Secrets, and
|
|
56
|
+
`NEXT_PUBLIC_SENTRY_DSN` too when Next.js is detected: the root `package.json`
|
|
57
|
+
or any workspace package's lists `next`) and `holocron doctor` connectivity
|
|
57
58
|
checks — not for runtime error reporting, which the CLI activates directly
|
|
58
|
-
from `HOLOCRON_SENTRY_DSN` (fallback `SENTRY_DSN`).
|
|
59
|
+
from `HOLOCRON_SENTRY_DSN` (fallback `SENTRY_DSN`). A DSN is built to be embedded in
|
|
60
|
+
client code, so it is not a true secret.
|
|
61
|
+
Setup never removes `NEXT_PUBLIC_SENTRY_DSN`: a repo that drops Next.js deletes that secret by hand.
|
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -289,7 +289,8 @@ var SentryErrors = class {
|
|
|
289
289
|
async describe() {
|
|
290
290
|
return {
|
|
291
291
|
provider: "sentry",
|
|
292
|
-
envKeys: ["SENTRY_DSN",
|
|
292
|
+
envKeys: ["SENTRY_DSN"],
|
|
293
|
+
frameworkEnvKeys: { next: ["NEXT_PUBLIC_SENTRY_DSN"] }
|
|
293
294
|
};
|
|
294
295
|
}
|
|
295
296
|
async whoami() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-sentry",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.405",
|
|
4
4
|
"description": "Holocron plugin for Sentry. Implements the errors capability against Sentry's management API — project provisioning and DSN retrieval.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"errors",
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
"tsx": "4.23.15",
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
46
|
"vitest": "^5.1.0",
|
|
47
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
47
|
+
"@theholocron/cli": "5.0.0-alpha.405",
|
|
48
48
|
"@theholocron/http-client": "^1.58.0-alpha.27",
|
|
49
|
-
"@theholocron/misc-utils": "^1.17.0-alpha.3",
|
|
50
|
-
"@theholocron/sentry-client": "^1.58.0-alpha.27",
|
|
51
49
|
"@theholocron/eslint-config": "^8.9.0-alpha.16",
|
|
52
|
-
"@theholocron/
|
|
50
|
+
"@theholocron/sentry-client": "^1.58.0-alpha.27",
|
|
51
|
+
"@theholocron/misc-utils": "^1.17.0-alpha.3",
|
|
53
52
|
"@theholocron/vitest-config": "^8.9.0-alpha.16",
|
|
54
|
-
"@theholocron/tsdown-config": "^8.9.0-alpha.16"
|
|
53
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.16",
|
|
54
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.16"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@theholocron/misc-utils": "^1.16.0",
|
|
58
58
|
"@theholocron/sentry-client": "^1.56.0",
|
|
59
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
59
|
+
"@theholocron/cli": "5.0.0-alpha.405"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"@theholocron/sentry-client": {}
|