Releases: reactjs/react-docgen
Releases · reactjs/react-docgen
v2.16.0
v3.0.0-beta4
v2.15.0
v2.14.1
v3.0.0-beta3
v2.14.0
New
- Added support for
developit/proptypes
( #163, @eduardoboucas) andprop-types
( #172, @sawyerh) packages. - Recognize functions calling
React.Children.only
as React components ( #169, @damian )
Improvement
- Ignore
coverage/
folder when publishing to npm, reducing package size by more than 50%! ( #166, @fabiosantoscode )
v3.0.0-beta2
Upgrade babylon to v7.0-beta.4 ( #165 )
You can install this release via
npm install react-docgen@next
# or
yarn add react-docgen@next
v3.0.0-beta1
While this a new major version, there shouldn't be any breaking changes. We switched to babylon v7(beta) ( #158 ) internally, which supports most flow type annotations. It is published as a prerelease so you can test it on your codebase first.
Other changes:
You can install this release via
npm install react-docgen@next
# or
yarn add react-docgen@next
v2.13.0
New / changed
- Ignore
__mocks__
directories by default (#135) (@aitherios) - Recognized functions that call
React.cloneElement
as stateless components (#138) (@khankuan)
Fixes
- Infinite loop issue with MemberExpressions inside stateless components ( #136, #139, #143 ) (@tchon, @danez)
- Crash when a SpreadProperty is used in shape propTypes (#145) (@Arktes)
Internal changes
- Switched from nomnom to commander.js (#142) (@withinboredom)