Release notes

happo for npm release notes

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

7.9.0happo dev now refuses to render everything silently when fingerprint selection fails

This release changes how happo dev behaves when it can't determine which stories changed, adds a new accessibilityOptions setting, and fixes a Storybook fingerprinting bug introduced by a recent Vite upgrade.

Added

  • Add an accessibilityOptions option to a happo.config accessibility target, letting you configure axe-core options and turn Happo's own accessibility checks on or off by rule id.

Changed

  • When happo dev can't read or use a fingerprint file to select affected stories, it now cancels the run instead of silently rendering every story; rerun with --full to render everything on purpose. [by @lencioni in #1739]

Fixed

  • Fix a bug where a CSS Module composed from another module that itself composed from a third module could be read as a partial of the wrong module, causing Storybook builds (especially after the Vite 8.4 upgrade) to fail to write a fingerprint file and fall back to rendering every story. [by @lencioni in #1734]

7.8.0happo login and dev --wait --next-review, fix for theme-switch flakiness

This release adds a browser-based login flow for local runs and a way for happo dev to wait for a review, plus fixes a story rendering race after a theme switch.

Added

  • Add happo login and happo logout, which sign in once through the browser and save a 30-day key so local runs no longer need an API key in an env file [by @lencioni in #1632]
  • Add happo dev --wait --next-review, which waits for somebody to review the run's comparison on happo.io and then reprints its summary, so an agent can be woken when a review happens [by @lencioni in #1631]

Fixed

  • Fix a race where a story could be screenshotted mid-render right after a theme switch, showing the previous example's theme [by @trotzig in #1687]

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]

Need help?