Skip to content

Releases: juggle/resize-observer

v3.1.1

04 Mar 11:44
10c1f20
Compare
Choose a tag to compare
  • Fixes issue where elements observed inside of an IFrame could not be unobserved.

v3.1.0

28 Feb 20:45
8a86818
Compare
Choose a tag to compare
  • Support observing elements from other documents (#97)
  • Adds ResizeObserverEntry.toJSON()
const elFromIFrame = iframe.contentDocument.querySelector('body');
const ro = new ResizeObserver(() => {
 ...
});
ro.observe(elFromIFrame);

v3.0.2

07 Jan 12:14
d4fa2f6
Compare
Choose a tag to compare
  • Removed next tag
  • Tagged in npm as latest

v3.0.1

07 Jan 12:13
5c387c7
Compare
Choose a tag to compare
  • Improved readme

v3.0.0

02 Jan 08:00
57c8231
Compare
Choose a tag to compare

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 and ResizeObserverEntry

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 to undefined warning in rollup.

v3.0.0-3

31 Dec 15:15
a38329a
Compare
Choose a tag to compare
v3.0.0-3 Pre-release
Pre-release
  • Fixes bug where root SVG nodes were seen to be children and children were seen to be root nodes.

v3.0.0-2

31 Dec 14:00
cacd1d9
Compare
Choose a tag to compare
v3.0.0-2 Pre-release
Pre-release
  • 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

31 Dec 12:00
0f7e374
Compare
Choose a tag to compare
v3.0.0-1 Pre-release
Pre-release
  • Observes CSS box of root SVG nodes
  • Documentation - removes default imports/exports

v3.0.0-0

08 Dec 12:25
1679720
Compare
Choose a tag to compare
v3.0.0-0 Pre-release
Pre-release
  • Removes default exports
  • Only exports exposable modules ResizeObserver and ResizeObserverEntry
  • Adds UMD bundle for legacy support

BREAKING CHANGE:
You must now use named exports.

import { ResizeObserver } from '@juggle/resize-observer';

v2.5.0

30 Nov 11:15
Compare
Choose a tag to compare
  • Adds type=module to package.json.
  • Adds types field to package.json to explicitly locate declaration files.
  • Improves TypeScript usage, when setting observer box option.
  • Improvements to readme.