Skip to content

Releases: reg-viz/storycap-testrun

@storycap-testrun/node@2.1.0

21 Mar 15:31
7f1e8a0

Choose a tag to compare

Minor Changes

  • #248 96b0fb9 Thanks @wadackel! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode.

    Per-story image options: fullPage, omitBackground, and scale can now be set per-story via parameters.screenshot, overriding the global defaults.

    export default {
      parameters: {
        screenshot: {
          fullPage: false,
        },
      },
    };

    Viewport fix: Added viewport option to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes.

    storycap({
      viewport: { width: 1280, height: 720 },
    });

    Full-page capture: fullPage: true (default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results. fullPage: false captures only the viewport area.

Patch Changes

  • Updated dependencies [96b0fb9]:
    • @storycap-testrun/internal@2.1.0

@storycap-testrun/internal@2.1.0

21 Mar 15:31
7f1e8a0

Choose a tag to compare

Minor Changes

  • #248 96b0fb9 Thanks @wadackel! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode.

    Per-story image options: fullPage, omitBackground, and scale can now be set per-story via parameters.screenshot, overriding the global defaults.

    export default {
      parameters: {
        screenshot: {
          fullPage: false,
        },
      },
    };

    Viewport fix: Added viewport option to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes.

    storycap({
      viewport: { width: 1280, height: 720 },
    });

    Full-page capture: fullPage: true (default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results. fullPage: false captures only the viewport area.

@storycap-testrun/browser@2.1.0

21 Mar 15:31
7f1e8a0

Choose a tag to compare

Minor Changes

  • #248 96b0fb9 Thanks @wadackel! - Add per-story image options and fix viewport/fullPage behavior in vitest browser mode.

    Per-story image options: fullPage, omitBackground, and scale can now be set per-story via parameters.screenshot, overriding the global defaults.

    export default {
      parameters: {
        screenshot: {
          fullPage: false,
        },
      },
    };

    Viewport fix: Added viewport option to the storycap plugin. This controls the screenshot capture dimensions, bypassing vitest's internal iframe scaling that previously caused screenshots to be captured at incorrect sizes.

    storycap({
      viewport: { width: 1280, height: 720 },
    });

    Full-page capture: fullPage: true (default) now correctly captures content that extends beyond the viewport by scrolling through the iframe and stitching the results. fullPage: false captures only the viewport area.

Patch Changes

  • Updated dependencies [96b0fb9]:
    • @storycap-testrun/internal@2.1.0

@storycap-testrun/node@2.0.0

21 Sep 08:36
3720b18

Choose a tag to compare

Major Changes

  • #155 59f4147 Thanks @wadackel! - # 🚀 storycap-testrun v2.0.0 - Major Release

    ✨ New Features

    @storycap-testrun/browser

    • Added support for @storybook/addon-vitest
      • New Vitest plugin available via /vitest-plugin export
      • Enables visual testing in browser-based Vitest environments
      • Maintains compatibility with existing test runners

    📦 Package Restructuring

    @storycap-testrun/node

    • Official successor to the deprecated storycap-testrun package
      • Dedicated support for @storybook/test-runner
      • Optimized for Node.js environments

    @storycap-testrun/internal

    • Core utilities shared across packages
      • Improved internal APIs for better maintainability
      • Optimized common functionality for browser and Node.js environments

    💥 Breaking Changes

    • Deprecated: storycap-testrun package (migrate to @storycap-testrun/node)
    • Dropped support for Storybook v7 (requires v8+)
    • Changed postCapture hook signature (simplified from ScreenshotImage to filepath)
    • Removed output.dry option

    📚 Migration

    See MIGRATION.md for detailed migration instructions from v1 to v2.

Patch Changes

  • Updated dependencies [59f4147]:
    • @storycap-testrun/internal@2.0.0

@storycap-testrun/internal@2.0.0

21 Sep 08:36
3720b18

Choose a tag to compare

Major Changes

  • #155 59f4147 Thanks @wadackel! - # 🚀 storycap-testrun v2.0.0 - Major Release

    ✨ New Features

    @storycap-testrun/browser

    • Added support for @storybook/addon-vitest
      • New Vitest plugin available via /vitest-plugin export
      • Enables visual testing in browser-based Vitest environments
      • Maintains compatibility with existing test runners

    📦 Package Restructuring

    @storycap-testrun/node

    • Official successor to the deprecated storycap-testrun package
      • Dedicated support for @storybook/test-runner
      • Optimized for Node.js environments

    @storycap-testrun/internal

    • Core utilities shared across packages
      • Improved internal APIs for better maintainability
      • Optimized common functionality for browser and Node.js environments

    💥 Breaking Changes

    • Deprecated: storycap-testrun package (migrate to @storycap-testrun/node)
    • Dropped support for Storybook v7 (requires v8+)
    • Changed postCapture hook signature (simplified from ScreenshotImage to filepath)
    • Removed output.dry option

    📚 Migration

    See MIGRATION.md for detailed migration instructions from v1 to v2.

@storycap-testrun/browser@2.0.0

21 Sep 08:36
3720b18

Choose a tag to compare

Major Changes

  • #155 59f4147 Thanks @wadackel! - # 🚀 storycap-testrun v2.0.0 - Major Release

    ✨ New Features

    @storycap-testrun/browser

    • Added support for @storybook/addon-vitest
      • New Vitest plugin available via /vitest-plugin export
      • Enables visual testing in browser-based Vitest environments
      • Maintains compatibility with existing test runners

    📦 Package Restructuring

    @storycap-testrun/node

    • Official successor to the deprecated storycap-testrun package
      • Dedicated support for @storybook/test-runner
      • Optimized for Node.js environments

    @storycap-testrun/internal

    • Core utilities shared across packages
      • Improved internal APIs for better maintainability
      • Optimized common functionality for browser and Node.js environments

    💥 Breaking Changes

    • Deprecated: storycap-testrun package (migrate to @storycap-testrun/node)
    • Dropped support for Storybook v7 (requires v8+)
    • Changed postCapture hook signature (simplified from ScreenshotImage to filepath)
    • Removed output.dry option

    📚 Migration

    See MIGRATION.md for detailed migration instructions from v1 to v2.

Patch Changes

  • Updated dependencies [59f4147]:
    • @storycap-testrun/internal@2.0.0

storycap-testrun@1.0.0

14 Jun 09:23
f0664fe

Choose a tag to compare

Major Changes

  • #107 5c314a7 Thanks @wadackel! - BREAKING CHANGE: Drop support for Node.js 18. The minimum required Node.js version is now 20.

    This change aligns with Node.js LTS lifecycle and ensures better compatibility with modern tooling.

storycap-testrun@0.0.2

02 Feb 16:14
96cdd59

Choose a tag to compare

Patch Changes

  • 5c3a673 Thanks @wadackel! - A micro update:

    • Increased the default retry count for retake from 5 to 10
    • Improved the type for flakiness

storycap-testrun@0.0.1

01 Feb 13:58
e8f444e

Choose a tag to compare

Patch Changes