github seek-oss/playroom v0.27.0

latest releases: v0.37.1, v0.37.0, v0.36.0...
2 years ago

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

Don't miss a new playroom release

NewReleases is sending notifications on new releases.