react-docgen breaking changes
Updated December 4, 2026
On this page
Latest version 8.0.4, released September 20, 2026. Source repository
Its 8.0.0 release drops Node.js 16, 17, 18, 19 and 21. Node.js end of life dates.
- From 7.0.0 to 8.0.0: 1 breaking change in 1 version.
- From 6.0.0 to 8.0.0: 4 breaking changes in 2 versions.
react-docgen 8.0.0 breaking changes
- Removed
Node.js 16, 17, 18, 19 and 21 are no longer supported. Supported versions are Node.js 20.9.0 or newer 20.x and Node.js 22.0.0 or newer; upgrade Node.js before using this version. github.com
react-docgen 7.0.0 breaking changes
- Removed
Node.js 14 is no longer supported; the minimum supported version is now 16.14.0. github.com - Behavior changed
resolveToValue
resolveToValue now returns the specific import specifier instead of the ImportDeclaration, so checks for isImportDeclaration must look at the parent path. github.com - Signature changed
utils.getTypeFromReactComponent
It now returns an array of paths to types instead of a single path, so code that checks the result for truthiness must check for a non-empty array instead. npmjs.com
react-docgen 6.0.0 breaking changes
- Removed
Only Node.js 14.18.0 or newer is supported now. react-docgen.dev - Removed
@extends React.Component annotation
Use the new @component annotation to mark a component, or define a custom FindAnnotatedDefinitionsResolver. react-docgen.dev - Removed
ast-types
Integrations using ast-types will not work; migrate to babel APIs, since the AST no longer conforms to estree. react-docgen.dev - Removed
findExportedComponentDefinition
Use new FindExportedDefinitionsResolver({ limit: 1 }) instead. react-docgen.dev - Removed
match
Use babel helpers or explicit checks instead. react-docgen.dev - Removed
parse
The parse method has only two arguments now, and its return value is always an array. Pass resolver, handlers, importer, filename and babelOptions inside the config object. react-docgen.dev - Removed
resolveComponentDefinition
Use findComponentDefinition instead. react-docgen.dev - Renamed
findAllComponentDefinitions
Replace with new FindAllDefinitionsResolver() and it is now a class. react-docgen.dev - Renamed
findAllExportedComponentDefinitions
Replace with new FindExportedDefinitionsResolver() and it is now a class. react-docgen.dev - Renamed
flowTypeHandler
Update imports and references to use codeTypeHandler. react-docgen.dev
And 12 more in this version. Sign up to see every change
react-docgen 6.0.0-rc.7 breaking changes
- Renamed
toObject
The method toObject on DocumentationBuilder was renamed to build; integrations must update the call. github.com
react-docgen 6.0.0-beta.6 breaking changes
- Renamed
propDocBlockHandler
The handler was renamed for consistency; update references to the new name. github.com
react-docgen 6.0.0-beta.5 breaking changes
- Removed
@extends React.Component
Class components annotated with @extends React.Component are no longer detected; use the @component annotation. github.com - Removed
findExportedComponentDefinition
Use FindExportedDefinitionsResolver with the limit option instead. github.com - Removed
isComponentDefinition
The named export isComponentDefinition was removed. github.com - Removed
match
The match utility was removed; use babel helpers or explicit checks instead. github.com - Renamed
findAllComponentDefinitions
The function was renamed to FindAllDefinitionsResolver and is now a class that must be instantiated with new. github.com - Renamed
findAllExportedComponentDefinitions
The function was renamed to FindExportedDefinitionsResolver and is now a class that must be instantiated with new. github.com - Renamed
resolveComponentDefinition
The utility was renamed and now does more than before; check the commit for details. github.com
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
react-docgen 6.0.0-alpha.4 breaking changes
- Renamed
flowTypeHandler
The flowTypeHandler export was renamed to codeTypeHandler because it handles Flow and TypeScript. Update references to use the new name. github.com - Renamed
handlers
The handlers export was renamed to builtinHandlers. github.com
And 7 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.