@solid-primitives/resize-observer
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -46,3 +46,5 @@ // src/index.ts | ||
} | ||
createEffect(on(refs, (current, prev = []) => handleDiffArray(current, prev, observe, unobserve))); | ||
createEffect( | ||
on(refs, (current, prev = []) => handleDiffArray(current, prev, observe, unobserve)) | ||
); | ||
} | ||
@@ -49,0 +51,0 @@ function getWindowSize() { |
{ | ||
"name": "@solid-primitives/resize-observer", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Reactive primitives for observing resizing of HTML elements.", | ||
@@ -48,30 +48,30 @@ "author": "Moshe Udimar", | ||
], | ||
"scripts": { | ||
"start": "vite serve dev --host", | ||
"dev": "npm run start", | ||
"build": "tsup", | ||
"test": "uvu -r solid-register", | ||
"test:watch": "watchlist src test -- npm test" | ||
}, | ||
"devDependencies": { | ||
"jsdom": "^19.0.0", | ||
"prettier": "^2.6.2", | ||
"prettier": "^2.7.1", | ||
"solid-register": "^0.2.5", | ||
"tslib": "^2.4.0", | ||
"tsup": "^5.12.8", | ||
"typescript": "^4.6.4", | ||
"unocss": "0.34.0", | ||
"uvu": "^0.5.3", | ||
"vite": "2.9.9", | ||
"vite-plugin-solid": "2.2.6", | ||
"tsup": "^6.1.3", | ||
"typescript": "^4.7.4", | ||
"unocss": "^0.44.7", | ||
"uvu": "^0.5.6", | ||
"vite": "^3.0.2", | ||
"vite-plugin-solid": "^2.3.0", | ||
"watchlist": "^0.3.1" | ||
}, | ||
"dependencies": { | ||
"@solid-primitives/event-listener": "^2.1.0", | ||
"@solid-primitives/utils": "^2.1.0", | ||
"@solid-primitives/rootless": "^1.1.0" | ||
"@solid-primitives/event-listener": "^2.2.1", | ||
"@solid-primitives/rootless": "^1.1.2", | ||
"@solid-primitives/utils": "^3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"solid-js": "^1.4.0" | ||
}, | ||
"scripts": { | ||
"start": "vite serve dev --host", | ||
"dev": "npm run start", | ||
"build": "tsup", | ||
"test": "uvu -r solid-register", | ||
"test:watch": "watchlist src test -- npm test" | ||
} | ||
} | ||
} |
@@ -7,3 +7,3 @@ <p> | ||
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=for-the-badge)](https://lerna.js.org/) | ||
[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/) | ||
[![size](https://img.shields.io/bundlephobia/minzip/@solid-primitives/resize-observer?style=for-the-badge)](https://bundlephobia.com/package/@solid-primitives/resize-observer) | ||
@@ -178,27 +178,6 @@ [![size](https://img.shields.io/npm/v/@solid-primitives/resize-observer?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/resize-observer) | ||
<details> | ||
<summary><b>Expand Changelog</b></summary> | ||
See [CHANGELOG.md](./CHANGELOG.md) | ||
0.0.100 | ||
Initial commit of the resize observer. | ||
1.0.3 | ||
Release initial version for CJS and SSR support. | ||
1.0.4 | ||
Patched HTMLElement to Element to resolve type error on build. Updated to Solid 1.3. | ||
2.0.0 | ||
Refactored `createResizeObserver` API. | ||
Added `makeResizeObserver`, `createWindowSize`, `useWindowSize` and `createElementSize` | ||
</details> | ||
## Contributors | ||
Thanks to Moshe Udimar for this contribution! |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
385
21848
182
+ Added@solid-primitives/utils@3.1.0(transitive)
- Removed@solid-primitives/utils@2.2.1(transitive)