Skip to content

v1.1.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@bhokaremoin bhokaremoin released this 11 Mar 10:35
· 4 commits to master since this release
5005b2b

✨ New Features

Responsive Snapshot Capture

  • Added responsiveSnapshotCapture option to capture DOM across multiple viewport widths in a single snapshot operation
  • Automatically captures snapshots at configured mobile and desktop breakpoints
  • Original viewport is preserved and restored after capture
  • Each snapshot is tagged with its capture width for accurate comparison

🔧 Enhancements

CORS Iframe Handling Refactored

  • Delegated resource merging and iframe HTML manipulation to Percy CLI for improved performance
  • CORS iframe data now stored in domSnapshot.corsIframes field
  • Reduced client-side processing overhead

⚙️ Configuration Options

New environment variables:

  • PERCY_RESPONSIVE_CAPTURE_MIN_HEIGHT - Enable minimum height calculation for non-mobile widths
  • PERCY_RESPONSIVE_CAPTURE_RELOAD_PAGE - Reload page between viewport changes
  • RESPONSIVE_CAPTURE_SLEEP_TIME - Add delay (in seconds) between captures

📋 Requirements

  • Requires Percy CLI 1.31.10-beta.0 or higher for utils.getResponsiveWidths() support
  • CLI must handle domSnapshot.corsIframes field for CORS iframe processing

💥 Impact

  • Breaking: Projects using CORS iframes must update Percy CLI to the latest version
  • Performance: Improved snapshot capture efficiency through delegated CLI processing
  • Compatibility: Responsive capture is automatically disabled when deferUploads is enabled

What's Changed

New Contributors

Full Changelog: v1.1.0-beta.0...v1.1.0-beta.1