react-doctor 0.9.0-dev.1e67af0 → 0.9.0-dev.30369b6
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 +8 -7
- package/dist/index.js +4 -3
- package/dist/lsp.js +4 -3
- package/package.json +3 -3
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]="
|
|
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]="b50e5764-57f0-54b7-81f8-530e6656066f")}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";
|
|
@@ -65379,6 +65379,7 @@ const frameworkMergeRank = (framework) => {
|
|
|
65379
65379
|
return MOBILE_FRAMEWORKS.has(framework) ? 2 : 1;
|
|
65380
65380
|
};
|
|
65381
65381
|
const REACT_COMPILER_LINT_PACKAGES = new Set(["eslint-plugin-react-compiler"]);
|
|
65382
|
+
const REACT_COMPILER_RUNTIME_PACKAGES = new Set(["react-compiler-runtime"]);
|
|
65382
65383
|
const NEXT_CONFIG_FILENAMES = [
|
|
65383
65384
|
"next.config.js",
|
|
65384
65385
|
"next.config.mjs",
|
|
@@ -66085,7 +66086,7 @@ const hasCompilerConfigurationInAncestors = (directory) => {
|
|
|
66085
66086
|
}
|
|
66086
66087
|
return false;
|
|
66087
66088
|
};
|
|
66088
|
-
const detectReactCompiler = (directory, packageJson) => hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
|
|
66089
|
+
const detectReactCompiler = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
|
|
66089
66090
|
const detectReactCompilerLintPlugin = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_LINT_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_LINT_PACKAGES);
|
|
66090
66091
|
const detectNextjsStaticExport = (directory) => NEXT_CONFIG_FILENAMES.some((filename) => {
|
|
66091
66092
|
const filePath = Path.join(directory, filename);
|
|
@@ -77409,7 +77410,7 @@ const makeNoopConsole = () => ({
|
|
|
77409
77410
|
});
|
|
77410
77411
|
//#endregion
|
|
77411
77412
|
//#region src/cli/utils/version.ts
|
|
77412
|
-
const VERSION = "0.9.0-dev.
|
|
77413
|
+
const VERSION = "0.9.0-dev.30369b6";
|
|
77413
77414
|
//#endregion
|
|
77414
77415
|
//#region src/cli/utils/json-mode.ts
|
|
77415
77416
|
let context = null;
|
|
@@ -77767,13 +77768,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
77767
77768
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
77768
77769
|
* standard `SENTRY_RELEASE` override.
|
|
77769
77770
|
*/
|
|
77770
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.0-dev.
|
|
77771
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.0-dev.30369b6`;
|
|
77771
77772
|
/**
|
|
77772
77773
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
77773
77774
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
77774
77775
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
77775
77776
|
*/
|
|
77776
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.0-dev.
|
|
77777
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.0-dev.30369b6") ? "development" : "production");
|
|
77777
77778
|
/**
|
|
77778
77779
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
77779
77780
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -96468,7 +96469,7 @@ ${formatExampleLines([
|
|
|
96468
96469
|
])}
|
|
96469
96470
|
|
|
96470
96471
|
${highlighter.dim("Scope:")}
|
|
96471
|
-
Runs
|
|
96472
|
+
Runs every rule tagged ${highlighter.info("design")}; all design rules stay opt-in during a general health scan.
|
|
96472
96473
|
Dead-code, supply-chain, external lint-config, custom-plugin, and health-score passes are skipped.
|
|
96473
96474
|
Standard scan flags such as ${highlighter.info("--scope")}, ${highlighter.info("--project")}, ${highlighter.info("--verbose")}, and ${highlighter.info("--json")} still work.
|
|
96474
96475
|
`;
|
|
@@ -96571,4 +96572,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
96571
96572
|
export { toForwardSlashes as A, highlighter as B, buildRulePriorityMap as C, resolveBlockingLevel as D, formatLearnMoreLine as E, isCiEnvironment as F, sync as G, mergeReactDoctorConfigs as H, DIAGNOSTIC_CATEGORY_BUCKETS as I, void_ as K, Progress as L, isUnicodeSupported as M, METRIC as N, isReactDoctorWorkflowInstalled as O, TUI_REPORT_DETAIL_WIDTH_FRACTION as P, Reporter as R, hasLintHardFailure as S, formatFixRecipeLine as T, resolveScanTarget as U, mapWithConcurrency as V, runPromise as W, canAnimateOnboarding as _, resolveCliInspectOptions as a, buildCodeFrame as b, detectLaunchableAgents as c, launchCliAgent as d, isShareOptedOut as f, doctorFace as g, easeOutCubic as h, selectProjects as i, findNearestPackageDirectory as j, recordCount as k, CLI_AGENT_BINARIES as l, printFooter as m, shouldFailScanGate as n, countUniqueScannedFiles as o, inspect as p, succeed$3 as q, discoverWorkspacePackages as r, setUpGitHubActions as s, exitGracefully as t, copyToClipboard as u, computeProjectedScore as v, buildSortedRuleGroups as w, buildNoScoreMessage as x, formatElapsedTime as y, getCategoryImpact as z };
|
|
96572
96573
|
|
|
96573
96574
|
//# sourceMappingURL=cli.js.map
|
|
96574
|
-
//# debugId=
|
|
96575
|
+
//# debugId=b50e5764-57f0-54b7-81f8-530e6656066f
|
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]="
|
|
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]="15a71be1-a569-52e7-b9d5-4796065a0f2a")}catch(e){}}();
|
|
3
3
|
import { i as __toESM$1, r as __require, t as __commonJSMin$1 } from "./chunk-ChKA3wi6.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import reactDoctorPlugin, { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor";
|
|
@@ -62182,6 +62182,7 @@ const frameworkMergeRank = (framework) => {
|
|
|
62182
62182
|
return MOBILE_FRAMEWORKS.has(framework) ? 2 : 1;
|
|
62183
62183
|
};
|
|
62184
62184
|
const REACT_COMPILER_LINT_PACKAGES = new Set(["eslint-plugin-react-compiler"]);
|
|
62185
|
+
const REACT_COMPILER_RUNTIME_PACKAGES = new Set(["react-compiler-runtime"]);
|
|
62185
62186
|
const NEXT_CONFIG_FILENAMES = [
|
|
62186
62187
|
"next.config.js",
|
|
62187
62188
|
"next.config.mjs",
|
|
@@ -62888,7 +62889,7 @@ const hasCompilerConfigurationInAncestors = (directory) => {
|
|
|
62888
62889
|
}
|
|
62889
62890
|
return false;
|
|
62890
62891
|
};
|
|
62891
|
-
const detectReactCompiler = (directory, packageJson) => hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
|
|
62892
|
+
const detectReactCompiler = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
|
|
62892
62893
|
const detectReactCompilerLintPlugin = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_LINT_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_LINT_PACKAGES);
|
|
62893
62894
|
const detectNextjsStaticExport = (directory) => NEXT_CONFIG_FILENAMES.some((filename) => {
|
|
62894
62895
|
const filePath = Path.join(directory, filename);
|
|
@@ -73883,4 +73884,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
73883
73884
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
73884
73885
|
|
|
73885
73886
|
//# sourceMappingURL=index.js.map
|
|
73886
|
-
//# debugId=
|
|
73887
|
+
//# debugId=15a71be1-a569-52e7-b9d5-4796065a0f2a
|
package/dist/lsp.js
CHANGED
|
@@ -62235,6 +62235,7 @@ const frameworkMergeRank = (framework) => {
|
|
|
62235
62235
|
return MOBILE_FRAMEWORKS.has(framework) ? 2 : 1;
|
|
62236
62236
|
};
|
|
62237
62237
|
const REACT_COMPILER_LINT_PACKAGES = new Set(["eslint-plugin-react-compiler"]);
|
|
62238
|
+
const REACT_COMPILER_RUNTIME_PACKAGES = new Set(["react-compiler-runtime"]);
|
|
62238
62239
|
const NEXT_CONFIG_FILENAMES = [
|
|
62239
62240
|
"next.config.js",
|
|
62240
62241
|
"next.config.mjs",
|
|
@@ -62941,7 +62942,7 @@ const hasCompilerConfigurationInAncestors = (directory) => {
|
|
|
62941
62942
|
}
|
|
62942
62943
|
return false;
|
|
62943
62944
|
};
|
|
62944
|
-
const detectReactCompiler = (directory, packageJson) => hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
|
|
62945
|
+
const detectReactCompiler = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
|
|
62945
62946
|
const detectReactCompilerLintPlugin = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_LINT_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_LINT_PACKAGES);
|
|
62946
62947
|
const detectNextjsStaticExport = (directory) => NEXT_CONFIG_FILENAMES.some((filename) => {
|
|
62947
62948
|
const filePath = Path.join(directory, filename);
|
|
@@ -75504,5 +75505,5 @@ const startLanguageServer = () => {
|
|
|
75504
75505
|
};
|
|
75505
75506
|
//#endregion
|
|
75506
75507
|
export { startLanguageServer };
|
|
75507
|
-
!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]="
|
|
75508
|
-
//# debugId=
|
|
75508
|
+
!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]="e096785e-6914-5fc2-a183-b829bd591466")}catch(e){}}();
|
|
75509
|
+
//# debugId=e096785e-6914-5fc2-a183-b829bd591466
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.9.0-dev.
|
|
3
|
+
"version": "0.9.0-dev.30369b6",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
70
70
|
"vscode-uri": "^3.1.0",
|
|
71
71
|
"yaml": "^2.9.0",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
72
|
+
"oxlint-plugin-react-doctor": "0.9.0-dev.30369b6",
|
|
73
|
+
"deslop-js": "0.9.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/babel__code-frame": "^7.27.0",
|