Releases: reactjs/react-docgen
5.4.1
6.0.0-alpha.2
This is a pre-release that is under heavy development. Please report any issues you might encounter here: #579
Bug Fixes
- Change folder name inside the npm package back to
dist
. (5f3da8c)
There was no real reason to change this and happened during the TypeScript migration.
v6.0.0-alpha.1
This is a pre-release that is under heavy development. Please report any issues you might encounter here: #576
Bug Fixes
- Fix for expressionTo with Spread and Methods (5f3da8c)
- Remove obsolete id check (66961d8)
- Remove usage of ast-type builders (17c8a9c)
Features
- Migrate to TypeScript (7b35e6f)
- Remove building out of scope AST Nodes from resolveToValue (5bcf56c)
BREAKING CHANGES
resolveToValue
will not create aMemberExpression
for targets ending in destructuring. It will now simply resolve to theIdentifier
inside the destructuring. Use new helperisDestructuringAssignment
to further check this identifier.- The helpers
resolveObjectValuesToArray
andresolveObjectKeysToArray
return nowstring[]
instead of aNodePath
6.0.0-alpha.0
Install with
yarn add react-docgen@next
Includes all commits that are also in 5.4.0.
- Allow resolving of imported types/proptypes
This version does not yet really have any breaking changes, so for updating from 5.4.0 or 5.4.0-alpha.0 nothing needs to be done. The import-resolving feature is such a big change that it will be released in the next major version, so this is the only change for now in this alpha version. Also to come in 6.0 is a complete rewrite in TypeScript, the removal of the
ast-types
dependency and some more major changes. See #502.
5.4.0
This does not include #464. Resolving of imports will be added in 6.0. There is a new
6.0.0-alpha.0
version which includes resolving of imports.
Bug Fixes
- Ensure
componentMethodsHandler
ignores private properties (#440)
Features
- use
@babel/generate
to serialise AST nodes w/o loc inprintValue
(#482)
5.4.0-alpha.0
- Allow resolving of imported types/proptypes