unstale

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 init

@unstale/cli on npm

textlint 1633 changes

Breaking changes 18

  • Built-in plugins have migrated to ESM.

    16.0.0release notes

  • Column widths of some emoji now follow newer Unicode data.

    16.0.0upgrade guide

  • The node type is renamed to footnoteReference.

    16.0.0upgrade guide

  • The node type is renamed to json.

    16.0.0upgrade guide

  • textlint counts LF, CR, and CRLF as line endings in every format; U+2028 and U+2029 are no longer line endings in messages.

    16.0.0upgrade guide

  • Line counts for loc now account for LF, CR, and CRLF in every format.

    16.0.0release notes

  • Edge cases now follow CommonMark and GitHub more closely; nesting deeper than 100 levels is not parsed as syntax.

    16.0.0upgrade guide

  • The parser has been rewritten as a self-contained CommonMark + GFM parser.

    16.0.0release notes

  • Message line counts now account for LF, CR, and CRLF.

    16.0.0release notes

  • Node.js 22.12.0 or later is required to run textlint v16.

    16.0.0upgrade guiderelease notes

  • The hidden unist compatibility property is removed from Markdown AST nodes; use range and loc.

    16.0.0upgrade guide

  • test() throws and isTxtAST() returns false when raw, range, and loc disagree, so rule or plugin tests can expose invalid ASTs.

    16.0.0upgrade guiderelease notes

  • Deprecated type re-exports are removed; import the listed rule and plugin types from @textlint/types instead.

    16.0.0upgrade guiderelease notes

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

    16.0.0upgrade guiderelease notes

  • The built-in Markdown plugin is now ESM-only; direct CommonJS require callers should use the default export or import it as ESM.

    16.0.0upgrade guide

  • The built-in text plugin is now ESM-only; direct CommonJS require callers should use the default export or import it as ESM.

    16.0.0upgrade guide

  • The node type is renamed to toml.

    16.0.0upgrade guide

  • The front matter node type is renamed to yaml; configurations that list Yaml should use yaml instead.

    16.0.0upgrade guide

Security 1

New APIs and options 4

  • Adds the --profile option to textlint.

    16.1.0release notes

  • The content strategy detects changed files by content hash instead of mtime and size; the default remains metadata.

    16.0.0upgrade guiderelease notes

  • The Markdown plugin can parse emphasis, strong emphasis, and strikethrough using CommonMark CJK-friendly Amendments; the option is disabled by default.

    16.0.0upgrade guiderelease notes

  • Formatters receive source text through getSource(filePath), allowing API users to pass in-memory text to loadFormatter().

    16.0.0upgrade guiderelease notes

Performance 3

  • The MCP server is loaded only when --mcp is used, avoiding unnecessary loading otherwise.

    16.1.1release notes

  • Rule handlers do less work per node through reduced allocations; visited-node order and handler arguments do not change.

    16.0.0upgrade guide

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

    16.0.0upgrade guide

Behavior and default changes 1

  • The pretty-error formatter displays a code frame for stdin text, and diff displays the diff of stdin text.

    16.0.0upgrade guide

Fixes and other changes 6

  • Definition and reference nodes have been added to the children types.

    16.0.0release notes

  • The server now marks its tools as read-only.

    16.0.0upgrade guiderelease notes

  • A message in an empty file no longer prints undefined.

    16.0.0upgrade guide

  • A relative rules base directory is now resolved from the current directory.

    16.0.0upgrade guiderelease notes

  • The formatter no longer throws when a message contains a control character such as a tab, and removes escape sequences from table cells.

    16.0.0upgrade guide

  • TIMING=1 now reports each rule's own time instead of including other rules' time.

    16.0.0upgrade guiderelease notes

textlint 1525 changes

Breaking changes 10

  • TxtNode properties are now readonly, preventing their reassignment in TypeScript.

    15.7.0release notes

  • Removed createFormatter; use the asynchronous loadFormatter() API, whose result exposes a format() method.

    15.0.0upgrade guiderelease notes

  • File search errors now return exit status 2 instead of 1; lint errors remain 1 and success remains 0.

    15.0.0upgrade guide

  • Legacy textlint APIs were removed, so integrations using them may need to migrate.

    15.0.0release notes

  • Removed the module field from 15 @textlint packages with type: "commonjs", resolving Webpack module-resolution issues without custom mainFields.

    15.0.0upgrade guide

  • textlint v15 requires Node.js 20.0.0 or later, so developers need to update local, CI/CD, and deployment environments.

    15.0.0upgrade guiderelease notes

  • Removed TextFixEngine; use createLinter() and fixFiles() instead.

    15.0.0upgrade guide

  • Removed the textlint singleton instance; use createLinter() instead.

    15.0.0upgrade guide

  • Removed TextLintCore; use createLinter() or @textlint/kernel instead.

    15.0.0upgrade guide

  • Removed TextLintEngine; use createLinter() with lintFiles() and loadLinterFormatter() instead.

    15.0.0upgrade guide

Security 1

  • Upgraded glob to v11 to fix a minimatch ReDoS vulnerability.

    15.5.2release notes

New APIs and options 8

  • markdown-to-ast adds support for JSON frontmatter.

    15.6.0release notes

  • markdown-to-ast adds support for TOML frontmatter.

    15.6.0release notes

  • Adds a GitHub lint formatter.

    15.5.0release notes

  • textlint-tester adds suggestions API support for testing suggestions.

    15.4.0release notes

  • Adds a suggestions API to the kernel.

    15.3.0release notes

  • Phase 1 MCP improvements include error handling.

    15.0.0release notes

  • Phase 1 MCP improvements add outputSchema.

    15.0.0release notes

  • Phase 1 MCP improvements implement structured output.

    15.0.0release notes

Behavior and default changes 2

  • Logs are grouped by file when using the gh formatter.

    15.8.0release notes

  • MCP integration gains structured output, JSON schema validation, and improved error handling for AI assistants and language models.

    15.0.0upgrade guide

Tooling 1

  • The textlint MCP server was upgraded to SDK v2.

    15.8.0release notes

Fixes and other changes 3

  • Stdout output now aligns with --output-file output.

    15.7.1release notes

  • lintFiles now respects ignore patterns for absolute file paths.

    15.0.0release notes

  • Absolute file paths now correctly respect ignore patterns in .textlintignore.

    15.0.0upgrade guide

textlint 1412 changes

Breaking changes 6

Deprecations 5

  • Deprecated APIs now produce a warning.

    14.0.0release notes

  • The old API now emits a deprecation warning; use createLinter and loadTextlintrc instead.

    14.0.0upgrade guide

  • The old textlint API now emits a deprecation warning; the notes recommend @textlint/legacy-textlint-core or @textlint/kernel instead.

    14.0.0upgrade guide

  • The old API now emits a deprecation warning; the notes recommend @textlint/legacy-textlint-core or @textlint/kernel instead.

    14.0.0upgrade guide

  • The old API now emits a deprecation warning; use createLinter and loadTextlintrc instead.

    14.0.0upgrade guide

Fixes and other changes 1

  • Config-loader results were enhanced, changing the results developers receive from the loader.

    14.0.0release notes

textlint 1311 changes

Breaking changes 7

  • textlint now requires Node.js 16 or later.

    13.0.0release notes

  • The undocumented way to override a preset rule option through a separate rule entry is removed; configure the option inside the preset rule instead.

    13.0.0release notes

  • The New-CLI requires --stdin-filename when used with --stdin.

    13.0.0release notes

  • The New-CLI replaces the Old-CLI and supports rules and plugins written in ESM.

    13.0.0release notes

  • The New-CLI reports exit status 0 for no lint error, 1 for lint errors, and 2 for fatal errors.

    13.0.0release notes

  • The node types package changes the existing type name TxtNodeLineLocation to TxtNodeLocation.

    13.0.0release notes

  • The node types package changes the existing type name TextNodeRange to TxtNodeRange.

    13.0.0release notes

New APIs and options 3

  • Adds the table cell node type to @textlint/ast-node-types.

    13.0.0release notes

  • Adds the table node type to @textlint/ast-node-types.

    13.0.0release notes

  • Adds the table row node type to @textlint/ast-node-types.

    13.0.0release notes

Behavior and default changes 1

  • textlint --init now outputs .textlintrc.json instead of .textlintrc.

    13.0.0release notes

textlint 128 changes

Breaking changes 5

  • Footnotes previously represented as LinkReference are now treated as FootnoteReference; some rules may report new errors on them.

    12.0.0release notes

  • Modules now target ES2015, so textlint no longer supports IE.

    12.0.0release notes

  • The built-in markdown parser is updated to remark 13, which improves Markdown parsing and may cause textlint to find newer errors.

    12.0.0release notes

  • Node.js 10.x is no longer supported; textlint 12 requires Node.js ^12.20.0, ^14.13.1, or >=16.0.0.

    12.0.0release notes

  • The package now uses a default export; users should use import or access the default property instead of requiring the package directly.

    12.0.0release notes

Security 1

  • The trim package is updated to address CVE-2020-7753.

    12.0.0release notes

Fixes and other changes 2

  • The argument type for getSource is fixed.

    12.0.0release notes

  • A workaround prevents markdown-to-ast from generating a broken AST for GFM.

    12.0.0release notes