Skip to content

Commit 67f1065

Browse files
authored
Release/v0.6.0 (#245)
* feat: update readme with new hooks addition * chore: generate a new version
1 parent 40adcaa commit 67f1065

File tree

7 files changed

+21
-16
lines changed

7 files changed

+21
-16
lines changed

.changeset/calm-clouds-move.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/dirty-squids-crash.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/eight-mice-destroy.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,14 @@ Visit [react-hooks.abhushan.dev](https://react-hooks.abhushan.dev/) for more inf
143143

144144
## Utilities
145145

146+
1. [useCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usecustomevent/): Manage the entire lifecycle for a custom event.
147+
146148
1. [useDebounce](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Debounce a callback function over a wait (ms) period.
147149

148150
1. [useDebouncedValue](https://react-hooks.abhushan.dev/hooks/utilities/usedebouncedvalue/): Delay execution of a state update until a defined time period.
149151

152+
1. [useDispatchCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usedispatchcustomevent/): Dispatch a custom event with payload.
153+
150154
1. [useFreshCallback](https://react-hooks.abhushan.dev/hooks/utilities/usefreshcallback/): Returns the latest and fresh callback function.
151155

152156
1. [useFreshRef](https://react-hooks.abhushan.dev/hooks/utilities/usefreshref/): Returns a ref with the latest and fresh value passed to it.
@@ -159,6 +163,8 @@ Visit [react-hooks.abhushan.dev](https://react-hooks.abhushan.dev/) for more inf
159163

160164
1. [useSampleCallback](https://react-hooks.abhushan.dev/hooks/utilities/usesamplecallback/): Limits the invocation of a callback to every period samples.
161165

166+
1. [useSubscribeToCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usesubscribetocustomevent/): Subscribe and manage lifecycle for a custom event.
167+
162168
1. [useThrottle](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Throttle a callback function over a duration(ms) period.
163169

164170
1. [useWasSSR](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Indicates whether the component was SSR'ed or not.

react-hooks/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @abhushanaj/react-hooks
22

3+
## 0.6.0
4+
5+
### Minor Changes
6+
7+
- 40adcaa: Addition of the useCustomEvent() hook
8+
- fda3342: Addition of the useDispatchCustomEvent
9+
- 552d3c3: Addition of the useDubscribeToCustomEvent hook
10+
311
## 0.5.0
412

513
### Minor Changes

react-hooks/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,14 @@ Visit [react-hooks.abhushan.dev](https://react-hooks.abhushan.dev/) for more inf
143143

144144
## Utilities
145145

146+
1. [useCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usecustomevent/): Manage the entire lifecycle for a custom event.
147+
146148
1. [useDebounce](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Debounce a callback function over a wait (ms) period.
147149

148150
1. [useDebouncedValue](https://react-hooks.abhushan.dev/hooks/utilities/usedebouncedvalue/): Delay execution of a state update until a defined time period.
149151

152+
1. [useDispatchCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usedispatchcustomevent/): Dispatch a custom event with payload.
153+
150154
1. [useFreshCallback](https://react-hooks.abhushan.dev/hooks/utilities/usefreshcallback/): Returns the latest and fresh callback function.
151155

152156
1. [useFreshRef](https://react-hooks.abhushan.dev/hooks/utilities/usefreshref/): Returns a ref with the latest and fresh value passed to it.
@@ -159,6 +163,8 @@ Visit [react-hooks.abhushan.dev](https://react-hooks.abhushan.dev/) for more inf
159163

160164
1. [useSampleCallback](https://react-hooks.abhushan.dev/hooks/utilities/usesamplecallback/): Limits the invocation of a callback to every period samples.
161165

166+
1. [useSubscribeToCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usesubscribetocustomevent/): Subscribe and manage lifecycle for a custom event.
167+
162168
1. [useThrottle](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Throttle a callback function over a duration(ms) period.
163169

164170
1. [useWasSSR](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Indicates whether the component was SSR'ed or not.

react-hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@abhushanaj/react-hooks",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "A collection of modern and server safe custom React hooks to supercharge your React application development.",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

0 commit comments

Comments
 (0)