- Don't mutate options object. Thanks @adammockor: #92
- Reverted incorrectly published documentation update: #89
Thanks @patricklafrance: #73
- Expose the
savePropAsValueString
parser option. If set to true, defaultValue to props will be string. https://github.com/styleguidist/react-docgen-typescript#parseroptions
Thanks @folz: #72
- Expose the
componentNameResolver
parser option. This allows override the name resolution for components.
Thanks @patricklafrance: #69
- Make the name of the
type
property attached to generated docs configurable.
Thanks @evless: #64
- Default values can be displayed as something other than just string types.
- Bump
react-docgen-typescript
tov1.14.1
. @hipstersmoothie
Thanks @nekitk: #59
- Default values for stateless components can now be generated from props destructuring.
- Passing new parser option (shouldExtractLiteralValuesFromEnum) which allows to parse TypeScript enums and string unions to docgen enum of their values:
If false (like before):
type: { name: "\"blue\" | \"green\"" }
ortype: { name: "ColorEnum" }
If true: type:{ name: "enum", value: [ { value: "\"blue\"" }, { value: "\"green\""} ] }
- Fixed stories are not updated on reload. Thanks @nekitk. #43
- Increased performance by reusing TypeScript program instance. Thanks @denieler (#40)
- Republish to resolve potential file permissions issue due to publishing from Windows. Closes #35.
- Bump
react-docgen-typescript
dependency tov1.9.0
- Removed the loader options
includes
andexcludes
. Closes #15 - Use the
loader-utils
Webpack page to process loader options. Closes 22.
- Add the ability to filter props using a filtering function. Thanks @rkostrzewski. #21
- Bump
react-docgen-typescript
dependency tov1.6.0
:parse can be called with multiple source file paths (thanks to @marionebl PR #91)
upgraded typescript version and fixed parsing comment problem (thanks to @kbukum PR #97)
- Bump
react-docgen-typescript
dependency tov1.5.0
:Remove spread logic.
Support spread default props.
Use folder name if file name is index.
chore(parser): refactor displayName extraction
chore(Parser): read displayName
parse tsconfig.json mirroring TSC’s process
Added support for referenced default props in stateless components
support referenced defaultProps
Extracts default props from stateless components
- Bump
react-docgen-typescript
dependency tov1.2.6
:Fix React.SFC-typed functional components
https://github.com/styleguidist/react-docgen-typescript/commit/e9d57f229b9760967ddc0a746b1c1443f06762b0 - Loader option
setDisplayName
now correctly acceptsfalse
value.
- Use original source text when generating amended code (resolves #7).