Skip to content

v2.17.0

Compare
Choose a tag to compare
@fkling fkling released this 22 Jul 00:06
· 2102 commits to main since this release

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 = () => {
    
      };
    }
    

    See 1ff84b7 and #182.

Fixed

  • Using array destructuring in class method parameters doesn't throw an error anymore. ( #197 )

Other

  • Upgraded dependencies, especially recast ( 760c426 ).