npm / cspell
cspell
What changed in cspell 6 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
28 breaking1 security4 deprecations71 new APIs and options1 performance8 behavior and defaults1 tooling40 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcspell 1085 changes
Breaking changes 12
With this option, cspell lint now fails when every found file was skipped; use --no-must-find-files to allow the run to pass.
cspell lint now skips files that are symbolic links or in linked directories by default; --follow-symlinks allows checking them.
When enabled, cspell stops searching for .gitignore files at the file's git repository root, so outer repository rules do not apply to worktrees or submodules.
Requests are served only when they map under the private root; requests resolving outside it are refused with
VFSErrorUnsupportedRequest.Using command-line globs together with --force-check is now an error; omit --force-check to filter a file list by glob.
The type no longer allows string values; it is restricted to boolean or undefined.
Throws the first error in r.errors so errors encountered during spell checking are not silently ignored.
The tags property is now Readonly<ParsedTags>, preventing modification after creation.
Removes the
contentandfilenamefields, making the result compatible with both parser interfaces.The default cache strategy changes from metadata to content, affecting caching behavior when this setting is not specified.
Renames the dependency configuration property from onlyAllowBundle to onlyBundle.
The minimum Node.js version is now 22.18.0; Node 20 is no longer supported.
Security 1
cspell no longer loads .pnp.js files when they are untrusted.
Deprecations 3
This import path is deprecated; import its RPC exports from @cspell/rpc instead.
This method is deprecated; it was intended for use only inside cspell-lib and will be removed in a future major version.
The old interface is deprecated in favor of
CSpellPlugin.
New APIs and options 33
Enables checking documents referenced by symbolic links for a whole job; the command-line no-option overrides it.
Enables following symbolic links in glob searches for a whole job; the command-line no-option overrides it.
Setting locale makes cspell-tools build case-insensitive forms and lowercase words using the dictionary language's case rules.
Allows checking documents referenced by symbolic links when named with --file or --file-list.
Adds the followSymlinks option to the lint API for checking documents referenced by symbolic links.
Makes cspell lint follow symbolic links and search linked directories during glob searches.
Adds the globSymlinks option to the lint API to follow symbolic links during glob searches.
The .m and .matlab extensions are associated with MATLAB; MATLAB binary formats and MEX files are marked as binary.
SpellCheckFileOptions now declares forceCheck, allowing it to be passed to spellCheckDocument and spellCheckFile with type checking.
The check command can emit structured JSON results per file, including errors; exit-code behavior also respects --no-exit-code.
DocumentParser implementations can optionally provide a parse method for content-and-filename-based parsing.
Parser implementations can optionally provide a parseDocument method for document-based parsing.
Adds a plugin interface that supports both
ParserandDocumentParserinstances.Now accepts
AdvancedCSpellSettingsinstead ofCSpellSettings, reflecting the expanded configuration options.Adds a parser interface alongside
Parserto support richer document parsing scenarios.Adds an experimental plugins array within the plugin settings.
Adds experimental tag-based control over which parsed text segments are spell-checked.
Adds an interface mapping tag names to
ParsedTagvalues.Adds optional tag metadata to each parsed text segment.
Adds a document type for the new document parsing API.
Adds a type for hierarchical and wildcard matching of validation tags.
A factory function creates a text transformer that applies user-configurable soft word break rules.
Configure replacement rules applied to dictionary words during compilation, enabling normalization such as replacing
’with'.Define custom soft word break rules for text segmentation, such as splitting “errorcode” between “error” and “code”.
Control whether custom soft word break rules are enabled for text segmentation.
Creates forbidden-words dictionaries directly from trie files.
Creates suggestion dictionaries from trie file contents.
Dictionary definitions can specify words, flag-words, or ignore-words to select how their entries are handled.
A new dictionary kind provides suggested word corrections without treating its words as valid or forbidden.
A utility generates possible word breaks in strings, including camelCase, symbols, numbers, and soft hyphens.
Adds a lint option to check files specified with --file, --files, or --file-list even when they would normally be excluded.
Adds a boolean configuration option to enable locale-aware word segmentation for languages without word breaks.
A new package emits JUnit-compatible XML reports of cspell runs, grouping test suites by file.
Performance 1
cspell-lib no longer searches the whole text of documents that will not be checked, reducing wasted work for tools that pass it excluded or disabled documents.
Behavior and default changes 8
Sets help and table output width when it contains a positive number, taking priority over terminal width.
The default-command help now lists lint options; --verbose and --issue-template also show their extra help.
Dictionary lookups now use the case rules of the dictionary's locale, supporting Turkish, Azerbaijani, and Lithuanian casing.
cspell lint now uses --language-id and --locale when deciding whether to check a file, matching the language and locale used during checking.
Can read documents from any URL supported by the file system when text is not passed; stdin documents still need their text.
With
--cache, files are rechecked when this option differs from the run that cached their result.The command-line flag overrides the config setting for directive validation, controlling what is shown as well as what is checked.
Configured substitutions can take precedence when they consume an entire ignored range, while exclusions not fully matched by a substitution are preserved.
Tooling 1
Published TypeScript types for cspell, cspell-lib, and cspell-io no longer require @types/node, though web globals still require dom or Node types.
Fixes and other changes 26
Ignore patterns are applied in written order, and the last matching pattern decides; this applies to cspell-lib API checks.
Its iterator methods now return MapIterator, and it no longer declares that it implements Map, allowing types to compile with TypeScript's esnext lib.
Unknown directive issues are included in JSON reporter output again.
The performance summary now accounts for all Total Time, with Setup Time, Between Files, and Other Time lines.
Unknown in-document directives are reported and count as issues when directive validation is enabled; the command-line flags override the config setting.
Globs starting with ** no longer skip files supplied with --file or --file-list when the project is under a dot folder.
Checks every file supplied with --file or --file-list, even when ignorePaths or the files setting would skip it.
shouldCheckDocument now honors forceCheck for documents excluded by ignorePaths or disabled by overrides or languageSettings.
Issues after multiple text changes are now reported at the correct position in the file.
Substitutions supplied directly as find-and-replacement pairs are now applied even without substitutionDefinitions.
Thai text and other text using international word segmentation are now checked normally instead of stopping with an internal error.
Includes a list of available parsers in the assertion message when a requested parser is not found, helping diagnose configuration issues.
Adds the type for tag values, which can be boolean, string, or undefined.
Only code-like partial words are hidden.
Word splitting handles long or complex words better by allowing more skipped breaks and attempts.
The softHyphen constant is exposed for consistent use throughout the codebase.
The word splitter entry point explicitly exports split as part of the public API.
The word splitter entry point explicitly exports SplitOptions as part of the public API.
The word splitter entry point explicitly exports SplitResult as part of the public API.
Thai segmentation now uses soft hyphens instead of spaces, improving word-break accuracy and compatibility with spell checking and downstream processing.
Repository-root discovery finds the nearest .git file or directory, preventing a containing clone's .gitignore from causing worktree files to be ignored.
Typst files with the
.typextension are recognized automatically as an alternative filetype extension.FileUrlBuilder now generates correct file: URLs for Windows UNC and extended-length paths.
Ignores the readline-closed error after stdin has yielded its file list, allowing linting to complete cleanly while still rethrowing other readline errors.
A French dictionary was added.
Fixed positioning logic for error reporting of replacement words.
cspell 957 changes
Breaking changes 10
Changes SourceMap segments from absolute offset pairs to relative span-length pairs, affecting experimental TypeScript parser integrations.
Returns a slimmer SpellCheckFileResultRPC that omits document text and several result fields, reducing RPC payload size.
Introduces a standalone RPC package with client, server, protocol, types, and utilities, allowing the RPC library to be used independently of cspell-lib.
Adds a reusable event notification system based on the Disposable pattern, with automatic cleanup via Symbol.dispose.
RPC client and server constructors and factories now accept a single configuration object containing port and options.
The isCaseAware field was removed from TrieInfo; this is a minor breaking change.
Errors in nested configuration files are now reported instead of ignored, preventing unexpected behavior.
cspell can now read TypeScript config files; loading them requires Node.js v22.18.0 or later.
The en-gb dictionary is updated to en-gb-mit.
Support for Node 18 has ended, so developers using that runtime must use a supported Node.js version.
New APIs and options 33
Supports diff-friendly, line-batched formatting for arrays, configurable via options.
A new Flatpack JSON V2 format adds string-table-based packing and unpacking, while V1 remains available for compatibility.
Adds an API for converting decoded dictionary or trie files into binary .btrie format.
Introduces a package for inlining or bundling CSpell dictionary and configuration assets for use across multiple bundlers.
Adds an API to decode dictionary and trie files, including .gz files.
Adds a convenience encoder to convert an ITrie directly to BTrie bytes.
Adds a source-map utility for mapping transformed-text offsets back to their source.
Adds a source-map utility for mapping transformed-text ranges back to their source.
Adds an in-memory VirtualFS provider to cspell-io.
Adds a public helper for merging CSpellSettings objects with key-specific append and record-merge semantics.
Adds a utility for merging source maps to support composed text transformations.
Introduces Hunspell-style affix rules for prefix and suffix word transformations in the CSpell trie library.
Adds substitution definitions to CSpell settings and the JSON schema, enabling named text transformations to be configured.
Adds per-document substitutions to validation configuration so text can be transformed before spell checking.
Supports string and MappedText inputs and applies substitutions in the document spell-checking pipeline, merging source maps.
Adds the hidden --no-dictionary option as an alias for --disable-dictionary, including support for --no-dictionary=words.
Adds an interface for defining engine version requirements.
Adds an informational configuration field for specifying the minimum cspell or other engine versions required for compatibility; it does not enforce versioning.
Adds a type for defining engine version requirements.
Adds a vfs configuration field and TypeScript definitions so virtual files can be declared in configuration and referenced via cspell-vfs URLs.
Adds a worker pool for managing multiple spell-checking workers, with configurable sizing based on CPU cores.
Adds a helper function for working with notify events.
Adds an optional result field to RPCResponse for more consistent type handling.
cspell-tools adds a btrie command for generating binary Trie files.
A dictionary definition can specify a btrie path in addition to the normal path.
Trace and find APIs accept compoundSeparator to insert a custom separator between parts of a compound word.
SpellingDictionary.mapWord is now optional, allowing dictionaries that do not need word mapping to omit it.
The ESLint plugin distinguishes typos with suggestions from truly unknown words, and includes suggestions directly in error messages.
The cspell ESLint plugin accepts all, simple, typos, or flagged to control which spelling issues it reports.
Word lists can specify preferred suggestions with : or -> separators, including suggestions for flagged words.
CSpell configuration files with the .cts extension are now supported.
Adds the keepUncompressed option to cspell-tools.
Adds a command-line option to skip files larger than a specified size. Values can include K, KB, M, MB, G, or GB units, and override configuration values.
Fixes and other changes 14
Adds a default in-memory provider and registers settings.vfs entries so dictionaries bundled in the cspell-vfs: virtual filesystem can be loaded.
Adds support for ESLint 10.
Correctly reports blocked dictionaries.
Adds a configErrors field so configuration errors are included directly in spell-check results.
Adds a dictionaryErrors field so dictionary errors are included directly in spell-check results.
CStyleHexValue now handles BigInt values such as 0xffff_ffff_ffffn.
When compress is true, CSpell Tools generates both compressed and non-compressed files, allowing cspell-dicts to track changes while retaining compressed files.
The cspell package now exports defineConfig for CommonJS.
Adds a setting for skipping large files. It supports string values in configuration files and can be set globally or overridden by glob settings.
Reports the number of files skipped due to the maxFileSize setting.
TypeScript config files are now automatically found.
Adds a dictionary for the Zig programming language.
Adds work-in-progress support for running cspell with Deno; decoding compressed binary data and encountering yarn blobs remain issues.
Waits for the cache to save before moving on, fixing a flaky cache situation.
cspell 81 changes
Breaking changes 1
Requires Node 18 or later to run cspell.
cspell 78 changes
Breaking changes 3
CommonJS support was removed from most packages; consumers of the CSpell API that require CommonJS can consider @cspell/dynamic-import.
CSpell now requires Node 16 or later; Node 14 is no longer supported.
The cspell-io API renamed readFile to readFileText.
New APIs and options 5
cspell-tools adds a gzip command, with support for globs.
cspell-tools adds a shasum command for working with checksum files.
cspell-tools can now create its configuration file automatically.
CSpell adds customWords options.
The cspell-tools configuration supports a $schema field.
cspell 63 changes
Breaking changes 2
CSpell v6 drops support for Node 12 and requires Node 14 or above.
Support for V4 has ended.
Deprecations 1
V5 is going into maintenance mode while V6 will continue to evolve where V5 left off.