Release notes

happo for npm release notes

The happo npm package: the CLI and its Storybook, Cypress, Playwright, and Vitest integrations.

7.7.0happo dev prints run links and shows review rejections

Added

  • The happo dev command now prints a link to follow the run as soon as it starts, and shows a "Rejected on happo.io" section listing any review rejections from a previous run [by @lencioni in #1629]

7.6.0Fingerprint-based rendering, happo changed/dev commands, story pools

This release lets Storybook runs render only the components whose fingerprints changed, adds new happo changed and happo dev commands and local-run capping flags, introduces Storybook story pools and test-runner mode, and fixes several fingerprinting and rendering bugs.

Added

  • Render only the Storybook components whose fingerprints changed and borrow the rest from an earlier report, including a pull request's fallback report when its merge base has none, and for pushes to the default branch without a comparison [by @lencioni in #1377, #1451, #1442]
  • Add a happo changed [--against <sha>] [--explain] command that prints which report a run would borrow from and why each component would or wouldn't render [by @lencioni in #1378]
  • Cap a local run to the 10 components closest to the change, with --limit, --max-depth, --direct, and --sample flags to adjust it, and the ability to render what the cap left out into the same comparison afterwards [in #1388, #1392]
  • Add an integration.storyPool option that lets a Storybook target's snap requests share a pool of stories instead of fixed chunks, so one slow component no longer stretches out the whole run [in #1341, #1351]
  • Add an integration.testRunnerMode option that speeds up Storybook renders by skipping Storybook's default 100ms wait timeout [in #1353]
  • Add a blockApproval.timedOutAddedSnapshots option that blocks approval when an added snapshot's waitForContent, waitForSelector, or Storybook waitFor times out on every render [by @trotzig in #1501]
  • Warn when a prebuilt Storybook package uploaded by file uses hashed script names, and suggest setting HAPPO_STABLE_OUTPUT_NAMES=1 [by @lencioni in #1485]

Fixed

  • Fix a Storybook preflight check that reported no stories when fingerprint selection rendered zero of a Storybook's components [by @trotzig in #1505]
  • Count what a CSS Module's composes rule pulls in when fingerprinting its stories [by @lencioni in #1495]
  • Fingerprint Next.js images and local fonts the same regardless of the checkout folder [by @lencioni in #1488]
  • Stop the root tsconfig and static files named by their served path from forcing a full re-render in fingerprint selection [by @lencioni in #1452]
  • Fix animations rendering backwards under integration.testRunnerMode [in #1390]

7.5.1Request IDs included in network failure errors

Changed

  • Include the request ID in error messages when network requests fail, making it easier to reference failures when reporting issues [by @lencioni in #1267]

7.5.0Baseline lookup now lets you prioritize specific commits

Added

  • The happo baseline <sha>... command now checks the given commits first, in order, before falling back to the merge base and other candidates, letting Storybook borrow from the closest matching report instead of always from main's history [by @lencioni in #1252]

7.4.0New blockApproval option for flaky added snapshots

Added

  • Add a blockApproval.flakyAddedSnapshots config option that blocks approval of comparisons with flaky added snapshots, defaulting to false [by @lencioni in #1243]

7.3.1

  • Only changes what gets reported to Sentry internally; CLI output and exit behavior are unchanged

7.3.0Broken Storybook story files no longer fail the whole report

Fixed

  • Fix a Storybook story file that throws on import to only fail its own stories, rather than the entire snap request, though themed story examples may now appear in a different order [by @trotzig in #1009]

7.2.4Fix for dropped snapshots in Playwright batches

Fixed

  • Fix Playwright batches sometimes losing the snapshot of a test that passed, which could show as missing results in a Happo report [by @lencioni in #1019]

7.2.3Internal refactor release

7.2.2Clearer guidance when a run is cancelled

Fixed

  • Show an upgrade hint and the allowFailures tip in CI failure messages for old CLI versions whose e2e or Storybook build failures gave no detail [by @lencioni in #919]

Need help?