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--sampleflags to adjust it, and the ability to render what the cap left out into the same comparison afterwards [in #1388, #1392] - Add an
integration.storyPooloption 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.testRunnerModeoption that speeds up Storybook renders by skipping Storybook's default 100ms wait timeout [in #1353] - Add a
blockApproval.timedOutAddedSnapshotsoption that blocks approval when an added snapshot'swaitForContent,waitForSelector, or StorybookwaitFortimes 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
composesrule 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]