Releases: reactjs/react-docgen
Releases · reactjs/react-docgen
v2.18.0
v3.0.0-beta6
v2.17.0
New
-
Classes that define a
render
public class field are now considered React components. For example:class Component extends SomeBaseComponent { render = someFunction; }
See #193 and fe55485. Thank you @birjolaxew!
-
Functions assigned to public class fields are now considered as methods. I.e. both function in the following example will be picked up by react-docgen:
class Component extends React.Component { method1() {} method2 = () => { }; }
Fixed
- Using array destructuring in class method parameters doesn't throw an error anymore. ( #197 )
Other
- Upgraded dependencies, especially
recast
( 760c426 ).
v3.0.0-beta5
(cherry picked changes from v2.16.0)
New
-e
,--exclude
now accepts a regular expression to filter out files by name:-e /.*-test\.js/
The argument will only be treated as a regular expression if the parameter is only passed once ( #164).
You can install this version via npm install react-docgen@next
.
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 )