glitchgrab 1.68.0 → 1.68.2

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.
@@ -199,7 +199,7 @@ interface GlitchgrabProviderProps {
199
199
  fallback?: ReactNode;
200
200
  /** Which report types to show in the dialog (default: all) */
201
201
  types?: ReportType[];
202
- /** Show severity picker for BUG type (default: true) */
202
+ /** @deprecated The severity picker was removed (#904); this is ignored. */
203
203
  showSeverity?: boolean;
204
204
  /**
205
205
  * Skip auto-capture for errors matching any of these patterns (checked against the
@@ -226,6 +226,19 @@ interface GlitchgrabProviderProps {
226
226
  * data you don't control and shouldn't forward into a GitHub issue.
227
227
  */
228
228
  responseBodyOrigins?: string[];
229
+ /**
230
+ * Which `console.error` / `console.warn` lines become issues. Default
231
+ * `["error", "warn"]`; `false` (or `[]`) turns it off. Production only.
232
+ * Repeats of one message are grouped onto a single issue. Needs `breadcrumbs`
233
+ * on (the default). Silence a noisy line with `ignoreErrors`.
234
+ */
235
+ captureConsole?: ("error" | "warn")[] | false;
236
+ /**
237
+ * File a `PERFORMANCE` issue when a same-origin request takes longer than this
238
+ * many milliseconds. Default `10000`; `0` turns it off. One issue per endpoint
239
+ * (ids folded to `[id]`). Production only. Needs `breadcrumbs` on.
240
+ */
241
+ slowRequestMs?: number;
229
242
  }
230
243
  interface ReportButtonProps {
231
244
  position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
@@ -199,7 +199,7 @@ interface GlitchgrabProviderProps {
199
199
  fallback?: ReactNode;
200
200
  /** Which report types to show in the dialog (default: all) */
201
201
  types?: ReportType[];
202
- /** Show severity picker for BUG type (default: true) */
202
+ /** @deprecated The severity picker was removed (#904); this is ignored. */
203
203
  showSeverity?: boolean;
204
204
  /**
205
205
  * Skip auto-capture for errors matching any of these patterns (checked against the
@@ -226,6 +226,19 @@ interface GlitchgrabProviderProps {
226
226
  * data you don't control and shouldn't forward into a GitHub issue.
227
227
  */
228
228
  responseBodyOrigins?: string[];
229
+ /**
230
+ * Which `console.error` / `console.warn` lines become issues. Default
231
+ * `["error", "warn"]`; `false` (or `[]`) turns it off. Production only.
232
+ * Repeats of one message are grouped onto a single issue. Needs `breadcrumbs`
233
+ * on (the default). Silence a noisy line with `ignoreErrors`.
234
+ */
235
+ captureConsole?: ("error" | "warn")[] | false;
236
+ /**
237
+ * File a `PERFORMANCE` issue when a same-origin request takes longer than this
238
+ * many milliseconds. Default `10000`; `0` turns it off. One issue per endpoint
239
+ * (ids folded to `[id]`). Production only. Needs `breadcrumbs` on.
240
+ */
241
+ slowRequestMs?: number;
229
242
  }
230
243
  interface ReportButtonProps {
231
244
  position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "glitchgrab",
3
3
  "license": "SEE LICENSE IN LICENSE",
4
- "version": "1.68.0",
4
+ "version": "1.68.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",