3.0.0-rc.0
Pre-release
Pre-release
Breaking Change
- react-docgen now parses only the new decorators proposal syntax and not the old one anymore by default. You can switch back to the legacy decorators proposal with the cli flag
--legacy-decorators
or the programmatic options{ legacyDecorators: true }
passed as 4th parameter toReactDocgen.parse()
. - Drop support for node <6
New Features
- Parse information about the (old) react context API (#130, #260)
- Adding
@extends React.Component
support to mark classes which do not extend fromReact.Component
as valid react components (#269) - Support type cast expression when detecting components (#279)
Bug Fixes
- Fix typo in one error message (Propery -> Property) (#257)
- Fix handling of exported classes without id (#273)
- Remove renamed SpreadProperty checks
- Extract display name correctly even if components are wrapped (#277)
- Resolve value to a proper node instead of an array, which fixes some recast exceptions (#278)
- Correctly unwrap utility types when resolving type spreads (#280)
- Correctly read descriptions of inner types in arrayOf/objectOf (#281)
- Correctly read descriptions of local spread objects (#282)