react-doctor 0.4.2-dev.829655c → 0.4.2-dev.98066c2

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]="2ea4b3e1-2440-54c8-ae15-199dbd57bbe6")}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]="e1ad7784-a0ce-584d-ae5f-d37a821e4c57")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
5
5
  import * as path$1 from "node:path";
@@ -5151,8 +5151,8 @@ const isFile = (filePath) => {
5151
5151
  return false;
5152
5152
  }
5153
5153
  };
5154
- const SOURCE_FILE_PATTERN = /\.(tsx?|jsx?)$/;
5155
- const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.js$/i;
5154
+ const SOURCE_FILE_PATTERN = /\.(tsx?|jsx?|mts|mjs)$/;
5155
+ const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
5156
5156
  const MINIFIED_SNIFF_BYTES = 65536;
5157
5157
  const GIT_LS_FILES_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
5158
5158
  const IGNORED_DIRECTORIES = new Set([
@@ -8555,7 +8555,9 @@ const setColorEnabled = (enabled) => {
8555
8555
  highlighter.gray = colors.gray;
8556
8556
  highlighter.bold = colors.bold;
8557
8557
  };
8558
- const computeJsxIncludePaths = (includePaths) => includePaths.length > 0 ? includePaths.filter((filePath) => JSX_FILE_PATTERN.test(filePath)) : void 0;
8558
+ const NEXT_ENTRY_FILE_PATTERN = /^(?:\.\/)?(?:src\/)?(?:middleware|proxy)\.(?:tsx?|jsx?|mts|mjs)$/;
8559
+ const shouldIncludeExplicitLintPath = (filePath, project) => JSX_FILE_PATTERN.test(filePath) || project?.framework === "nextjs" && NEXT_ENTRY_FILE_PATTERN.test(filePath);
8560
+ const computeExplicitLintIncludePaths = (includePaths, project) => includePaths.length > 0 ? includePaths.filter((filePath) => shouldIncludeExplicitLintPath(filePath, project)) : void 0;
8559
8561
  const LINGUIST_ATTRIBUTE_PATTERN = /^linguist-(?:vendored|generated)(?:=([a-zA-Z0-9]+))?$/i;
8560
8562
  const FALSY_VALUES = new Set([
8561
8563
  "false",
@@ -9105,11 +9107,11 @@ const listSourceFilesViaFilesystem = (rootDirectory) => {
9105
9107
  return filePaths;
9106
9108
  };
9107
9109
  const listSourceFiles = (rootDirectory) => excludeMinifiedFiles(rootDirectory, listSourceFilesViaGit(rootDirectory) ?? listSourceFilesViaFilesystem(rootDirectory));
9108
- const resolveLintIncludePaths = (rootDirectory, userConfig) => {
9110
+ const resolveLintIncludePaths = (rootDirectory, userConfig, project) => {
9109
9111
  if (!Array.isArray(userConfig?.ignore?.files) || userConfig.ignore.files.length === 0) return;
9110
9112
  const ignoredPatterns = compileIgnoredFilePatterns(userConfig);
9111
9113
  return listSourceFiles(rootDirectory).filter((filePath) => {
9112
- if (!JSX_FILE_PATTERN.test(filePath)) return false;
9114
+ if (!shouldIncludeExplicitLintPath(filePath, project)) return false;
9113
9115
  return !isFileIgnoredByPatterns(filePath, rootDirectory, ignoredPatterns);
9114
9116
  });
9115
9117
  };
@@ -11461,7 +11463,7 @@ const runInspect = (input, hooks = {}) => Effect.gen(function* () {
11461
11463
  directory: scanDirectory,
11462
11464
  repo
11463
11465
  }).pipe(Effect.orElseSucceed(() => null)) : Effect.succeed(null));
11464
- const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 : computeJsxIncludePaths([...input.includePaths])) ?? resolveLintIncludePaths(scanDirectory, resolvedConfig.config);
11466
+ const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 : computeExplicitLintIncludePaths([...input.includePaths], project)) ?? resolveLintIncludePaths(scanDirectory, resolvedConfig.config, project);
11465
11467
  const scannedFilePaths = input.suppressScanSummary ? (lintIncludePaths ?? (yield* filesService.listSourceFiles(scanDirectory))).map((relativePath) => path$1.resolve(scanDirectory, relativePath)) : [];
11466
11468
  const beforeLint = hooks.beforeLint ?? NO_HOOKS.beforeLint;
11467
11469
  const afterLint = hooks.afterLint ?? NO_HOOKS.afterLint;
@@ -12247,7 +12249,7 @@ const makeNoopConsole = () => ({
12247
12249
  });
12248
12250
  //#endregion
12249
12251
  //#region src/cli/utils/version.ts
12250
- const VERSION = "0.4.2-dev.829655c";
12252
+ const VERSION = "0.4.2-dev.98066c2";
12251
12253
  //#endregion
12252
12254
  //#region src/cli/utils/json-mode.ts
12253
12255
  let context = null;
@@ -12605,13 +12607,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
12605
12607
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
12606
12608
  * standard `SENTRY_RELEASE` override.
12607
12609
  */
12608
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.2-dev.829655c`;
12610
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.2-dev.98066c2`;
12609
12611
  /**
12610
12612
  * Deployment environment shown in Sentry's environment filter. Defaults to
12611
12613
  * `production` for tagged releases and `development` for dev/unbuilt versions,
12612
12614
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
12613
12615
  */
12614
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.2-dev.829655c") ? "development" : "production");
12616
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.2-dev.98066c2") ? "development" : "production");
12615
12617
  /**
12616
12618
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
12617
12619
  * (set to `0` to disable tracing) and falls back to
@@ -15874,13 +15876,14 @@ const buildRuntimeLayers = (input) => {
15874
15876
  const linterLayer = input.shouldSkipLint ? Linter.layerOf([]) : Linter.layerOxlint;
15875
15877
  const deadCodeLayer = input.shouldRunDeadCode ? DeadCode.layerNode : DeadCode.layerOf([]);
15876
15878
  const scoreLayer = input.shouldComputeScore ? Score.layerHttp : Score.layerOf(null);
15879
+ const projectLayer = input.projectInfoOverride === void 0 ? Project.layerNode : Project.layerOf(input.projectInfoOverride);
15877
15880
  const progressLayer = input.shouldShowProgressSpinners ? Progress.layerOra(buildSpinnerProgressHandle) : Progress.layerNoop;
15878
15881
  const configLayer = input.hasConfigOverride ? Config.layerOf({
15879
15882
  config: input.userConfig,
15880
15883
  resolvedDirectory: input.directory,
15881
15884
  configSourceDirectory: input.configSourceDirectory
15882
15885
  }) : Config.layerNode;
15883
- const baseLayers = Layer.mergeAll(Project.layerNode, configLayer, Files.layerNode, Git.layerNode, linterLayer, LintPartialFailures.layerLive, deadCodeLayer, progressLayer, Reporter.layerNoop, scoreLayer);
15886
+ const baseLayers = Layer.mergeAll(projectLayer, configLayer, Files.layerNode, Git.layerNode, linterLayer, LintPartialFailures.layerLive, deadCodeLayer, progressLayer, Reporter.layerNoop, scoreLayer);
15884
15887
  return input.oxlintConcurrency === void 0 ? baseLayers : Layer.mergeAll(baseLayers, Layer.succeed(OxlintConcurrency, input.oxlintConcurrency));
15885
15888
  };
15886
15889
  //#endregion
@@ -17347,6 +17350,7 @@ const runBaselineComparison = async (params) => {
17347
17350
  hasConfigOverride: true,
17348
17351
  userConfig: params.userConfig,
17349
17352
  configSourceDirectory: null,
17353
+ projectInfoOverride: params.headProjectInfo,
17350
17354
  shouldSkipLint: !params.options.lint || !params.resolvedNodeBinaryPath,
17351
17355
  shouldRunDeadCode: false,
17352
17356
  shouldComputeScore: false,
@@ -17446,6 +17450,7 @@ const runInspectWithRuntime = async (directory, options, userConfig, hasConfigOv
17446
17450
  directory,
17447
17451
  options,
17448
17452
  userConfig,
17453
+ headProjectInfo: output.project,
17449
17454
  headDiagnostics: output.diagnostics,
17450
17455
  resolvedNodeBinaryPath,
17451
17456
  baselineRef: options.baseline.ref
@@ -21574,4 +21579,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
21574
21579
  export {};
21575
21580
 
21576
21581
  //# sourceMappingURL=cli.js.map
21577
- //# debugId=2ea4b3e1-2440-54c8-ae15-199dbd57bbe6
21582
+ //# debugId=e1ad7784-a0ce-584d-ae5f-d37a821e4c57
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]="82aa4a60-8b72-5f7a-bdd2-285b7fe0e8f3")}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]="3464aaf0-7929-5863-b44e-a34e909e3e87")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import * as Schema from "effect/Schema";
5
5
  import * as fs$1 from "node:fs";
@@ -2125,8 +2125,8 @@ const isFile = (filePath) => {
2125
2125
  return false;
2126
2126
  }
2127
2127
  };
2128
- const SOURCE_FILE_PATTERN = /\.(tsx?|jsx?)$/;
2129
- const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.js$/i;
2128
+ const SOURCE_FILE_PATTERN = /\.(tsx?|jsx?|mts|mjs)$/;
2129
+ const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
2130
2130
  const MINIFIED_SNIFF_BYTES = 65536;
2131
2131
  const GIT_LS_FILES_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
2132
2132
  const IGNORED_DIRECTORIES = new Set([
@@ -5482,7 +5482,9 @@ const highlighter = {
5482
5482
  gray: import_picocolors.default.gray,
5483
5483
  bold: import_picocolors.default.bold
5484
5484
  };
5485
- const computeJsxIncludePaths = (includePaths) => includePaths.length > 0 ? includePaths.filter((filePath) => JSX_FILE_PATTERN.test(filePath)) : void 0;
5485
+ const NEXT_ENTRY_FILE_PATTERN = /^(?:\.\/)?(?:src\/)?(?:middleware|proxy)\.(?:tsx?|jsx?|mts|mjs)$/;
5486
+ const shouldIncludeExplicitLintPath = (filePath, project) => JSX_FILE_PATTERN.test(filePath) || project?.framework === "nextjs" && NEXT_ENTRY_FILE_PATTERN.test(filePath);
5487
+ const computeExplicitLintIncludePaths = (includePaths, project) => includePaths.length > 0 ? includePaths.filter((filePath) => shouldIncludeExplicitLintPath(filePath, project)) : void 0;
5486
5488
  const LINGUIST_ATTRIBUTE_PATTERN = /^linguist-(?:vendored|generated)(?:=([a-zA-Z0-9]+))?$/i;
5487
5489
  const FALSY_VALUES = new Set([
5488
5490
  "false",
@@ -6035,11 +6037,11 @@ const listSourceFilesViaFilesystem = (rootDirectory) => {
6035
6037
  return filePaths;
6036
6038
  };
6037
6039
  const listSourceFiles = (rootDirectory) => excludeMinifiedFiles(rootDirectory, listSourceFilesViaGit(rootDirectory) ?? listSourceFilesViaFilesystem(rootDirectory));
6038
- const resolveLintIncludePaths = (rootDirectory, userConfig) => {
6040
+ const resolveLintIncludePaths = (rootDirectory, userConfig, project) => {
6039
6041
  if (!Array.isArray(userConfig?.ignore?.files) || userConfig.ignore.files.length === 0) return;
6040
6042
  const ignoredPatterns = compileIgnoredFilePatterns(userConfig);
6041
6043
  return listSourceFiles(rootDirectory).filter((filePath) => {
6042
- if (!JSX_FILE_PATTERN.test(filePath)) return false;
6044
+ if (!shouldIncludeExplicitLintPath(filePath, project)) return false;
6043
6045
  return !isFileIgnoredByPatterns(filePath, rootDirectory, ignoredPatterns);
6044
6046
  });
6045
6047
  };
@@ -8391,7 +8393,7 @@ const runInspect = (input, hooks = {}) => Effect.gen(function* () {
8391
8393
  directory: scanDirectory,
8392
8394
  repo
8393
8395
  }).pipe(Effect.orElseSucceed(() => null)) : Effect.succeed(null));
8394
- const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 : computeJsxIncludePaths([...input.includePaths])) ?? resolveLintIncludePaths(scanDirectory, resolvedConfig.config);
8396
+ const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 : computeExplicitLintIncludePaths([...input.includePaths], project)) ?? resolveLintIncludePaths(scanDirectory, resolvedConfig.config, project);
8395
8397
  const scannedFilePaths = input.suppressScanSummary ? (lintIncludePaths ?? (yield* filesService.listSourceFiles(scanDirectory))).map((relativePath) => path$1.resolve(scanDirectory, relativePath)) : [];
8396
8398
  const beforeLint = hooks.beforeLint ?? NO_HOOKS.beforeLint;
8397
8399
  const afterLint = hooks.afterLint ?? NO_HOOKS.afterLint;
@@ -8989,4 +8991,4 @@ const toJsonReport = (result, options) => buildJsonReport({
8989
8991
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
8990
8992
 
8991
8993
  //# sourceMappingURL=index.js.map
8992
- //# debugId=82aa4a60-8b72-5f7a-bdd2-285b7fe0e8f3
8994
+ //# debugId=3464aaf0-7929-5863-b44e-a34e909e3e87
package/dist/lsp.js CHANGED
@@ -2136,8 +2136,8 @@ const isFile = (filePath) => {
2136
2136
  return false;
2137
2137
  }
2138
2138
  };
2139
- const SOURCE_FILE_PATTERN = /\.(tsx?|jsx?)$/;
2140
- const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.js$/i;
2139
+ const SOURCE_FILE_PATTERN = /\.(tsx?|jsx?|mts|mjs)$/;
2140
+ const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
2141
2141
  const MINIFIED_SNIFF_BYTES = 65536;
2142
2142
  const GIT_LS_FILES_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
2143
2143
  const IGNORED_DIRECTORIES = new Set([
@@ -5419,7 +5419,9 @@ const highlighter = {
5419
5419
  gray: import_picocolors.default.gray,
5420
5420
  bold: import_picocolors.default.bold
5421
5421
  };
5422
- const computeJsxIncludePaths = (includePaths) => includePaths.length > 0 ? includePaths.filter((filePath) => JSX_FILE_PATTERN.test(filePath)) : void 0;
5422
+ const NEXT_ENTRY_FILE_PATTERN = /^(?:\.\/)?(?:src\/)?(?:middleware|proxy)\.(?:tsx?|jsx?|mts|mjs)$/;
5423
+ const shouldIncludeExplicitLintPath = (filePath, project) => JSX_FILE_PATTERN.test(filePath) || project?.framework === "nextjs" && NEXT_ENTRY_FILE_PATTERN.test(filePath);
5424
+ const computeExplicitLintIncludePaths = (includePaths, project) => includePaths.length > 0 ? includePaths.filter((filePath) => shouldIncludeExplicitLintPath(filePath, project)) : void 0;
5423
5425
  const LINGUIST_ATTRIBUTE_PATTERN = /^linguist-(?:vendored|generated)(?:=([a-zA-Z0-9]+))?$/i;
5424
5426
  const FALSY_VALUES = new Set([
5425
5427
  "false",
@@ -5972,11 +5974,11 @@ const listSourceFilesViaFilesystem = (rootDirectory) => {
5972
5974
  return filePaths;
5973
5975
  };
5974
5976
  const listSourceFiles = (rootDirectory) => excludeMinifiedFiles(rootDirectory, listSourceFilesViaGit(rootDirectory) ?? listSourceFilesViaFilesystem(rootDirectory));
5975
- const resolveLintIncludePaths = (rootDirectory, userConfig) => {
5977
+ const resolveLintIncludePaths = (rootDirectory, userConfig, project) => {
5976
5978
  if (!Array.isArray(userConfig?.ignore?.files) || userConfig.ignore.files.length === 0) return;
5977
5979
  const ignoredPatterns = compileIgnoredFilePatterns(userConfig);
5978
5980
  return listSourceFiles(rootDirectory).filter((filePath) => {
5979
- if (!JSX_FILE_PATTERN.test(filePath)) return false;
5981
+ if (!shouldIncludeExplicitLintPath(filePath, project)) return false;
5980
5982
  return !isFileIgnoredByPatterns(filePath, rootDirectory, ignoredPatterns);
5981
5983
  });
5982
5984
  };
@@ -8328,7 +8330,7 @@ const runInspect = (input, hooks = {}) => Effect.gen(function* () {
8328
8330
  directory: scanDirectory,
8329
8331
  repo
8330
8332
  }).pipe(Effect.orElseSucceed(() => null)) : Effect.succeed(null));
8331
- const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 : computeJsxIncludePaths([...input.includePaths])) ?? resolveLintIncludePaths(scanDirectory, resolvedConfig.config);
8333
+ const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 : computeExplicitLintIncludePaths([...input.includePaths], project)) ?? resolveLintIncludePaths(scanDirectory, resolvedConfig.config, project);
8332
8334
  const scannedFilePaths = input.suppressScanSummary ? (lintIncludePaths ?? (yield* filesService.listSourceFiles(scanDirectory))).map((relativePath) => path$1.resolve(scanDirectory, relativePath)) : [];
8333
8335
  const beforeLint = hooks.beforeLint ?? NO_HOOKS.beforeLint;
8334
8336
  const afterLint = hooks.afterLint ?? NO_HOOKS.afterLint;
@@ -8805,7 +8807,9 @@ const SCANNABLE_EXTENSIONS = [
8805
8807
  ".ts",
8806
8808
  ".tsx",
8807
8809
  ".js",
8808
- ".jsx"
8810
+ ".jsx",
8811
+ ".mts",
8812
+ ".mjs"
8809
8813
  ];
8810
8814
  /** Filenames whose change invalidates project/config caches. */
8811
8815
  const CONFIG_WATCH_FILENAMES = [
@@ -10853,5 +10857,5 @@ const startLanguageServer = () => {
10853
10857
  };
10854
10858
  //#endregion
10855
10859
  export { startLanguageServer };
10856
- !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]="3b471215-177c-57c1-8d5c-36e42d96995b")}catch(e){}}();
10857
- //# debugId=3b471215-177c-57c1-8d5c-36e42d96995b
10860
+ !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]="feb075a7-adf0-5222-af8d-6ea6a4523050")}catch(e){}}();
10861
+ //# debugId=feb075a7-adf0-5222-af8d-6ea6a4523050
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.4.2-dev.829655c",
3
+ "version": "0.4.2-dev.98066c2",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -66,7 +66,7 @@
66
66
  "vscode-languageserver": "^9.0.1",
67
67
  "vscode-languageserver-textdocument": "^1.0.12",
68
68
  "vscode-uri": "^3.1.0",
69
- "oxlint-plugin-react-doctor": "0.4.2-dev.829655c"
69
+ "oxlint-plugin-react-doctor": "0.4.2-dev.98066c2"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/babel__code-frame": "^7.27.0",
@@ -75,8 +75,8 @@
75
75
  "commander": "^14.0.3",
76
76
  "ora": "^9.4.0",
77
77
  "@react-doctor/api": "0.4.2",
78
- "@react-doctor/core": "0.4.2",
79
- "@react-doctor/language-server": "0.4.2"
78
+ "@react-doctor/language-server": "0.4.2",
79
+ "@react-doctor/core": "0.4.2"
80
80
  },
81
81
  "engines": {
82
82
  "node": "^20.19.0 || >=22.12.0"