react-doctor 0.6.2-dev.fc75a3e → 0.6.3-dev.1571119

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]="d9bbcb80-9ea3-576e-8f35-8215ed87eca7")}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]="8532f6fd-f5ce-59ae-940d-7bab36e5937d")}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";
@@ -40172,6 +40172,7 @@ function* collectSecurityScanFiles(rootDirectory) {
40172
40172
  isGeneratedBundleByName: classification.isGeneratedBundleByName
40173
40173
  });
40174
40174
  }
40175
+ yield null;
40175
40176
  }
40176
40177
  for (const candidates of [
40177
40178
  priorityCandidates,
@@ -40297,9 +40298,18 @@ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
40297
40298
  const session = createSecurityScanSession(rootDirectory, options);
40298
40299
  if (session === null) return [];
40299
40300
  let sliceStartedAt = performance.now();
40300
- for (const file of collectSecurityScanFiles(rootDirectory)) for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
40301
- await yieldToEventLoop();
40302
- sliceStartedAt = performance.now();
40301
+ for (const file of collectSecurityScanFiles(rootDirectory)) {
40302
+ if (file === null) {
40303
+ if (performance.now() - sliceStartedAt >= 12) {
40304
+ await yieldToEventLoop();
40305
+ sliceStartedAt = performance.now();
40306
+ }
40307
+ continue;
40308
+ }
40309
+ for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
40310
+ await yieldToEventLoop();
40311
+ sliceStartedAt = performance.now();
40312
+ }
40303
40313
  }
40304
40314
  return session.diagnostics;
40305
40315
  };
@@ -43266,6 +43276,7 @@ const runOxlint = async (options) => {
43266
43276
  "json",
43267
43277
  ...sharedArgs
43268
43278
  ];
43279
+ await yieldToEventLoop();
43269
43280
  const sizedScanFiles = includePaths === void 0 ? listSourceFilesWithSize(rootDirectory) : null;
43270
43281
  const candidateFiles = includePaths !== void 0 ? includePaths : (sizedScanFiles ?? []).map((entry) => entry.path);
43271
43282
  const sizeByFile = sizedScanFiles !== null && lintBatchOrdering === "cost" ? new Map(sizedScanFiles.map((entry) => [entry.path, entry.sizeBytes])) : null;
@@ -43336,6 +43347,7 @@ const runOxlint = async (options) => {
43336
43347
  const cacheKeyByFile = /* @__PURE__ */ new Map();
43337
43348
  const missFiles = [];
43338
43349
  const replayedDiagnostics = [];
43350
+ let hashSliceStartedAt = performance.now();
43339
43351
  for (const candidateFile of candidateFiles) {
43340
43352
  const contentHash = hashFileContents(Path.resolve(rootDirectory, candidateFile));
43341
43353
  if (contentHash === null) {
@@ -43347,6 +43359,10 @@ const runOxlint = async (options) => {
43347
43359
  const cachedDiagnostics = cache.lookup(cacheKey);
43348
43360
  if (cachedDiagnostics === null) missFiles.push(candidateFile);
43349
43361
  else replayedDiagnostics.push(...cachedDiagnostics);
43362
+ if (performance.now() - hashSliceStartedAt >= 12) {
43363
+ await yieldToEventLoop();
43364
+ hashSliceStartedAt = performance.now();
43365
+ }
43350
43366
  }
43351
43367
  const cacheHitFileCount = candidateFiles.length - missFiles.length;
43352
43368
  const fullResult = await runConfigOverFiles((overrides) => buildConfig({
@@ -45214,6 +45230,7 @@ const isNonInteractiveEnvironment = () => NON_INTERACTIVE_ENVIRONMENT_VARIABLES.
45214
45230
  const REACT_DOCTOR_CONFIG_PROJECT_NAME = "react-doctor";
45215
45231
  const STAGED_FILES_TEMP_DIR_PREFIX = "react-doctor-staged-";
45216
45232
  const BASELINE_FILES_TEMP_DIR_PREFIX = "react-doctor-baseline-";
45233
+ const RUN_GIT_MAX_BUFFER_BYTES = 64 * 1024 * 1024;
45217
45234
  const GH_DEFAULT_BRANCH_PROBE_TIMEOUT_MS = 5e3;
45218
45235
  const CI_TRUST_COMPANIES = "PayPal, Rippling, and Alibaba";
45219
45236
  const WELCOME_EXPLANATION_HOLD_MS = 1e3;
@@ -45304,7 +45321,7 @@ const makeNoopConsole = () => ({
45304
45321
  });
45305
45322
  //#endregion
45306
45323
  //#region src/cli/utils/version.ts
45307
- const VERSION = "0.6.2-dev.fc75a3e";
45324
+ const VERSION = "0.6.3-dev.1571119";
45308
45325
  //#endregion
45309
45326
  //#region src/cli/utils/json-mode.ts
45310
45327
  let context = null;
@@ -45673,13 +45690,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
45673
45690
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
45674
45691
  * standard `SENTRY_RELEASE` override.
45675
45692
  */
45676
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.6.2-dev.fc75a3e`;
45693
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.6.3-dev.1571119`;
45677
45694
  /**
45678
45695
  * Deployment environment shown in Sentry's environment filter. Defaults to
45679
45696
  * `production` for tagged releases and `development` for dev/unbuilt versions,
45680
45697
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
45681
45698
  */
45682
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.6.2-dev.fc75a3e") ? "development" : "production");
45699
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.6.3-dev.1571119") ? "development" : "production");
45683
45700
  /**
45684
45701
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
45685
45702
  * (set to `0` to disable tracing) and falls back to
@@ -45880,7 +45897,8 @@ const runGit = (projectRoot, args) => {
45880
45897
  "ignore",
45881
45898
  "pipe",
45882
45899
  "ignore"
45883
- ]
45900
+ ],
45901
+ maxBuffer: RUN_GIT_MAX_BUFFER_BYTES
45884
45902
  }).trim();
45885
45903
  } catch {
45886
45904
  return null;
@@ -63662,4 +63680,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
63662
63680
  export {};
63663
63681
 
63664
63682
  //# sourceMappingURL=cli.js.map
63665
- //# debugId=d9bbcb80-9ea3-576e-8f35-8215ed87eca7
63683
+ //# debugId=8532f6fd-f5ce-59ae-940d-7bab36e5937d
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]="1b2a9bb2-d6bc-5c9b-afbb-5b639438c617")}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]="8565c6ea-39f3-51e6-895a-ae9f7c026d0e")}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";
@@ -36945,6 +36945,7 @@ function* collectSecurityScanFiles(rootDirectory) {
36945
36945
  isGeneratedBundleByName: classification.isGeneratedBundleByName
36946
36946
  });
36947
36947
  }
36948
+ yield null;
36948
36949
  }
36949
36950
  for (const candidates of [
36950
36951
  priorityCandidates,
@@ -37070,9 +37071,18 @@ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
37070
37071
  const session = createSecurityScanSession(rootDirectory, options);
37071
37072
  if (session === null) return [];
37072
37073
  let sliceStartedAt = performance.now();
37073
- for (const file of collectSecurityScanFiles(rootDirectory)) for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
37074
- await yieldToEventLoop();
37075
- sliceStartedAt = performance.now();
37074
+ for (const file of collectSecurityScanFiles(rootDirectory)) {
37075
+ if (file === null) {
37076
+ if (performance.now() - sliceStartedAt >= 12) {
37077
+ await yieldToEventLoop();
37078
+ sliceStartedAt = performance.now();
37079
+ }
37080
+ continue;
37081
+ }
37082
+ for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
37083
+ await yieldToEventLoop();
37084
+ sliceStartedAt = performance.now();
37085
+ }
37076
37086
  }
37077
37087
  return session.diagnostics;
37078
37088
  };
@@ -40023,6 +40033,7 @@ const runOxlint = async (options) => {
40023
40033
  "json",
40024
40034
  ...sharedArgs
40025
40035
  ];
40036
+ await yieldToEventLoop();
40026
40037
  const sizedScanFiles = includePaths === void 0 ? listSourceFilesWithSize(rootDirectory) : null;
40027
40038
  const candidateFiles = includePaths !== void 0 ? includePaths : (sizedScanFiles ?? []).map((entry) => entry.path);
40028
40039
  const sizeByFile = sizedScanFiles !== null && lintBatchOrdering === "cost" ? new Map(sizedScanFiles.map((entry) => [entry.path, entry.sizeBytes])) : null;
@@ -40093,6 +40104,7 @@ const runOxlint = async (options) => {
40093
40104
  const cacheKeyByFile = /* @__PURE__ */ new Map();
40094
40105
  const missFiles = [];
40095
40106
  const replayedDiagnostics = [];
40107
+ let hashSliceStartedAt = performance.now();
40096
40108
  for (const candidateFile of candidateFiles) {
40097
40109
  const contentHash = hashFileContents(Path.resolve(rootDirectory, candidateFile));
40098
40110
  if (contentHash === null) {
@@ -40104,6 +40116,10 @@ const runOxlint = async (options) => {
40104
40116
  const cachedDiagnostics = cache.lookup(cacheKey);
40105
40117
  if (cachedDiagnostics === null) missFiles.push(candidateFile);
40106
40118
  else replayedDiagnostics.push(...cachedDiagnostics);
40119
+ if (performance.now() - hashSliceStartedAt >= 12) {
40120
+ await yieldToEventLoop();
40121
+ hashSliceStartedAt = performance.now();
40122
+ }
40107
40123
  }
40108
40124
  const cacheHitFileCount = candidateFiles.length - missFiles.length;
40109
40125
  const fullResult = await runConfigOverFiles((overrides) => buildConfig({
@@ -41830,4 +41846,4 @@ const toJsonReport = (result, options) => buildJsonReport({
41830
41846
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
41831
41847
 
41832
41848
  //# sourceMappingURL=index.js.map
41833
- //# debugId=1b2a9bb2-d6bc-5c9b-afbb-5b639438c617
41849
+ //# debugId=8565c6ea-39f3-51e6-895a-ae9f7c026d0e
package/dist/lsp.js CHANGED
@@ -36930,6 +36930,7 @@ function* collectSecurityScanFiles(rootDirectory) {
36930
36930
  isGeneratedBundleByName: classification.isGeneratedBundleByName
36931
36931
  });
36932
36932
  }
36933
+ yield null;
36933
36934
  }
36934
36935
  for (const candidates of [
36935
36936
  priorityCandidates,
@@ -37055,9 +37056,18 @@ const checkSecurityScanCooperative = async (rootDirectory, options = {}) => {
37055
37056
  const session = createSecurityScanSession(rootDirectory, options);
37056
37057
  if (session === null) return [];
37057
37058
  let sliceStartedAt = performance.now();
37058
- for (const file of collectSecurityScanFiles(rootDirectory)) for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
37059
- await yieldToEventLoop();
37060
- sliceStartedAt = performance.now();
37059
+ for (const file of collectSecurityScanFiles(rootDirectory)) {
37060
+ if (file === null) {
37061
+ if (performance.now() - sliceStartedAt >= 12) {
37062
+ await yieldToEventLoop();
37063
+ sliceStartedAt = performance.now();
37064
+ }
37065
+ continue;
37066
+ }
37067
+ for (const _ruleStep of session.scanFileByRule(file)) if (performance.now() - sliceStartedAt >= 12) {
37068
+ await yieldToEventLoop();
37069
+ sliceStartedAt = performance.now();
37070
+ }
37061
37071
  }
37062
37072
  return session.diagnostics;
37063
37073
  };
@@ -40008,6 +40018,7 @@ const runOxlint = async (options) => {
40008
40018
  "json",
40009
40019
  ...sharedArgs
40010
40020
  ];
40021
+ await yieldToEventLoop();
40011
40022
  const sizedScanFiles = includePaths === void 0 ? listSourceFilesWithSize(rootDirectory) : null;
40012
40023
  const candidateFiles = includePaths !== void 0 ? includePaths : (sizedScanFiles ?? []).map((entry) => entry.path);
40013
40024
  const sizeByFile = sizedScanFiles !== null && lintBatchOrdering === "cost" ? new Map(sizedScanFiles.map((entry) => [entry.path, entry.sizeBytes])) : null;
@@ -40078,6 +40089,7 @@ const runOxlint = async (options) => {
40078
40089
  const cacheKeyByFile = /* @__PURE__ */ new Map();
40079
40090
  const missFiles = [];
40080
40091
  const replayedDiagnostics = [];
40092
+ let hashSliceStartedAt = performance.now();
40081
40093
  for (const candidateFile of candidateFiles) {
40082
40094
  const contentHash = hashFileContents(Path.resolve(rootDirectory, candidateFile));
40083
40095
  if (contentHash === null) {
@@ -40089,6 +40101,10 @@ const runOxlint = async (options) => {
40089
40101
  const cachedDiagnostics = cache.lookup(cacheKey);
40090
40102
  if (cachedDiagnostics === null) missFiles.push(candidateFile);
40091
40103
  else replayedDiagnostics.push(...cachedDiagnostics);
40104
+ if (performance.now() - hashSliceStartedAt >= 12) {
40105
+ await yieldToEventLoop();
40106
+ hashSliceStartedAt = performance.now();
40107
+ }
40092
40108
  }
40093
40109
  const cacheHitFileCount = candidateFiles.length - missFiles.length;
40094
40110
  const fullResult = await runConfigOverFiles((overrides) => buildConfig({
@@ -41504,7 +41520,7 @@ const computeConfigFingerprint = (projectDirectory, version) => {
41504
41520
  /** Display name used in client-facing messages and progress titles. */
41505
41521
  const SERVER_DISPLAY_NAME = "React Doctor";
41506
41522
  /** Server version reported in `serverInfo`; injected at build, `dev` from source. */
41507
- const SERVER_VERSION = "0.6.2";
41523
+ const SERVER_VERSION = "0.6.3";
41508
41524
  /** `Diagnostic.source` shown next to every published diagnostic. */
41509
41525
  const DIAGNOSTIC_SOURCE = "react-doctor";
41510
41526
  /**
@@ -43554,5 +43570,5 @@ const startLanguageServer = () => {
43554
43570
  };
43555
43571
  //#endregion
43556
43572
  export { startLanguageServer };
43557
- !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]="75579803-66de-5f78-8ded-3ed584f2e100")}catch(e){}}();
43558
- //# debugId=75579803-66de-5f78-8ded-3ed584f2e100
43573
+ !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]="94a57ec3-d5a9-52ea-a743-e91d996065b8")}catch(e){}}();
43574
+ //# debugId=94a57ec3-d5a9-52ea-a743-e91d996065b8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.6.2-dev.fc75a3e",
3
+ "version": "0.6.3-dev.1571119",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -65,8 +65,8 @@
65
65
  "vscode-languageserver-textdocument": "^1.0.12",
66
66
  "vscode-uri": "^3.1.0",
67
67
  "yaml": "^2.9.0",
68
- "deslop-js": "0.6.2",
69
- "oxlint-plugin-react-doctor": "0.6.2-dev.fc75a3e"
68
+ "deslop-js": "0.6.3",
69
+ "oxlint-plugin-react-doctor": "0.6.3-dev.1571119"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/babel__code-frame": "^7.27.0",
@@ -74,9 +74,9 @@
74
74
  "@xterm/headless": "^6.0.0",
75
75
  "commander": "^14.0.3",
76
76
  "ora": "^9.4.0",
77
- "@react-doctor/language-server": "0.6.2",
78
- "@react-doctor/api": "0.6.2",
79
- "@react-doctor/core": "0.6.2"
77
+ "@react-doctor/core": "0.6.3",
78
+ "@react-doctor/api": "0.6.3",
79
+ "@react-doctor/language-server": "0.6.3"
80
80
  },
81
81
  "engines": {
82
82
  "node": "^20.19.0 || >=22.13.0"