Skip to content

Releases: davidjbradshaw/iframe-resizer

v5.3.2

22 Oct 10:48
Compare
Choose a tag to compare

What's Changed

  • Added: parentIframe.getOrigin() in #1343
  • Fixed: Return typing of parentIframe.getParentProps()to function void by @MarekBodingerBA in #1351

Full Changelog: v5.3.1...v5.3.2

v5.3.1

12 Sep 13:49
Compare
Choose a tag to compare

What's Changed

  • Enable scroll methods to scroll uncontrolled parent iframe in #1334
  • Improved performance of observed changes in OverflowObserver in #1335
  • Log overflow/tagged node every time it is used to calculate size in #1336

Full Changelog: v5.3.0...v5.3.1

v5.3.0

04 Sep 09:51
Compare
Choose a tag to compare

What's Changed

This release of iframe-resizer has focused on the final few areas where performance could be further improved, with the aim that, even with the most complex pages; size changes are detected, calculated and dispatched from the iframe in under 1ms. Setting the log: true option will now measure and display this time.

In tests with Google Chrome on an M1 Mac, the examples page of the iframe-resizer website average around 0.3ms. The logging has been left on if you would like to see the results on your own system.

Performance

  • Moved resize event throttle to capture all triggering events in #1326
  • Refactored several forEach() statements to for...ofin #1329
  • Prevent pageInfo being double fired on parent page in #1321
  • Optimised resizerObservers setup in #1325
  • Display content size calculation time in #1332

Changed

  • Isolate parent/child when messages passed via same-domain in #1319
  • Use setTimeout(0) on event callbacks with void return type in #1324
  • Added Sandbox settings check to timeout warning in #1328

React

  • Remove npm dependency for Warning package in #1327

Angular

Fixes

  • Corrected case of child settings object in #1318
  • Disable parentProps when requested to turn off stream in #1331

Huge thanks to @bjornoss for his work on the new Angular Directive.

Full Changelog: v5.2.6...v5.3.0

v5.2.6

22 Aug 18:05
Compare
Choose a tag to compare

What's Changed

  • Fix: jQuery plugin init in #1317

Full Changelog: v5.2.5...v5.2.6

v5.2.5

22 Aug 16:48
Compare
Choose a tag to compare

What's Changed

  • Add: Check for child script being loaded more than once in #1312
  • Fix: Detection of inserted elements flowed outside of document body in #1315
  • Fix: False positive hidden iframe detection when HTML element is zero height in #1313

Thanks to @Gamerweazel for help with this release.

Full Changelog: v5.2.3...v5.2.5

v5.2.4

15 Aug 14:16
Compare
Choose a tag to compare

What's Changed

This release fixes a couple of bugs listed below and also provides a further performance improvement when handling observed mutations in the iframe's contents.

  • Fix: Check Element type, before adding Observers #1304
  • Fix: autoResize(true) in #1305

Thanks to @Smoles and @KhoiUna for help with testing this release.

Full Changelog: v5.2.3...v5.2.4

v5.2.3

05 Aug 15:07
Compare
Choose a tag to compare

What's Changed

  • Fix: Babel config for React build in #1301
  • Fix: Allow React to set log: true in #1300
  • Added: Legacy wrapper package in #1290

Full Changelog: v5.2.1...v5.2.3

v5.2.2

01 Aug 16:08
Compare
Choose a tag to compare

What's Changed

  • Added: Throttle calls from mutationObserver in #1297

Full Changelog: v5.2.1...v5.2.2

v5.2.1

16 Jul 19:21
Compare
Choose a tag to compare

What's Changed

  • Fixed: React Typings onInit -> onReady in #1296
  • Fixed: offset deprecation warning in #1295

Full Changelog: v5.2.0...v5.2.1

v5.2.0

16 Jul 14:59
Compare
Choose a tag to compare

This release includes a major update the page size calculation code. Now when iframe-resizer detects elements overflowing the root document element, it only needs to check the position of the overflowing elements, rather than every element on the page. In testing this can lead to 1,000 fold improvement in calculation time.

The offset option has been updated to offsetSize to make it clearer, the old version will be supported with a warning in all future v5 releases.

In page links now update the location bar, to enable support of the back button.

What's New

  • Added: Only check overflowed elements in #1278
  • Added: Performance Observer in #1293

What's Changed

  • Added: Alias OffsetSize -> Offset in #1288
  • Enhanced: No response warning to mention waitForLoad option in #1285

What's Fixed

  • Fixed: Set location.hash when navigating inPageLinks in #1287
  • Fixed: window is not defined (ssr) in #1292

Full Changelog: v5.1.5...v5.2.0