preact-missing-hooks 1.0.0 → 1.0.1
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 +3 -21
- package/package.json +2 -2
package/Readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Preact Missing Hooks
|
|
2
2
|
|
|
3
|
-
A lightweight, extendable collection of missing React-like hooks for Preact,
|
|
3
|
+
A lightweight, extendable collection of missing React-like hooks for Preact — plus fresh, powerful new ones designed specifically for modern Preact apps..
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -71,31 +71,13 @@ Returns a tuple:
|
|
|
71
71
|
|
|
72
72
|
## 🧩 Future Hooks (Planned)
|
|
73
73
|
|
|
74
|
-
* `
|
|
75
|
-
* `useThrottle`
|
|
76
|
-
* `useIdleCallback`
|
|
77
|
-
|
|
74
|
+
* `useMutationObserver`: For observing changes in DOM mutations.
|
|
78
75
|
---
|
|
79
76
|
|
|
80
|
-
## 📤 Publishing
|
|
81
|
-
|
|
82
|
-
Build before publishing:
|
|
83
|
-
|
|
84
|
-
```bash
|
|
85
|
-
npm run build
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
Then:
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
npm publish --access public
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
---
|
|
95
77
|
|
|
96
78
|
## 📝 License
|
|
97
79
|
|
|
98
|
-
ISC © [Prakhar Dubey](https://github.com/
|
|
80
|
+
ISC © [Prakhar Dubey](https://github.com/prakhardubey2002)
|
|
99
81
|
|
|
100
82
|
---
|
|
101
83
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "preact-missing-hooks",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A lightweight, extendable collection of missing React-like hooks for Preact",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "A lightweight, extendable collection of missing React-like hooks for Preact — plus fresh, powerful new ones designed specifically for modern Preact apps.",
|
|
5
5
|
"author": "Prakhar Dubey",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "dist/index.js",
|