@revivejs/resize-observer 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,26 +1,26 @@
1
- # @alexandroit/resize-observer
1
+ # @revivejs/resize-observer
2
2
 
3
3
  > A maintained ResizeObserver ponyfill for browser applications, with support for content-box, border-box, and device-pixel-content-box observations.
4
4
 
5
- [![npm version](https://img.shields.io/npm/v/@alexandroit/resize-observer.svg?style=flat-square)](https://www.npmjs.com/package/@alexandroit/resize-observer)
6
- [![npm downloads](https://img.shields.io/npm/dt/@alexandroit/resize-observer.svg?style=flat-square)](https://www.npmjs.com/package/@alexandroit/resize-observer)
7
- [![npm monthly](https://img.shields.io/npm/dm/@alexandroit/resize-observer.svg?style=flat-square)](https://www.npmjs.com/package/@alexandroit/resize-observer)
8
- [![license](https://img.shields.io/npm/l/@alexandroit/resize-observer.svg?style=flat-square)](https://github.com/alexandroit/resize-observer/blob/HEAD/LICENSE)
5
+ [![npm version](https://img.shields.io/npm/v/@revivejs/resize-observer.svg?style=flat-square)](https://www.npmjs.com/package/@revivejs/resize-observer)
6
+ [![npm downloads](https://img.shields.io/npm/dt/@revivejs/resize-observer.svg?style=flat-square)](https://www.npmjs.com/package/@revivejs/resize-observer)
7
+ [![npm monthly](https://img.shields.io/npm/dm/@revivejs/resize-observer.svg?style=flat-square)](https://www.npmjs.com/package/@revivejs/resize-observer)
8
+ [![license](https://img.shields.io/npm/l/@revivejs/resize-observer.svg?style=flat-square)](https://github.com/alexandroit/resize-observer/blob/HEAD/LICENSE)
9
9
  [![TypeScript 4.7+](https://img.shields.io/badge/TypeScript-4.7%2B-blue?style=flat-square&logo=typescript)](https://www.typescriptlang.org)
10
10
  [![GitHub stars](https://img.shields.io/github/stars/alexandroit/resize-observer.svg?style=flat-square)](https://github.com/alexandroit/resize-observer/stargazers)
11
11
 
12
- **[Documentation & Demo](https://alexandroit.github.io/resize-observer/)** | **[Repository](https://github.com/alexandroit/resize-observer)** | **[npm](https://www.npmjs.com/package/@alexandroit/resize-observer)** | **[Changelog](https://github.com/alexandroit/resize-observer/blob/HEAD/CHANGELOG.md)**
12
+ **[Documentation & Demo](https://alexandroit.github.io/resize-observer/)** | **[Repository](https://github.com/alexandroit/resize-observer)** | **[npm](https://www.npmjs.com/package/@revivejs/resize-observer)** | **[Changelog](https://github.com/alexandroit/resize-observer/blob/HEAD/CHANGELOG.md)**
13
13
 
14
14
  ---
15
15
 
16
16
  > **Credits:** Original project by Juggle.
17
- > Maintained and modernized by Alexandroit.
17
+ > Maintained and modernized by Revivejs.
18
18
 
19
19
  ---
20
20
 
21
21
  ## Why this package?
22
22
 
23
- `@alexandroit/resize-observer` preserves the proven upstream ResizeObserver polyfill while updating the package metadata, docs, demo pipeline, and repository automation for the current maintainer. It stays framework-agnostic, so Angular, React, Vue, Web Components, and plain browser apps can all use the same entry point.
23
+ `@revivejs/resize-observer` preserves the proven upstream ResizeObserver polyfill while updating the package metadata, docs, demo pipeline, and repository automation for the current maintainer. It stays framework-agnostic, so Angular, React, Vue, Web Components, and plain browser apps can all use the same entry point.
24
24
 
25
25
  ---
26
26
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  | Package Version | Angular | React | Vue | TypeScript | Notes |
58
58
  | :--- | :---: | :---: | :---: | :---: | :--- |
59
- | 4.x | Any browser-based version | Any browser-based version | Any browser-based version | 4.7+ | Maintained `@alexandroit` fork |
59
+ | 4.x | Any browser-based version | Any browser-based version | Any browser-based version | 5.x+ | Maintained `@revivejs` fork |
60
60
  | 3.x | Any browser-based version | Any browser-based version | Any browser-based version | 4.7 | Original upstream `@juggle` package line |
61
61
 
62
62
  This library is not Angular-specific. If your framework runs in a browser and can import npm packages, it can use this ponyfill.
@@ -66,7 +66,7 @@ This library is not Angular-specific. If your framework runs in a browser and ca
66
66
  ## Installation
67
67
 
68
68
  ```bash
69
- npm install @alexandroit/resize-observer
69
+ npm install @revivejs/resize-observer
70
70
  ```
71
71
 
72
72
  ---
@@ -74,7 +74,7 @@ npm install @alexandroit/resize-observer
74
74
  ## Quick Start
75
75
 
76
76
  ```ts
77
- import { ResizeObserver } from '@alexandroit/resize-observer';
77
+ import { ResizeObserver } from '@revivejs/resize-observer';
78
78
 
79
79
  const ro = new ResizeObserver((entries) => {
80
80
  for (const entry of entries) {
@@ -156,4 +156,4 @@ Apache-2.0
156
156
  ## Credits
157
157
 
158
158
  - Original project: Juggle
159
- - Maintained by: Alexandroit
159
+ - Maintained by: Revivejs
@@ -4,7 +4,7 @@ interface Rectangle {
4
4
  readonly width: number;
5
5
  readonly height: number;
6
6
  }
7
- declare type DOMRectJSON = {
7
+ type DOMRectJSON = {
8
8
  x: number;
9
9
  y: number;
10
10
  top: number;
@@ -1,4 +1,4 @@
1
1
  import { ResizeObserver } from './ResizeObserver';
2
2
  import { ResizeObserverEntry } from './ResizeObserverEntry';
3
- declare type ResizeObserverCallback = (entries: ResizeObserverEntry[], observer: ResizeObserver) => void;
3
+ type ResizeObserverCallback = (entries: ResizeObserverEntry[], observer: ResizeObserver) => void;
4
4
  export { ResizeObserverCallback };
@@ -1,7 +1,7 @@
1
1
  import { ResizeObserver } from '../ResizeObserver';
2
2
  import { ResizeObserverEntry } from '../ResizeObserverEntry';
3
3
  import { ResizeObserverSize } from '../ResizeObserverSize';
4
- declare type IsomorphicWindow = Window & {
4
+ type IsomorphicWindow = Window & {
5
5
  ResizeObserver?: typeof ResizeObserver;
6
6
  ResizeObserverEntry?: typeof ResizeObserverEntry;
7
7
  ResizeObserverSize?: typeof ResizeObserverSize;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revivejs/resize-observer",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Polyfills the ResizeObserver API and supports box size options from the latest spec",
5
5
  "main": "lib/exports/resize-observer.umd.js",
6
6
  "module": "lib/exports/resize-observer.js",
@@ -71,18 +71,18 @@
71
71
  "node": ">=18"
72
72
  },
73
73
  "devDependencies": {
74
- "@types/jest": "^28.1.7",
74
+ "@types/jest": "^29.5.14",
75
75
  "@typescript-eslint/eslint-plugin": "^5.33.1",
76
76
  "@typescript-eslint/parser": "^5.33.1",
77
77
  "esbuild": "^0.25.11",
78
78
  "eslint": "^8.22.0",
79
- "jest": "^28.1.3",
80
- "jest-environment-jsdom": "^28.1.3",
79
+ "jest": "^29.7.0",
80
+ "jest-environment-jsdom": "^29.7.0",
81
81
  "jest-junit": "^14.0.0",
82
82
  "jsdom": "^20.0.0",
83
83
  "rollup": "^2.78.0",
84
84
  "serve": "^14.2.5",
85
- "ts-jest": "^28.0.8",
86
- "typescript": "^4.7.4"
85
+ "ts-jest": "^29.4.9",
86
+ "typescript": "^5.9.3"
87
87
  }
88
88
  }