Skip to content

Releases: davidjbradshaw/iframe-resizer

v5.5.7

23 Sep 09:39

Choose a tag to compare

What's Fixed

  • Fix: (Vue) Ensure log prop accepts the same values as the core library by @mthaip in #1535
  • Fix: Lazy loading timeout in #1536
  • Fix: Use pagehide instead of beforeunload to avoid busting bfCache in #1540
  • Fix: Mobile Safari navigation fails to update page in #1541

New Contributors

Full Changelog: v5.5.6...v5.5.7

v5.5.6

10 Sep 16:08

Choose a tag to compare

What's Changed

  • If an iframe has neither src or srcdoc, then delay initialisation until load event from the iframe in #1530

What's fixed

  • Fix: Add missing type waitForLoad to React version in #1527
  • Fix: Ensure offset can not lead to size less than 1 in #1528
  • Fix: Prevent init being unnecessarily sent multiple times to iframe in #1529

Full Changelog: v5.5.5...v5.5.6

v5.5.5

01 Sep 11:19

Choose a tag to compare

What's Changed

  • Use targetOrigin, if set, when sending ready message from iframe in #1517
  • Convert reused strings to consts in #1521

What's fixed

  • Fix: Only send init to iframe that sent ready message in #1518
  • Fix: Console message defaults in #1519
  • Fix: Reset sameOrigin on new page in #1520
  • Fix: Parent console, when message not related to an iframe, fails to log output in #1522
  • Fix: Race condition when handling overflowObserver in #1525

Full Changelog: v5.5.4...v5.5.5

v5.5.4

27 Aug 10:44

Choose a tag to compare

What's Changed

  • Set log default state to collapsed in #1515

What's Fixed

  • Fix: Attach readystataechange listener to document instead of window in #1514
  • Fix: Only send child ready message once in #1516

Full Changelog: v5.5.3...v5.5.4

v5.5.3

20 Aug 14:41

Choose a tag to compare

What's Changed

  • Added support for loading="lazy" iframe attribute in #1503
  • Improved filtering of false positives from overflowObserver in #1508
  • Reset ready state on parent page when navigating to new page in the iframe in #1511
  • Tear down observers when leaving page in iframe in #1511

What's fixed

  • Fix: Process INIT from parent, before dispatching READY from child in #1500
  • Fix: Remove console.debug from production builds in #1501
  • Fix: Exclude <body> elements from observer list in #1502
  • Fix: Cancel paused timeouts when iframe is hidden in #1504
  • Fix: Cross origin initialisation of hidden iframes fails in #1505
  • Fix: Backwards compatibility with older versions running on parent page in #1510
  • Fix: Size calculation timer reset in #1512

Full Changelog: v5.5.2...v5.5.3

v5.5.2

06 Aug 13:50

Choose a tag to compare

What's Changed

  • Add: Improved filtering of page mutations in #1489
  • Add: Improved warning on unexpected duplicate observers in #1494
  • Add: Isolate startup processes from each other in #1487
  • Add: Group log messages in #1496

What's Fixed

  • Fix: MutationThrottle can cause duplicate elements to observer in #1495
  • Fix: data-iframe-ignore blocked observers when used at page load in #1492
  • Fix: Prevent erroneous error message when width resizing with no tags or overflow in #1497

Thanks to @djsaturn for help with this release

Full Changelog: v5.5.1...v5.5.2

v5.5.1

01 Aug 09:40

Choose a tag to compare

What's Fixed

  • Fix: Mutating text node blocks adding Observers in #1486

Full Changelog: v5.5.0...v5.5.1

v5.5.0

29 Jul 14:04

Choose a tag to compare

What's Changed

This release now allows you to add the license field on the child page instead of the parent page. If different keys are found on the parent and child pages, then the highest level key will be used by both pages.

window.iframeResizer = { license: "xxxx" }
  • Add: Direction both option in #1454
  • Add: Timeout warning to catch errors caused by waitForLoad: true in #1480
  • Add: Detach Observers from removed elements in #1483
  • Alias: onBeforeClose -> onClose in #1474
  • Alias: onAfterClose -> onClosed in #1474

What's fixed

  • Fix: Unify behavior between browsers when iframe is scrolled out of view in #1478
  • Fix: Parent types export in #1475
  • Fix: Missing log group event for mutationDelay in #1484

Full Changelog: v5.4.6...v5.5.0

v5.4.7

08 Jul 11:46

Choose a tag to compare

What's Changed

  • Added: Warn if min/max height/width styles detected on either <html> or <body> in #1472
  • Removed: Redundant check on element visibility in #1457

What's Fixed

  • Fixed: Delay onReady in child until browser readyState is complete in #1471
  • Fixed: Filter descendants of ignored nodes in #1465

Full Changelog: v5.4.6...v5.4.7

v5.4.6

24 Apr 11:12

Choose a tag to compare

What's Changed

  • Added onBeforeResize() method to child page in #1445
  • Recommend setting auto mode when parent page is running legacy version in #1450
  • Added warning when autoResize() is called, when direction is set to none in #1451
  • Log list of overflown elements when overflow observed in #1452

What's Fixed

Full Changelog: v5.4.5...v5.4.6