cspell 9.3.2 → 9.6.0

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.
@@ -1,4 +1,4 @@
1
- import { a as SuggestionOptions, i as LinterCliOptions, n as DictionariesOptions, o as TraceOptions, r as LegacyOptions, t as BaseOptions } from "./options-BeJCICDB.js";
1
+ import { a as SuggestionOptions, i as LinterCliOptions, n as DictionariesOptions, o as TraceOptions, r as LegacyOptions, t as BaseOptions } from "./options-D_PtlSKK.js";
2
2
  import { CheckTextInfo, FeatureFlags, IncludeExcludeFlag, SuggestionsForWordResult, TraceResult, TraceWordResult } from "cspell-lib";
3
3
  import { CSpellReporter, RunResult } from "@cspell/cspell-types";
4
4
 
@@ -113,4 +113,4 @@ declare function createInit(options: InitOptions): Promise<void>;
113
113
  declare function parseApplicationFeatureFlags(flags: string[] | undefined): FeatureFlags;
114
114
  //#endregion
115
115
  export { checkText as a, parseApplicationFeatureFlags as c, listDictionaries as d, TraceResult as i, suggestions as l, CheckTextResult as n, createInit as o, IncludeExcludeFlag as r, lint as s, AppError as t, trace as u };
116
- //# sourceMappingURL=application-B84gvlDU.d.ts.map
116
+ //# sourceMappingURL=application-Ce_s5c1d.d.ts.map
@@ -1,3 +1,3 @@
1
- import "./options-BeJCICDB.js";
2
- import { a as checkText, c as parseApplicationFeatureFlags, d as listDictionaries, i as TraceResult, l as suggestions, n as CheckTextResult, o as createInit, r as IncludeExcludeFlag, s as lint, t as AppError, u as trace } from "./application-B84gvlDU.js";
1
+ import "./options-D_PtlSKK.js";
2
+ import { a as checkText, c as parseApplicationFeatureFlags, d as listDictionaries, i as TraceResult, l as suggestions, n as CheckTextResult, o as createInit, r as IncludeExcludeFlag, s as lint, t as AppError, u as trace } from "./application-Ce_s5c1d.js";
3
3
  export { AppError, CheckTextResult, IncludeExcludeFlag, TraceResult, checkText, createInit, lint, listDictionaries, parseApplicationFeatureFlags, suggestions, trace };
@@ -1,3 +1,3 @@
1
- import { a as parseApplicationFeatureFlags, c as listDictionaries, i as lint, n as checkText, o as suggestions, r as createInit, s as trace, t as IncludeExcludeFlag } from "./application-CGIx5L0D.js";
1
+ import { a as parseApplicationFeatureFlags, c as listDictionaries, i as lint, n as checkText, o as suggestions, r as createInit, s as trace, t as IncludeExcludeFlag } from "./application-BJHh60xM.js";
2
2
 
3
3
  export { IncludeExcludeFlag, checkText, createInit, lint, listDictionaries, parseApplicationFeatureFlags, suggestions, trace };
@@ -1,5 +1,5 @@
1
- import { i as LinterCliOptions, o as TraceOptions, t as BaseOptions } from "./options-BeJCICDB.js";
2
- import { a as checkText, c as parseApplicationFeatureFlags, d as listDictionaries, i as TraceResult, l as suggestions, n as CheckTextResult, o as createInit, r as IncludeExcludeFlag, s as lint, t as AppError, u as trace } from "./application-B84gvlDU.js";
1
+ import { i as LinterCliOptions, o as TraceOptions, t as BaseOptions } from "./options-D_PtlSKK.js";
2
+ import { a as checkText, c as parseApplicationFeatureFlags, d as listDictionaries, i as TraceResult, l as suggestions, n as CheckTextResult, o as createInit, r as IncludeExcludeFlag, s as lint, t as AppError, u as trace } from "./application-Ce_s5c1d.js";
3
3
  import "chalk";
4
4
  import { CSpellReporter, CSpellSettings, ReporterConfiguration, RunResult } from "@cspell/cspell-types";
5
5
  import { WriteStream } from "node:tty";
@@ -42,7 +42,7 @@ interface CSpellReporterModule {
42
42
  type FinalizedReporter = Required<CSpellReporter>;
43
43
  //#endregion
44
44
  //#region src/cli-reporter.d.ts
45
- interface ReporterOptions extends Pick<LinterCliOptions, "color" | "debug" | "issues" | "issuesSummaryReport" | "legacy" | "progress" | "relative" | "root" | "showContext" | "showPerfSummary" | "showSuggestions" | "silent" | "summary" | "verbose" | "wordsOnly"> {
45
+ interface ReporterOptions extends Pick<LinterCliOptions, "color" | "debug" | "issues" | "issuesSummaryReport" | "legacy" | "progress" | "relative" | "root" | "showContext" | "showPerfSummary" | "showSuggestions" | "silent" | "summary" | "verbose" | "verboseLevel" | "wordsOnly"> {
46
46
  fileGlobs: string[];
47
47
  }
48
48
  declare function getReporter(options: ReporterOptions, config?: CSpellReporterConfiguration): FinalizedReporter;
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as parseApplicationFeatureFlags, c as listDictionaries, f as getReporter, i as lint, n as checkText, o as suggestions, r as createInit, s as trace, t as IncludeExcludeFlag } from "./application-CGIx5L0D.js";
1
+ import { a as parseApplicationFeatureFlags, c as listDictionaries, h as getReporter, i as lint, n as checkText, o as suggestions, r as createInit, s as trace, t as IncludeExcludeFlag } from "./application-BJHh60xM.js";
2
2
 
3
3
  export * from "@cspell/cspell-types"
4
4
 
@@ -44,6 +44,10 @@ interface LinterOptions extends Omit<BaseOptions, "config">, Omit<CacheOptions,
44
44
  */
45
45
  verbose?: boolean;
46
46
  /**
47
+ * Level of verbosity (higher number = more verbose).
48
+ */
49
+ verboseLevel?: number;
50
+ /**
47
51
  * Show extensive output.
48
52
  */
49
53
  debug?: boolean;
@@ -142,6 +146,13 @@ interface LinterOptions extends Omit<BaseOptions, "config">, Omit<CacheOptions,
142
146
  * Path to configuration file.
143
147
  */
144
148
  config?: string | CSpellConfigFile;
149
+ /**
150
+ * Specify the maximum file size to be checked.
151
+ * The value can include a units suffix: `KB`, `MB`, `B`, `GB`.
152
+ * The numeric value can include a decimal.
153
+ * Example: 1.5MB
154
+ */
155
+ maxFileSize?: string | undefined;
145
156
  }
146
157
  interface TraceOptions extends BaseOptions {
147
158
  /**
@@ -387,4 +398,4 @@ interface CSpellConfigFile {
387
398
  }
388
399
  //#endregion
389
400
  export { SuggestionOptions as a, LinterCliOptions as i, DictionariesOptions as n, TraceOptions as o, LegacyOptions as r, BaseOptions as t };
390
- //# sourceMappingURL=options-BeJCICDB.d.ts.map
401
+ //# sourceMappingURL=options-D_PtlSKK.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell",
3
- "version": "9.3.2",
3
+ "version": "9.6.0",
4
4
  "description": "A Spelling Checker for Code!",
5
5
  "funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
6
6
  "bin": {
@@ -9,11 +9,13 @@
9
9
  },
10
10
  "type": "module",
11
11
  "sideEffects": false,
12
- "types": "dist/esm/index.d.ts",
12
+ "types": "dist/cjs/commonJsApi.d.ts",
13
+ "main": "dist/cjs/commonJsApi.cjs",
13
14
  "module": "dist/esm/index.js",
14
15
  "exports": {
15
16
  ".": {
16
- "import": "./dist/esm/index.js"
17
+ "import": "./dist/esm/index.js",
18
+ "require": "./dist/cjs/commonJsApi.cjs"
17
19
  },
18
20
  "./app": {
19
21
  "import": "./dist/esm/app.js"
@@ -53,7 +55,8 @@
53
55
  "coverage": "vitest run --coverage",
54
56
  "test:watch": "vitest",
55
57
  "test": "vitest run",
56
- "watch": "tsc -p . -w",
58
+ "watch": "tsdown -w",
59
+ "watch:tsc": "tsc -p . -w",
57
60
  "compile": "tsc -p .",
58
61
  "test-watch": "vitest",
59
62
  "version": "node ./tools/patch-version.mjs && git add .",
@@ -83,20 +86,21 @@
83
86
  },
84
87
  "homepage": "https://cspell.org/",
85
88
  "dependencies": {
86
- "@cspell/cspell-json-reporter": "9.3.2",
87
- "@cspell/cspell-pipe": "9.3.2",
88
- "@cspell/cspell-types": "9.3.2",
89
- "@cspell/dynamic-import": "9.3.2",
90
- "@cspell/url": "9.3.2",
89
+ "@cspell/cspell-json-reporter": "9.6.0",
90
+ "@cspell/cspell-pipe": "9.6.0",
91
+ "@cspell/cspell-types": "9.6.0",
92
+ "@cspell/dynamic-import": "9.6.0",
93
+ "@cspell/url": "9.6.0",
94
+ "ansi-regex": "^6.2.2",
91
95
  "chalk": "^5.6.2",
92
96
  "chalk-template": "^1.1.2",
93
97
  "commander": "^14.0.2",
94
- "cspell-config-lib": "9.3.2",
95
- "cspell-dictionary": "9.3.2",
96
- "cspell-gitignore": "9.3.2",
97
- "cspell-glob": "9.3.2",
98
- "cspell-io": "9.3.2",
99
- "cspell-lib": "9.3.2",
98
+ "cspell-config-lib": "9.6.0",
99
+ "cspell-dictionary": "9.6.0",
100
+ "cspell-gitignore": "9.6.0",
101
+ "cspell-glob": "9.6.0",
102
+ "cspell-io": "9.6.0",
103
+ "cspell-lib": "9.6.0",
100
104
  "fast-json-stable-stringify": "^2.1.0",
101
105
  "flatted": "^3.3.3",
102
106
  "semver": "^7.7.3",
@@ -106,11 +110,10 @@
106
110
  "node": ">=20"
107
111
  },
108
112
  "devDependencies": {
109
- "@types/glob": "^8.1.0",
110
113
  "@types/micromatch": "^4.0.10",
111
114
  "@types/semver": "^7.7.1",
112
115
  "micromatch": "^4.0.8",
113
116
  "minimatch": "^9.0.5"
114
117
  },
115
- "gitHead": "595bde79b4a5abf3256b71129995ec3601454b02"
118
+ "gitHead": "163793ddf2a0ad90bc7c90351698a106003297af"
116
119
  }