Skip to content

v0.27.0

Compare
Choose a tag to compare
@github-actions github-actions released this 13 Aug 00:31
· 99 commits to master since this release
76e585b

0.27.0 (2021-08-13)

Features

  • Update TS & react-docgen-typescript and support parser config (#232) (76e585b)

Release notes

Update react-docgen-typescript and add support for customising the parser config by specifying reactDocgenTypescriptConfig in your playroom.config.js.

module.exports = {
  ...,
  reactDocgenTypescriptConfig: {
    propFilter: (prop, component) => {
      ...
    }
  }
};

Full change list:

  • Update react-docgen-typescript to ^2.1.0
  • Update typescript to ^4.3.2
  • Support customising the docgen parser config
  • Default parser config now supports TS enums and literal unions
  • Default prop filtering no longer omits className, only children. Although you can now customise the the propFilter as per example above
  • Enable noErrorTruncation on top of users tsconfig to ensure prop values are not truncated
  • Removed internal examples folder due to rot and maintenance overhead