Skip to content

3.0.0

Compare
Choose a tag to compare
@danez danez released this 28 Jan 20:54

Changes from rc.2

  • Add forwardRef as a valid component definition (#311)
  • Resolve flow $Keys to union when typeParameter is an ObjectTypeAnnotation (#290)
  • Attempt to support system-components (#292)
  • Add support for PropTypes.exact
  • resolve Object.values() in PropType.oneOf() (#318)

Big Changes from 2.x

  • Drop support for node 4. Only node 6 and newer are supported
  • Switched the internal parser from babylon@5 to @babel/parser@7. This should not break anything, but will support a lot more newer javascript syntax features as well as newer flow syntaxes.
  • 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 to ReactDocgen.parse().
  • The types of method params and return (parsed from JSdoc) are now the same as the flow types.