@use-raf/timer 0.0.4 → 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.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,7 +1,24 @@
1
1
  # @use-raf/timer
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 for creating frame-synchronized timers using `requestAnimationFrame`.
4
10
 
11
+ <!--links:start-->
12
+ [npm-version-badge]: https://img.shields.io/npm/v/@use-raf/timer.svg
13
+ [npm-downloads-badge]: https://img.shields.io/npm/dm/@use-raf/timer.svg
14
+ [bundle-size-badge]: https://img.shields.io/bundlephobia/minzip/@use-raf/timer
15
+ [bundlephobia-link]: https://bundlephobia.com/package/@use-raf/timer
16
+ [types-badge]: https://img.shields.io/npm/types/@use-raf/timer
17
+ [npm-link]: https://www.npmjs.com/package/@use-raf/timer
18
+ [license-badge]: https://img.shields.io/npm/l/@use-raf/timer.svg
19
+ [license-link]: https://github.com/einouqo/use-raf/blob/main/LICENSE
20
+ <!--links:end-->
21
+
5
22
  ## Installation
6
23
 
7
24
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-raf/timer",
3
- "version": "0.0.4",
3
+ "version": "1.0.0",
4
4
  "description": "React frame-synchronized timer hook",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,8 +33,8 @@
33
33
  "react": ">=16.14"
34
34
  },
35
35
  "dependencies": {
36
- "@use-raf/loop": "0.0.3",
37
- "@use-raf/skd": "0.0.3"
36
+ "@use-raf/loop": "1.0.0",
37
+ "@use-raf/skd": "1.0.0"
38
38
  },
39
39
  "author": "einouqo",
40
40
  "repository": {