Skip to content

Releases: percy/percy-playwright

v1.1.0

27 Mar 07:12
e2ecb77

Choose a tag to compare

✨ 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

New Environment Variables

Variable Description
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

🔧 Enhancements

CORS Iframe Handling Improvements

  • Added error handling for cross-origin iframe processing to prevent failures from breaking snapshot capture (#592)
  • Delegated resource merging and iframe HTML manipulation to Percy CLI for improved performance (#593)
  • CORS iframe data now stored in domSnapshot.corsIframes field
  • Reduced client-side processing overhead

📋 Requirements

Important

This release requires updates to your Percy CLI version. Please ensure compatibility before upgrading.

  • Percy CLI v1.31.10 or higher is required for utils.getResponsiveWidths() support
  • Percy CLI must handle the domSnapshot.corsIframes field for CORS iframe processing
  • Projects using CORS iframes must update Percy CLI to the latest version before upgrading to this SDK version

💥 Impact

Caution

Breaking Change — Projects using CORS iframes must update Percy CLI to the latest version. Failing to do so will result in CORS iframe data not being processed correctly.

Area Detail
Breaking CORS iframe handling now delegates processing to Percy CLI. Older CLI versions will not process domSnapshot.corsIframes correctly.
Performance Improved snapshot capture efficiency — resource merging and iframe HTML manipulation moved server-side to Percy CLI, reducing client-side overhead.
Compatibility Responsive snapshot capture is automatically disabled when deferUploads is enabled.

What's Changed

  • added try catch for crossOriginFrames handling by @aryanku-dev in #592
  • feat: add responsive snapshot capture and refactor CORS iframe handling by @bhokaremoin in #593

New Contributors

Full Changelog: v1.0.10...v1.1.0

v1.1.0-beta.1

11 Mar 10:35
5005b2b

Choose a tag to compare

v1.1.0-beta.1 Pre-release
Pre-release

✨ 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

v1.1.0-beta.0

10 Mar 11:57
4eef300

Choose a tag to compare

v1.1.0-beta.0 Pre-release
Pre-release

What's Changed

New Contributors

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

v1.0.10

13 Nov 12:48
81238d1

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.9...v1.0.10

1.0.10-alpha.0

13 Aug 12:42

Choose a tag to compare

1.0.10-alpha.0 Pre-release
Pre-release

Added support for capturing CORS iframes along with blob images.

v1.0.9

25 Jul 06:09
698bbc8

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.8...v1.0.9

v1.0.9-beta.0

28 Apr 11:10
dd4c5f5

Choose a tag to compare

v1.0.9-beta.0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v1.0.8...v1.0.9-beta.0

v1.0.8

15 Apr 15:25
908c973

Choose a tag to compare

v1.0.8-beta.0

10 Apr 07:42
cf6a5f5

Choose a tag to compare

v1.0.8-beta.0 Pre-release
Pre-release

v1.0.7

20 Nov 12:33
30e78ed

Choose a tag to compare

What's Changed

Full Changelog: v1.0.6...v1.0.7