new-versions(0.1.2) | Added three new hooks: useHover, useClipboard, and useMediaQuery, along with organizing the codebase and adding test files for each hook.#96
Merged
mhdcodes merged 5 commits intocodiume:mainfrom Dec 24, 2024
Conversation
🦋 Changeset detectedLatest commit: 0fa6222 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Author
Test Log All$ vitest test
DEV v2.1.8 /home/administrator/Desktop/hooks
✓ src/use-clip-board/use-clip-board.test.ts (2)
✓ src/use-hover/use-hover.test.ts (3)
✓ src/use-in-viewport/use-in-viewport.test.ts (6)
✓ src/use-local-storage/use-local-storage.test.ts (7)
✓ src/use-media-query/use-media-query.test.ts (3)
✓ src/use-queue/use-queue.test.ts (9)
✓ src/use-scroll/use-scroll.test.ts (8)
✓ src/use-singleton/use-singleton.test.ts (7)
✓ src/use-window-scroll/use-window-scroll.test.ts (5)
✓ src/utils/rescue.test.ts (3)
Test Files 10 passed (10)
Tests 53 passed (53)
Start at 15:30:04
Duration 9.79s (transform 392ms, setup 2.96s, collect 500ms, tests 833ms, environment 10.27s, prepare 1.68s)
PASS Waiting for file changes... |
…better organization.
mhdcodes
approved these changes
Dec 24, 2024
Merged
Member
|
Thank you @NekoSakuraLucia I really appreciate you taking the time to add this changes 🙏 . |
Contributor
Author
It's okay, I just wanted to add it because I'm also using your package. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added three new hooks:
useHover: Easily detect hover state on elements.useClipboard: Simplify clipboard interactions.useMediaQuery: checking if a specific media query matches the current viewport.Organized the codebase for better maintainability.
Added test files for each hook to ensure functionality and reliability.
Released version
0.1.2.Checklist
0.1.2.Related Issues