npm / textlint
textlint
What changed in textlint 12 to 16, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
46 breaking3 security5 deprecations15 new APIs and options3 performance4 behavior and defaults1 tooling12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittextlint 1633 changes
Breaking changes 18
Built-in plugins have migrated to ESM.
Column widths of some emoji now follow newer Unicode data.
The node type is renamed to footnoteReference.
The node type is renamed to json.
textlint counts LF, CR, and CRLF as line endings in every format; U+2028 and U+2029 are no longer line endings in messages.
Line counts for loc now account for LF, CR, and CRLF in every format.
Edge cases now follow CommonMark and GitHub more closely; nesting deeper than 100 levels is not parsed as syntax.
The parser has been rewritten as a self-contained CommonMark + GFM parser.
Message line counts now account for LF, CR, and CRLF.
Node.js 22.12.0 or later is required to run textlint v16.
The hidden unist compatibility property is removed from Markdown AST nodes; use range and loc.
test() throws and isTxtAST() returns false when raw, range, and loc disagree, so rule or plugin tests can expose invalid ASTs.
Deprecated type re-exports are removed; import the listed rule and plugin types from @textlint/types instead.
The plain text parser keeps one Paragraph per line; trailing line endings become Break nodes, BOM is excluded from the first Str, and Break loc.end is column 0 of the next line.
The built-in Markdown plugin is now ESM-only; direct CommonJS require callers should use the default export or import it as ESM.
The built-in text plugin is now ESM-only; direct CommonJS require callers should use the default export or import it as ESM.
The node type is renamed to toml.
The front matter node type is renamed to yaml; configurations that list Yaml should use yaml instead.
Security 1
The formatter now escapes workflow command values.
New APIs and options 4
Adds the --profile option to textlint.
The content strategy detects changed files by content hash instead of mtime and size; the default remains metadata.
The Markdown plugin can parse emphasis, strong emphasis, and strikethrough using CommonMark CJK-friendly Amendments; the option is disabled by default.
Formatters receive source text through getSource(filePath), allowing API users to pass in-memory text to loadFormatter().
Performance 3
The MCP server is loaded only when --mcp is used, avoiding unnecessary loading otherwise.
Rule handlers do less work per node through reduced allocations; visited-node order and handler arguments do not change.
The package now uses an in-house CommonMark 0.31.2 + GFM parser instead of remark, with substantially faster parsing and fewer third-party dependencies.
Behavior and default changes 1
The pretty-error formatter displays a code frame for stdin text, and diff displays the diff of stdin text.
Fixes and other changes 6
Definition and reference nodes have been added to the children types.
The server now marks its tools as read-only.
A message in an empty file no longer prints undefined.
A relative rules base directory is now resolved from the current directory.
The formatter no longer throws when a message contains a control character such as a tab, and removes escape sequences from table cells.
TIMING=1 now reports each rule's own time instead of including other rules' time.
textlint 1525 changes
Breaking changes 10
TxtNode properties are now readonly, preventing their reassignment in TypeScript.
Removed createFormatter; use the asynchronous loadFormatter() API, whose result exposes a format() method.
File search errors now return exit status 2 instead of 1; lint errors remain 1 and success remains 0.
Legacy textlint APIs were removed, so integrations using them may need to migrate.
Removed the module field from 15 @textlint packages with type: "commonjs", resolving Webpack module-resolution issues without custom mainFields.
textlint v15 requires Node.js 20.0.0 or later, so developers need to update local, CI/CD, and deployment environments.
Removed TextFixEngine; use createLinter() and fixFiles() instead.
Removed the textlint singleton instance; use createLinter() instead.
Removed TextLintCore; use createLinter() or @textlint/kernel instead.
Removed TextLintEngine; use createLinter() with lintFiles() and loadLinterFormatter() instead.
Security 1
Upgraded glob to v11 to fix a minimatch ReDoS vulnerability.
New APIs and options 8
markdown-to-ast adds support for JSON frontmatter.
markdown-to-ast adds support for TOML frontmatter.
Adds a GitHub lint formatter.
textlint-tester adds suggestions API support for testing suggestions.
Adds a suggestions API to the kernel.
Phase 1 MCP improvements include error handling.
Phase 1 MCP improvements add outputSchema.
Phase 1 MCP improvements implement structured output.
Behavior and default changes 2
Logs are grouped by file when using the gh formatter.
MCP integration gains structured output, JSON schema validation, and improved error handling for AI assistants and language models.
Tooling 1
The textlint MCP server was upgraded to SDK v2.
Fixes and other changes 3
Stdout output now aligns with --output-file output.
lintFiles now respects ignore patterns for absolute file paths.
Absolute file paths now correctly respect ignore patterns in .textlintignore.
textlint 1412 changes
Breaking changes 6
gulp-textlint moved out of the textlint monorepo and is not maintained by the textlint core team.
textlint v14 requires Node.js 18.14.0 or later; Node.js 16 support is dropped.
The experimental parallel-linting flag is removed.
The package's CLI is removed because it was not used by many users.
textlint-scripts requires Node.js v18.19.0 or later.
Its output changes from ES2015-compatible JavaScript to ES2022-compatible JavaScript, targeting Node.js v18.14.0.
Deprecations 5
Deprecated APIs now produce a warning.
The old API now emits a deprecation warning; use createLinter and loadTextlintrc instead.
The old textlint API now emits a deprecation warning; the notes recommend @textlint/legacy-textlint-core or @textlint/kernel instead.
The old API now emits a deprecation warning; the notes recommend @textlint/legacy-textlint-core or @textlint/kernel instead.
The old API now emits a deprecation warning; use createLinter and loadTextlintrc instead.
Fixes and other changes 1
Config-loader results were enhanced, changing the results developers receive from the loader.
textlint 1311 changes
Breaking changes 7
textlint now requires Node.js 16 or later.
The undocumented way to override a preset rule option through a separate rule entry is removed; configure the option inside the preset rule instead.
The New-CLI requires --stdin-filename when used with --stdin.
The New-CLI replaces the Old-CLI and supports rules and plugins written in ESM.
The New-CLI reports exit status 0 for no lint error, 1 for lint errors, and 2 for fatal errors.
The node types package changes the existing type name TxtNodeLineLocation to TxtNodeLocation.
The node types package changes the existing type name TextNodeRange to TxtNodeRange.
New APIs and options 3
Adds the table cell node type to @textlint/ast-node-types.
Adds the table node type to @textlint/ast-node-types.
Adds the table row node type to @textlint/ast-node-types.
Behavior and default changes 1
textlint --init now outputs .textlintrc.json instead of .textlintrc.
textlint 128 changes
Breaking changes 5
Footnotes previously represented as LinkReference are now treated as FootnoteReference; some rules may report new errors on them.
Modules now target ES2015, so textlint no longer supports IE.
The built-in markdown parser is updated to remark 13, which improves Markdown parsing and may cause textlint to find newer errors.
Node.js 10.x is no longer supported; textlint 12 requires Node.js ^12.20.0, ^14.13.1, or >=16.0.0.
The package now uses a default export; users should use import or access the default property instead of requiring the package directly.
Security 1
The trim package is updated to address CVE-2020-7753.
Fixes and other changes 2
The argument type for getSource is fixed.
A workaround prevents markdown-to-ast from generating a broken AST for GFM.