react-doctor 0.5.8-dev.986557d → 0.5.8-dev.c2ce298

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/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
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]="f65daf5b-9cf1-5118-9736-6ffc410231a0")}catch(e){}}();
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]="b0741e5a-8791-58ae-be3e-0ea33c204326")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import * as NodeChildProcess from "node:child_process";
5
5
  import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
@@ -37679,7 +37679,10 @@ for (const [legacyRuleKey, nativeRuleKey] of Object.entries(LEGACY_RULE_KEY_TO_N
37679
37679
  NATIVE_RULE_KEY_TO_LEGACY_RULE_KEYS.set(nativeRuleKey, aliases);
37680
37680
  }
37681
37681
  const getLegacyRuleKeysForNative = (ruleKey) => NATIVE_RULE_KEY_TO_LEGACY_RULE_KEYS.get(ruleKey) ?? [];
37682
- const canonicalizeRuleKey = (ruleKey) => LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY[ruleKey] ?? ruleKey;
37682
+ const canonicalizeRuleKey = (ruleKey) => {
37683
+ const nativeRuleKey = LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY[ruleKey];
37684
+ return typeof nativeRuleKey === "string" ? nativeRuleKey : ruleKey;
37685
+ };
37683
37686
  const isReactDoctorShortIdOf = (bareRuleKey, qualifiedRuleKey) => !bareRuleKey.includes("/") && qualifiedRuleKey === `react-doctor/${bareRuleKey}`;
37684
37687
  const isSameRuleKey = (candidateRuleKey, targetRuleKey) => {
37685
37688
  const canonicalCandidate = canonicalizeRuleKey(candidateRuleKey);
@@ -44911,7 +44914,7 @@ const makeNoopConsole = () => ({
44911
44914
  });
44912
44915
  //#endregion
44913
44916
  //#region src/cli/utils/version.ts
44914
- const VERSION = "0.5.8-dev.986557d";
44917
+ const VERSION = "0.5.8-dev.c2ce298";
44915
44918
  //#endregion
44916
44919
  //#region src/cli/utils/json-mode.ts
44917
44920
  let context = null;
@@ -45275,13 +45278,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
45275
45278
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
45276
45279
  * standard `SENTRY_RELEASE` override.
45277
45280
  */
45278
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.8-dev.986557d`;
45281
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.8-dev.c2ce298`;
45279
45282
  /**
45280
45283
  * Deployment environment shown in Sentry's environment filter. Defaults to
45281
45284
  * `production` for tagged releases and `development` for dev/unbuilt versions,
45282
45285
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
45283
45286
  */
45284
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.8-dev.986557d") ? "development" : "production");
45287
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.8-dev.c2ce298") ? "development" : "production");
45285
45288
  /**
45286
45289
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
45287
45290
  * (set to `0` to disable tracing) and falls back to
@@ -55408,4 +55411,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
55408
55411
  export {};
55409
55412
 
55410
55413
  //# sourceMappingURL=cli.js.map
55411
- //# debugId=f65daf5b-9cf1-5118-9736-6ffc410231a0
55414
+ //# debugId=b0741e5a-8791-58ae-be3e-0ea33c204326
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
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]="33508ee6-c977-5b5f-8585-9939928ce74d")}catch(e){}}();
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]="fa4e432e-2004-53cc-816a-025aebf1c752")}catch(e){}}();
3
3
  import { r as __toESM$1, t as __commonJSMin$1 } from "./chunk-N93fKeF6.js";
4
4
  import { createRequire } from "node:module";
5
5
  import * as NFS from "node:fs";
@@ -34487,7 +34487,10 @@ for (const [legacyRuleKey, nativeRuleKey] of Object.entries(LEGACY_RULE_KEY_TO_N
34487
34487
  NATIVE_RULE_KEY_TO_LEGACY_RULE_KEYS.set(nativeRuleKey, aliases);
34488
34488
  }
34489
34489
  const getLegacyRuleKeysForNative = (ruleKey) => NATIVE_RULE_KEY_TO_LEGACY_RULE_KEYS.get(ruleKey) ?? [];
34490
- const canonicalizeRuleKey = (ruleKey) => LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY[ruleKey] ?? ruleKey;
34490
+ const canonicalizeRuleKey = (ruleKey) => {
34491
+ const nativeRuleKey = LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY[ruleKey];
34492
+ return typeof nativeRuleKey === "string" ? nativeRuleKey : ruleKey;
34493
+ };
34491
34494
  const isReactDoctorShortIdOf = (bareRuleKey, qualifiedRuleKey) => !bareRuleKey.includes("/") && qualifiedRuleKey === `react-doctor/${bareRuleKey}`;
34492
34495
  const isSameRuleKey = (candidateRuleKey, targetRuleKey) => {
34493
34496
  const canonicalCandidate = canonicalizeRuleKey(candidateRuleKey);
@@ -41469,4 +41472,4 @@ const toJsonReport = (result, options) => buildJsonReport({
41469
41472
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
41470
41473
 
41471
41474
  //# sourceMappingURL=index.js.map
41472
- //# debugId=33508ee6-c977-5b5f-8585-9939928ce74d
41475
+ //# debugId=fa4e432e-2004-53cc-816a-025aebf1c752
package/dist/lsp.js CHANGED
@@ -34546,7 +34546,10 @@ for (const [legacyRuleKey, nativeRuleKey] of Object.entries(LEGACY_RULE_KEY_TO_N
34546
34546
  NATIVE_RULE_KEY_TO_LEGACY_RULE_KEYS.set(nativeRuleKey, aliases);
34547
34547
  }
34548
34548
  const getLegacyRuleKeysForNative = (ruleKey) => NATIVE_RULE_KEY_TO_LEGACY_RULE_KEYS.get(ruleKey) ?? [];
34549
- const canonicalizeRuleKey = (ruleKey) => LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY[ruleKey] ?? ruleKey;
34549
+ const canonicalizeRuleKey = (ruleKey) => {
34550
+ const nativeRuleKey = LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY[ruleKey];
34551
+ return typeof nativeRuleKey === "string" ? nativeRuleKey : ruleKey;
34552
+ };
34550
34553
  const isReactDoctorShortIdOf = (bareRuleKey, qualifiedRuleKey) => !bareRuleKey.includes("/") && qualifiedRuleKey === `react-doctor/${bareRuleKey}`;
34551
34554
  const isSameRuleKey = (candidateRuleKey, targetRuleKey) => {
34552
34555
  const canonicalCandidate = canonicalizeRuleKey(candidateRuleKey);
@@ -43249,5 +43252,5 @@ const startLanguageServer = () => {
43249
43252
  };
43250
43253
  //#endregion
43251
43254
  export { startLanguageServer };
43252
- !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]="9ee72ccc-703c-588f-b7e4-c92657144721")}catch(e){}}();
43253
- //# debugId=9ee72ccc-703c-588f-b7e4-c92657144721
43255
+ !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]="28a9132e-0eb3-5487-9d97-46eb9456a794")}catch(e){}}();
43256
+ //# debugId=28a9132e-0eb3-5487-9d97-46eb9456a794
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.5.8-dev.986557d",
3
+ "version": "0.5.8-dev.c2ce298",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -63,8 +63,8 @@
63
63
  "vscode-languageserver": "^9.0.1",
64
64
  "vscode-languageserver-textdocument": "^1.0.12",
65
65
  "vscode-uri": "^3.1.0",
66
- "oxlint-plugin-react-doctor": "0.5.8-dev.986557d",
67
- "deslop-js": "0.5.8"
66
+ "deslop-js": "0.5.8",
67
+ "oxlint-plugin-react-doctor": "0.5.8-dev.c2ce298"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@types/babel__code-frame": "^7.27.0",
@@ -72,9 +72,9 @@
72
72
  "@xterm/headless": "^6.0.0",
73
73
  "commander": "^14.0.3",
74
74
  "ora": "^9.4.0",
75
- "@react-doctor/core": "0.5.8",
75
+ "@react-doctor/api": "0.5.8",
76
76
  "@react-doctor/language-server": "0.5.8",
77
- "@react-doctor/api": "0.5.8"
77
+ "@react-doctor/core": "0.5.8"
78
78
  },
79
79
  "engines": {
80
80
  "node": "^20.19.0 || >=22.13.0"