Socket
Socket
Sign inDemoInstall

@juggle/resize-observer

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@juggle/resize-observer - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

lib/ResizeObserver.bundle.js

2

package.json
{
"name": "@juggle/resize-observer",
"version": "0.4.0",
"version": "0.4.1",
"description": "ResizeObserver - Based on the official draft specification",

@@ -5,0 +5,0 @@ "main": "./lib/ResizeObserver.js",

# ResizeObserver
[![CircleCI](https://circleci.com/gh/juggle/resize-observer.svg?style=svg)](https://circleci.com/gh/juggle/resize-observer)
[![Coverage Status](https://coveralls.io/repos/github/juggle/resize-observer/badge.svg?branch=master)](https://coveralls.io/github/juggle/resize-observer?branch=master)
![](https://img.shields.io/circleci/project/github/juggle/resize-observer/master.svg?logo=circleci&style=for-the-badge)
![](https://img.shields.io/coveralls/github/juggle/resize-observer.svg?logoColor=white&style=for-the-badge)
![](https://img.shields.io/bundlephobia/minzip/@juggle/resize-observer.svg?colorB=%233399ff&style=for-the-badge)
![](https://img.shields.io/npm/l/@juggle/resize-observer.svg?colorB=%233399ff&style=for-the-badge)
A polyfill entirely based on the current **ResizeObserver** [Draft Specification](https://wicg.github.io/ResizeObserver).
> This is currently a work in progress and should be used for **testing only** at this stage.
## Installation
```shell
``` shell
npm i @juggle/resize-observer

@@ -40,14 +41,11 @@ ```

## TypeScript Support
This library is written in TypeScript, however, it's compiled into JavaScript during release. Definition files are included in the package and should be picked up automatically to re-enable support in TypeScript projects.
## Limitations
- No support for IE 10 and below (sorry all). IE 11 is supported.
- No support for **IE10** and below. **IE11** is supported.
- Dynamic stylesheet changes may not be noticed and updates will occur on the next user interaction.
- Currently no support for observations when `display:none` is toggled (coming soon).
## Similar Libraries
https://github.com/que-etc/resize-observer-polyfill
https://github.com/pelotoncycle/resize-observer
- Currently no support for observations when `display:none` is toggled (coming soon).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc