Skip to content

Commit

Permalink
Release/v0.6.0 (#245)
Browse files Browse the repository at this point in the history
* feat: update readme with new hooks addition

* chore: generate a new version
  • Loading branch information
abhushanaj committed May 22, 2024
1 parent 40adcaa commit 67f1065
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 16 deletions.
5 changes: 0 additions & 5 deletions .changeset/calm-clouds-move.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dirty-squids-crash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eight-mice-destroy.md

This file was deleted.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,14 @@ Visit [react-hooks.abhushan.dev](https://react-hooks.abhushan.dev/) for more inf

## Utilities

1. [useCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usecustomevent/): Manage the entire lifecycle for a custom event.

1. [useDebounce](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Debounce a callback function over a wait (ms) period.

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

1. [useDispatchCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usedispatchcustomevent/): Dispatch a custom event with payload.

1. [useFreshCallback](https://react-hooks.abhushan.dev/hooks/utilities/usefreshcallback/): Returns the latest and fresh callback function.

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

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

1. [useSubscribeToCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usesubscribetocustomevent/): Subscribe and manage lifecycle for a custom event.

1. [useThrottle](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Throttle a callback function over a duration(ms) period.

1. [useWasSSR](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Indicates whether the component was SSR'ed or not.
Expand Down
8 changes: 8 additions & 0 deletions react-hooks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @abhushanaj/react-hooks

## 0.6.0

### Minor Changes

- 40adcaa: Addition of the useCustomEvent() hook
- fda3342: Addition of the useDispatchCustomEvent
- 552d3c3: Addition of the useDubscribeToCustomEvent hook

## 0.5.0

### Minor Changes
Expand Down
6 changes: 6 additions & 0 deletions react-hooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,14 @@ Visit [react-hooks.abhushan.dev](https://react-hooks.abhushan.dev/) for more inf

## Utilities

1. [useCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usecustomevent/): Manage the entire lifecycle for a custom event.

1. [useDebounce](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Debounce a callback function over a wait (ms) period.

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

1. [useDispatchCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usedispatchcustomevent/): Dispatch a custom event with payload.

1. [useFreshCallback](https://react-hooks.abhushan.dev/hooks/utilities/usefreshcallback/): Returns the latest and fresh callback function.

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

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

1. [useSubscribeToCustomEvent](https://react-hooks.abhushan.dev/hooks/utilities/usesubscribetocustomevent/): Subscribe and manage lifecycle for a custom event.

1. [useThrottle](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Throttle a callback function over a duration(ms) period.

1. [useWasSSR](https://react-hooks.abhushan.dev/hooks/utilities/usewasssr/): Indicates whether the component was SSR'ed or not.
Expand Down
2 changes: 1 addition & 1 deletion react-hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abhushanaj/react-hooks",
"version": "0.5.0",
"version": "0.6.0",
"description": "A collection of modern and server safe custom React hooks to supercharge your React application development.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit 67f1065

Please sign in to comment.