cspell 10.3.5 → 10.4.0-alpha.1

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,12 +1,21 @@
1
- import { i as LinterCliOptions, o as TraceOptions, s as FinalizedReporter, t as BaseOptions } from "./options-DlXe327y.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-094uTsvC.js";
3
- import "chalk";
1
+ import { i as LinterCliOptions, o as TraceOptions, s as FinalizedReporter, t as BaseOptions } from "./options-D5lC3IZu.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-CFfMlhE_.js";
4
3
  import { CSpellReporter, ReporterConfiguration } from "@cspell/cspell-types";
5
- import { WriteStream } from "node:tty";
6
4
  export * from "@cspell/cspell-types";
7
5
  //#region src/console.d.ts
8
6
  type Log = (format?: any, ...params: any[]) => void;
9
- type IOStream = NodeJS.WritableStream & Pick<WriteStream, "isTTY" | "rows" | "columns"> & Pick<Partial<WriteStream>, "hasColors" | "clearLine" | "getColorDepth">;
7
+ /**
8
+ * The parts of an output stream, such as `process.stdout`, that the console uses.
9
+ */
10
+ interface IOStream {
11
+ write(chunk: string): boolean;
12
+ isTTY: boolean;
13
+ rows: number;
14
+ columns: number;
15
+ hasColors?(count?: number): boolean;
16
+ clearLine?(dir: -1 | 0 | 1, callback?: () => void): boolean;
17
+ getColorDepth?(env?: object): number;
18
+ }
10
19
  interface IConsole {
11
20
  readonly log: Log;
12
21
  readonly error: Log;
@@ -43,5 +52,5 @@ interface ReporterOptions extends Pick<LinterCliOptions, "color" | "debug" | "is
43
52
  }
44
53
  declare function getReporter(options: ReporterOptions, config?: CSpellReporterConfiguration): FinalizedReporter;
45
54
  //#endregion
46
- export { AppError, type BaseOptions, type LinterCliOptions as CSpellApplicationOptions, type CSpellReporterConfiguration, type CSpellReporterModule, CheckTextResult, IncludeExcludeFlag, type TraceOptions, type TraceResult, checkText, createInit, getReporter as getDefaultReporter, lint, listDictionaries, parseApplicationFeatureFlags, suggestions, trace };
55
+ export { type AppError, type BaseOptions, type LinterCliOptions as CSpellApplicationOptions, type CSpellReporterConfiguration, type CSpellReporterModule, type CheckTextResult, IncludeExcludeFlag, type TraceOptions, type TraceResult, checkText, createInit, getReporter as getDefaultReporter, lint, listDictionaries, parseApplicationFeatureFlags, suggestions, trace };
47
56
  //# sourceMappingURL=index.d.ts.map
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
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-CdcDwTFc.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-DRa52DKq.js";
2
2
  export * from "@cspell/cspell-types";
3
3
  export { IncludeExcludeFlag, checkText, createInit, getReporter as getDefaultReporter, lint, listDictionaries, parseApplicationFeatureFlags, suggestions, trace };
@@ -119,6 +119,23 @@ interface LinterOptions extends Omit<BaseOptions, "config">, Omit<CacheOptions,
119
119
  * Files must be found and processed otherwise it is considered an error.
120
120
  */
121
121
  mustFindFiles?: boolean;
122
+ /**
123
+ * Allow checking `--file` and `--file-list` documents referenced by symbolic links.
124
+ * By default, a file that is a symbolic link, or is in a linked directory, is skipped.
125
+ * Glob searches are controlled by {@link LinterOptions.globSymlinks}.
126
+ *
127
+ * When not set, the `CSPELL_FOLLOW_SYMLINKS` environment variable is used.
128
+ * @default false
129
+ */
130
+ followSymlinks?: boolean | undefined;
131
+ /**
132
+ * Follow symbolic links when matching globs.
133
+ * By default, glob searches skip files that are symbolic links and don't search linked directories.
134
+ *
135
+ * When not set, the `CSPELL_GLOB_SYMLINKS` environment variable is used.
136
+ * @default false
137
+ */
138
+ globSymlinks?: boolean | undefined;
122
139
  /**
123
140
  * List of dictionary names to use.
124
141
  */
@@ -407,4 +424,4 @@ interface CSpellConfigFile {
407
424
  }
408
425
  //#endregion
409
426
  export { SuggestionOptions as a, LinterCliOptions as i, DictionariesOptions as n, TraceOptions as o, LegacyOptions as r, FinalizedReporter as s, BaseOptions as t };
410
- //# sourceMappingURL=options-DlXe327y.d.ts.map
427
+ //# sourceMappingURL=options-D5lC3IZu.d.ts.map
package/package.json CHANGED
@@ -1,17 +1,36 @@
1
1
  {
2
2
  "name": "cspell",
3
- "version": "10.3.5",
3
+ "version": "10.4.0-alpha.1",
4
4
  "description": "A Spelling Checker for Code!",
5
- "funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
6
- "bin": {
7
- "cspell": "bin.mjs",
8
- "cspell-esm": "bin.mjs"
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "provenance": true
9
8
  },
10
- "type": "module",
9
+ "homepage": "https://cspell.org/",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/streetsidesoftware/cspell.git",
13
+ "directory": "packages/cspell"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/streetsidesoftware/cspell/issues?q=is%3Aissue%20state%3Aopen%20label%3Acspell"
17
+ },
18
+ "funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
19
+ "keywords": [
20
+ "spell",
21
+ "checker",
22
+ "code",
23
+ "camel",
24
+ "case",
25
+ "spelling",
26
+ "spell checker",
27
+ "spelling checker",
28
+ "lint"
29
+ ],
30
+ "license": "MIT",
31
+ "author": "Jason Dent",
11
32
  "sideEffects": false,
12
- "types": "dist/cjs/commonJsApi.d.cts",
13
- "main": "dist/cjs/commonJsApi.cjs",
14
- "module": "dist/esm/index.js",
33
+ "type": "module",
15
34
  "exports": {
16
35
  ".": {
17
36
  "import": "./dist/esm/index.js",
@@ -30,6 +49,13 @@
30
49
  "import": "./dist/esm/application.js"
31
50
  }
32
51
  },
52
+ "main": "dist/cjs/commonJsApi.cjs",
53
+ "module": "dist/esm/index.js",
54
+ "types": "dist/cjs/commonJsApi.d.cts",
55
+ "bin": {
56
+ "cspell": "bin.mjs",
57
+ "cspell-esm": "bin.mjs"
58
+ },
33
59
  "files": [
34
60
  "bin.mjs",
35
61
  "dist",
@@ -44,81 +70,55 @@
44
70
  "!dist/tsc"
45
71
  ],
46
72
  "scripts": {
47
- "clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
48
73
  "build": "tsdown && pnpm build:tsc",
49
- "build:tsc": "tsc -p .",
50
74
  "build:readme": "pnpm build:readme:help",
51
75
  "build:readme:help": "pnpm build:readme:help:lint && pnpm build:readme:help:trace && inject-markdown README.md && prettier -w README.md",
52
- "build:readme:help:lint": "./bin.mjs lint --help > static/help-lint.txt",
53
- "build:readme:help:trace": "./bin.mjs trace --help > static/help-trace.txt",
76
+ "build:readme:help:lint": "COLUMNS=72 ./bin.mjs lint --help > static/help-lint.txt",
77
+ "build:readme:help:trace": "COLUMNS=72 ./bin.mjs trace --help > static/help-trace.txt",
78
+ "build:tsc": "tsc -p .",
79
+ "clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
54
80
  "clean-build": "pnpm run clean && pnpm run build",
81
+ "compile": "tsc -p .",
55
82
  "coverage": "vitest run --coverage",
56
- "test:watch": "vitest",
83
+ "prepublishOnly": "pnpm run clean-build",
57
84
  "test": "vitest run",
58
- "watch": "tsdown -w",
59
- "watch:tsc": "tsc -p . -w",
60
- "compile": "tsc -p .",
85
+ "test:update-snapshot": "vitest run --update",
86
+ "test:watch": "vitest",
61
87
  "test-watch": "vitest",
62
88
  "version": "node ./tools/patch-version.mjs && git add .",
63
- "prepublishOnly": "pnpm run clean-build",
64
- "test:update-snapshot": "vitest run --update"
65
- },
66
- "repository": {
67
- "type": "git",
68
- "url": "https://github.com/streetsidesoftware/cspell.git",
69
- "directory": "packages/cspell"
70
- },
71
- "keywords": [
72
- "spell",
73
- "checker",
74
- "code",
75
- "camel",
76
- "case",
77
- "spelling",
78
- "spell checker",
79
- "spelling checker",
80
- "lint"
81
- ],
82
- "author": "Jason Dent",
83
- "license": "MIT",
84
- "publishConfig": {
85
- "access": "public",
86
- "provenance": true
87
- },
88
- "bugs": {
89
- "url": "https://github.com/streetsidesoftware/cspell/issues"
89
+ "watch": "tsdown -w",
90
+ "watch:tsc": "tsc -p . -w"
90
91
  },
91
- "homepage": "https://cspell.org/",
92
92
  "dependencies": {
93
- "@cspell/cspell-json-reporter": "10.3.5",
94
- "@cspell/cspell-performance-monitor": "10.3.5",
95
- "@cspell/cspell-pipe": "10.3.5",
96
- "@cspell/cspell-types": "10.3.5",
97
- "@cspell/cspell-worker": "10.3.5",
98
- "@cspell/dynamic-import": "10.3.5",
99
- "@cspell/url": "10.3.5",
100
- "ansi-regex": "^6.3.0",
101
- "chalk": "^6.0.0",
102
- "chalk-template": "^1.1.2",
93
+ "@cspell/cspell-json-reporter": "10.4.0-alpha.1",
94
+ "@cspell/cspell-performance-monitor": "10.4.0-alpha.1",
95
+ "@cspell/cspell-pipe": "10.4.0-alpha.1",
96
+ "@cspell/cspell-types": "10.4.0-alpha.1",
97
+ "@cspell/cspell-worker": "10.4.0-alpha.1",
98
+ "@cspell/dynamic-import": "10.4.0-alpha.1",
99
+ "@cspell/url": "10.4.0-alpha.1",
100
+ "ansi-regex": "^6.4.0",
101
+ "chalk": "^6.0.1",
102
+ "chalk-template": "^1.1.3",
103
103
  "commander": "^15.0.0",
104
- "cspell-config-lib": "10.3.5",
105
- "cspell-dictionary": "10.3.5",
106
- "cspell-gitignore": "10.3.5",
107
- "cspell-glob": "10.3.5",
108
- "cspell-io": "10.3.5",
109
- "cspell-lib": "10.3.5",
104
+ "cspell-config-lib": "10.4.0-alpha.1",
105
+ "cspell-dictionary": "10.4.0-alpha.1",
106
+ "cspell-gitignore": "10.4.0-alpha.1",
107
+ "cspell-glob": "10.4.0-alpha.1",
108
+ "cspell-io": "10.4.0-alpha.1",
109
+ "cspell-lib": "10.4.0-alpha.1",
110
110
  "flatted": "^3.4.4",
111
111
  "semver": "^7.8.5",
112
112
  "tinyglobby": "^0.2.17"
113
113
  },
114
- "engines": {
115
- "node": ">=22.18.0"
116
- },
117
114
  "devDependencies": {
118
115
  "@types/micromatch": "^4.0.10",
119
116
  "@types/semver": "^7.8.0",
120
117
  "micromatch": "^4.0.8",
121
118
  "minimatch": "^9.0.9"
122
119
  },
123
- "gitHead": "f37a244a54b686fc1ac11272d6019b9a059b062a"
120
+ "engines": {
121
+ "node": ">=22.18.0"
122
+ },
123
+ "gitHead": "628768a6e62b792e628189b41e63e12e5d3d8fe3"
124
124
  }