v1.1.0-beta.1
Pre-release
Pre-release
·
4 commits
to master
since this release
✨ New Features
Responsive Snapshot Capture
- Added
responsiveSnapshotCaptureoption 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.corsIframesfield - Reduced client-side processing overhead
⚙️ Configuration Options
New environment variables:
PERCY_RESPONSIVE_CAPTURE_MIN_HEIGHT- Enable minimum height calculation for non-mobile widthsPERCY_RESPONSIVE_CAPTURE_RELOAD_PAGE- Reload page between viewport changesRESPONSIVE_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.corsIframesfield 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
deferUploadsis enabled
What's Changed
- feat: add responsive snapshot capture and refactor CORS iframe handling by @bhokaremoin in #593
- release-1.1.0-beta.1 by @bhokaremoin in #599
New Contributors
- @bhokaremoin made their first contribution in #593
Full Changelog: v1.1.0-beta.0...v1.1.0-beta.1