Releases: davidjbradshaw/iframe-resizer
v5.4.6
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, whendirection
is set tonone
in #1451 - Log list of overflown elements when overflow observed in #1452
What's Fixed
- Fixed Vue import of auto-console-group in #1448
- Fixed child page
resize()
method whenautoResize
is set tofalse
in #1449
Full Changelog: v5.4.5...v5.4.6
v5.4.5
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
isloading
in #1444
Full Changelog: v5.4.4...v5.4.5
v5.4.4
What's Changed
- Added:
expanded
/collapsed
log options in #1421 - Added: auto-console-group to React version in #1424
What's Fixed
- Fixed: Reconnecting to a previously disconnected iframe in #1427
Full Changelog: v5.4.3...v5.4.4
v5.4.3
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 mockwindow
in #1418 - Fixed: NextJS compiler issues in #1414
Full Changelog: v5.4.1...v5.4.3
v5.4.2
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.
- Added: Auto-Console-Group in #1389
- Added:
data-iframe-ignore
attribute in #1397 - Added:
ignoreSelector
option in #1398 - Added:
parentIframe.setOffsetSize()
method in #1400
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
What's Changed
- Add: New child method
getParentOrigin()
in #1352 - Add: Warning if Quirks Mode is detected in #1381
- Fix: Parent types to include
disconnect
,id
andlog
by @dackmin in #1379 - Fix: Null Reference error in perfObserver in #1376
Thank you to @dackmin for submitting a fix for the parent types.
Full Changelog: v5.3.2...v5.3.3
v5.3.2
What's Changed
- 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