@theholocron/holocron-plugin-sentry 5.0.0-alpha.404 → 5.0.0-alpha.406

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 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` to Secrets) and `holocron doctor` connectivity
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
@@ -39,6 +39,9 @@ export declare class SentryErrors implements Errors {
39
39
  describe(): Promise<{
40
40
  provider: string;
41
41
  envKeys: string[];
42
+ frameworkEnvKeys: {
43
+ next: string[];
44
+ };
42
45
  }>;
43
46
  whoami(): Promise<{
44
47
  org: string;
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", "NEXT_PUBLIC_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.404",
3
+ "version": "5.0.0-alpha.406",
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.404",
48
- "@theholocron/http-client": "^1.58.0-alpha.27",
47
+ "@theholocron/eslint-config": "^8.9.0-alpha.16",
49
48
  "@theholocron/misc-utils": "^1.17.0-alpha.3",
49
+ "@theholocron/http-client": "^1.58.0-alpha.27",
50
50
  "@theholocron/sentry-client": "^1.58.0-alpha.27",
51
- "@theholocron/eslint-config": "^8.9.0-alpha.16",
52
51
  "@theholocron/tsconfig": "^8.9.0-alpha.16",
52
+ "@theholocron/tsdown-config": "^8.9.0-alpha.16",
53
53
  "@theholocron/vitest-config": "^8.9.0-alpha.16",
54
- "@theholocron/tsdown-config": "^8.9.0-alpha.16"
54
+ "@theholocron/cli": "5.0.0-alpha.406"
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.404"
59
+ "@theholocron/cli": "5.0.0-alpha.406"
60
60
  },
61
61
  "peerDependenciesMeta": {
62
62
  "@theholocron/sentry-client": {}