Releases: juggle/resize-observer
Releases · juggle/resize-observer
v3.1.1
- Fixes issue where elements observed inside of an IFrame could not be unobserved.
v3.1.0
v3.0.2
- Removed
next
tag - Tagged in npm as
latest
v3.0.1
- Improved readme
v3.0.0
Updates library to follow the latest specification. This includes some breaking changes from 2.x.
Breaking changes from 2.x:
- Updates
ResizeObserverEntry
to return a sequence of sizes, for future fragment support (#84) - Removes default exports and now returns
ResizeObserver
andResizeObserverEntry
Notable improvements:
- Adds UMD bundle for SSR and other CJS loaders (Jest)
- Adds new box option
device-pixel-content-box
(#85) - Observes CSS box of root SVG elements (#72)
Other improvements:
- Fix circular dependency - thanks @Kei-Ito!
- Fix
this
rewritten toundefined
warning in rollup.
v3.0.0-3
- Fixes bug where root SVG nodes were seen to be children and children were seen to be root nodes.
v3.0.0-2
- Updates
ResizeObserverEntry
to return a sequence of sizes
BREAKING CHANGE:
Arrays are returned for contentBoxSize
, borderBoxSize
, and devicePixelContentBoxSize
.
//entry
{
contentRect: { ... },
contentBoxSize: [{ inlineSize: number, blockSize: number }],
...
}
v3.0.0-1
- Observes CSS box of root SVG nodes
- Documentation - removes default imports/exports
v3.0.0-0
- Removes default exports
- Only exports exposable modules
ResizeObserver
andResizeObserverEntry
- Adds UMD bundle for legacy support
BREAKING CHANGE:
You must now use named exports.
import { ResizeObserver } from '@juggle/resize-observer';
v2.5.0
- Adds
type=module
topackage.json
. - Adds
types
field topackage.json
to explicitly locate declaration files. - Improves TypeScript usage, when setting observer box option.
- Improvements to readme.