Skip to content

Releases: davidjbradshaw/iframe-resizer

v5.4.6

24 Apr 11:12
Compare
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

v5.4.5

16 Apr 13:07
Compare
Choose a tag to compare

What's Changed

  • Added: Turn on logging from browser location bar in #1438

What's Fixed

  • Fixed: Prevent Vue iframe being closed via iframe-resizer API in #1428
  • Fixed: Sandbox error message, when iframe becomes undefined in #1429
  • Fixed: Update Parent and React typings in #1431
  • Fixed: Replace replaceAll with replace in #1433
  • Fixed: Type check on autoResize() method in #1437
  • Fixed: Prevent double firing of parentProps when first requested in #1439
  • Fixed: Disable parentProps updates when iframe loads new page in #1440
  • Fixed: Add attributes to mutationObserver in #1441
  • Fixed: CJS imports for React and Vue versions in #1443
  • Fixed: Delay initialisation when readyState is loading in #1444

Full Changelog: v5.4.4...v5.4.5

v5.4.4

07 Apr 12:01
Compare
Choose a tag to compare

What's Changed

What's Fixed

  • Fixed: Reconnecting to a previously disconnected iframe in #1427

Full Changelog: v5.4.3...v5.4.4

v5.4.3

02 Apr 11:00
Compare
Choose a tag to compare

What's Changed

  • Added: Type assertions to API methods in #1417

What's Fixed

  • Fixed: Check matchMedia() is available for test frameworks that only partially mock window in #1418
  • Fixed: NextJS compiler issues in #1414

Full Changelog: v5.4.1...v5.4.3

v5.4.2

01 Apr 08:28
Compare
Choose a tag to compare

What's Changed

This release replaces the logging code with Auto-Console-Group, which automatically groups messages by triggering event and makes it much clearer to see what is happening inside iframe-resizer.

Additionally iframe-resizer now has an option to tag elements to be ignored when calculating the size of the iframe content.

What's fixed

  • Fix: Exclude hidden elements from the Set of overflown elements in #1403
  • Fix: Only enable mouse event listeners when required in #1396
  • Fix: Repopulate overflown and tagged element Sets after observed mutation.

Thanks to Kévin Berthommier and Wouter for their help with this release.

Full Changelog: v5.3.3...v5.4.2

v5.3.3

12 Feb 10:14
Compare
Choose a tag to compare

What's Changed

Thank you to @dackmin for submitting a fix for the parent types.

Full Changelog: v5.3.2...v5.3.3

v5.3.2

22 Oct 10:48
Compare
Choose a tag to compare

What's Changed

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