- TypeScript change only;
AutoSizer
return type changed fromReactElement
toReactNode
- Guard against potential state update after unmount (caused by
setTimeout
when usingResizeObserver
)
- Further improved TypeScript definitions to avoid
any
types forchildren
function parameters. - 61: Build release bundle with Preconstruct.
- Refine TypeScript types so that
disableHeight
anddisableWidth
are properly paired with conditional types likechildren
andonResize
.
- Support non-integer padding styles.
- Relaxed
children
prop return type fromReactElement
toReactNode
.
- Readme changes
- Fix potential "ResizeObserver loop limit exceeded" error caused by long-running renders (#55)
- Transpile nullish coalescing operator (#53)
- Fix regression introduced in 1.0.8 with transformations; pass unscaled width and height as "default" params (and add additional
scaledHeight
andscaledWidth
params tochildren
function) - Use
ResizeObserver
when possible; fallback to legacy resize polyfill logic otherwise
- Pre-transform static class property syntax (
defaultProps
) (#46) - Fixed bad TypeScript definition for
onResize
prop (#44)
- Add named exports for
AutoSizer
as well asProps
andSize
types.
- Add optional
tagName
property (default to"div"
).
- Replace
offsetHeight
/offsetWidth
withgetBoundingClientRect
to better support floating size values - Spread all additional props onto out
HTMLDivElement
- Add peer dependency for
"react"
/"react-dom"
version 18
- Fixed rAF throttling issue caused by new Chrome flag (#39)
- Add peer dependency for
"react"
/"react-dom"
version 17
- Do not use
innerHTML
when detecting element resize as this will throw an error if the page uses Trusted Types (#30)