Release notes

happo for npm release notes

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

6.12.1

  • Throw descriptive errors when inline dynamic targets are malformed instead of silently dropping them [by @trotzig in #504]
  • Add helpful hint in validation errors when using legacy browser/browserType fields instead of type
  • Drop snapshots from failed Playwright test attempts to prevent duplicates with -2 suffix on retry

6.12.0

This changes default behavior. Runs that have stale waitForContent or waitFor values will start failing instead of silently producing screenshots with a ~20s timeout penalty per snap.

If you encounter a failure after upgrading:

  • Preferred: update the offending waitForContent / waitFor so it matches what is actually rendered. This is almost always the right fix — it removes both the failure and the wasted wait time.
  • Last resort: set failOnWaitForTimeout: false in your Happo config to restore the previous warn-and-screenshot behavior while you investigate.

Changes:

  • Add failOnWaitForTimeout config option (default: true) to control timeout behavior for waitForContent and waitForSelector — when enabled, timeouts fail the snap with a clear error instead of warning silently [by @lencioni in #500]

6.11.0

  • Support extending full reports from baseline when --only is given an empty JSON array [by @trotzig in #491]
  • Throw clear error when empty --only can't enumerate components from build output
  • Fix report message to use only commit subject line instead of full body for push/merge-group events [by @trotzig in #490]
  • Upgrade pnpm from v10 to v11 with proper configuration migration [by @lencioni in #487]
  • Update dependencies: eslint 10.3.0, typescript-eslint 8.59.2, storybook 10.3.6, and others

6.10.8

  • Fix --skip flag for custom builds that replace the document on render by reading skip list once during initialization [by @trotzig in #482]

6.10.7

  • Fix message resolving as null for non-default-branch GitHub Actions builds by falling through to git log when pull_request.title is null [by @lencioni in #481]
  • Add head_commit.message as a message source for push events on GitHub Actions before falling back to git log for better reliability in shallow-clone environments [by @lencioni in #481]
  • Add merge_group.head_commit.message as a message source for merge queue builds [by @lencioni in #481]
  • Update GitHubEvent type to accurately reflect that title can be null per the GitHub API [by @lencioni in #481]

6.10.6

  • Fix e2e finalizeHappoReport to guard against same-SHA comparison, preventing errors on default-branch builds [by @lencioni in #480]

6.10.5

  • Fix GitHub Actions push events to default branch incorrectly creating comparisons instead of reports [by @lencioni in #479]
  • Refactor Storybook package.json lookup to use empathic/walk for more reliable parent directory traversal [by @lencioni in #478]

6.10.4

  • Support pnpm catalog: and workspace:* specifiers in Storybook version detection

6.10.3

  • Skip non-fetchable URL schemes (about:, blob:, javascript:, file:, chrome:, chrome-extension:, moz-extension:) in asset packager to prevent failed fetch errors [by @trotzig in #476]
  • Update dependencies including Cypress, ESLint, TypeScript, and typescript-eslint to latest patch/minor versions

6.10.2

  • Fix using --skip and --only together with chunking [by @trotzig in #470]

Need help?