@use-raf/state 0.0.3 → 1.0.0
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 +18 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
# @use-raf/state
|
|
2
2
|
|
|
3
|
+
[![npm-version-badge]][npm-link]
|
|
4
|
+
[![npm-downloads-badge]][npm-link]
|
|
5
|
+
[![bundle-size-badge]][bundlephobia-link]
|
|
6
|
+
[![types-badge]][npm-link]
|
|
7
|
+
[![license-badge]][license-link]
|
|
8
|
+
|
|
3
9
|
A React hook that synchronizes state updates with `requestAnimationFrame` for optimal rendering performance.
|
|
4
10
|
|
|
11
|
+
<!--links:start-->
|
|
12
|
+
[npm-version-badge]: https://img.shields.io/npm/v/@use-raf/state.svg
|
|
13
|
+
[npm-downloads-badge]: https://img.shields.io/npm/dm/@use-raf/state.svg
|
|
14
|
+
[bundle-size-badge]: https://img.shields.io/bundlephobia/minzip/@use-raf/state
|
|
15
|
+
[bundlephobia-link]: https://bundlephobia.com/package/@use-raf/state
|
|
16
|
+
[types-badge]: https://img.shields.io/npm/types/@use-raf/state
|
|
17
|
+
[npm-link]: https://www.npmjs.com/package/@use-raf/state
|
|
18
|
+
[license-badge]: https://img.shields.io/npm/l/@use-raf/state.svg
|
|
19
|
+
[license-link]: https://github.com/einouqo/use-raf/blob/main/LICENSE
|
|
20
|
+
[codspeed-link]: https://codspeed.io/einouqo/use-raf
|
|
21
|
+
<!--links:end-->
|
|
22
|
+
|
|
5
23
|
## Installation
|
|
6
24
|
|
|
7
25
|
```bash
|
|
@@ -136,7 +154,3 @@ pnpm run bench
|
|
|
136
154
|
```
|
|
137
155
|
|
|
138
156
|
**Performance regression tracking:** benchmark results are continuously monitored via [CodSpeed][codspeed-link] to detect performance regressions.
|
|
139
|
-
|
|
140
|
-
<!--links:start-->
|
|
141
|
-
[codspeed-link]: https://codspeed.io/einouqo/use-raf
|
|
142
|
-
<!--links:end-->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@use-raf/state",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "React frame-synchronized state hook",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react": ">=16.14"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@use-raf/skd": "0.0
|
|
34
|
+
"@use-raf/skd": "1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@reactuses/core": "^6.1.8",
|