Skip to content

Releases: reactjs/react-docgen

v1.3.0

18 May 23:51
Compare
Choose a tag to compare

react-docgen now understands the following constructs:

import foo from 'Foo';
import {foo} from 'Foo';
import {foo as bar} from 'Foo';
export var Component = React.createClass({});

var Component = React.createClass({});
export {Component};
export {Component as Foo};
export default Component;

export default React.createClass({});

You will now be able to use ES6 import and export declarations with your react components. However, to "detect" a React component, React.createClass(...) must still be present in the source.

v1.2.0

06 Apr 07:47
Compare
Choose a tag to compare
  • Add support for destructuring assignments

Bump to v1.1.0 for publishing

19 Mar 22:30
Compare
Choose a tag to compare
  • Extract composition detection logic from propTypeHandler into
    propTypeCompositionHandler. propTypeHandler still delegates to
    propTypeCompositionHandler for backwards compatibility.
  • Expose an array of default handlers as defaultHandlers on the root
    object.
  • Relax requirements for composition detection in spread properties (see
    878d57d).