unstale

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 init

@unstale/cli on npm

cspell 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.

    10.4.0release notes

  • cspell lint now skips files that are symbolic links or in linked directories by default; --follow-symlinks allows checking them.

    10.4.0release notes

  • 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.

    10.4.0release notes

  • Requests are served only when they map under the private root; requests resolving outside it are refused with VFSErrorUnsupportedRequest.

    10.3.6release notes

  • Using command-line globs together with --force-check is now an error; omit --force-check to filter a file list by glob.

    10.3.5release notes

  • The type no longer allows string values; it is restricted to boolean or undefined.

    10.3.4release notes

  • Throws the first error in r.errors so errors encountered during spell checking are not silently ignored.

    10.3.4release notes

  • The tags property is now Readonly<ParsedTags>, preventing modification after creation.

    10.3.3release notes

  • Removes the content and filename fields, making the result compatible with both parser interfaces.

    10.3.2release notes

  • The default cache strategy changes from metadata to content, affecting caching behavior when this setting is not specified.

    10.3.1release notes

  • Renames the dependency configuration property from onlyAllowBundle to onlyBundle.

    10.2.0release notes

  • The minimum Node.js version is now 22.18.0; Node 20 is no longer supported.

    10.0.0release notes

Security 1

  • cspell no longer loads .pnp.js files when they are untrusted.

    10.1.1release notes

Deprecations 3

  • This import path is deprecated; import its RPC exports from @cspell/rpc instead.

    10.4.0release notes

  • This method is deprecated; it was intended for use only inside cspell-lib and will be removed in a future major version.

    10.3.6release notes

  • The old interface is deprecated in favor of CSpellPlugin.

    10.3.2release notes

New APIs and options 33

  • Enables checking documents referenced by symbolic links for a whole job; the command-line no-option overrides it.

    10.4.0release notes

  • Enables following symbolic links in glob searches for a whole job; the command-line no-option overrides it.

    10.4.0release notes

  • Setting locale makes cspell-tools build case-insensitive forms and lowercase words using the dictionary language's case rules.

    10.4.0release notes

  • Allows checking documents referenced by symbolic links when named with --file or --file-list.

    10.4.0release notes

  • Adds the followSymlinks option to the lint API for checking documents referenced by symbolic links.

    10.4.0release notes

  • Makes cspell lint follow symbolic links and search linked directories during glob searches.

    10.4.0release notes

  • Adds the globSymlinks option to the lint API to follow symbolic links during glob searches.

    10.4.0release notes

  • The .m and .matlab extensions are associated with MATLAB; MATLAB binary formats and MEX files are marked as binary.

    10.4.0release notes

  • SpellCheckFileOptions now declares forceCheck, allowing it to be passed to spellCheckDocument and spellCheckFile with type checking.

    10.3.5release notes

  • The check command can emit structured JSON results per file, including errors; exit-code behavior also respects --no-exit-code.

    10.3.3release notes

  • DocumentParser implementations can optionally provide a parse method for content-and-filename-based parsing.

    10.3.3release notes

  • Parser implementations can optionally provide a parseDocument method for document-based parsing.

    10.3.3release notes

  • Adds a plugin interface that supports both Parser and DocumentParser instances.

    10.3.2release notes

  • Now accepts AdvancedCSpellSettings instead of CSpellSettings, reflecting the expanded configuration options.

    10.3.2release notes

  • Adds a parser interface alongside Parser to support richer document parsing scenarios.

    10.3.2release notes

  • Adds an experimental plugins array within the plugin settings.

    10.3.2release notes

  • Adds experimental tag-based control over which parsed text segments are spell-checked.

    10.3.2release notes

  • Adds an interface mapping tag names to ParsedTag values.

    10.3.2release notes

  • Adds optional tag metadata to each parsed text segment.

    10.3.2release notes

  • Adds a document type for the new document parsing API.

    10.3.2release notes

  • Adds a type for hierarchical and wildcard matching of validation tags.

    10.3.2release notes

  • A factory function creates a text transformer that applies user-configurable soft word break rules.

    10.3.1release notes

  • Configure replacement rules applied to dictionary words during compilation, enabling normalization such as replacing ’ with '.

    10.3.1release notes

  • Define custom soft word break rules for text segmentation, such as splitting “errorcode” between “error” and “code”.

    10.3.1release notes

  • Control whether custom soft word break rules are enabled for text segmentation.

    10.3.1release notes

  • Creates forbidden-words dictionaries directly from trie files.

    10.3.0release notes

  • Creates suggestion dictionaries from trie file contents.

    10.3.0release notes

  • Dictionary definitions can specify words, flag-words, or ignore-words to select how their entries are handled.

    10.3.0release notes

  • A new dictionary kind provides suggested word corrections without treating its words as valid or forbidden.

    10.3.0release notes

  • A utility generates possible word breaks in strings, including camelCase, symbols, numbers, and soft hyphens.

    10.2.1release notes

  • Adds a lint option to check files specified with --file, --files, or --file-list even when they would normally be excluded.

    10.2.0release notes

  • Adds a boolean configuration option to enable locale-aware word segmentation for languages without word breaks.

    10.2.0release notes

  • A new package emits JUnit-compatible XML reports of cspell runs, grouping test suites by file.

    10.1.0release notes

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.

    10.3.6release notes

Behavior and default changes 8

  • Sets help and table output width when it contains a positive number, taking priority over terminal width.

    10.4.0release notes

  • The default-command help now lists lint options; --verbose and --issue-template also show their extra help.

    10.4.0release notes

  • Dictionary lookups now use the case rules of the dictionary's locale, supporting Turkish, Azerbaijani, and Lithuanian casing.

    10.4.0release notes

  • cspell lint now uses --language-id and --locale when deciding whether to check a file, matching the language and locale used during checking.

    10.4.0release notes

  • Can read documents from any URL supported by the file system when text is not passed; stdin documents still need their text.

    10.4.0release notes

  • With --cache, files are rechecked when this option differs from the run that cached their result.

    10.3.6release notes

  • The command-line flag overrides the config setting for directive validation, controlling what is shown as well as what is checked.

    10.3.6release notes

  • Configured substitutions can take precedence when they consume an entire ignored range, while exclusions not fully matched by a substitution are preserved.

    10.1.0release notes

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.

    10.4.0release notes

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.

    10.4.0release notes

  • Its iterator methods now return MapIterator, and it no longer declares that it implements Map, allowing types to compile with TypeScript's esnext lib.

    10.4.0release notes

  • Unknown directive issues are included in JSON reporter output again.

    10.3.6release notes

  • The performance summary now accounts for all Total Time, with Setup Time, Between Files, and Other Time lines.

    10.3.6release notes

  • Unknown in-document directives are reported and count as issues when directive validation is enabled; the command-line flags override the config setting.

    10.3.6release notes

  • Globs starting with ** no longer skip files supplied with --file or --file-list when the project is under a dot folder.

    10.3.5release notes

  • Checks every file supplied with --file or --file-list, even when ignorePaths or the files setting would skip it.

    10.3.5release notes

  • shouldCheckDocument now honors forceCheck for documents excluded by ignorePaths or disabled by overrides or languageSettings.

    10.3.5release notes

  • Issues after multiple text changes are now reported at the correct position in the file.

    10.3.5release notes

  • Substitutions supplied directly as find-and-replacement pairs are now applied even without substitutionDefinitions.

    10.3.5release notes

  • Thai text and other text using international word segmentation are now checked normally instead of stopping with an internal error.

    10.3.5release notes

  • Includes a list of available parsers in the assertion message when a requested parser is not found, helping diagnose configuration issues.

    10.3.4release notes

  • Adds the type for tag values, which can be boolean, string, or undefined.

    10.3.2release notes

  • Only code-like partial words are hidden.

    10.3.0release notes

  • Word splitting handles long or complex words better by allowing more skipped breaks and attempts.

    10.2.2release notes

  • The softHyphen constant is exposed for consistent use throughout the codebase.

    10.2.1release notes

  • The word splitter entry point explicitly exports split as part of the public API.

    10.2.1release notes

  • The word splitter entry point explicitly exports SplitOptions as part of the public API.

    10.2.1release notes

  • The word splitter entry point explicitly exports SplitResult as part of the public API.

    10.2.1release notes

  • Thai segmentation now uses soft hyphens instead of spaces, improving word-break accuracy and compatibility with spell checking and downstream processing.

    10.2.1release notes

  • Repository-root discovery finds the nearest .git file or directory, preventing a containing clone's .gitignore from causing worktree files to be ignored.

    10.1.0release notes

  • Typst files with the .typ extension are recognized automatically as an alternative filetype extension.

    10.1.0release notes

  • FileUrlBuilder now generates correct file: URLs for Windows UNC and extended-length paths.

    10.1.0release notes

  • Ignores the readline-closed error after stdin has yielded its file list, allowing linting to complete cleanly while still rethrowing other readline errors.

    10.0.1release notes

  • A French dictionary was added.

    10.0.1release notes

  • Fixed positioning logic for error reporting of replacement words.

    10.0.1release notes

cspell 957 changes

Breaking changes 10

  • Changes SourceMap segments from absolute offset pairs to relative span-length pairs, affecting experimental TypeScript parser integrations.

    9.7.0release notes

  • Returns a slimmer SpellCheckFileResultRPC that omits document text and several result fields, reducing RPC payload size.

    9.7.0release notes

  • Introduces a standalone RPC package with client, server, protocol, types, and utilities, allowing the RPC library to be used independently of cspell-lib.

    9.6.3release notes

  • Adds a reusable event notification system based on the Disposable pattern, with automatic cleanup via Symbol.dispose.

    9.6.1release notes

  • RPC client and server constructors and factories now accept a single configuration object containing port and options.

    9.6.1release notes

  • The isCaseAware field was removed from TrieInfo; this is a minor breaking change.

    9.6.0release notes

  • Errors in nested configuration files are now reported instead of ignored, preventing unexpected behavior.

    9.5.0release notes

  • cspell can now read TypeScript config files; loading them requires Node.js v22.18.0 or later.

    9.3.0release notes

  • The en-gb dictionary is updated to en-gb-mit.

    9.0.0release notes

  • Support for Node 18 has ended, so developers using that runtime must use a supported Node.js version.

    9.0.0release notes

New APIs and options 33

  • Supports diff-friendly, line-batched formatting for arrays, configurable via options.

    9.8.0release notes

  • A new Flatpack JSON V2 format adds string-table-based packing and unpacking, while V1 remains available for compatibility.

    9.8.0release notes

  • Adds an API for converting decoded dictionary or trie files into binary .btrie format.

    9.7.0release notes

  • Introduces a package for inlining or bundling CSpell dictionary and configuration assets for use across multiple bundlers.

    9.7.0release notes

  • Adds an API to decode dictionary and trie files, including .gz files.

    9.7.0release notes

  • Adds a convenience encoder to convert an ITrie directly to BTrie bytes.

    9.7.0release notes

  • Adds a source-map utility for mapping transformed-text offsets back to their source.

    9.7.0release notes

  • Adds a source-map utility for mapping transformed-text ranges back to their source.

    9.7.0release notes

  • Adds an in-memory VirtualFS provider to cspell-io.

    9.7.0release notes

  • Adds a public helper for merging CSpellSettings objects with key-specific append and record-merge semantics.

    9.7.0release notes

  • Adds a utility for merging source maps to support composed text transformations.

    9.7.0release notes

  • Introduces Hunspell-style affix rules for prefix and suffix word transformations in the CSpell trie library.

    9.7.0release notes

  • Adds substitution definitions to CSpell settings and the JSON schema, enabling named text transformations to be configured.

    9.7.0release notes

  • Adds per-document substitutions to validation configuration so text can be transformed before spell checking.

    9.7.0release notes

  • Supports string and MappedText inputs and applies substitutions in the document spell-checking pipeline, merging source maps.

    9.7.0release notes

  • Adds the hidden --no-dictionary option as an alias for --disable-dictionary, including support for --no-dictionary=words.

    9.6.4release notes

  • Adds an interface for defining engine version requirements.

    9.6.3release notes

  • Adds an informational configuration field for specifying the minimum cspell or other engine versions required for compatibility; it does not enforce versioning.

    9.6.3release notes

  • Adds a type for defining engine version requirements.

    9.6.3release notes

  • Adds a vfs configuration field and TypeScript definitions so virtual files can be declared in configuration and referenced via cspell-vfs URLs.

    9.6.3release notes

  • Adds a worker pool for managing multiple spell-checking workers, with configurable sizing based on CPU cores.

    9.6.1release notes

  • Adds a helper function for working with notify events.

    9.6.1release notes

  • Adds an optional result field to RPCResponse for more consistent type handling.

    9.6.1release notes

  • cspell-tools adds a btrie command for generating binary Trie files.

    9.6.0release notes

  • A dictionary definition can specify a btrie path in addition to the normal path.

    9.6.0release notes

  • Trace and find APIs accept compoundSeparator to insert a custom separator between parts of a compound word.

    9.6.0release notes

  • SpellingDictionary.mapWord is now optional, allowing dictionaries that do not need word mapping to omit it.

    9.6.0release notes

  • The ESLint plugin distinguishes typos with suggestions from truly unknown words, and includes suggestions directly in error messages.

    9.6.0release notes

  • The cspell ESLint plugin accepts all, simple, typos, or flagged to control which spelling issues it reports.

    9.6.0release notes

  • Word lists can specify preferred suggestions with : or -> separators, including suggestions for flagged words.

    9.6.0release notes

  • CSpell configuration files with the .cts extension are now supported.

    9.5.0release notes

  • Adds the keepUncompressed option to cspell-tools.

    9.5.0release notes

  • 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.

    9.4.0release notes

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.

    9.7.0release notes

  • Adds support for ESLint 10.

    9.7.0release notes

  • Correctly reports blocked dictionaries.

    9.6.4release notes

  • Adds a configErrors field so configuration errors are included directly in spell-check results.

    9.6.1release notes

  • Adds a dictionaryErrors field so dictionary errors are included directly in spell-check results.

    9.6.1release notes

  • CStyleHexValue now handles BigInt values such as 0xffff_ffff_ffffn.

    9.6.0release notes

  • When compress is true, CSpell Tools generates both compressed and non-compressed files, allowing cspell-dicts to track changes while retaining compressed files.

    9.5.0release notes

  • The cspell package now exports defineConfig for CommonJS.

    9.5.0release notes

  • Adds a setting for skipping large files. It supports string values in configuration files and can be set globally or overridden by glob settings.

    9.4.0release notes

  • Reports the number of files skipped due to the maxFileSize setting.

    9.4.0release notes

  • TypeScript config files are now automatically found.

    9.3.2release notes

  • Adds a dictionary for the Zig programming language.

    9.3.2release notes

  • Adds work-in-progress support for running cspell with Deno; decoding compressed binary data and encountering yarn blobs remain issues.

    9.3.1release notes

  • Waits for the cache to save before moving on, fixing a flaky cache situation.

    9.2.2release notes

cspell 81 changes

Breaking changes 1

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.

    7.0.0release notes

  • CSpell now requires Node 16 or later; Node 14 is no longer supported.

    7.0.0release notes

  • The cspell-io API renamed readFile to readFileText.

    7.0.0release notes

New APIs and options 5

  • cspell-tools adds a gzip command, with support for globs.

    7.0.0release notes

  • cspell-tools adds a shasum command for working with checksum files.

    7.0.0release notes

  • cspell-tools can now create its configuration file automatically.

    7.0.0release notes

  • CSpell adds customWords options.

    7.0.0release notes

  • The cspell-tools configuration supports a $schema field.

    7.0.0release notes

cspell 63 changes

Breaking changes 2

Deprecations 1

  • V5 is going into maintenance mode while V6 will continue to evolve where V5 left off.

    6.0.0release notes