Skip to content

Releases: happo/happo-plugin-storybook

v4.4.1

28 Oct 22:02
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.4.0...v4.4.1

v4.4.0

08 Oct 19:42
Compare
Choose a tag to compare

What's Changed

Remove project.json after Storybook build by @trotzig in #131

This will speed up builds by making it easier for Happo to reuse existing assets.

Full Changelog: v4.3.2...v4.4.0

v4.3.2

18 Sep 09:10
Compare
Choose a tag to compare

Summary

This release fixes an issue where screenshots would be missing (shown as "deleted" in the Happo report UI) if you had an interactive story using forceHappoScreenshot as either the first story in the whole Storybook test suite, or if you were using chunks config in .happo.js and the first story rendered for a certain chunk would be interactive and use forceHappoScreenshot.

What's Changed

Full Changelog: v4.3.1...v4.3.2

v4.3.1

11 Jul 21:45
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.3.0...v4.3.1

v4.3.0

18 May 12:16
Compare
Choose a tag to compare

This minor release adds support for a new skip configuration option. Use it to inform Happo about examples/stories that you want to skip for the run but still want to keep in the Happo reports.

Here's an example where "Button > disabled" is skipped for a run:

// .happo.js
module.exports = {
  // ...
  plugins: [
    happoPluginStorybook({
      skip: async () => {
        // you can do asynchronous tasks here to figure out which examples to skip. Just make sure to return an array at the end, where each item has a `component` and a `variant` property. 
        return [
          {
            component: 'Button',
            variant: 'disabled',
          },
        ];
      },
    }),
]

v4.2.2

21 Apr 12:53
Compare
Choose a tag to compare

This patch release makes a small but important change to memory consumption. Before this release, we would write a zip package to memory. After this release, everything is kept on disk, saving significant RAM usage in certain scenarios.

v4.2.1

19 Mar 10:47
Compare
Choose a tag to compare

This patch release adds a fix for certain test suites running into an infinite loop when the following criteria is met:

  • The story uses a Play function
  • The Play function throws an error after having made a call to forceHappoScreenshot

Before this release, the above scenario would lead to Happo taking a screenshot of the same Story and state over and over again. This release will detect the scenario and move on with the test suite.

v4.2.0

18 Mar 13:06
Compare
Choose a tag to compare

This minor release adds support for Storybook v8.

v4.1.0

06 Feb 10:04
Compare
Choose a tag to compare

This minor release adds support for an upcoming feature at happo.io that involves being able to retry a single screenshot. Happo will inform the test suite that it wants a single screenshot and not from all stories. To prepare for that, this library has to honor the new only configuration option.

v4.0.2

17 Jan 16:16
Compare
Choose a tag to compare

This patch release has a fix for projects with a storybook script entry in package.json. When such is detected, we fall back to using the binary available in node_modules/.bin/storybook instead.