Skip to content

v4.0.0

Compare
Choose a tag to compare
@trotzig trotzig released this 11 Jan 21:06

The main breaking change in this major release is that Storybook v5 is no longer supported. You can still use v3.4.1 which works with Storybook v5 and if there are critical bug fixes we might release patch releases for version 3. But any new features will be for Storybook v6 and v7.

This release also contains a bugfix for waiting for stories to complete before taking the screenshot. We were relying on a property to exist in order to set up the complete-listener. But that property only existed if someone else was listening for the storyRenderPhaseChanged event. The fix involves always listening to the storyRenderPhaseChanged event. This works for everyone on Storybook v6.4.0 or later. If you are on an earlier version than 6.4.0, you should disable this behavior using the following function:

// .storybook/preview.js
import { setShouldWaitForCompletedEvent } from 'happo-plugin-storybook/register';

setShouldWaitForCompletedEvent(false);