Releases: davidjbradshaw/iframe-resizer
v5.3.2
What's Changed
- Added:
parentIframe.getOrigin()
in #1343 - Fixed: Return typing of
parentIframe.getParentProps()
tofunction void
by @MarekBodingerBA in #1351
Full Changelog: v5.3.1...v5.3.2
v5.3.1
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
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 tofor...of
in #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
- Created Angular Directive in #1323
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
v5.2.5
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
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.
Thanks to @Smoles and @KhoiUna for help with testing this release.
Full Changelog: v5.2.3...v5.2.4
v5.2.3
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
v5.2.1
What's Changed
Full Changelog: v5.2.0...v5.2.1
v5.2.0
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
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