Skip to content

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
NekoSakuraLucia:new/hooks
Dec 24, 2024

Conversation

@NekoSakuraLucia
Copy link
Copy Markdown
Contributor

@NekoSakuraLucia NekoSakuraLucia commented Dec 24, 2024

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

  • New hooks implemented and tested.
  • Codebase formatted and organized.
  • Version updated to 0.1.2.

Related Issues

  • None

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Dec 24, 2024

🦋 Changeset detected

Latest commit: 0fa6222

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@codiume/hooks Minor

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

@NekoSakuraLucia
Copy link
Copy Markdown
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...

@mhdcodes mhdcodes self-assigned this Dec 24, 2024
@mhdcodes mhdcodes added the enhancement New feature or request label Dec 24, 2024
@mhdcodes mhdcodes merged commit c3fb271 into codiume:main Dec 24, 2024
@github-actions github-actions Bot mentioned this pull request Dec 24, 2024
@mhdcodes
Copy link
Copy Markdown
Member

Thank you @NekoSakuraLucia I really appreciate you taking the time to add this changes 🙏 .

@NekoSakuraLucia
Copy link
Copy Markdown
Contributor Author

Thank you @NekoSakuraLucia I really appreciate you taking the time to add this changes 🙏 .

It's okay, I just wanted to add it because I'm also using your package.

@NekoSakuraLucia NekoSakuraLucia deleted the new/hooks branch December 24, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants