react-doctor 0.9.22 → 0.9.23-dev.05dfafe

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.
Files changed (43) hide show
  1. package/dist/{build-section-divider-JXerAqjw.js → build-section-divider-B3l6DXTH.js} +5 -5
  2. package/dist/{ci-BWu53Ijl.js → ci-DUDuv_KL.js} +13 -13
  3. package/dist/cli.js +25 -25
  4. package/dist/{constants-lt2tTZjE.js → constants-BmD_c3Yq.js} +12 -6
  5. package/dist/{constants-DNh19qg9.js → constants-T2clfs7L.js} +4 -4
  6. package/dist/{design-CN12FgvK.js → design-Bj9aMiuv.js} +4 -4
  7. package/dist/duplicate-jsx-worker.js +17 -10
  8. package/dist/{exit-gracefully-BMgB2pVu.js → exit-gracefully-cCXyQl3i.js} +6 -6
  9. package/dist/{handle-error-CoIUQwLf.js → handle-error-lgLxrA8y.js} +6 -6
  10. package/dist/index.d.ts +20 -2
  11. package/dist/index.js +247 -41
  12. package/dist/{inspect-D4QLdCtm.js → inspect-Bb1HyA7w.js} +16 -16
  13. package/dist/{install-R6-fv9t4.js → install-Ctq7ew69.js} +10 -10
  14. package/dist/{install-doctor-script-D9-Bdbx6.js → install-doctor-script-C8URs5z8.js} +5 -5
  15. package/dist/{install-github-workflow-B01vSPPa.js → install-github-workflow-4uZez_Ux.js} +6 -6
  16. package/dist/{install-react-doctor-DZnPIaiY.js → install-react-doctor-z8YCZ_ln.js} +9 -9
  17. package/dist/{is-cache-globally-disabled-af0VF8nQ.js → is-cache-globally-disabled-CveNGcRi.js} +4 -4
  18. package/dist/{jsx-runtime-D_p1BwrV.js → jsx-runtime-DGgjHKxp.js} +6 -6
  19. package/dist/oxlint-worker.js +1 -1
  20. package/dist/{print-branded-header-BegpykMJ.js → print-branded-header-DMHPLUaY.js} +4 -4
  21. package/dist/project-analysis-worker.js +1 -1
  22. package/dist/{prompt-runtime-scan-url-OIHMChS6.js → prompt-runtime-scan-url-Bjf8oUgu.js} +5 -5
  23. package/dist/{read-object-file-Bd06Y-EV.js → read-object-file-1GYa4MDG.js} +4 -4
  24. package/dist/{record-metric-5SPbuLyj.js → record-metric-9Q_AofQZ.js} +232 -43
  25. package/dist/{report-error-DayUUIc-.js → report-error-D8MXuEuX.js} +6 -6
  26. package/dist/{report-workflow-result-tdrT9lW-.js → report-workflow-result-CoKQrvw3.js} +6 -6
  27. package/dist/{resolve-scan-exit-code-DWrr-Xuv.js → resolve-scan-exit-code-B8M3Cm1y.js} +42 -30
  28. package/dist/{resolve-scope-OdFJKZGv.js → resolve-scope-mO5jhToI.js} +6 -6
  29. package/dist/{rules-DNgtXPXx.js → rules-DfsolVSa.js} +7 -7
  30. package/dist/{run-scan-app-COJWBnqC.js → run-scan-app-C_1vEytD.js} +45 -16
  31. package/dist/{runtime-scan-CkpS56h8.js → runtime-scan-DO6eZB9B.js} +10 -10
  32. package/dist/{sanitize-runtime-url-fwyTS789.js → sanitize-runtime-url-B_DTc6vp.js} +4 -4
  33. package/dist/{scan-iZF-ydER.js → scan-zowhHQj5.js} +10 -10
  34. package/dist/{should-skip-prompts-BvvlROWq.js → should-skip-prompts-DWFgbnKE.js} +4 -4
  35. package/dist/{should-use-tui-BjzxYIbC.js → should-use-tui-CTkAbfEk.js} +4 -4
  36. package/dist/skills/react-doctor/references/explain.md +26 -0
  37. package/dist/{start-scan-preamble-CQy0CKXS.js → start-scan-preamble-DDAT_0oB.js} +5 -5
  38. package/dist/start-scan-preamble.js +3 -3
  39. package/dist/{telemetry-runtime-DQLNzRNG.js → telemetry-runtime-CdsvqQbi.js} +13 -7
  40. package/dist/{version-BasyRE1W.js → version-5cBv0dgb.js} +5 -5
  41. package/dist/{why-ni8gAKZe.js → why-BD6q7PxE.js} +4 -4
  42. package/dist/{with-run-span-eDYTicUo.js → with-run-span-qr6tFfqD.js} +6 -6
  43. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9b9595b5-cd78-5aec-95ce-0fd49c0f7ff9")}catch(e){}}();
3
- import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-lt2tTZjE.js";
4
- import { $t as scrubSensitivePaths, Bn as messageFromUnknown, Ft as isReactDoctorError, In as void_, J as anonymizeInPlace, Nn as close, Pn as makeUnsafe, Pt as isProjectDiscoveryError, Rt as layerObservability, Tn as runSync, Un as isErrnoException, Y as anonymizeText, _ as VERSION, a as isEnvFlagEnabled, hn as make, i as isTelemetryEnabled, kn as buildWithScope, o as buildSentryScope, wn as runPromise, y as CliInputError } from "./record-metric-5SPbuLyj.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7603664b-39f7-520e-8ff1-2da59effbe4b")}catch(e){}}();
3
+ import { S as SENTRY_FLUSH_TIMEOUT_MS } from "./constants-BmD_c3Yq.js";
4
+ import { An as buildWithScope, En as runSync, Fn as makeUnsafe, Ft as isProjectDiscoveryError, It as isReactDoctorError, J as anonymizeInPlace, Ln as void_, Pn as close, Tn as runPromise, Vn as messageFromUnknown, Wn as isErrnoException, Y as anonymizeText, _ as VERSION, a as isEnvFlagEnabled, en as scrubSensitivePaths, gn as make, i as isTelemetryEnabled, o as buildSentryScope, y as CliInputError, zt as layerObservability } from "./record-metric-9Q_AofQZ.js";
5
5
  //#region src/cli/utils/is-environment-error.ts
6
6
  const ENVIRONMENT_ERROR_CODES = new Set([
7
7
  "EACCES",
@@ -164,6 +164,8 @@ const scrubSentryEvent = (event) => {
164
164
  try {
165
165
  delete event.server_name;
166
166
  delete event.user;
167
+ delete event.modules;
168
+ if (event.debug_meta) anonymizeInPlace(event.debug_meta);
167
169
  const device = event.contexts?.device;
168
170
  if (device) delete device.name;
169
171
  if (event.contexts) anonymizeInPlace(event.contexts);
@@ -178,6 +180,9 @@ const scrubSentryEvent = (event) => {
178
180
  if (typeof exception.value === "string") exception.value = anonymizeText(exception.value);
179
181
  for (const frame of exception.stacktrace?.frames ?? []) {
180
182
  delete frame.vars;
183
+ delete frame.pre_context;
184
+ delete frame.context_line;
185
+ delete frame.post_context;
181
186
  if (typeof frame.filename === "string") frame.filename = scrubSensitivePaths(frame.filename);
182
187
  if (typeof frame.abs_path === "string") frame.abs_path = scrubSensitivePaths(frame.abs_path);
183
188
  if (typeof frame.module === "string") frame.module = scrubSensitivePaths(frame.module);
@@ -212,13 +217,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
212
217
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
213
218
  * standard `SENTRY_RELEASE` override.
214
219
  */
215
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.22`;
220
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.23-dev.05dfafe`;
216
221
  /**
217
222
  * Deployment environment shown in Sentry's environment filter. Defaults to
218
223
  * `production` for tagged releases and `development` for dev/unbuilt versions,
219
224
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
220
225
  */
221
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.22") ? "development" : "production");
226
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.23-dev.05dfafe") ? "development" : "production");
222
227
  //#endregion
223
228
  //#region src/instrument.ts
224
229
  let sentryPromise = null;
@@ -251,6 +256,7 @@ const initializeSentryModule = (Sentry) => {
251
256
  release: resolveSentryRelease(),
252
257
  environment: resolveSentryEnvironment(),
253
258
  sendDefaultPii: false,
259
+ integrations: (integrations) => integrations.filter((integration) => integration.name !== "ContextLines" && integration.name !== "Modules"),
254
260
  tracesSampleRate: 0,
255
261
  registerEsmLoaderHooks: false,
256
262
  debug: isEnvFlagEnabled(process.env.SENTRY_DEBUG),
@@ -396,5 +402,5 @@ const shutdownTelemetry = async () => {
396
402
  //#endregion
397
403
  export { initializeSentry as a, isNpmCacheCorruptionError as c, getSentry as i, formatEnvironmentError as l, shutdownTelemetry as n, isExpectedUserError as o, flushSentry as r, formatNpmCacheCorruptionError as s, getTelemetryContext as t, isEnvironmentError as u };
398
404
 
399
- //# sourceMappingURL=telemetry-runtime-DQLNzRNG.js.map
400
- //# debugId=9b9595b5-cd78-5aec-95ce-0fd49c0f7ff9
405
+ //# sourceMappingURL=telemetry-runtime-CdsvqQbi.js.map
406
+ //# debugId=7603664b-39f7-520e-8ff1-2da59effbe4b
@@ -1,7 +1,7 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9b025800-ccc2-52fe-8e57-c4f1e6d022f1")}catch(e){}}();
3
- import { u as METRIC } from "./constants-lt2tTZjE.js";
4
- import { _ as VERSION, t as recordCount } from "./record-metric-5SPbuLyj.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e4cf10dd-4a6e-59eb-972d-1e490940e748")}catch(e){}}();
3
+ import { u as METRIC } from "./constants-BmD_c3Yq.js";
4
+ import { _ as VERSION, t as recordCount } from "./record-metric-9Q_AofQZ.js";
5
5
  //#region src/cli/commands/version.ts
6
6
  /**
7
7
  * oclif-style version line. 12-factor CLI Apps (#3, "What version am I
@@ -18,5 +18,5 @@ const versionAction = () => {
18
18
  //#endregion
19
19
  export { versionAction };
20
20
 
21
- //# sourceMappingURL=version-BasyRE1W.js.map
22
- //# debugId=9b025800-ccc2-52fe-8e57-c4f1e6d022f1
21
+ //# sourceMappingURL=version-5cBv0dgb.js.map
22
+ //# debugId=e4cf10dd-4a6e-59eb-972d-1e490940e748
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="076b82ee-790f-50bb-8bba-3fa1e6c9ac5e")}catch(e){}}();
3
- import { t as inspectAction } from "./inspect-D4QLdCtm.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ba1c5ddc-f130-521a-9bd9-084b095ae358")}catch(e){}}();
3
+ import { t as inspectAction } from "./inspect-Bb1HyA7w.js";
4
4
  //#region src/cli/commands/why.ts
5
5
  /**
6
6
  * `why <file:line>` — explains why a rule fired (or why a suppression didn't
@@ -17,5 +17,5 @@ const whyAction = async (location, options) => {
17
17
  //#endregion
18
18
  export { whyAction };
19
19
 
20
- //# sourceMappingURL=why-ni8gAKZe.js.map
21
- //# debugId=076b82ee-790f-50bb-8bba-3fa1e6c9ac5e
20
+ //# sourceMappingURL=why-BD6q7PxE.js.map
21
+ //# debugId=ba1c5ddc-f130-521a-9bd9-084b095ae358
@@ -1,8 +1,8 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="076345a0-5141-51dd-86e7-b6f09c445335")}catch(e){}}();
3
- import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-lt2tTZjE.js";
4
- import { Fn as fail, In as void_, Sn as provideContext, Tn as runSync, _n as makeSpan, c as setSentryProjectInfo, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext } from "./record-metric-5SPbuLyj.js";
5
- import { t as getTelemetryContext } from "./telemetry-runtime-DQLNzRNG.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="44373a3f-29bd-55cd-9b81-c94abdcb3ec8")}catch(e){}}();
3
+ import { p as NANOSECONDS_PER_MILLISECOND } from "./constants-BmD_c3Yq.js";
4
+ import { Cn as provideContext, En as runSync, In as fail, Ln as void_, c as setSentryProjectInfo, o as buildSentryScope, r as toSpanAttributes, s as buildSentryProjectContext, vn as makeSpan } from "./record-metric-9Q_AofQZ.js";
5
+ import { t as getTelemetryContext } from "./telemetry-runtime-CdsvqQbi.js";
6
6
  import { i as setActiveRunTrace, r as recordRunTraceId } from "./active-run-trace-Dewycxda.js";
7
7
  //#region src/cli/utils/with-run-span.ts
8
8
  /**
@@ -107,5 +107,5 @@ const recordSentryProjectContext = (projectInfo, rootSpan, options = {}) => {
107
107
  //#endregion
108
108
  export { resetSentryRunState as n, withRunSpan as r, recordSentryProjectContext as t };
109
109
 
110
- //# sourceMappingURL=with-run-span-eDYTicUo.js.map
111
- //# debugId=076345a0-5141-51dd-86e7-b6f09c445335
110
+ //# sourceMappingURL=with-run-span-qr6tFfqD.js.map
111
+ //# debugId=44373a3f-29bd-55cd-9b81-c94abdcb3ec8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.9.22",
3
+ "version": "0.9.23-dev.05dfafe",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -70,7 +70,7 @@
70
70
  "typescript": ">=5.0.4 <6",
71
71
  "yaml": "^2.9.0",
72
72
  "yoga-layout": "~3.2.1",
73
- "oxlint-plugin-react-doctor": "0.9.22"
73
+ "oxlint-plugin-react-doctor": "0.9.23-dev.05dfafe"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/babel__code-frame": "^7.27.0",
@@ -83,8 +83,8 @@
83
83
  "ora": "^9.4.0",
84
84
  "react": "19.2.5",
85
85
  "react-devtools-core": "^7.0.1",
86
- "@react-doctor/api": "0.9.22",
87
- "@react-doctor/core": "0.9.22"
86
+ "@react-doctor/api": "0.9.23",
87
+ "@react-doctor/core": "0.9.23"
88
88
  },
89
89
  "engines": {
90
90
  "node": "^20.19.0 || >=22.13.0"