Skip to content

Releases: jozsi/react-cosmos-wrapper-proxy

`defaultEnabled`: documented and overridable

11 Jul 22:00
Compare
Choose a tag to compare

The defaultEnabled option introduced in v1.5.0 is now documented in the README and overridable. If defaultEnabled: true in proxy config, you can selectively disable it in the fixture using myFixtureKey: false (e.g. mui: false)

This release also bumps the dependencies to their latest and formats the code using prettier.

`defaultEnabled` option

11 Jul 20:22
Compare
Choose a tag to compare

The defaultEnabled option allows a wrapper proxy to be enabled by default.

See #4. Big thanks to @tgrowden!

Prioritize fixture props > HoC props

12 Jun 19:42
Compare
Choose a tag to compare

When using a HoC, it will append some props to the component. Previously, the HoC props were overwriting the ones declared in the fixture, this prevented us to mock some props sent by the HoC (e.g. isSubmitting).

This has been fixed, props declared in the fixture will override the ones passed from the HoC - if they conflict on merge.

HoC props fix

10 Jun 00:01
Compare
Choose a tag to compare

Props sent from a decorator/HoC to the wrapped component got swallowed by Cosmos' internal PropsProxy.

To work this around, the props are now appended to the fixture prop list.