Repository: juliencrn/usehooks-ts Branch: master Commit: 61949134144d Files: 271 Total size: 707.0 KB Directory structure: gitextract_oyjuehk2/ ├── .all-contributorsrc ├── .changeset/ │ ├── README.md │ └── config.json ├── .editorconfig ├── .github/ │ ├── CODE_OF_CONDUCT.md │ ├── CONTRIBUTING.md │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug-report.yml │ │ ├── config.yml │ │ └── update-docs.yml │ └── workflows/ │ ├── ci.yml │ └── update-algolia-index.yml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .vscode/ │ └── settings.json ├── LICENSE ├── README.md ├── apps/ │ └── www/ │ ├── .eslintrc.cjs │ ├── .gitignore │ ├── CHANGELOG.md │ ├── env.js │ ├── next-sitemap.config.js │ ├── next.config.js │ ├── package.json │ ├── postcss.config.cjs │ ├── public/ │ │ └── site.webmanifest │ ├── src/ │ │ ├── app/ │ │ │ ├── (docs)/ │ │ │ │ ├── introduction/ │ │ │ │ │ └── page.tsx │ │ │ │ ├── layout.tsx │ │ │ │ ├── migrate-to-v3/ │ │ │ │ │ └── page.tsx │ │ │ │ └── react-hook/ │ │ │ │ └── [slug]/ │ │ │ │ └── page.tsx │ │ │ ├── (marketing)/ │ │ │ │ ├── layout.tsx │ │ │ │ └── page.tsx │ │ │ ├── globals.css │ │ │ ├── layout.tsx │ │ │ └── prism.css │ │ ├── components/ │ │ │ ├── buy-me-a-coffee.tsx │ │ │ ├── carbon-ads/ │ │ │ │ ├── ads.tsx │ │ │ │ ├── index.ts │ │ │ │ └── use-script.ts │ │ │ ├── command-copy.tsx │ │ │ ├── doc-search/ │ │ │ │ ├── command-menu.tsx │ │ │ │ ├── doc-search.tsx │ │ │ │ ├── footer.tsx │ │ │ │ ├── hits.tsx │ │ │ │ ├── index.ts │ │ │ │ ├── input.tsx │ │ │ │ ├── modal.context.tsx │ │ │ │ ├── open-button.tsx │ │ │ │ ├── types.ts │ │ │ │ └── use-cmd-k.ts │ │ │ ├── docs/ │ │ │ │ ├── left-sidebar.tsx │ │ │ │ ├── page-header.tsx │ │ │ │ ├── pager.tsx │ │ │ │ ├── right-sidebar.tsx │ │ │ │ └── table-of-content.tsx │ │ │ ├── main-nav.tsx │ │ │ ├── mobile-nav.tsx │ │ │ └── ui/ │ │ │ ├── button.tsx │ │ │ ├── command.tsx │ │ │ ├── components.tsx │ │ │ ├── dialog.tsx │ │ │ ├── dropdown-menu.tsx │ │ │ └── icons.tsx │ │ ├── config/ │ │ │ ├── docs.ts │ │ │ ├── marketing.ts │ │ │ └── site.ts │ │ ├── lib/ │ │ │ ├── api.ts │ │ │ └── utils.ts │ │ └── types/ │ │ └── index.ts │ ├── tailwind.config.js │ └── tsconfig.json ├── package.json ├── packages/ │ ├── eslint-config-custom/ │ │ ├── .eslintrc.cjs │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── index.cjs │ │ └── package.json │ └── usehooks-ts/ │ ├── .eslintrc.cjs │ ├── .gitignore │ ├── CHANGELOG.md │ ├── README.md │ ├── package.json │ ├── src/ │ │ ├── index.ts │ │ ├── useBoolean/ │ │ │ ├── index.ts │ │ │ ├── useBoolean.demo.tsx │ │ │ ├── useBoolean.md │ │ │ ├── useBoolean.test.ts │ │ │ └── useBoolean.ts │ │ ├── useClickAnyWhere/ │ │ │ ├── index.ts │ │ │ ├── useClickAnyWhere.demo.tsx │ │ │ ├── useClickAnyWhere.md │ │ │ ├── useClickAnyWhere.test.ts │ │ │ └── useClickAnyWhere.ts │ │ ├── useCopyToClipboard/ │ │ │ ├── index.ts │ │ │ ├── useCopyToClipboard.demo.tsx │ │ │ ├── useCopyToClipboard.md │ │ │ ├── useCopyToClipboard.test.ts │ │ │ └── useCopyToClipboard.ts │ │ ├── useCountdown/ │ │ │ ├── index.ts │ │ │ ├── useCountdown.demo.tsx │ │ │ ├── useCountdown.md │ │ │ ├── useCountdown.test.ts │ │ │ └── useCountdown.ts │ │ ├── useCounter/ │ │ │ ├── index.ts │ │ │ ├── useCounter.demo.tsx │ │ │ ├── useCounter.md │ │ │ ├── useCounter.test.ts │ │ │ └── useCounter.ts │ │ ├── useDarkMode/ │ │ │ ├── index.ts │ │ │ ├── useDarkMode.demo.tsx │ │ │ ├── useDarkMode.md │ │ │ ├── useDarkMode.test.ts │ │ │ └── useDarkMode.ts │ │ ├── useDebounceCallback/ │ │ │ ├── index.ts │ │ │ ├── useDebounceCallback.demo.tsx │ │ │ ├── useDebounceCallback.md │ │ │ ├── useDebounceCallback.test.ts │ │ │ └── useDebounceCallback.ts │ │ ├── useDebounceValue/ │ │ │ ├── index.ts │ │ │ ├── useDebounceValue.demo.tsx │ │ │ ├── useDebounceValue.md │ │ │ ├── useDebounceValue.test.ts │ │ │ └── useDebounceValue.ts │ │ ├── useDocumentTitle/ │ │ │ ├── index.ts │ │ │ ├── useDocumentTitle.demo.tsx │ │ │ ├── useDocumentTitle.md │ │ │ ├── useDocumentTitle.test.ts │ │ │ └── useDocumentTitle.ts │ │ ├── useEventCallback/ │ │ │ ├── index.ts │ │ │ ├── useEventCallback.demo.tsx │ │ │ ├── useEventCallback.md │ │ │ ├── useEventCallback.test.tsx │ │ │ └── useEventCallback.ts │ │ ├── useEventListener/ │ │ │ ├── index.ts │ │ │ ├── useEventListener.demo.tsx │ │ │ ├── useEventListener.md │ │ │ ├── useEventListener.test.ts │ │ │ └── useEventListener.ts │ │ ├── useHover/ │ │ │ ├── index.ts │ │ │ ├── useHover.demo.tsx │ │ │ ├── useHover.md │ │ │ ├── useHover.test.ts │ │ │ └── useHover.ts │ │ ├── useIntersectionObserver/ │ │ │ ├── index.ts │ │ │ ├── useIntersectionObserver.demo.tsx │ │ │ ├── useIntersectionObserver.md │ │ │ └── useIntersectionObserver.ts │ │ ├── useInterval/ │ │ │ ├── index.ts │ │ │ ├── useInterval.demo.tsx │ │ │ ├── useInterval.md │ │ │ ├── useInterval.test.ts │ │ │ └── useInterval.ts │ │ ├── useIsClient/ │ │ │ ├── index.ts │ │ │ ├── useIsClient.demo.tsx │ │ │ ├── useIsClient.md │ │ │ ├── useIsClient.test.ts │ │ │ └── useIsClient.ts │ │ ├── useIsMounted/ │ │ │ ├── index.ts │ │ │ ├── useIsMounted.demo.tsx │ │ │ ├── useIsMounted.md │ │ │ ├── useIsMounted.test.ts │ │ │ └── useIsMounted.ts │ │ ├── useIsomorphicLayoutEffect/ │ │ │ ├── index.ts │ │ │ ├── useIsomorphicLayoutEffect.demo.tsx │ │ │ ├── useIsomorphicLayoutEffect.md │ │ │ └── useIsomorphicLayoutEffect.ts │ │ ├── useLocalStorage/ │ │ │ ├── index.ts │ │ │ ├── useLocalStorage.demo.tsx │ │ │ ├── useLocalStorage.md │ │ │ ├── useLocalStorage.test.ts │ │ │ └── useLocalStorage.ts │ │ ├── useMap/ │ │ │ ├── index.ts │ │ │ ├── useMap.demo.tsx │ │ │ ├── useMap.md │ │ │ ├── useMap.test.ts │ │ │ └── useMap.ts │ │ ├── useMediaQuery/ │ │ │ ├── index.ts │ │ │ ├── useMediaQuery.demo.tsx │ │ │ ├── useMediaQuery.md │ │ │ └── useMediaQuery.ts │ │ ├── useOnClickOutside/ │ │ │ ├── index.ts │ │ │ ├── useOnClickOuside.test.ts │ │ │ ├── useOnClickOutside.demo.tsx │ │ │ ├── useOnClickOutside.md │ │ │ └── useOnClickOutside.ts │ │ ├── useReadLocalStorage/ │ │ │ ├── index.ts │ │ │ ├── useReadLocalStorage.demo.tsx │ │ │ ├── useReadLocalStorage.md │ │ │ ├── useReadLocalStorage.test.ts │ │ │ └── useReadLocalStorage.ts │ │ ├── useResizeObserver/ │ │ │ ├── index.ts │ │ │ ├── useResizeObserver.demo.tsx │ │ │ ├── useResizeObserver.md │ │ │ ├── useResizeObserver.test.tsx │ │ │ └── useResizeObserver.ts │ │ ├── useScreen/ │ │ │ ├── index.ts │ │ │ ├── useScreen.demo.tsx │ │ │ ├── useScreen.md │ │ │ └── useScreen.ts │ │ ├── useScript/ │ │ │ ├── index.ts │ │ │ ├── useScript.demo.tsx │ │ │ ├── useScript.md │ │ │ ├── useScript.test.ts │ │ │ └── useScript.ts │ │ ├── useScrollLock/ │ │ │ ├── index.ts │ │ │ ├── useScrollLock.demo.tsx │ │ │ ├── useScrollLock.md │ │ │ ├── useScrollLock.test.ts │ │ │ └── useScrollLock.ts │ │ ├── useSessionStorage/ │ │ │ ├── index.ts │ │ │ ├── useSessionStorage.demo.tsx │ │ │ ├── useSessionStorage.md │ │ │ ├── useSessionStorage.test.ts │ │ │ └── useSessionStorage.ts │ │ ├── useStep/ │ │ │ ├── index.ts │ │ │ ├── useStep.demo.tsx │ │ │ ├── useStep.md │ │ │ ├── useStep.test.ts │ │ │ └── useStep.ts │ │ ├── useTernaryDarkMode/ │ │ │ ├── index.ts │ │ │ ├── useTernaryDarkMode.demo.tsx │ │ │ ├── useTernaryDarkMode.md │ │ │ ├── useTernaryDarkMode.test.ts │ │ │ └── useTernaryDarkMode.ts │ │ ├── useTimeout/ │ │ │ ├── index.ts │ │ │ ├── useTimeout.demo.tsx │ │ │ ├── useTimeout.md │ │ │ ├── useTimeout.test.ts │ │ │ └── useTimeout.ts │ │ ├── useToggle/ │ │ │ ├── index.ts │ │ │ ├── useToggle.demo.tsx │ │ │ ├── useToggle.md │ │ │ ├── useToggle.test.ts │ │ │ └── useToggle.ts │ │ ├── useUnmount/ │ │ │ ├── index.ts │ │ │ ├── useUnmount.demo.tsx │ │ │ ├── useUnmount.md │ │ │ ├── useUnmount.test.ts │ │ │ └── useUnmount.ts │ │ └── useWindowSize/ │ │ ├── index.ts │ │ ├── useWindowSize.demo.tsx │ │ ├── useWindowSize.md │ │ ├── useWindowSize.test.ts │ │ └── useWindowSize.ts │ ├── tests/ │ │ ├── mocks.ts │ │ └── setup.ts │ ├── tsconfig.json │ ├── tsup.config.ts │ └── vitest.config.ts ├── pnpm-workspace.yaml ├── renovate.json ├── scripts/ │ ├── env.js │ ├── generate-doc.js │ ├── update-algolia-index.js │ ├── update-testing-issue.js │ └── utils/ │ ├── data-transform.js │ ├── generate-doc-files.js │ ├── get-hooks.js │ ├── get-markdown-data.js │ └── update-readme.js ├── turbo/ │ └── generators/ │ ├── config.cts │ └── templates/ │ ├── hook/ │ │ ├── hook.demo.tsx.hbs │ │ ├── hook.mdx.hbs │ │ ├── hook.test.ts.hbs │ │ ├── hook.ts.hbs │ │ └── index.ts.hbs │ └── index.ts.hbs ├── turbo.json └── typedoc.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .all-contributorsrc ================================================ { "projectName": "usehooks-ts", "projectOwner": "juliencrn", "repoType": "github", "repoHost": "https://github.com", "files": [ ".github/CONTRIBUTING.md", "README.md", "packages/usehooks-ts/README.md" ], "imageSize": 64, "commit": false, "commitConvention": "none", "contributors": [ { "login": "juliencrn", "name": "Julien", "avatar_url": "https://avatars.githubusercontent.com/u/14028029?v=4", "profile": "https://github.com/juliencrn", "contributions": ["content", "code", "design", "ideas"] }, { "login": "a777med", "name": "a777med", "avatar_url": "https://avatars.githubusercontent.com/u/15968280?v=4", "profile": "https://github.com/a777med", "contributions": ["code"] }, { "login": "datkira", "name": "Nguyen Tien Dat", "avatar_url": "https://avatars.githubusercontent.com/u/53250212?v=4", "profile": "https://datkira.com/", "contributions": ["code"] }, { "login": "elifer5000", "name": "Elias Cohenca", "avatar_url": "https://avatars.githubusercontent.com/u/4311278?v=4", "profile": "https://github.com/elifer5000", "contributions": ["content"] }, { "login": "joaoderoldo", "name": "João Deroldo", "avatar_url": "https://avatars.githubusercontent.com/u/17601527?v=4", "profile": "http://joaov.com.br/", "contributions": ["bug", "code"] }, { "login": "Nishit-Dua", "name": "Nishit", "avatar_url": "https://avatars.githubusercontent.com/u/35453301?v=4", "profile": "https://github.com/Nishit-Dua", "contributions": ["code"] }, { "login": "jonkoops", "name": "Jon Koops", "avatar_url": "https://avatars.githubusercontent.com/u/695720?v=4", "profile": "https://github.com/jonkoops", "contributions": ["code"] }, { "login": "LoneRifle", "name": "LoneRifle", "avatar_url": "https://avatars.githubusercontent.com/u/10572368?v=4", "profile": "https://github.com/LoneRifle", "contributions": ["code"] }, { "login": "vfonic", "name": "Viktor", "avatar_url": "https://avatars.githubusercontent.com/u/67437?v=4", "profile": "https://github.com/vfonic", "contributions": ["ideas", "bug"] }, { "login": "bclermont", "name": "Bruno Clermont", "avatar_url": "https://avatars.githubusercontent.com/u/474302?v=4", "profile": "https://github.com/bclermont", "contributions": ["question"] }, { "login": "yoannesbourg", "name": "yoannesbourg", "avatar_url": "https://avatars.githubusercontent.com/u/73404603?v=4", "profile": "https://github.com/yoannesbourg", "contributions": ["ideas"] }, { "login": "strange2x", "name": "Strange2x", "avatar_url": "https://avatars.githubusercontent.com/u/10759731?v=4", "profile": "https://github.com/strange2x", "contributions": ["ideas"] }, { "login": "steinybot", "name": "Jason Pickens", "avatar_url": "https://avatars.githubusercontent.com/u/4659562?v=4", "profile": "https://github.com/steinybot", "contributions": ["bug"] }, { "login": "selvinkuik", "name": "Sel-Vin Kuik", "avatar_url": "https://avatars.githubusercontent.com/u/3469560?v=4", "profile": "http://smackagency.com/", "contributions": ["bug"] }, { "login": "isaacalves", "name": "isaac", "avatar_url": "https://avatars.githubusercontent.com/u/1765942?v=4", "profile": "https://github.com/isaacalves", "contributions": ["bug"] }, { "login": "brunorzn", "name": "Bruno RZN", "avatar_url": "https://avatars.githubusercontent.com/u/18266054?v=4", "profile": "https://github.com/brunorzn", "contributions": ["code", "review"] }, { "login": "Cykelero", "name": "Nathan Manceaux-Panot", "avatar_url": "https://avatars.githubusercontent.com/u/2979318?v=4", "profile": "http://www.cykeprojects.com/", "contributions": ["code", "review"] }, { "login": "meotimdihia", "name": "Dien Vu", "avatar_url": "https://avatars.githubusercontent.com/u/300961?v=4", "profile": "https://github.com/meotimdihia", "contributions": ["ideas"] }, { "login": "olegKusov", "name": "Oleg Kusov", "avatar_url": "https://avatars.githubusercontent.com/u/28058268?v=4", "profile": "https://github.com/olegKusov", "contributions": ["ideas"] }, { "login": "mankittens", "name": "Matthew Guy", "avatar_url": "https://avatars.githubusercontent.com/u/6647355?v=4", "profile": "http://mattguy.me/", "contributions": ["ideas"] }, { "login": "andrewbihl", "name": "andrewbihl", "avatar_url": "https://avatars.githubusercontent.com/u/16709744?v=4", "profile": "https://github.com/andrewbihl", "contributions": ["bug"] }, { "login": "lancepollard", "name": "lancepollard", "avatar_url": "https://avatars.githubusercontent.com/u/86631222?v=4", "profile": "https://github.com/lancepollard", "contributions": ["bug"] }, { "login": "gmukul01", "name": "Mukul Bansal", "avatar_url": "https://avatars.githubusercontent.com/u/3636885?v=4", "profile": "https://github.com/gmukul01", "contributions": ["bug"] }, { "login": "jeanlucmongrain", "name": "Jean-Luc Mongrain sur la Brosse", "avatar_url": "https://avatars.githubusercontent.com/u/474302?v=4", "profile": "http://127.0.0.1:8000/", "contributions": ["code", "ideas"] }, { "login": "n1c", "name": "Nic", "avatar_url": "https://avatars.githubusercontent.com/u/284075?v=4", "profile": "https://github.com/n1c", "contributions": ["content"] }, { "login": "valtism", "name": "Dan Wood", "avatar_url": "https://avatars.githubusercontent.com/u/1286001?v=4", "profile": "http://valtism.com/", "contributions": ["code"] }, { "login": "Wendenburg", "name": "jo wendenbuerger", "avatar_url": "https://avatars.githubusercontent.com/u/25299148?v=4", "profile": "http://www.sixt.de/", "contributions": ["bug"] }, { "login": "noseratio", "name": "Andrew Nosenko", "avatar_url": "https://avatars.githubusercontent.com/u/4774875?v=4", "profile": "https://nozillium.com/", "contributions": ["bug"] }, { "login": "CharlieJhonSmith", "name": "CharlieJhonSmith", "avatar_url": "https://avatars.githubusercontent.com/u/90845154?v=4", "profile": "https://github.com/CharlieJhonSmith", "contributions": ["code"] }, { "login": "soullivaneuh", "name": "Sullivan SENECHAL", "avatar_url": "https://avatars.githubusercontent.com/u/1698357?v=4", "profile": "https://keybase.io/soullivaneuh", "contributions": ["ideas", "bug", "code"] }, { "login": "jaslong", "name": "Jason Long", "avatar_url": "https://avatars.githubusercontent.com/u/797348?v=4", "profile": "https://github.com/jaslong", "contributions": ["bug"] }, { "login": "kxm766", "name": "kxm766", "avatar_url": "https://avatars.githubusercontent.com/u/88443148?v=4", "profile": "https://github.com/kxm766", "contributions": ["bug"] }, { "login": "qlaffont", "name": "Quentin", "avatar_url": "https://avatars.githubusercontent.com/u/10044790?v=4", "profile": "http://qlaffont.com/", "contributions": ["code", "ideas", "content"] }, { "login": "ducktordanny", "name": "Daniel Lazar", "avatar_url": "https://avatars.githubusercontent.com/u/38068717?v=4", "profile": "https://github.com/ducktordanny", "contributions": ["code", "bug"] }, { "login": "mterrel", "name": "Mark Terrel", "avatar_url": "https://avatars.githubusercontent.com/u/17746857?v=4", "profile": "https://github.com/mterrel", "contributions": ["bug", "code"] }, { "login": "mendrik", "name": "Andreas Herd", "avatar_url": "https://avatars.githubusercontent.com/u/160805?v=4", "profile": "https://github.com/mendrik", "contributions": ["bug"] }, { "login": "sonjoydatta", "name": "Sonjoy Datta", "avatar_url": "https://avatars.githubusercontent.com/u/49079726?v=4", "profile": "https://sonjoydatta.me/", "contributions": ["code"] }, { "login": "oluckyman", "name": "Ilya Belsky", "avatar_url": "https://avatars.githubusercontent.com/u/642673?v=4", "profile": "https://github.com/oluckyman", "contributions": ["bug"] }, { "login": "JamesBarrettDev", "name": "James Barrett", "avatar_url": "https://avatars.githubusercontent.com/u/42980207?v=4", "profile": "https://jamesbarrett.io/", "contributions": ["code"] }, { "login": "AbbalYouness", "name": "AbbalYouness", "avatar_url": "https://avatars.githubusercontent.com/u/15120524?v=4", "profile": "https://github.com/AbbalYouness", "contributions": ["code"] }, { "login": "DidrikLind", "name": "didriklind", "avatar_url": "https://avatars.githubusercontent.com/u/14201715?v=4", "profile": "https://github.com/DidrikLind", "contributions": ["code", "test"] }, { "login": "hexp1989", "name": "hexp1989", "avatar_url": "https://avatars.githubusercontent.com/u/2241985?v=4", "profile": "https://github.com/hexp1989", "contributions": ["code"] }, { "login": "alvaroserrrano", "name": "Alvaro Serrano", "avatar_url": "https://avatars.githubusercontent.com/u/43758471?v=4", "profile": "https://www.linkedin.com/in/alvaro-serrano-rivas/", "contributions": ["content"] }, { "login": "egehandulger", "name": "Egehan Dülger", "avatar_url": "https://avatars.githubusercontent.com/u/14878259?v=4", "profile": "https://github.com/egehandulger", "contributions": ["code"] }, { "login": "PabloLION", "name": "PabloLION", "avatar_url": "https://avatars.githubusercontent.com/u/36828324?v=4", "profile": "https://github.com/PabloLION", "contributions": ["bug", "code"] }, { "login": "emulienfou", "name": "David Sanchez", "avatar_url": "https://avatars.githubusercontent.com/u/84061?v=4", "profile": "https://davidsanchez.me/", "contributions": ["bug"] }, { "login": "AjayTheWizard", "name": "Ajay Raja", "avatar_url": "https://avatars.githubusercontent.com/u/92772740?v=4", "profile": "https://github.com/AjayTheWizard", "contributions": ["bug"] }, { "login": "docmars", "name": "Andy Merskin", "avatar_url": "https://avatars.githubusercontent.com/u/758090?v=4", "profile": "http://andymerskin.com/", "contributions": ["ideas"] }, { "login": "GrayGalaxy", "name": "Avirup Ghosh", "avatar_url": "https://avatars.githubusercontent.com/u/49820575?v=4", "profile": "https://github.com/GrayGalaxy", "contributions": ["code", "bug"] }, { "login": "tilnea", "name": "Sanne Wintrén", "avatar_url": "https://avatars.githubusercontent.com/u/3692320?v=4", "profile": "https://github.com/tilnea", "contributions": ["bug"] }, { "login": "a-barbieri", "name": "Alessandro", "avatar_url": "https://avatars.githubusercontent.com/u/1528468?v=4", "profile": "http://lacolonia.studio/", "contributions": ["bug"] }, { "login": "atatarenko", "name": "Andrey Tatarenko", "avatar_url": "https://avatars.githubusercontent.com/u/9846273?v=4", "profile": "https://github.com/atatarenko", "contributions": ["bug"] }, { "login": "arusak", "name": "Anton Rusak", "avatar_url": "https://avatars.githubusercontent.com/u/4231915?v=4", "profile": "https://github.com/arusak", "contributions": ["bug"] }, { "login": "createdbymahmood", "name": "Mahmood Bagheri", "avatar_url": "https://avatars.githubusercontent.com/u/40164360?v=4", "profile": "https://github.com/createdbymahmood", "contributions": ["code"] }, { "login": "anver", "name": "Anver Sadutt", "avatar_url": "https://avatars.githubusercontent.com/u/506491?v=4", "profile": "https://wpowner.com/", "contributions": ["content"] }, { "login": "bogdanailincaipnt", "name": "Bogdan Ailincai", "avatar_url": "https://avatars.githubusercontent.com/u/93596663?v=4", "profile": "https://github.com/bogdanailincaipnt", "contributions": ["code"] }, { "login": "SimeonGriggs", "name": "Simeon Griggs", "avatar_url": "https://avatars.githubusercontent.com/u/9684022?v=4", "profile": "https://github.com/SimeonGriggs", "contributions": ["bug"] }, { "login": "Kepro", "name": "Kepro", "avatar_url": "https://avatars.githubusercontent.com/u/1714370?v=4", "profile": "https://github.com/Kepro", "contributions": ["bug"] }, { "login": "Jake-Lippert", "name": "Jake Lippert", "avatar_url": "https://avatars.githubusercontent.com/u/17753127?v=4", "profile": "https://github.com/Jake-Lippert", "contributions": ["bug"] }, { "login": "TunA-Kai", "name": "Tu Nguyen Anh", "avatar_url": "https://avatars.githubusercontent.com/u/92641762?v=4", "profile": "https://github.com/TunA-Kai", "contributions": ["bug", "code"] }, { "login": "skve", "name": "Luke Shiels", "avatar_url": "https://avatars.githubusercontent.com/u/47612057?v=4", "profile": "https://github.com/skve", "contributions": ["bug"] }, { "login": "SleLLl", "name": "Sergei Kolyago", "avatar_url": "https://avatars.githubusercontent.com/u/66108429?v=4", "profile": "https://github.com/SleLLl", "contributions": ["ideas"] }, { "login": "adhamaa", "name": "Adham Akmal Azmi", "avatar_url": "https://avatars.githubusercontent.com/u/50027371?v=4", "profile": "https://github.com/adhamaa", "contributions": ["bug"] }, { "login": "alex-kowalczyk", "name": "Alek Kowalczyk", "avatar_url": "https://avatars.githubusercontent.com/u/7422175?v=4", "profile": "https://github.com/alex-kowalczyk", "contributions": ["bug"] }, { "login": "Scalahansolo", "name": "Sean Callahan", "avatar_url": "https://avatars.githubusercontent.com/u/4317253?v=4", "profile": "https://github.com/Scalahansolo", "contributions": ["bug"] }, { "login": "jbean96", "name": "Joshua Bean", "avatar_url": "https://avatars.githubusercontent.com/u/22803097?v=4", "profile": "https://github.com/jbean96", "contributions": ["code", "bug"] }, { "login": "ZhaoTim", "name": "Tim Zhao", "avatar_url": "https://avatars.githubusercontent.com/u/30540533?v=4", "profile": "https://github.com/ZhaoTim", "contributions": ["bug"] }, { "login": "patryk-smc", "name": "Patrick", "avatar_url": "https://avatars.githubusercontent.com/u/37963339?v=4", "profile": "https://github.com/patryk-smc", "contributions": ["bug"] }, { "login": "brycedorn", "name": "Bryce Dorn", "avatar_url": "https://avatars.githubusercontent.com/u/3171252?v=4", "profile": "https://bryce.io/", "contributions": ["code"] }, { "login": "angusd3v", "name": "angusd3v", "avatar_url": "https://avatars.githubusercontent.com/u/52683145?v=4", "profile": "https://github.com/angusd3v", "contributions": ["code"] }, { "login": "ddisimone", "name": "Davide Di Simone", "avatar_url": "https://avatars.githubusercontent.com/u/78792352?v=4", "profile": "https://github.com/ddisimone", "contributions": ["bug"] }, { "login": "jherr", "name": "Jack Herrington", "avatar_url": "https://avatars.githubusercontent.com/u/22392?v=4", "profile": "https://github.com/jherr", "contributions": ["bug"] }, { "login": "sharvit", "name": "Avi Sharvit", "avatar_url": "https://avatars.githubusercontent.com/u/1262502?v=4", "profile": "https://sharvit.github.io/", "contributions": ["code", "bug"] }, { "login": "nmaties", "name": "Nicolae Maties", "avatar_url": "https://avatars.githubusercontent.com/u/16613184?v=4", "profile": "https://github.com/nmaties", "contributions": ["bug"] }, { "login": "secretshardul", "name": "Shardul Aeer", "avatar_url": "https://avatars.githubusercontent.com/u/49580849?v=4", "profile": "https://github.com/secretshardul", "contributions": ["bug"] }, { "login": "herlon214", "name": "Herlon Aguiar", "avatar_url": "https://avatars.githubusercontent.com/u/3419441?v=4", "profile": "https://github.com/herlon214", "contributions": ["bug"] }, { "login": "alexisoney", "name": "Alexis Oney", "avatar_url": "https://avatars.githubusercontent.com/u/28802989?v=4", "profile": "https://github.com/alexisoney", "contributions": ["content"] }, { "login": "curtvict", "name": "curtvict", "avatar_url": "https://avatars.githubusercontent.com/u/96080054?v=4", "profile": "https://convictional.com/", "contributions": ["code"] }, { "login": "JoshuaCS94", "name": "Josué Cortina", "avatar_url": "https://avatars.githubusercontent.com/u/23385700?v=4", "profile": "https://github.com/JoshuaCS94", "contributions": ["content"] }, { "login": "KATT", "name": "Alex / KATT", "avatar_url": "https://avatars.githubusercontent.com/u/459267?v=4", "profile": "https://katt.dev/", "contributions": ["code"] }, { "login": "modex98", "name": "Mourad EL CADI", "avatar_url": "https://avatars.githubusercontent.com/u/72814784?v=4", "profile": "https://github.com/modex98", "contributions": ["code", "bug"] }, { "login": "Guesswhoitis", "name": "James Hulena", "avatar_url": "https://avatars.githubusercontent.com/u/63756285?v=4", "profile": "https://github.com/Guesswhoitis", "contributions": ["bug"] }, { "login": "hailwood", "name": "Matthew Hailwood", "avatar_url": "https://avatars.githubusercontent.com/u/709773?v=4", "profile": "http://hailwood.nz/", "contributions": ["code", "review"] }, { "login": "mike247", "name": "Michael Norrie", "avatar_url": "https://avatars.githubusercontent.com/u/676071?v=4", "profile": "https://github.com/mike247", "contributions": ["bug"] }, { "login": "valentinpolitov", "name": "Valentin Politov", "avatar_url": "https://avatars.githubusercontent.com/u/39585375?v=4", "profile": "https://github.com/valentinpolitov", "contributions": ["code"] }, { "login": "marnusw", "name": "Marnus Weststrate", "avatar_url": "https://avatars.githubusercontent.com/u/971499?v=4", "profile": "https://github.com/marnusw", "contributions": ["code"] }, { "login": "mancuoj", "name": "mancuoj", "avatar_url": "https://avatars.githubusercontent.com/u/45707684?v=4", "profile": "https://github.com/mancuoj", "contributions": ["content"] }, { "login": "jcsumlin", "name": "Chat Sumlin", "avatar_url": "https://avatars.githubusercontent.com/u/3067479?v=4", "profile": "https://www.chatsumlin.com/", "contributions": ["code"] }, { "login": "owenshaupt", "name": "Owen Haupt", "avatar_url": "https://avatars.githubusercontent.com/u/52288188?v=4", "profile": "https://github.com/owenshaupt", "contributions": ["bug", "content"] }, { "login": "ubarbaxor", "name": "ubarbaxor", "avatar_url": "https://avatars.githubusercontent.com/u/26365493?v=4", "profile": "https://github.com/ubarbaxor", "contributions": ["code"] }, { "login": "michaelmior", "name": "Michael Mior", "avatar_url": "https://avatars.githubusercontent.com/u/82501?v=4", "profile": "https://michael.mior.ca/", "contributions": ["bug", "content"] }, { "login": "pkhodaveissi", "name": "Pierre", "avatar_url": "https://avatars.githubusercontent.com/u/4170795?v=4", "profile": "https://github.com/pkhodaveissi", "contributions": ["code"] }, { "login": "harrywebdev", "name": "Harry B", "avatar_url": "https://avatars.githubusercontent.com/u/3617415?v=4", "profile": "https://github.com/harrywebdev", "contributions": ["bug"] }, { "login": "valyrie97", "name": "Valerie", "avatar_url": "https://avatars.githubusercontent.com/u/6365746?v=4", "profile": "https://github.com/valyrie97", "contributions": ["bug", "code"] }, { "login": "stevenvachon", "name": "Steven Vachon", "avatar_url": "https://avatars.githubusercontent.com/u/170197?v=4", "profile": "https://svachon.com/", "contributions": ["code"] }, { "login": "sskirby", "name": "Sean Kirby", "avatar_url": "https://avatars.githubusercontent.com/u/25760?v=4", "profile": "https://github.com/sskirby", "contributions": ["test", "code"] }, { "login": "AlecsFarias", "name": "Alecsander Farias", "avatar_url": "https://avatars.githubusercontent.com/u/91743821?v=4", "profile": "https://github.com/AlecsFarias", "contributions": ["code"] }, { "login": "BlankParticle", "name": "Rahul Mishra", "avatar_url": "https://avatars.githubusercontent.com/u/130567419?v=4", "profile": "https://blankparticle.in/", "contributions": ["code", "review", "content"] }, { "login": "bryantcodesart", "name": "Bryant Smith", "avatar_url": "https://avatars.githubusercontent.com/u/14097078?v=4", "profile": "https://github.com/bryantcodesart", "contributions": ["code", "bug"] }, { "login": "RobHannay", "name": "Rob Hannay", "avatar_url": "https://avatars.githubusercontent.com/u/609062?v=4", "profile": "https://github.com/RobHannay", "contributions": ["code"] }, { "login": "hooriza", "name": "Hooriza", "avatar_url": "https://avatars.githubusercontent.com/u/507927?v=4", "profile": "https://github.com/hooriza", "contributions": ["code", "bug"] }, { "login": "ShanSenanayake", "name": "ShanSenanayake", "avatar_url": "https://avatars.githubusercontent.com/u/8779685?v=4", "profile": "https://github.com/ShanSenanayake", "contributions": ["code"] }, { "login": "philipgher", "name": "Philip Ghering", "avatar_url": "https://avatars.githubusercontent.com/u/32325241?v=4", "profile": "https://github.com/philipgher", "contributions": ["code"] }, { "login": "ladislasdellinger", "name": "Ladislas Dellinger", "avatar_url": "https://avatars.githubusercontent.com/u/111739019?v=4", "profile": "https://github.com/ladislasdellinger", "contributions": ["code"] }, { "login": "TheHaff", "name": "Haff", "avatar_url": "https://avatars.githubusercontent.com/u/2486653?v=4", "profile": "https://github.com/TheHaff", "contributions": ["code"] }, { "login": "lisandro52", "name": "Lisandro", "avatar_url": "https://avatars.githubusercontent.com/u/5612241?v=4", "profile": "https://github.com/lisandro52", "contributions": ["code"] }, { "login": "amirking59", "name": "Amir hossein rezaei", "avatar_url": "https://avatars.githubusercontent.com/u/58273240?v=4", "profile": "https://github.com/amirking59", "contributions": ["code"] }, { "login": "nmacianx", "name": "Nicolas Macian", "avatar_url": "https://avatars.githubusercontent.com/u/40004186?v=4", "profile": "https://github.com/nmacianx", "contributions": ["bug", "code"] }, { "login": "nateforsyth", "name": "Nate Forsyth", "avatar_url": "https://avatars.githubusercontent.com/u/13162026?v=4", "profile": "https://dreamsof.dev/", "contributions": ["code"] }, { "login": "satelllte", "name": "satelllte", "avatar_url": "https://avatars.githubusercontent.com/u/20585619?v=4", "profile": "https://github.com/satelllte", "contributions": ["code", "bug"] }, { "login": "fedemp", "name": "Federico Panico", "avatar_url": "https://avatars.githubusercontent.com/u/735314?v=4", "profile": "https://github.com/fedemp", "contributions": ["code"] }, { "login": "iamwillnbcu", "name": "William Pei Yuan", "avatar_url": "https://avatars.githubusercontent.com/u/137317773?v=4", "profile": "https://github.com/iamwillnbcu", "contributions": ["code"] }, { "login": "DarkAng3L", "name": "Mihai", "avatar_url": "https://avatars.githubusercontent.com/u/757999?v=4", "profile": "http://www.gazeta-cu-anunturi.ro/", "contributions": ["code", "bug"] }, { "login": "ogunsolahabib", "name": "Habib Ogunsola", "avatar_url": "https://avatars.githubusercontent.com/u/39172573?v=4", "profile": "https://habib.ogunsola.me/", "contributions": ["content"] }, { "login": "ashfurrow", "name": "Ash Furrow", "avatar_url": "https://avatars.githubusercontent.com/u/498212?v=4", "profile": "https://ashfurrow.com/", "contributions": ["code"] }, { "login": "danielturus", "name": "Daniel Turuș", "avatar_url": "https://avatars.githubusercontent.com/u/32390499?v=4", "profile": "https://turus.ro/", "contributions": ["code"] }, { "login": "rahulchaudhary2244", "name": "Rahul Chaudhary", "avatar_url": "https://avatars.githubusercontent.com/u/54467972?v=4", "profile": "https://www.linkedin.com/in/rahulchaudhary2244/", "contributions": ["content", "bug"] }, { "login": "Joshyahweh", "name": "Joshua Ojoawo", "avatar_url": "https://avatars.githubusercontent.com/u/61137067?v=4", "profile": "https://github.com/Joshyahweh", "contributions": ["ideas", "bug"] }, { "login": "jackdh", "name": "Jack", "avatar_url": "https://avatars.githubusercontent.com/u/1907451?v=4", "profile": "https://jackdh.com/", "contributions": ["code"] }, { "login": "jonlinkens", "name": "Jon Linkens", "avatar_url": "https://avatars.githubusercontent.com/u/20417521?v=4", "profile": "https://github.com/jonlinkens", "contributions": ["code", "bug"] }, { "login": "ojj1123", "name": "Jeongjin Oh", "avatar_url": "https://avatars.githubusercontent.com/u/33178048?v=4", "profile": "https://velog.io/@ojj1123", "contributions": ["bug"] }, { "login": "tli26", "name": "Tianning Li", "avatar_url": "https://avatars.githubusercontent.com/u/114947190?v=4", "profile": "https://github.com/tli26", "contributions": ["code"] }, { "login": "LarsArtmann", "name": "Lars Artmann", "avatar_url": "https://avatars.githubusercontent.com/u/23587853?v=4", "profile": "https://larsartmann.com/", "contributions": ["content"] }, { "login": "KBobovskiy", "name": "KBobovskiy", "avatar_url": "https://avatars.githubusercontent.com/u/35502578?v=4", "profile": "https://github.com/KBobovskiy", "contributions": ["code"] }, { "login": "ryngonzalez", "name": "✨ Kathryn Gonzalez ✨", "avatar_url": "https://avatars.githubusercontent.com/u/635300?v=4", "profile": "https://github.com/ryngonzalez", "contributions": ["content"] }, { "login": "slavik-chapelskyi", "name": "Yaroslav Chapelskyi", "avatar_url": "https://avatars.githubusercontent.com/u/33541009?v=4", "profile": "https://github.com/slavik-chapelskyi", "contributions": ["content"] }, { "login": "sverps", "name": "Samuel Van Erps", "avatar_url": "https://avatars.githubusercontent.com/u/15879327?v=4", "profile": "https://github.com/sverps", "contributions": ["review"] }, { "login": "ojolowoblue", "name": "ojolowoblue", "avatar_url": "https://avatars.githubusercontent.com/u/104099474?v=4", "profile": "https://github.com/ojolowoblue", "contributions": ["content"] }, { "login": "gugu", "name": "Andrii Kostenko", "avatar_url": "https://avatars.githubusercontent.com/u/75169?v=4", "profile": "http://short.io/", "contributions": ["code"] }, { "login": "AkeemAllen", "name": "Akeem Allen", "avatar_url": "https://avatars.githubusercontent.com/u/32404761?v=4", "profile": "https://github.com/AkeemAllen", "contributions": ["code", "bug"] }, { "login": "trongbinh15", "name": "trongbinhnguyen", "avatar_url": "https://avatars.githubusercontent.com/u/43725147?v=4", "profile": "https://github.com/trongbinh15", "contributions": ["content"] }, { "login": "lawlesx", "name": "Aniruddha Sil", "avatar_url": "https://avatars.githubusercontent.com/u/52166437?v=4", "profile": "https://lawlesx.vercel.app/", "contributions": ["code"] }, { "login": "okinawaa", "name": "박찬혁", "avatar_url": "https://avatars.githubusercontent.com/u/69495129?v=4", "profile": "https://github.com/okinawaa", "contributions": ["review"] }, { "login": "novanish", "name": "Anish", "avatar_url": "https://avatars.githubusercontent.com/u/98446102?v=4", "profile": "https://anishchhetri.com.np/", "contributions": ["code"] }, { "login": "hugohutri", "name": "Hugo Hutri", "avatar_url": "https://avatars.githubusercontent.com/u/55588133?v=4", "profile": "https://hutri.fi/", "contributions": ["content"] }, { "login": "BalzGuenat", "name": "Balz Guenat", "avatar_url": "https://avatars.githubusercontent.com/u/6719014?v=4", "profile": "http://balzguenat.ch/", "contributions": ["code"] }, { "login": "ottergeorge", "name": "OtterGeorge", "avatar_url": "https://avatars.githubusercontent.com/u/108759685?v=4", "profile": "https://github.com/ottergeorge", "contributions": ["code"] }, { "login": "samay-rgb", "name": "Samay Sagar", "avatar_url": "https://avatars.githubusercontent.com/u/73112080?v=4", "profile": "https://github.com/samay-rgb", "contributions": ["content"] }, { "login": "pedrobslisboa", "name": "Pedro Lisboa", "avatar_url": "https://avatars.githubusercontent.com/u/35539594?v=4", "profile": "https://github.com/pedrobslisboa", "contributions": ["bug"] }, { "login": "henriqemalheiros", "name": "Henrique Malheiros", "avatar_url": "https://avatars.githubusercontent.com/u/23730762?v=4", "profile": "https://github.com/henriqemalheiros", "contributions": ["bug"] }, { "login": "CaptainN", "name": "Kevin Newman", "avatar_url": "https://avatars.githubusercontent.com/u/245825?v=4", "profile": "http://www.unfocus.com/", "contributions": ["code"] }, { "login": "a503189", "name": "a503189", "avatar_url": "https://avatars.githubusercontent.com/u/28802989?v=4", "profile": "https://github.com/a503189", "contributions": ["content"] }, { "login": "mod7ex", "name": "Mourad EL CADI", "avatar_url": "https://avatars.githubusercontent.com/u/72814784?v=4", "profile": "https://t.me/mouradelcadi", "contributions": ["code"] }, { "login": "Lop3sPedro", "name": "Pedro Henrique Lopes", "avatar_url": "https://avatars.githubusercontent.com/u/89090945?v=4", "profile": "https://github.com/Lop3sPedro", "contributions": ["code"] }, { "login": "danbiilee", "name": "Danbi Lee", "avatar_url": "https://avatars.githubusercontent.com/u/53761241?v=4", "profile": "https://github.com/danbiilee", "contributions": ["code"] }, { "login": "cojennin", "name": "Connor Jennings", "avatar_url": "https://avatars.githubusercontent.com/u/1888152?v=4", "profile": "https://github.com/cojennin", "contributions": ["code"] }, { "login": "lgxm3z", "name": "Lucas Gomes", "avatar_url": "https://avatars.githubusercontent.com/u/28831375?v=4", "profile": "https://github.com/lgxm3z", "contributions": ["bug", "code"] }, { "login": "zaggino", "name": "Martin Zagora", "avatar_url": "https://avatars.githubusercontent.com/u/1067319?v=4", "profile": "https://github.com/zaggino", "contributions": ["code"] }, { "login": "kvdo2", "name": "KvD", "avatar_url": "https://avatars.githubusercontent.com/u/78251524?v=4", "profile": "https://github.com/kvdo2", "contributions": ["code"] }, { "login": "SupraSmooth", "name": "Alex", "avatar_url": "https://avatars.githubusercontent.com/u/18029247?v=4", "profile": "https://github.com/SupraSmooth", "contributions": ["code"] }, { "login": "kaceycleveland", "name": "Kacey Cleveland", "avatar_url": "https://avatars.githubusercontent.com/u/88064187?v=4", "profile": "https://github.com/kaceycleveland", "contributions": ["review"] }, { "login": "oviirup", "name": "Avirup Ghosh", "avatar_url": "https://avatars.githubusercontent.com/u/49820575?v=4", "profile": "https://github.com/oviirup", "contributions": ["bug"] }, { "login": "yabbal", "name": "yabbal", "avatar_url": "https://avatars.githubusercontent.com/u/15120524?v=4", "profile": "https://github.com/yabbal", "contributions": ["code"] }, { "login": "patik", "name": "Craig Patik", "avatar_url": "https://avatars.githubusercontent.com/u/262137?v=4", "profile": "https://patik.com/", "contributions": ["bug"] }, { "login": "Silverium", "name": "Soldeplata Saketos Candela", "avatar_url": "https://avatars.githubusercontent.com/u/10578392?v=4", "profile": "https://github.com/Silverium", "contributions": ["code"] }, { "login": "TENDOUZHI", "name": "TENDOUZHI", "avatar_url": "https://avatars.githubusercontent.com/u/82806526?v=4", "profile": "https://github.com/TENDOUZHI", "contributions": ["bug"] }, { "login": "wachulski", "name": "Marcin Wachulski", "avatar_url": "https://avatars.githubusercontent.com/u/1669844?v=4", "profile": "https://github.com/wachulski", "contributions": ["bug"] }, { "login": "salmanfazal01", "name": "Salman Fazal", "avatar_url": "https://avatars.githubusercontent.com/u/15085416?v=4", "profile": "https://salmans.work/", "contributions": ["bug"] }, { "login": "shrugs", "name": "shrugs", "avatar_url": "https://avatars.githubusercontent.com/u/1535001?v=4", "profile": "https://github.com/shrugs", "contributions": ["bug"] }, { "login": "Hyodori04", "name": "hyodori", "avatar_url": "https://avatars.githubusercontent.com/u/57362573?v=4", "profile": "https://github.com/Hyodori04", "contributions": ["bug"] }, { "login": "eleazareramos", "name": "Eleazar “E” Ramos", "avatar_url": "https://avatars.githubusercontent.com/u/25910203?v=4", "profile": "https://github.com/eleazareramos", "contributions": ["bug"] }, { "login": "retnag", "name": "retnag", "avatar_url": "https://avatars.githubusercontent.com/u/18302198?v=4", "profile": "https://github.com/retnag", "contributions": ["bug"] }, { "login": "beefiker", "name": "J young Lee", "avatar_url": "https://avatars.githubusercontent.com/u/55247450?v=4", "profile": "https://jaeyoung.dev/", "contributions": ["bug"] }, { "login": "fiws", "name": "Filip Weiss", "avatar_url": "https://avatars.githubusercontent.com/u/3409958?v=4", "profile": "https://github.com/fiws", "contributions": ["bug"] }, { "login": "mariusGundersen", "name": "Marius Gundersen", "avatar_url": "https://avatars.githubusercontent.com/u/464152?v=4", "profile": "https://mariusgundersen.net/", "contributions": ["bug"] }, { "login": "VenomFate-619", "name": "Syed Aman Ali", "avatar_url": "https://avatars.githubusercontent.com/u/67755128?v=4", "profile": "https://github.com/VenomFate-619", "contributions": ["bug"] }, { "login": "ingadi", "name": "Axel Ingadi", "avatar_url": "https://avatars.githubusercontent.com/u/6121225?v=4", "profile": "https://ingadi.work/", "contributions": ["bug"] }, { "login": "andyjphu", "name": "AndyP", "avatar_url": "https://avatars.githubusercontent.com/u/51890861?v=4", "profile": "https://github.com/andyjphu", "contributions": ["bug"] }, { "login": "ishanVaghasiya", "name": "ishanVaghasiya", "avatar_url": "https://avatars.githubusercontent.com/u/98661936?v=4", "profile": "https://github.com/ishanVaghasiya", "contributions": ["bug"] }, { "login": "nico-martinucci", "name": "Nico Martinucci", "avatar_url": "https://avatars.githubusercontent.com/u/80868741?v=4", "profile": "https://github.com/nico-martinucci", "contributions": ["bug"] }, { "login": "technophile-04", "name": "Shiv Bhonde | shivbhonde.eth", "avatar_url": "https://avatars.githubusercontent.com/u/80153681?v=4", "profile": "https://github.com/technophile-04", "contributions": ["bug"] }, { "login": "fritzmonkey", "name": "fritzmonkey", "avatar_url": "https://avatars.githubusercontent.com/u/10103840?v=4", "profile": "https://github.com/fritzmonkey", "contributions": ["bug"] }, { "login": "rrmesquita", "name": "Rodrigo Mesquita", "avatar_url": "https://avatars.githubusercontent.com/u/30835404?v=4", "profile": "https://github.com/rrmesquita", "contributions": ["bug"] }, { "login": "moshest", "name": "Moshe Simantov", "avatar_url": "https://avatars.githubusercontent.com/u/534911?v=4", "profile": "https://moshe.io/", "contributions": ["bug"] }, { "login": "BekaArabidze98", "name": "Beka", "avatar_url": "https://avatars.githubusercontent.com/u/122085038?v=4", "profile": "https://github.com/BekaArabidze98", "contributions": ["bug"] }, { "login": "abdofola", "name": "Abdallah Alkaser", "avatar_url": "https://avatars.githubusercontent.com/u/30251052?v=4", "profile": "https://github.com/abdofola", "contributions": ["bug", "code"] }, { "login": "CarlosNZ", "name": "Carl Smith", "avatar_url": "https://avatars.githubusercontent.com/u/5456533?v=4", "profile": "https://github.com/CarlosNZ", "contributions": ["bug"] }, { "login": "ogroppo", "name": "Orlando Groppo", "avatar_url": "https://avatars.githubusercontent.com/u/4820803?v=4", "profile": "https://github.com/ogroppo", "contributions": ["bug"] }, { "login": "thany", "name": "Martijn Saly", "avatar_url": "https://avatars.githubusercontent.com/u/152227?v=4", "profile": "https://github.com/thany", "contributions": ["bug"] }, { "login": "quinn", "name": "Quinn Shanahan", "avatar_url": "https://avatars.githubusercontent.com/u/3764?v=4", "profile": "https://quinn.io/", "contributions": ["bug"] }, { "login": "AntoineKM", "name": "Antoine Kingue", "avatar_url": "https://avatars.githubusercontent.com/u/54948363?v=4", "profile": "https://antoinek.fr/", "contributions": ["bug"] }, { "login": "zanzlender", "name": "Žan Žlender", "avatar_url": "https://avatars.githubusercontent.com/u/44570474?v=4", "profile": "https://github.com/zanzlender", "contributions": ["bug"] }, { "login": "sebadom", "name": "Sebastian Dominguez", "avatar_url": "https://avatars.githubusercontent.com/u/3877952?v=4", "profile": "https://github.com/sebadom", "contributions": ["bug"] }, { "login": "jmc420", "name": "James Cowan", "avatar_url": "https://avatars.githubusercontent.com/u/11723529?v=4", "profile": "https://github.com/jmc420", "contributions": ["bug"] }, { "login": "bayraak", "name": "Bayram Ali Basgul", "avatar_url": "https://avatars.githubusercontent.com/u/10470072?v=4", "profile": "https://github.com/bayraak", "contributions": ["bug"] }, { "login": "WyattCast44", "name": "Wyatt Castaneda", "avatar_url": "https://avatars.githubusercontent.com/u/17957937?v=4", "profile": "http://wyatt.castaneda.family/", "contributions": ["bug"] }, { "login": "tsnevillecom", "name": "Tim Neville", "avatar_url": "https://avatars.githubusercontent.com/u/3151454?v=4", "profile": "https://github.com/tsnevillecom", "contributions": ["bug"] }, { "login": "shoooe", "name": "Thomas Pigarelli", "avatar_url": "https://avatars.githubusercontent.com/u/733227?v=4", "profile": "https://github.com/shoooe", "contributions": ["bug"] }, { "login": "jherdman", "name": "James Herdman", "avatar_url": "https://avatars.githubusercontent.com/u/3300?v=4", "profile": "https://github.com/jherdman", "contributions": ["bug"] }, { "login": "pociej", "name": "Grzegorz Pociejewski", "avatar_url": "https://avatars.githubusercontent.com/u/3854675?v=4", "profile": "https://github.com/pociej", "contributions": ["bug"] }, { "login": "flyon", "name": "René Verheij", "avatar_url": "https://avatars.githubusercontent.com/u/341567?v=4", "profile": "https://github.com/flyon", "contributions": ["bug"] }, { "login": "PatrykKuniczak", "name": "PatrykKuniczak", "avatar_url": "https://avatars.githubusercontent.com/u/64608510?v=4", "profile": "https://github.com/PatrykKuniczak", "contributions": ["bug"] }, { "login": "CroModder", "name": "Paolo Božac", "avatar_url": "https://avatars.githubusercontent.com/u/7691110?v=4", "profile": "https://cromodder.github.io/", "contributions": ["bug"] }, { "login": "reinos", "name": "Rein", "avatar_url": "https://avatars.githubusercontent.com/u/633730?v=4", "profile": "https://github.com/reinos", "contributions": ["bug"] }, { "login": "FloorianB", "name": "FloorianB", "avatar_url": "https://avatars.githubusercontent.com/u/110407858?v=4", "profile": "https://github.com/FloorianB", "contributions": ["bug"] }, { "login": "xuanhung1509", "name": "Xuan Hung", "avatar_url": "https://avatars.githubusercontent.com/u/89293664?v=4", "profile": "https://github.com/xuanhung1509", "contributions": ["bug"] }, { "login": "mxvsh", "name": "Monawwar Abdullah", "avatar_url": "https://avatars.githubusercontent.com/u/31907722?v=4", "profile": "https://monawwar.io/", "contributions": ["bug"] }, { "login": "haroldo-ok", "name": "Haroldo de Oliveira Pinheiro", "avatar_url": "https://avatars.githubusercontent.com/u/1457465?v=4", "profile": "https://github.com/haroldo-ok", "contributions": ["bug"] }, { "login": "TamjidAhmed10", "name": "Tamjid Ahmed", "avatar_url": "https://avatars.githubusercontent.com/u/57794102?v=4", "profile": "https://portfoliobytamjid.vercel.app/", "contributions": ["bug"] }, { "login": "jv-lopez", "name": "jv-lopez", "avatar_url": "https://avatars.githubusercontent.com/u/93750956?v=4", "profile": "https://github.com/jv-lopez", "contributions": ["bug"] }, { "login": "callumacrae", "name": "Callum Macrae", "avatar_url": "https://avatars.githubusercontent.com/u/472830?v=4", "profile": "http://macr.ae/", "contributions": ["bug"] }, { "login": "0529bill", "name": "bywater529", "avatar_url": "https://avatars.githubusercontent.com/u/62455148?v=4", "profile": "https://github.com/0529bill", "contributions": ["bug"] }, { "login": "kevinxh", "name": "Kevin He", "avatar_url": "https://avatars.githubusercontent.com/u/10948652?v=4", "profile": "https://github.com/kevinxh", "contributions": ["bug"] }, { "login": "FredericoGauz", "name": "FredericoGauz", "avatar_url": "https://avatars.githubusercontent.com/u/18327882?v=4", "profile": "https://github.com/FredericoGauz", "contributions": ["bug"] }, { "login": "JonLemOfficial", "name": "Jonathan \"JonLem\" Lemos", "avatar_url": "https://avatars.githubusercontent.com/u/38771842?v=4", "profile": "https://www.jonlemofficial.com/", "contributions": ["bug"] }, { "login": "xegulon", "name": "Xegulon", "avatar_url": "https://avatars.githubusercontent.com/u/74178038?v=4", "profile": "https://github.com/xegulon", "contributions": ["bug"] }, { "login": "TomSmedley", "name": "Tom Smedley", "avatar_url": "https://avatars.githubusercontent.com/u/95056193?v=4", "profile": "https://github.com/TomSmedley", "contributions": ["bug"] }, { "login": "lightbluepoppy", "name": "lightbluepoppy", "avatar_url": "https://avatars.githubusercontent.com/u/65863981?v=4", "profile": "https://github.com/lightbluepoppy", "contributions": ["bug"] }, { "login": "Dchole", "name": "Derek Oware", "avatar_url": "https://avatars.githubusercontent.com/u/47068381?v=4", "profile": "https://github.com/Dchole", "contributions": ["bug"] }, { "login": "lancegliser", "name": "Lance Gliser", "avatar_url": "https://avatars.githubusercontent.com/u/12085479?v=4", "profile": "http://fragmentedthought.com/", "contributions": ["bug"] }, { "login": "lewxdev", "name": "J. Lewis", "avatar_url": "https://avatars.githubusercontent.com/u/6710419?v=4", "profile": "https://github.com/lewxdev", "contributions": ["bug"] }, { "login": "yairy", "name": "Yair", "avatar_url": "https://avatars.githubusercontent.com/u/3206243?v=4", "profile": "https://github.com/yairy", "contributions": ["bug"] }, { "login": "Nishchit14", "name": "Nishchit", "avatar_url": "https://avatars.githubusercontent.com/u/5078921?v=4", "profile": "https://firecamp.dev/", "contributions": ["bug"] }, { "login": "Nejjer", "name": "Devofy", "avatar_url": "https://avatars.githubusercontent.com/u/80219537?v=4", "profile": "https://github.com/Nejjer", "contributions": ["bug"] }, { "login": "nightness", "name": "Josh Guyette", "avatar_url": "https://avatars.githubusercontent.com/u/28668902?v=4", "profile": "https://joshguyette.com/", "contributions": ["bug"] }, { "login": "dora-ljh", "name": "Dora Li", "avatar_url": "https://avatars.githubusercontent.com/u/35205701?v=4", "profile": "https://github.com/dora-ljh", "contributions": ["bug"] }, { "login": "kg-currenxie", "name": "Kristian Gerardsson", "avatar_url": "https://avatars.githubusercontent.com/u/48229166?v=4", "profile": "https://github.com/kg-currenxie", "contributions": ["bug"] }, { "login": "jdpt0", "name": "James Powell", "avatar_url": "https://avatars.githubusercontent.com/u/19761394?v=4", "profile": "https://github.com/jdpt0", "contributions": ["bug"] }, { "login": "boazpoolman", "name": "Boaz Poolman", "avatar_url": "https://avatars.githubusercontent.com/u/9551934?v=4", "profile": "https://www.linkedin.com/in/boaz-poolman-662162115/", "contributions": ["bug"] }, { "login": "roker15", "name": "roker15", "avatar_url": "https://avatars.githubusercontent.com/u/59526869?v=4", "profile": "https://github.com/roker15", "contributions": ["bug"] }, { "login": "fadhilx", "name": "Fadhil Ahmad", "avatar_url": "https://avatars.githubusercontent.com/u/15516786?v=4", "profile": "https://github.com/fadhilx", "contributions": ["bug"] }, { "login": "Chandler-Zhu", "name": "Chandler-Zhu", "avatar_url": "https://avatars.githubusercontent.com/u/61914365?v=4", "profile": "https://github.com/Chandler-Zhu", "contributions": ["bug"] }, { "login": "nixjs", "name": "Nghi Nguyen", "avatar_url": "https://avatars.githubusercontent.com/u/23132483?v=4", "profile": "https://github.com/nixjs", "contributions": ["bug"] }, { "login": "ShravanSunder", "name": "Shravan Sunder", "avatar_url": "https://avatars.githubusercontent.com/u/5294949?v=4", "profile": "https://github.com/ShravanSunder", "contributions": ["bug"] }, { "login": "Johannes5", "name": "Johannes5", "avatar_url": "https://avatars.githubusercontent.com/u/14299835?v=4", "profile": "https://github.com/Johannes5", "contributions": ["bug"] }, { "login": "sebahhpeya", "name": "sebahhpeya", "avatar_url": "https://avatars.githubusercontent.com/u/93996817?v=4", "profile": "https://github.com/sebahhpeya", "contributions": ["bug"] }, { "login": "ornakash", "name": "Or Nakash", "avatar_url": "https://avatars.githubusercontent.com/u/45389557?v=4", "profile": "https://onezero.co.il/", "contributions": ["bug"] }, { "login": "hepiyellow", "name": "Erez Makavy", "avatar_url": "https://avatars.githubusercontent.com/u/6338722?v=4", "profile": "https://github.com/hepiyellow", "contributions": ["bug"] }, { "login": "andymerskin", "name": "Andy Merskin", "avatar_url": "https://avatars.githubusercontent.com/u/758090?v=4", "profile": "http://andymerskin.com/", "contributions": ["bug"] }, { "login": "chainalert-bot", "name": "ChainAlert Bot", "avatar_url": "https://avatars.githubusercontent.com/u/95303823?v=4", "profile": "https://github.com/chainalert-bot", "contributions": ["bug"] }, { "login": "tmdesigned", "name": "Taylor Morgan", "avatar_url": "https://avatars.githubusercontent.com/u/3608018?v=4", "profile": "https://github.com/tmdesigned", "contributions": ["bug"] }, { "login": "wisdomabioye", "name": "wisdomabioye", "avatar_url": "https://avatars.githubusercontent.com/u/18709032?v=4", "profile": "https://abkabioye.me/", "contributions": ["bug"] }, { "login": "SamuelQuinones", "name": "Samuel Quiñones", "avatar_url": "https://avatars.githubusercontent.com/u/51345689?v=4", "profile": "http://www.samtheq.com", "contributions": ["ideas"] }, { "login": "ymc-maha", "name": "Manuel", "avatar_url": "https://avatars.githubusercontent.com/u/697307?v=4", "profile": "https://github.com/ymc-maha", "contributions": ["code", "bug"] }, { "login": "Yurchishin", "name": "Yurii Rybak", "avatar_url": "https://avatars.githubusercontent.com/u/36650915?v=4", "profile": "https://github.com/Yurchishin", "contributions": ["bug"] }, { "login": "iuriiiurevich", "name": "Yury Demin", "avatar_url": "https://avatars.githubusercontent.com/u/15759600?v=4", "profile": "https://github.com/iuriiiurevich", "contributions": ["bug", "code"] }, { "login": "jontewks", "name": "Jon Tewksbury", "avatar_url": "https://avatars.githubusercontent.com/u/3970573?v=4", "profile": "http://tewks.io/", "contributions": ["code", "bug"] }, { "login": "novacdenis", "name": "Novac Denis", "avatar_url": "https://avatars.githubusercontent.com/u/45555668?v=4", "profile": "https://github.com/novacdenis", "contributions": ["code", "bug"] }, { "login": "kyrylo-soulandwolf", "name": "kyrylo-soulandwolf", "avatar_url": "https://avatars.githubusercontent.com/u/54762253?v=4", "profile": "https://github.com/kyrylo-soulandwolf", "contributions": ["code", "bug"] }, { "login": "misidoro", "name": "Miguel Isidoro", "avatar_url": "https://avatars.githubusercontent.com/u/3635023?v=4", "profile": "https://github.com/misidoro", "contributions": ["code"] }, { "login": "gromchen", "name": "Yuriy Gromchenko", "avatar_url": "https://avatars.githubusercontent.com/u/828918?v=4", "profile": "https://crowds.space/", "contributions": ["code"] }, { "login": "jcbhmr", "name": "Jacob Hummer", "avatar_url": "https://avatars.githubusercontent.com/u/61068799?v=4", "profile": "http://jcbhmr.me", "contributions": ["ideas"] }, { "login": "k-melnychuk", "name": "Kyrylo Melnychuk", "avatar_url": "https://avatars.githubusercontent.com/u/22131019?v=4", "profile": "https://github.com/k-melnychuk", "contributions": ["content", "code"] }, { "login": "LumaKernel", "name": "Luma", "avatar_url": "https://avatars.githubusercontent.com/u/29811106?v=4", "profile": "https://github.com/LumaKernel", "contributions": ["code"] }, { "login": "Newbie012", "name": "Eliya Cohen", "avatar_url": "https://avatars.githubusercontent.com/u/10504365?v=4", "profile": "https://github.com/Newbie012", "contributions": ["code"] }, { "login": "isumix", "name": "Igor Sukharev", "avatar_url": "https://avatars.githubusercontent.com/u/16747416?v=4", "profile": "https://github.com/isumix", "contributions": ["bug"] }, { "login": "pookmish", "name": "pookmish", "avatar_url": "https://avatars.githubusercontent.com/u/7185045?v=4", "profile": "https://github.com/pookmish", "contributions": ["ideas"] }, { "login": "metav-drimz", "name": "metav-drimz", "avatar_url": "https://avatars.githubusercontent.com/u/113976282?v=4", "profile": "https://github.com/metav-drimz", "contributions": ["ideas"] }, { "login": "luckrnx09", "name": "luckrnx09", "avatar_url": "https://avatars.githubusercontent.com/u/113882203?v=4", "profile": "https://luckrnx09.com/", "contributions": ["code"] }, { "login": "RubyHuntsman", "name": "Hubert Kuczmierczyk", "avatar_url": "https://avatars.githubusercontent.com/u/24682602?v=4", "profile": "https://github.com/RubyHuntsman", "contributions": ["ideas", "review"] }, { "login": "dandubya", "name": "dandubya", "avatar_url": "https://avatars.githubusercontent.com/u/67660308?v=4", "profile": "https://github.com/dandubya", "contributions": ["doc"] }, { "login": "LonelyFellas", "name": "Darwish", "avatar_url": "https://avatars.githubusercontent.com/u/38754760?v=4", "profile": "https://github.com/LonelyFellas", "contributions": ["code"] }, { "login": "jraoult", "name": "Jonathan Raoult", "avatar_url": "https://avatars.githubusercontent.com/u/2046871?v=4", "profile": "http://www.jesuisjo.com/", "contributions": ["bug", "review"] } ], "contributorsPerLine": 7, "commitType": "docs" } ================================================ FILE: .changeset/README.md ================================================ # Changesets Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it [in our repository](https://github.com/changesets/changesets) We have a quick list of common questions to get you started engaging with this project in [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) ================================================ FILE: .changeset/config.json ================================================ { "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", "changelog": "@changesets/cli/changelog", "commit": false, "fixed": [], "linked": [], "access": "public", "baseBranch": "master", "updateInternalDependencies": "patch", "ignore": [] } ================================================ FILE: .editorconfig ================================================ # editorconfig.org root = true [*] indent_style = space indent_size = 2 charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true ================================================ FILE: .github/CODE_OF_CONDUCT.md ================================================ # Contributor Covenant Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation. We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. ## Our Standards Examples of behavior that contributes to a positive environment for our community include: - Demonstrating empathy and kindness toward other people - Being respectful of differing opinions, viewpoints, and experiences - Giving and gracefully accepting constructive feedback - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience - Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: - The use of sexualized language or imagery, and sexual attention or advances of any kind - Trolling, insulting or derogatory comments, and personal or political attacks - Public or private harassment - Publishing others' private information, such as a physical or email address, without their explicit permission - Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. ## Scope This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at . All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident. ## Enforcement Guidelines Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: ### 1. Correction **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. ### 2. Warning **Community Impact**: A violation through a single incident or series of actions. **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. ### 3. Temporary Ban **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. ### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. **Consequence**: A permanent ban from any sort of public interaction within the community. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC]. For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations]. [homepage]: https://www.contributor-covenant.org [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html [Mozilla CoC]: https://github.com/mozilla/diversity [FAQ]: https://www.contributor-covenant.org/faq [translations]: https://www.contributor-covenant.org/translations ================================================ FILE: .github/CONTRIBUTING.md ================================================ # Contributing to `usehooks-ts` Thanks for wanting to contribute! It's more than welcome 🤗 As the creators and maintainers of this project, we want to ensure that `usehooks-ts` lives and continues to grow and evolve. We would like to encourage everyone to help and support this library by contributing ## Ways to contribute 1. **Replying and handling open issues or discussions.** We get some issues and discussions, and some of them may lack necessary information. You can help out by guiding people through the process of filling out the issue template, asking for clarifying information, or pointing them to existing issues that match their description of the problem. 2. **Reviewing pull requests.** Pull requests (PRs) are essential for introducing new features, fixing bugs, and improving the overall quality of the codebase. As a reviewer, your role is crucial in ensuring that each PR meets the project's standards and goals. Here are some key aspects to consider when reviewing pull requests: - **Code Quality**: Examine the changes for readability, maintainability, and adherence to coding standards. Look for any potential code smells, redundant code, or opportunities for optimization. - **Functionality**: Test the changes locally if possible to verify that they work as intended. Check if the new feature functions correctly and if the bug fixes address the reported issues. - **Compatibility**: Ensure that the changes don't introduce breaking changes or compatibility issues with existing functionality. Consider how the changes may impact other parts of the codebase and any dependent projects. - **Documentation**: Confirm that the PR includes any necessary updates to documentation, including code comments, README files, changesets, or API references. - **Testing**: Assess whether the PR includes sufficient unit tests to cover the modified code. If necessary, suggest additional test cases or improvements to the testing strategy. - **Feedback**: Provide constructive feedback to the contributor, highlighting areas for improvement and praising positive aspects of the contribution. Encourage collaboration and discussion to address any concerns or questions. Your thorough review helps maintain the quality and stability of the project. Remember to be respectful and supportive in your feedback, fostering a positive and inclusive community for contributors. 3. **Help people write unit-tests.** Some pull requests sent to the main repository may lack a proper test plan. These help reviewers understand how the change was tested, and can speed up the time it takes for a contribution to be accepted. 4. **Improving the documentation.** Reviewing documentation updates can be as simple as checking for spelling and grammar. If you encounter situations that can be explained better in the docs, click Edit at the top of most docs pages to get started with your own contribution. 5. **Contribute the to code.** Code-level contributions to `usehooks-ts` like creating or fixing a hook generally come in the form of pull requests. These are done by forking the repo and making changes locally explained below. ## Code contributions Here is a quick guide to doing code contributions to the library. 1. Make sure to have the right dependencies up-to-date: - `"node": ">=18.17.0"` - `"pnpm": "^8"` 2. Fork and clone the repo to your local machine: ```shellscript git clone https://github.com/YOUR_GITHUB_USERNAME/usehooks-ts.git ``` 3. Create a new branch from `master` with a meaningful name for a new feature or an issue you want to work on: ```shellscript git checkout -b your-meaningful-branch-name ``` 4. Install packages by running: ```shellscript pnpm install pnpm build ``` 5. If you want to create a new hook, use the generator: ```shellscript pnpm gen-hook ``` 6. Ensure your code lints without errors and the test suite still passes. ```shellscript pnpm build && pnpm lint && pnpm test ``` 7. Try to write some unit tests to cover as much of your code as possible. 8. Push your branch: `git push -u origin your-meaningful-branch-name` 9. Submit a pull request to the upstream `usehooks-ts` repository. 10. Choose a descriptive title and describe your changes briefly. ## Coding style Please follow the coding style of the project. `usehooks-ts` uses eslint and prettier. If possible, enable their respective plugins in your editor to get real-time feedback. The linting can be run manually with the following command: `pnpm lint` and `pnpm prettier`. ## License By contributing your code to the `usehooks-ts` GitHub repository, you agree to license your contribution under the [MIT license](https://github.com/juliencrn/usehooks-ts/blob/master/LICENSE). ## Contributors Big thanks go to all our contributors! [[Become a contributor](https://github.com/juliencrn/usehooks-ts/blob/master/.github/CONTRIBUTING.md)]
Julien
Julien

🖋 💻 🎨 🤔
a777med
a777med

💻
Nguyen Tien Dat
Nguyen Tien Dat

💻
Elias Cohenca
Elias Cohenca

🖋
João Deroldo
João Deroldo

🐛 💻
Nishit
Nishit

💻
Jon Koops
Jon Koops

💻
LoneRifle
LoneRifle

💻
Viktor
Viktor

🤔 🐛
Bruno Clermont
Bruno Clermont

💬
yoannesbourg
yoannesbourg

🤔
Strange2x
Strange2x

🤔
Jason Pickens
Jason Pickens

🐛
Sel-Vin Kuik
Sel-Vin Kuik

🐛
isaac
isaac

🐛
Bruno RZN
Bruno RZN

💻 👀
Nathan Manceaux-Panot
Nathan Manceaux-Panot

💻 👀
Dien Vu
Dien Vu

🤔
Oleg Kusov
Oleg Kusov

🤔
Matthew Guy
Matthew Guy

🤔
andrewbihl
andrewbihl

🐛
lancepollard
lancepollard

🐛
Mukul Bansal
Mukul Bansal

🐛
Jean-Luc Mongrain sur la Brosse
Jean-Luc Mongrain sur la Brosse

💻 🤔
Nic
Nic

🖋
Dan Wood
Dan Wood

💻
jo wendenbuerger
jo wendenbuerger

🐛
Andrew Nosenko
Andrew Nosenko

🐛
CharlieJhonSmith
CharlieJhonSmith

💻
Sullivan SENECHAL
Sullivan SENECHAL

🤔 🐛 💻
Jason Long
Jason Long

🐛
kxm766
kxm766

🐛
Quentin
Quentin

💻 🤔 🖋
Daniel Lazar
Daniel Lazar

💻 🐛
Mark Terrel
Mark Terrel

🐛 💻
Andreas Herd
Andreas Herd

🐛
Sonjoy Datta
Sonjoy Datta

💻
Ilya Belsky
Ilya Belsky

🐛
James Barrett
James Barrett

💻
AbbalYouness
AbbalYouness

💻
didriklind
didriklind

💻 ⚠️
hexp1989
hexp1989

💻
Alvaro Serrano
Alvaro Serrano

🖋
Egehan Dülger
Egehan Dülger

💻
PabloLION
PabloLION

🐛 💻
David Sanchez
David Sanchez

🐛
Ajay Raja
Ajay Raja

🐛
Andy Merskin
Andy Merskin

🤔
Avirup Ghosh
Avirup Ghosh

💻 🐛
Sanne Wintrén
Sanne Wintrén

🐛
Alessandro
Alessandro

🐛
Andrey Tatarenko
Andrey Tatarenko

🐛
Anton Rusak
Anton Rusak

🐛
Mahmood Bagheri
Mahmood Bagheri

💻
Anver Sadutt
Anver Sadutt

🖋
Bogdan Ailincai
Bogdan Ailincai

💻
Simeon Griggs
Simeon Griggs

🐛
Kepro
Kepro

🐛
Jake Lippert
Jake Lippert

🐛
Tu Nguyen Anh
Tu Nguyen Anh

🐛 💻
Luke Shiels
Luke Shiels

🐛
Sergei Kolyago
Sergei Kolyago

🤔
Adham Akmal Azmi
Adham Akmal Azmi

🐛
Alek Kowalczyk
Alek Kowalczyk

🐛
Sean Callahan
Sean Callahan

🐛
Joshua Bean
Joshua Bean

💻 🐛
Tim Zhao
Tim Zhao

🐛
Patrick
Patrick

🐛
Bryce Dorn
Bryce Dorn

💻
angusd3v
angusd3v

💻
Davide Di Simone
Davide Di Simone

🐛
Jack Herrington
Jack Herrington

🐛
Avi Sharvit
Avi Sharvit

💻 🐛
Nicolae Maties
Nicolae Maties

🐛
Shardul Aeer
Shardul Aeer

🐛
Herlon Aguiar
Herlon Aguiar

🐛
Alexis Oney
Alexis Oney

🖋
curtvict
curtvict

💻
Josué Cortina
Josué Cortina

🖋
Alex / KATT
Alex / KATT

💻
Mourad EL CADI
Mourad EL CADI

💻 🐛
James Hulena
James Hulena

🐛
Matthew Hailwood
Matthew Hailwood

💻 👀
Michael Norrie
Michael Norrie

🐛
Valentin Politov
Valentin Politov

💻
Marnus Weststrate
Marnus Weststrate

💻
mancuoj
mancuoj

🖋
Chat Sumlin
Chat Sumlin

💻
Owen Haupt
Owen Haupt

🐛 🖋
ubarbaxor
ubarbaxor

💻
Michael Mior
Michael Mior

🐛 🖋
Pierre
Pierre

💻
Harry B
Harry B

🐛
Valerie
Valerie

🐛 💻
Steven Vachon
Steven Vachon

💻
Sean Kirby
Sean Kirby

⚠️ 💻
Alecsander Farias
Alecsander Farias

💻
Rahul Mishra
Rahul Mishra

💻 👀 🖋
Bryant Smith
Bryant Smith

💻 🐛
Rob Hannay
Rob Hannay

💻
Hooriza
Hooriza

💻 🐛
ShanSenanayake
ShanSenanayake

💻
Philip Ghering
Philip Ghering

💻
Ladislas Dellinger
Ladislas Dellinger

💻
Haff
Haff

💻
Lisandro
Lisandro

💻
Amir hossein rezaei
Amir hossein rezaei

💻
Nicolas Macian
Nicolas Macian

🐛 💻
Nate Forsyth
Nate Forsyth

💻
satelllte
satelllte

💻 🐛
Federico Panico
Federico Panico

💻
William Pei Yuan
William Pei Yuan

💻
Mihai
Mihai

💻 🐛
Habib Ogunsola
Habib Ogunsola

🖋
Ash Furrow
Ash Furrow

💻
Daniel Turuș
Daniel Turuș

💻
Rahul Chaudhary
Rahul Chaudhary

🖋 🐛
Joshua Ojoawo
Joshua Ojoawo

🤔 🐛
Jack
Jack

💻
Jon Linkens
Jon Linkens

💻 🐛
Jeongjin Oh
Jeongjin Oh

🐛
Tianning Li
Tianning Li

💻
Lars Artmann
Lars Artmann

🖋
KBobovskiy
KBobovskiy

💻
✨ Kathryn Gonzalez ✨
✨ Kathryn Gonzalez ✨

🖋
Yaroslav Chapelskyi
Yaroslav Chapelskyi

🖋
Samuel Van Erps
Samuel Van Erps

👀
ojolowoblue
ojolowoblue

🖋
Andrii Kostenko
Andrii Kostenko

💻
Akeem Allen
Akeem Allen

💻 🐛
trongbinhnguyen
trongbinhnguyen

🖋
Aniruddha Sil
Aniruddha Sil

💻
박찬혁
박찬혁

👀
Anish
Anish

💻
Hugo Hutri
Hugo Hutri

🖋
Balz Guenat
Balz Guenat

💻
OtterGeorge
OtterGeorge

💻
Samay Sagar
Samay Sagar

🖋
Pedro Lisboa
Pedro Lisboa

🐛
Henrique Malheiros
Henrique Malheiros

🐛
Kevin Newman
Kevin Newman

💻
a503189
a503189

🖋
Mourad EL CADI
Mourad EL CADI

💻
Pedro Henrique Lopes
Pedro Henrique Lopes

💻
Danbi Lee
Danbi Lee

💻
Connor Jennings
Connor Jennings

💻
Lucas Gomes
Lucas Gomes

🐛 💻
Martin Zagora
Martin Zagora

💻
KvD
KvD

💻
Alex
Alex

💻
Kacey Cleveland
Kacey Cleveland

👀
Avirup Ghosh
Avirup Ghosh

🐛
yabbal
yabbal

💻
Craig Patik
Craig Patik

🐛
Soldeplata Saketos Candela
Soldeplata Saketos Candela

💻
TENDOUZHI
TENDOUZHI

🐛
Marcin Wachulski
Marcin Wachulski

🐛
Salman Fazal
Salman Fazal

🐛
shrugs
shrugs

🐛
hyodori
hyodori

🐛
Eleazar “E” Ramos
Eleazar “E” Ramos

🐛
retnag
retnag

🐛
J young Lee
J young Lee

🐛
Filip Weiss
Filip Weiss

🐛
Marius Gundersen
Marius Gundersen

🐛
Syed Aman Ali
Syed Aman Ali

🐛
Axel Ingadi
Axel Ingadi

🐛
AndyP
AndyP

🐛
ishanVaghasiya
ishanVaghasiya

🐛
Nico Martinucci
Nico Martinucci

🐛
Shiv Bhonde | shivbhonde.eth
Shiv Bhonde | shivbhonde.eth

🐛
fritzmonkey
fritzmonkey

🐛
Rodrigo Mesquita
Rodrigo Mesquita

🐛
Moshe Simantov
Moshe Simantov

🐛
Beka
Beka

🐛
Abdallah Alkaser
Abdallah Alkaser

🐛 💻
Carl Smith
Carl Smith

🐛
Orlando Groppo
Orlando Groppo

🐛
Martijn Saly
Martijn Saly

🐛
Quinn Shanahan
Quinn Shanahan

🐛
Antoine Kingue
Antoine Kingue

🐛
Žan Žlender
Žan Žlender

🐛
Sebastian Dominguez
Sebastian Dominguez

🐛
James Cowan
James Cowan

🐛
Bayram Ali Basgul
Bayram Ali Basgul

🐛
Wyatt Castaneda
Wyatt Castaneda

🐛
Tim Neville
Tim Neville

🐛
Thomas Pigarelli
Thomas Pigarelli

🐛
James Herdman
James Herdman

🐛
Grzegorz Pociejewski
Grzegorz Pociejewski

🐛
René Verheij
René Verheij

🐛
PatrykKuniczak
PatrykKuniczak

🐛
Paolo Božac
Paolo Božac

🐛
Rein
Rein

🐛
FloorianB
FloorianB

🐛
Xuan Hung
Xuan Hung

🐛
Monawwar Abdullah
Monawwar Abdullah

🐛
Haroldo de Oliveira Pinheiro
Haroldo de Oliveira Pinheiro

🐛
Tamjid Ahmed
Tamjid Ahmed

🐛
jv-lopez
jv-lopez

🐛
Callum Macrae
Callum Macrae

🐛
bywater529
bywater529

🐛
Kevin He
Kevin He

🐛
FredericoGauz
FredericoGauz

🐛
Jonathan "JonLem" Lemos
Jonathan "JonLem" Lemos

🐛
Xegulon
Xegulon

🐛
Tom Smedley
Tom Smedley

🐛
lightbluepoppy
lightbluepoppy

🐛
Derek Oware
Derek Oware

🐛
Lance Gliser
Lance Gliser

🐛
J. Lewis
J. Lewis

🐛
Yair
Yair

🐛
Nishchit
Nishchit

🐛
Devofy
Devofy

🐛
Josh Guyette
Josh Guyette

🐛
Dora Li
Dora Li

🐛
Kristian Gerardsson
Kristian Gerardsson

🐛
James Powell
James Powell

🐛
Boaz Poolman
Boaz Poolman

🐛
roker15
roker15

🐛
Fadhil Ahmad
Fadhil Ahmad

🐛
Chandler-Zhu
Chandler-Zhu

🐛
Nghi Nguyen
Nghi Nguyen

🐛
Shravan Sunder
Shravan Sunder

🐛
Johannes5
Johannes5

🐛
sebahhpeya
sebahhpeya

🐛
Or Nakash
Or Nakash

🐛
Erez Makavy
Erez Makavy

🐛
Andy Merskin
Andy Merskin

🐛
ChainAlert Bot
ChainAlert Bot

🐛
Taylor Morgan
Taylor Morgan

🐛
wisdomabioye
wisdomabioye

🐛
Samuel Quiñones
Samuel Quiñones

🤔
Manuel
Manuel

💻 🐛
Yurii Rybak
Yurii Rybak

🐛
Yury Demin
Yury Demin

🐛 💻
Jon Tewksbury
Jon Tewksbury

💻 🐛
Novac Denis
Novac Denis

💻 🐛
kyrylo-soulandwolf
kyrylo-soulandwolf

💻 🐛
Miguel Isidoro
Miguel Isidoro

💻
Yuriy Gromchenko
Yuriy Gromchenko

💻
Jacob Hummer
Jacob Hummer

🤔
Kyrylo Melnychuk
Kyrylo Melnychuk

🖋 💻
Luma
Luma

💻
Eliya Cohen
Eliya Cohen

💻
Igor Sukharev
Igor Sukharev

🐛
pookmish
pookmish

🤔
metav-drimz
metav-drimz

🤔
luckrnx09
luckrnx09

💻
Hubert Kuczmierczyk
Hubert Kuczmierczyk

🤔 👀
dandubya
dandubya

📖
Darwish
Darwish

💻
Jonathan Raoult
Jonathan Raoult

🐛 👀
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification ([emoji key](https://allcontributors.org/docs/en/emoji-key)). Contributions of any kind welcome! ================================================ FILE: .github/FUNDING.yml ================================================ # These are supported funding model platforms github: [juliencrn] # patreon: # Replace with a single Patreon username # open_collective: #usehooks-ts # Replace with a single Open Collective username # ko_fi: # Replace with a single Ko-fi username # tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel # community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry # liberapay: # Replace with a single Liberapay username # issuehunt: # Replace with a single IssueHunt username # otechie: # Replace with a single Otechie username # lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry custom: [ "https://juliencaron.com/donate", "https://www.paypal.com/paypalme/juliencrn", "https://buy.stripe.com/fZefZY8Bv32cg9O3cc", "https://www.buymeacoffee.com/juliencrn" ] ================================================ FILE: .github/ISSUE_TEMPLATE/bug-report.yml ================================================ name: 'Bug report 🐞' description: >- Create a report to help us improve title: '[BUG]' labels: - bug body: - type: textarea id: describe_bug attributes: label: Describe the bug description: A clear and concise description of what the bug is. Include any error messages or unexpected behaviors. validations: required: true - type: textarea id: reproduce_steps attributes: label: To Reproduce description: Outline the steps to reproduce the issue. Be specific and include details like browser, OS, or any relevant configurations. validations: required: true - type: textarea id: expected_behavior attributes: label: Expected behavior description: Explain what you expected to happen. validations: required: true - type: textarea id: additional_context attributes: label: Additional context description: Include any other relevant information that might help understand the issue. ================================================ FILE: .github/ISSUE_TEMPLATE/config.yml ================================================ blank_issues_enabled: false contact_links: - name: View documentation 📚 url: https://usehooks-ts.com/ about: Check out the official docs for answers to common questions. - name: Feature requests 💡 url: https://github.com/juliencrn/usehooks-ts/discussions/categories/ideas about: Suggest a new React hook idea. - name: Questions 💭 url: https://github.com/juliencrn/usehooks-ts/discussions/categories/help about: Need support with a React hook problem? Open up a help request. - name: Donate ❤️ url: https://github.com/sponsors/juliencrn about: Love usehooks-ts? Show your support by donating today! ================================================ FILE: .github/ISSUE_TEMPLATE/update-docs.yml ================================================ name: Update docs ✍️ description: >- Find a mistake in our documentation, or have a suggestion to improve them? Let us know here. labels: - documentation body: - type: textarea id: description attributes: label: Describe the problem description: A clear and concise description of what is wrong in the documentation or what you would like to improve. Please include URLs to the pages you're referring to. validations: required: true - type: textarea id: context attributes: label: Additional context description: Add any other context about the problem here. ================================================ FILE: .github/workflows/ci.yml ================================================ name: Build and test on: push: branches: - 'master' pull_request: env: NODE_VERSION: 20 PNPM_VERSION: 8 jobs: test: runs-on: ubuntu-latest timeout-minutes: 15 steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 2 - name: Setup Pnpm uses: pnpm/action-setup@v3 with: version: ${{ env.PNPM_VERSION }} - name: Setup Node.js environment uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} cache: 'pnpm' cache-dependency-path: '**/pnpm-lock.yaml' - name: Install dependencies run: pnpm install --frozen-lockfile - name: Build run: pnpm build - name: Lint run: pnpm lint - name: Test run: pnpm test ================================================ FILE: .github/workflows/update-algolia-index.yml ================================================ name: Update Algolia index on: push: branches: - master env: NODE_VERSION: 20 PNPM_VERSION: 8 jobs: run: runs-on: ubuntu-latest timeout-minutes: 15 steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 2 - name: Setup Pnpm uses: pnpm/action-setup@v3 with: version: ${{ env.PNPM_VERSION }} - name: Setup Node.js environment uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} cache: 'pnpm' cache-dependency-path: '**/pnpm-lock.yaml' - name: Install dependencies run: pnpm install --frozen-lockfile - name: Build run: pnpm build - name: Generate documentation from JSDoc run: pnpm generate-doc - name: Update Algolia index env: ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }} run: pnpm update-algolia-index ================================================ FILE: .gitignore ================================================ node_modules # Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* npm-debug.log* *.tsbuildinfo # Cache .npm .cache .eslintcache .turbo # Compiled stuff dist generated # Coverage coverage # dotenv environment variable files .env* !.env.example # Output of 'npm pack' *.tgz # Mac files .DS_Store # Local Netlify folder .netlify ================================================ FILE: .prettierignore ================================================ node_modules templates dist .turbo public .cache pnpm-lock.yaml .changeset .github apps/www/.next ================================================ FILE: .prettierrc ================================================ { "arrowParens": "avoid", "semi": false, "printWidth": 80, "singleQuote": true, "tabWidth": 2, "trailingComma": "all" } ================================================ FILE: .vscode/settings.json ================================================ { "editor.formatOnSave": true, "editor.tabSize": 2, "files.encoding": "utf8", "files.trimTrailingWhitespace": true, "files.insertFinalNewline": true, "search.exclude": { "public/**": true, "node_modules/**": true, "coverage/**": true, "dist/**": true, "generated/**": true, ".cache/**": true, ".git/**": true, "**/package-lock.json": true, "**/pnpm-lock.yaml": true }, "eslint.validate": [ "javascript", "javascriptreact", "typescript", "typescriptreact" ], "eslint.format.enable": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", "source.fixAll": "explicit" }, "editor.defaultFormatter": "esbenp.prettier-vscode", "cSpell.words": [ "algolia", "clsx", "cmdk", "contentlayer", "fira", "frontmatter", "gtag", "juliencrn", "lucide", "nextjs", "okaidia", "prismjs", "rehype", "tailwindcss", "UMAMI", "usehooks" ], "eslint.workingDirectories": [ { "directory": "apps/www", "changeProcessCWD": true }, { "directory": "packages/eslint-config-custom", "changeProcessCWD": true }, { "directory": "packages/usehooks-ts", "changeProcessCWD": true } ], "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "[typescriptreact]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "files.associations": { "*.json": "jsonc" } } ================================================ FILE: LICENSE ================================================ The MIT License (MIT) Copyright (c) 2020 Julien CARON Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ usehooks-ts banner

usehooks-ts

React hook library, ready to use, written in Typescript.

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md) ![NPM Downloads](https://img.shields.io/npm/dm/usehooks-ts) ![NPM Downloads](https://img.shields.io/npm/dt/usehooks-ts) [![License](https://badgen.net/badge/License/MIT/blue)](https://github.com/juliencrn/usehooks-ts/blob/master/LICENSE) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/usehooks-ts) ![npm](https://img.shields.io/npm/v/usehooks-ts) [![All Contributors](https://img.shields.io/badge/all_contributors-253-orange.svg?style=flat-square)](#contributors-)
npm i usehooks-ts

Created by Julien Caron and maintained with ❤️ by an amazing team of developers.

## 💫 Introduction useHooks(🔥).ts is a React hooks library, written in Typescript and easy to use. It provides a set of hooks that enables you to build your React applications faster. The hooks are built upon the principles of DRY (Don't Repeat Yourself). There are hooks for most common use cases you might need. The library is designed to be as minimal as possible. It is fully tree-shakable (using the ESM version), meaning that you only import the hooks you need, and the rest will be removed from your bundle making the cost of using this library negligible. Most hooks are extensively tested and are being used in production environments. ### Usage example ```tsx import { useLocalStorage } from 'usehooks-ts' function Component() { const [value, setValue] = useLocalStorage('my-localStorage-key', 0) // ... } ``` ## 🪝 Available Hooks - [`useBoolean`](https://usehooks-ts.com/react-hook/use-boolean) — handles boolean state with useful utility functions. - [`useClickAnyWhere`](https://usehooks-ts.com/react-hook/use-click-any-where) — handles click events anywhere on the document. - [`useCopyToClipboard`](https://usehooks-ts.com/react-hook/use-copy-to-clipboard) — copies text to the clipboard using the [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API). - [`useCountdown`](https://usehooks-ts.com/react-hook/use-countdown) — manages countdown. - [`useCounter`](https://usehooks-ts.com/react-hook/use-counter) — manages a counter with increment, decrement, reset, and setCount functionalities. - [`useDarkMode`](https://usehooks-ts.com/react-hook/use-dark-mode) — returns the current state of the dark mode. - [`useDebounceCallback`](https://usehooks-ts.com/react-hook/use-debounce-callback) — creates a debounced version of a callback function. - [`useDebounceValue`](https://usehooks-ts.com/react-hook/use-debounce-value) — returns a debounced version of the provided value, along with a function to update it. - [`useDocumentTitle`](https://usehooks-ts.com/react-hook/use-document-title) — sets the document title. - [`useEventCallback`](https://usehooks-ts.com/react-hook/use-event-callback) — creates a memoized event callback. - [`useEventListener`](https://usehooks-ts.com/react-hook/use-event-listener) — attaches event listeners to DOM elements, the window, or media query lists. - [`useHover`](https://usehooks-ts.com/react-hook/use-hover) — tracks whether a DOM element is being hovered over. - [`useIntersectionObserver`](https://usehooks-ts.com/react-hook/use-intersection-observer) — tracks the intersection of a DOM element with its containing element or the viewport using the [Intersection Observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API). - [`useInterval`](https://usehooks-ts.com/react-hook/use-interval) — creates an interval that invokes a callback function at a specified delay using the [setInterval API](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval). - [`useIsClient`](https://usehooks-ts.com/react-hook/use-is-client) — determines if the code is running on the client side (in the browser). - [`useIsMounted`](https://usehooks-ts.com/react-hook/use-is-mounted) — determines if the component is currently mounted. - [`useIsomorphicLayoutEffect`](https://usehooks-ts.com/react-hook/use-isomorphic-layout-effect) — uses either useLayoutEffect or useEffect based on the environment (client-side or server-side). - [`useLocalStorage`](https://usehooks-ts.com/react-hook/use-local-storage) — uses the [localStorage API](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) to persist state across page reloads. - [`useMap`](https://usehooks-ts.com/react-hook/use-map) — manages a key-value [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) state with setter actions. - [`useMediaQuery`](https://usehooks-ts.com/react-hook/use-media-query) — tracks the state of a media query using the [Match Media API](https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia). - [`useOnClickOutside`](https://usehooks-ts.com/react-hook/use-on-click-outside) — handles clicks outside a specified element. - [`useReadLocalStorage`](https://usehooks-ts.com/react-hook/use-read-local-storage) — reads a value from [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage), closely related to [useLocalStorage()](https://usehooks-ts.com/react-hook/use-local-storage). - [`useResizeObserver`](https://usehooks-ts.com/react-hook/use-resize-observer) — observes the size of an element using the [ResizeObserver API](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver). - [`useScreen`](https://usehooks-ts.com/react-hook/use-screen) — tracks the [screen](https://developer.mozilla.org/en-US/docs/Web/API/Window/screen) dimensions and properties. - [`useScript`](https://usehooks-ts.com/react-hook/use-script) — dynamically loads scripts and tracking their loading status. - [`useScrollLock`](https://usehooks-ts.com/react-hook/use-scroll-lock) — A custom hook that locks and unlocks scroll. - [`useSessionStorage`](https://usehooks-ts.com/react-hook/use-session-storage) — uses the [sessionStorage API](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage) to persist state across page reloads. - [`useStep`](https://usehooks-ts.com/react-hook/use-step) — manages and navigates between steps in a multi-step process. - [`useTernaryDarkMode`](https://usehooks-ts.com/react-hook/use-ternary-dark-mode) — manages ternary (system, dark, light) dark mode with local storage support. - [`useTimeout`](https://usehooks-ts.com/react-hook/use-timeout) — handles timeouts in React components using the [setTimeout API](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout). - [`useToggle`](https://usehooks-ts.com/react-hook/use-toggle) — manages a boolean toggle state in React components. - [`useUnmount`](https://usehooks-ts.com/react-hook/use-unmount) — runs a cleanup function when the component is unmounted. - [`useWindowSize`](https://usehooks-ts.com/react-hook/use-window-size) — tracks the size of the window. ## 💚 Backers Big thanks go to all our backers! [[Become a backer](https://github.com/sponsors/juliencrn)]
Sentry
Sentry
KATT
KATT
Adhi Ravishankar
Adhi Ravishankar
great-work-told-is
great-work-told-is
## ✨ Contributors Big thanks go to all our contributors! [[Become a contributor](https://github.com/juliencrn/usehooks-ts/blob/master/.github/CONTRIBUTING.md)]
Julien
Julien

🖋 💻 🎨 🤔
a777med
a777med

💻
Nguyen Tien Dat
Nguyen Tien Dat

💻
Elias Cohenca
Elias Cohenca

🖋
João Deroldo
João Deroldo

🐛 💻
Nishit
Nishit

💻
Jon Koops
Jon Koops

💻
LoneRifle
LoneRifle

💻
Viktor
Viktor

🤔 🐛
Bruno Clermont
Bruno Clermont

💬
yoannesbourg
yoannesbourg

🤔
Strange2x
Strange2x

🤔
Jason Pickens
Jason Pickens

🐛
Sel-Vin Kuik
Sel-Vin Kuik

🐛
isaac
isaac

🐛
Bruno RZN
Bruno RZN

💻 👀
Nathan Manceaux-Panot
Nathan Manceaux-Panot

💻 👀
Dien Vu
Dien Vu

🤔
Oleg Kusov
Oleg Kusov

🤔
Matthew Guy
Matthew Guy

🤔
andrewbihl
andrewbihl

🐛
lancepollard
lancepollard

🐛
Mukul Bansal
Mukul Bansal

🐛
Jean-Luc Mongrain sur la Brosse
Jean-Luc Mongrain sur la Brosse

💻 🤔
Nic
Nic

🖋
Dan Wood
Dan Wood

💻
jo wendenbuerger
jo wendenbuerger

🐛
Andrew Nosenko
Andrew Nosenko

🐛
CharlieJhonSmith
CharlieJhonSmith

💻
Sullivan SENECHAL
Sullivan SENECHAL

🤔 🐛 💻
Jason Long
Jason Long

🐛
kxm766
kxm766

🐛
Quentin
Quentin

💻 🤔 🖋
Daniel Lazar
Daniel Lazar

💻 🐛
Mark Terrel
Mark Terrel

🐛 💻
Andreas Herd
Andreas Herd

🐛
Sonjoy Datta
Sonjoy Datta

💻
Ilya Belsky
Ilya Belsky

🐛
James Barrett
James Barrett

💻
AbbalYouness
AbbalYouness

💻
didriklind
didriklind

💻 ⚠️
hexp1989
hexp1989

💻
Alvaro Serrano
Alvaro Serrano

🖋
Egehan Dülger
Egehan Dülger

💻
PabloLION
PabloLION

🐛 💻
David Sanchez
David Sanchez

🐛
Ajay Raja
Ajay Raja

🐛
Andy Merskin
Andy Merskin

🤔
Avirup Ghosh
Avirup Ghosh

💻 🐛
Sanne Wintrén
Sanne Wintrén

🐛
Alessandro
Alessandro

🐛
Andrey Tatarenko
Andrey Tatarenko

🐛
Anton Rusak
Anton Rusak

🐛
Mahmood Bagheri
Mahmood Bagheri

💻
Anver Sadutt
Anver Sadutt

🖋
Bogdan Ailincai
Bogdan Ailincai

💻
Simeon Griggs
Simeon Griggs

🐛
Kepro
Kepro

🐛
Jake Lippert
Jake Lippert

🐛
Tu Nguyen Anh
Tu Nguyen Anh

🐛 💻
Luke Shiels
Luke Shiels

🐛
Sergei Kolyago
Sergei Kolyago

🤔
Adham Akmal Azmi
Adham Akmal Azmi

🐛
Alek Kowalczyk
Alek Kowalczyk

🐛
Sean Callahan
Sean Callahan

🐛
Joshua Bean
Joshua Bean

💻 🐛
Tim Zhao
Tim Zhao

🐛
Patrick
Patrick

🐛
Bryce Dorn
Bryce Dorn

💻
angusd3v
angusd3v

💻
Davide Di Simone
Davide Di Simone

🐛
Jack Herrington
Jack Herrington

🐛
Avi Sharvit
Avi Sharvit

💻 🐛
Nicolae Maties
Nicolae Maties

🐛
Shardul Aeer
Shardul Aeer

🐛
Herlon Aguiar
Herlon Aguiar

🐛
Alexis Oney
Alexis Oney

🖋
curtvict
curtvict

💻
Josué Cortina
Josué Cortina

🖋
Alex / KATT
Alex / KATT

💻
Mourad EL CADI
Mourad EL CADI

💻 🐛
James Hulena
James Hulena

🐛
Matthew Hailwood
Matthew Hailwood

💻 👀
Michael Norrie
Michael Norrie

🐛
Valentin Politov
Valentin Politov

💻
Marnus Weststrate
Marnus Weststrate

💻
mancuoj
mancuoj

🖋
Chat Sumlin
Chat Sumlin

💻
Owen Haupt
Owen Haupt

🐛 🖋
ubarbaxor
ubarbaxor

💻
Michael Mior
Michael Mior

🐛 🖋
Pierre
Pierre

💻
Harry B
Harry B

🐛
Valerie
Valerie

🐛 💻
Steven Vachon
Steven Vachon

💻
Sean Kirby
Sean Kirby

⚠️ 💻
Alecsander Farias
Alecsander Farias

💻
Rahul Mishra
Rahul Mishra

💻 👀 🖋
Bryant Smith
Bryant Smith

💻 🐛
Rob Hannay
Rob Hannay

💻
Hooriza
Hooriza

💻 🐛
ShanSenanayake
ShanSenanayake

💻
Philip Ghering
Philip Ghering

💻
Ladislas Dellinger
Ladislas Dellinger

💻
Haff
Haff

💻
Lisandro
Lisandro

💻
Amir hossein rezaei
Amir hossein rezaei

💻
Nicolas Macian
Nicolas Macian

🐛 💻
Nate Forsyth
Nate Forsyth

💻
satelllte
satelllte

💻 🐛
Federico Panico
Federico Panico

💻
William Pei Yuan
William Pei Yuan

💻
Mihai
Mihai

💻 🐛
Habib Ogunsola
Habib Ogunsola

🖋
Ash Furrow
Ash Furrow

💻
Daniel Turuș
Daniel Turuș

💻
Rahul Chaudhary
Rahul Chaudhary

🖋 🐛
Joshua Ojoawo
Joshua Ojoawo

🤔 🐛
Jack
Jack

💻
Jon Linkens
Jon Linkens

💻 🐛
Jeongjin Oh
Jeongjin Oh

🐛
Tianning Li
Tianning Li

💻
Lars Artmann
Lars Artmann

🖋
KBobovskiy
KBobovskiy

💻
✨ Kathryn Gonzalez ✨
✨ Kathryn Gonzalez ✨

🖋
Yaroslav Chapelskyi
Yaroslav Chapelskyi

🖋
Samuel Van Erps
Samuel Van Erps

👀
ojolowoblue
ojolowoblue

🖋
Andrii Kostenko
Andrii Kostenko

💻
Akeem Allen
Akeem Allen

💻 🐛
trongbinhnguyen
trongbinhnguyen

🖋
Aniruddha Sil
Aniruddha Sil

💻
박찬혁
박찬혁

👀
Anish
Anish

💻
Hugo Hutri
Hugo Hutri

🖋
Balz Guenat
Balz Guenat

💻
OtterGeorge
OtterGeorge

💻
Samay Sagar
Samay Sagar

🖋
Pedro Lisboa
Pedro Lisboa

🐛
Henrique Malheiros
Henrique Malheiros

🐛
Kevin Newman
Kevin Newman

💻
a503189
a503189

🖋
Mourad EL CADI
Mourad EL CADI

💻
Pedro Henrique Lopes
Pedro Henrique Lopes

💻
Danbi Lee
Danbi Lee

💻
Connor Jennings
Connor Jennings

💻
Lucas Gomes
Lucas Gomes

🐛 💻
Martin Zagora
Martin Zagora

💻
KvD
KvD

💻
Alex
Alex

💻
Kacey Cleveland
Kacey Cleveland

👀
Avirup Ghosh
Avirup Ghosh

🐛
yabbal
yabbal

💻
Craig Patik
Craig Patik

🐛
Soldeplata Saketos Candela
Soldeplata Saketos Candela

💻
TENDOUZHI
TENDOUZHI

🐛
Marcin Wachulski
Marcin Wachulski

🐛
Salman Fazal
Salman Fazal

🐛
shrugs
shrugs

🐛
hyodori
hyodori

🐛
Eleazar “E” Ramos
Eleazar “E” Ramos

🐛
retnag
retnag

🐛
J young Lee
J young Lee

🐛
Filip Weiss
Filip Weiss

🐛
Marius Gundersen
Marius Gundersen

🐛
Syed Aman Ali
Syed Aman Ali

🐛
Axel Ingadi
Axel Ingadi

🐛
AndyP
AndyP

🐛
ishanVaghasiya
ishanVaghasiya

🐛
Nico Martinucci
Nico Martinucci

🐛
Shiv Bhonde | shivbhonde.eth
Shiv Bhonde | shivbhonde.eth

🐛
fritzmonkey
fritzmonkey

🐛
Rodrigo Mesquita
Rodrigo Mesquita

🐛
Moshe Simantov
Moshe Simantov

🐛
Beka
Beka

🐛
Abdallah Alkaser
Abdallah Alkaser

🐛 💻
Carl Smith
Carl Smith

🐛
Orlando Groppo
Orlando Groppo

🐛
Martijn Saly
Martijn Saly

🐛
Quinn Shanahan
Quinn Shanahan

🐛
Antoine Kingue
Antoine Kingue

🐛
Žan Žlender
Žan Žlender

🐛
Sebastian Dominguez
Sebastian Dominguez

🐛
James Cowan
James Cowan

🐛
Bayram Ali Basgul
Bayram Ali Basgul

🐛
Wyatt Castaneda
Wyatt Castaneda

🐛
Tim Neville
Tim Neville

🐛
Thomas Pigarelli
Thomas Pigarelli

🐛
James Herdman
James Herdman

🐛
Grzegorz Pociejewski
Grzegorz Pociejewski

🐛
René Verheij
René Verheij

🐛
PatrykKuniczak
PatrykKuniczak

🐛
Paolo Božac
Paolo Božac

🐛
Rein
Rein

🐛
FloorianB
FloorianB

🐛
Xuan Hung
Xuan Hung

🐛
Monawwar Abdullah
Monawwar Abdullah

🐛
Haroldo de Oliveira Pinheiro
Haroldo de Oliveira Pinheiro

🐛
Tamjid Ahmed
Tamjid Ahmed

🐛
jv-lopez
jv-lopez

🐛
Callum Macrae
Callum Macrae

🐛
bywater529
bywater529

🐛
Kevin He
Kevin He

🐛
FredericoGauz
FredericoGauz

🐛
Jonathan "JonLem" Lemos
Jonathan "JonLem" Lemos

🐛
Xegulon
Xegulon

🐛
Tom Smedley
Tom Smedley

🐛
lightbluepoppy
lightbluepoppy

🐛
Derek Oware
Derek Oware

🐛
Lance Gliser
Lance Gliser

🐛
J. Lewis
J. Lewis

🐛
Yair
Yair

🐛
Nishchit
Nishchit

🐛
Devofy
Devofy

🐛
Josh Guyette
Josh Guyette

🐛
Dora Li
Dora Li

🐛
Kristian Gerardsson
Kristian Gerardsson

🐛
James Powell
James Powell

🐛
Boaz Poolman
Boaz Poolman

🐛
roker15
roker15

🐛
Fadhil Ahmad
Fadhil Ahmad

🐛
Chandler-Zhu
Chandler-Zhu

🐛
Nghi Nguyen
Nghi Nguyen

🐛
Shravan Sunder
Shravan Sunder

🐛
Johannes5
Johannes5

🐛
sebahhpeya
sebahhpeya

🐛
Or Nakash
Or Nakash

🐛
Erez Makavy
Erez Makavy

🐛
Andy Merskin
Andy Merskin

🐛
ChainAlert Bot
ChainAlert Bot

🐛
Taylor Morgan
Taylor Morgan

🐛
wisdomabioye
wisdomabioye

🐛
Samuel Quiñones
Samuel Quiñones

🤔
Manuel
Manuel

💻 🐛
Yurii Rybak
Yurii Rybak

🐛
Yury Demin
Yury Demin

🐛 💻
Jon Tewksbury
Jon Tewksbury

💻 🐛
Novac Denis
Novac Denis

💻 🐛
kyrylo-soulandwolf
kyrylo-soulandwolf

💻 🐛
Miguel Isidoro
Miguel Isidoro

💻
Yuriy Gromchenko
Yuriy Gromchenko

💻
Jacob Hummer
Jacob Hummer

🤔
Kyrylo Melnychuk
Kyrylo Melnychuk

🖋 💻
Luma
Luma

💻
Eliya Cohen
Eliya Cohen

💻
Igor Sukharev
Igor Sukharev

🐛
pookmish
pookmish

🤔
metav-drimz
metav-drimz

🤔
luckrnx09
luckrnx09

💻
Hubert Kuczmierczyk
Hubert Kuczmierczyk

🤔 👀
dandubya
dandubya

📖
Darwish
Darwish

💻
Jonathan Raoult
Jonathan Raoult

🐛 👀
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification ([emoji key](https://allcontributors.org/docs/en/emoji-key)). Contributions of any kind welcome! ## 💞 Donate If you find this piece of software helpful, please consider a donation. Any amount is greatly appreciated. [![GitHub Sponsors](https://badgen.net/badge/GitHub%20Sponsors/Donate/blue)](https://github.com/sponsors/juliencrn) [![Paypal](https://badgen.net/badge/Paypal/Donate/blue)](https://www.paypal.com/paypalme/juliencrn) [![Stripe](https://badgen.net/badge/Stripe/Donate/blue)](https://buy.stripe.com/fZefZY8Bv32cg9O3cc) [![Buy me a coffee](https://badgen.net/badge/Buy%20me%20a%20coffee/Donate/blue)](https://www.buymeacoffee.com/juliencrn) BTC: `bc1qwys40tnd0lxf9lr9l0t6xc63dpxyucj4x4nay0` ETH: `0x36a85155a8300754C56395D5af24553FB18915D6` ## 📝 License This project is [MIT](https://github.com/juliencrn/usehooks-ts/blob/master/LICENSE) licensed. ================================================ FILE: apps/www/.eslintrc.cjs ================================================ module.exports = { extends: ['next/core-web-vitals', 'custom'], rules: { '@typescript-eslint/require-await': 'off', }, } ================================================ FILE: apps/www/.gitignore ================================================ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # dependencies /node_modules /.pnp .pnp.js # testing /coverage # generated /.next/ /out/ /build generated public/sitemap.xml public/robots.txt # misc .DS_Store *.pem # debug npm-debug.log* yarn-debug.log* yarn-error.log* # local env files .env*.local # vercel .vercel # typescript *.tsbuildinfo next-env.d.ts ================================================ FILE: apps/www/CHANGELOG.md ================================================ # www ## 1.0.4 ### Patch Changes - Updated dependencies [b1dffb9] - usehooks-ts@3.1.1 ## 1.0.3 ### Patch Changes - Updated dependencies [e62c41f] - Updated dependencies [90a33f5] - Updated dependencies [06dfd5e] - usehooks-ts@3.1.0 ## 1.0.2 ### Patch Changes - 4f40e02: Fix a link in migration docs - Updated dependencies [b14db5b] - Updated dependencies [59c0b93] - Updated dependencies [b14db5b] - Updated dependencies [b14db5b] - Updated dependencies [09341a3] - usehooks-ts@3.0.2 ## 1.0.1 ### Patch Changes - Updated dependencies - usehooks-ts@3.0.1 ## 1.0.0 ### Major Changes - a8e8968: Remove previously deprecated hooks and hooks' signatures (#503) - a8e8968: Move the full workspace into ES Module ### Minor Changes - a8e8968: Prefer type over interface (#515) ### Patch Changes - Updated dependencies [a8e8968] - Updated dependencies [a8e8968] - Updated dependencies [a8e8968] - Updated dependencies [a8e8968] - usehooks-ts@3.0.0 ## 0.2.4 ### Patch Changes - 0d99db9: chore(deps): update all non-major dependencies - Updated dependencies [d881f08] - Updated dependencies [fc25779] - Updated dependencies [9b65ce8] - Updated dependencies [d42741f] - Updated dependencies [d42741f] - Updated dependencies [d881f08] - Updated dependencies [0d99db9] - Updated dependencies [d881f08] - usehooks-ts@2.16.0 ## 0.2.3 ### Patch Changes - Updated dependencies [b88cc01] - Updated dependencies [823b62f] - usehooks-ts@2.15.1 ## 0.2.2 ### Patch Changes - 4456e32: chore: improve introduction page - Updated dependencies [649ef39] - Updated dependencies [649ef39] - Updated dependencies [6514683] - usehooks-ts@2.15.0 ## 0.2.1 ### Patch Changes - Updated dependencies [7d74e09] - Updated dependencies [2660580] - Updated dependencies [bc3f967] - Updated dependencies [d60f1c6] - usehooks-ts@2.14.0 ## 0.2.0 ### Minor Changes - b5b9e1f: chore: Updated dependencies - 4c8c330: various improvements to the site ### Patch Changes - bdf7bda: Add eslint rules to comply with verbatimModuleSyntax to avoid side-effects - Updated dependencies [87a5141] - Updated dependencies [b5b9e1f] - Updated dependencies [87ba579] - Updated dependencies [4146c39] - Updated dependencies [bdf7bda] - Updated dependencies [6b582de] - Updated dependencies [f39078f] - Updated dependencies [a444ba7] - Updated dependencies [e807ab3] - Updated dependencies [be8c35b] - usehooks-ts@2.13.0 ## 0.1.6 ### Patch Changes - Updated dependencies - usehooks-ts@2.12.1 ## 0.1.5 ### Patch Changes - Updated dependencies [cb6eb5c] - Updated dependencies [b8ee088] - usehooks-ts@2.12.0 ## 0.1.4 ### Patch Changes - add1431: Upgrade dependencies - 0321342: Make Typescript and typescript-eslint stricter - Updated dependencies [4a9fc88] - Updated dependencies [add1431] - Updated dependencies [add1431] - Updated dependencies [4a9fc88] - Updated dependencies [a192167] - Updated dependencies [0321342] - Updated dependencies [382161a] - Updated dependencies [5c210c1] - Updated dependencies [add1431] - Updated dependencies [add1431] - Updated dependencies [382161a] - Updated dependencies [a192167] - Updated dependencies [5c210c1] - Updated dependencies [0321342] - Updated dependencies [fc8a30e] - usehooks-ts@2.11.0 ## 0.1.3 ### Patch Changes - Updated dependencies [a816d6b] - Updated dependencies [42f3a3a] - Updated dependencies [9bc05f4] - Updated dependencies [4b3ed4e] - Updated dependencies [8f3c90f] - Updated dependencies [a3588b8] - Updated dependencies [c326dd3] - Updated dependencies [e8aa777] - Updated dependencies [c5ad2b9] - Updated dependencies [7406e3c] - Updated dependencies [ffe0f32] - Updated dependencies [ae47c9a] - Updated dependencies [771afa5] - usehooks-ts@2.10.0 ## 0.1.2 ### Patch Changes - 7141d01: Upgrade internal dependencies - Update useCopyToClipboard documentation - Fix typo in useEventListener - Updated dependencies [7141d01] - Updated dependencies - Updated dependencies - usehooks-ts@2.9.5 ## 0.1.1 ### Patch Changes - Updated dependencies - usehooks-ts@2.9.4 ================================================ FILE: apps/www/env.js ================================================ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ import { createEnv } from '@t3-oss/env-nextjs' import { z } from 'zod' export const env = createEnv({ server: {}, client: { NEXT_PUBLIC_GA_MEASUREMENT_ID: z.string().optional().default(''), NEXT_PUBLIC_ALGOLIA_APP_ID: z.string().optional().default(''), NEXT_PUBLIC_ALGOLIA_SEARCH_KEY: z.string().optional().default(''), NEXT_PUBLIC_UMAMI_WEBSITE_ID: z.string().optional().default(''), }, runtimeEnv: { NEXT_PUBLIC_GA_MEASUREMENT_ID: process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID, NEXT_PUBLIC_ALGOLIA_APP_ID: process.env.NEXT_PUBLIC_ALGOLIA_APP_ID, NEXT_PUBLIC_ALGOLIA_SEARCH_KEY: process.env.NEXT_PUBLIC_ALGOLIA_SEARCH_KEY, NEXT_PUBLIC_UMAMI_WEBSITE_ID: process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID, }, }) ================================================ FILE: apps/www/next-sitemap.config.js ================================================ /** * Generate sitemap.xml and robots.txt for all kind of pages * @doc https://www.npmjs.com/package/next-sitemap */ /** @type {import('next-sitemap').IConfig} */ const config = { siteUrl: 'https://usehooks-ts.com', changefreq: 'daily', priority: 0.7, generateIndexSitemap: false, generateRobotsTxt: true, robotsTxtOptions: { policies: [ { userAgent: '*', allow: '/', }, ], }, } export default config ================================================ FILE: apps/www/next.config.js ================================================ import './env.js' const deletedHooks = [ 'use-debounce', 'use-effect-once', 'use-element-size', 'use-fetch', 'use-image-on-load', 'use-is-first-render', 'use-locked-body', 'use-update-effect', ] /** @type {import('next').NextConfig} */ const nextConfig = { async redirects() { return deletedHooks.map(slug => ({ source: `/react-hook/${slug}`, destination: '/migrate-to-v3#removed-hooks', permanent: true, })) }, } export default nextConfig ================================================ FILE: apps/www/package.json ================================================ { "name": "www", "version": "1.0.4", "private": true, "type": "module", "scripts": { "dev": "next dev", "build": "pnpm generate-doc && next build && pnpm generate-sitemap", "generate-sitemap": "rimraf public/sitemap.xml public/robots.txt && next-sitemap --config ./next-sitemap.config.js", "start": "next start", "lint": "next lint && tsc --noEmit", "clean": "rimraf *.tsbuildinfo .next .turbo", "generate-doc": "cd ../.. && pnpm generate-doc && cd -" }, "dependencies": { "@next/third-parties": "^14.1.0", "@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-dropdown-menu": "^2.0.6", "@radix-ui/react-slot": "^1.0.2", "@t3-oss/env-nextjs": "^0.9.2", "@types/voca": "^1.4.1", "algoliasearch": "^4.22.1", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", "cmdk": "^1.0.0", "date-fns": "^3.3.1", "gray-matter": "^4.0.3", "lucide-react": "^0.364.0", "next": "14.1.4", "next-mdx-remote": "^4.4.1", "react": "18.2.0", "react-dom": "18.2.0", "react-instantsearch": "^7.6.0", "rehype-prism-plus": "^2.0.0", "remark-gfm": "^3.0.1", "schema-dts": "^1.1.2", "tailwind-merge": "^2.2.1", "tailwindcss": "3.4.3", "tailwindcss-animate": "^1.0.7", "usehooks-ts": "workspace:*", "voca": "^1.4.1", "zod": "^3.22.4" }, "devDependencies": { "@tailwindcss/line-clamp": "^0.4.4", "@tailwindcss/typography": "^0.5.10", "@types/node": "20.12.2", "@types/react": "18.2.73", "@types/react-dom": "18.2.23", "autoprefixer": "10.4.19", "eslint-config-custom": "workspace:*", "eslint-config-next": "14.1.4", "next-sitemap": "^4.2.3", "postcss": "8.4.38", "typescript": "5.4.3" } } ================================================ FILE: apps/www/postcss.config.cjs ================================================ module.exports = { plugins: { tailwindcss: {}, autoprefixer: {}, }, } ================================================ FILE: apps/www/public/site.webmanifest ================================================ {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} ================================================ FILE: apps/www/src/app/(docs)/introduction/page.tsx ================================================ import { CommandCopy } from '@/components/command-copy' import { PageHeader } from '@/components/docs/page-header' import { RightSidebar } from '@/components/docs/right-sidebar' import { components } from '@/components/ui/components' import { siteConfig } from '@/config/site' export default async function IntroductionPage() { return (
Introduction useHooks(🔥).ts is a React hooks library, written in Typescript and easy to use. It provides a set of hooks that enables you to build your React applications faster. The hooks are built upon the principles of{' '} DRY (Don't Repeat Yourself). There are hooks for most common use cases you might need. The library is designed to be as minimal as possible. It is fully tree-shakable (using the ESM version), meaning that you only import the hooks you need, and the rest will be removed from your bundle making the cost of using this library negligible. Most hooks are extensively tested and are being used in production environments. Install Get started installing{' '} usehooks-ts {' '} using your preferred package manager.
) } ================================================ FILE: apps/www/src/app/(docs)/layout.tsx ================================================ import Link from 'next/link' import { DocSearch } from '@/components/doc-search' import { LeftSidebar } from '@/components/docs/left-sidebar' import { MainNav } from '@/components/main-nav' import { GitHub } from '@/components/ui/icons' import { docsConfig } from '@/config/docs' import { siteConfig } from '@/config/site' import { getHookList } from '@/lib/api' type DocsLayoutProps = { children: React.ReactNode } export default async function DocsLayout({ children }: DocsLayoutProps) { const hooks = await getHookList() return ( <>
{children}
) } ================================================ FILE: apps/www/src/app/(docs)/migrate-to-v3/page.tsx ================================================ import { PageHeader } from '@/components/docs/page-header' import { RightSidebar } from '@/components/docs/right-sidebar' import { components } from '@/components/ui/components' export default async function MigrateToV3Page() { return (
Introduction usehooks-ts {` bumped to version 3 and it's a major release with a lot of changes and improvements.`} Changes Removed hooks Some hooks were removed from the library. The following hooks were removed: useDebounce: Replaced by both{' '} useDebounceValue {' '} and{' '} useDebounceCallback . useFetch {`: Prefer other solutions like React server components, your framework's data fetching solution, or a caching library like `} SWR or{' '} React Query . useElementSize: Replaced by more performant{' '} useResizeObserver . useLockedBody: Replaced by more generic{' '} useScrollLock . useIsFirstRender: Not comply with the React functional mindset. useSsr: It was not a React hook. useEffectOnce: Unnecessary abstraction, prefer built-in React hooks. useUpdateEffect: Unnecessary abstraction, prefer built-in React hooks. useImageOnLoad: Too opinionated. Updated hook signatures Some hook signature have been updated introducing breaking changes. useCountdown useDarkMode useIntersectionObserver useMediaQuery useTernaryDarkMode
) } ================================================ FILE: apps/www/src/app/(docs)/react-hook/[slug]/page.tsx ================================================ import type { Metadata } from 'next' import type { Article, WithContext } from 'schema-dts' import { PageHeader } from '@/components/docs/page-header' import { Pager } from '@/components/docs/pager' import { RightSidebar } from '@/components/docs/right-sidebar' import { siteConfig } from '@/config/site' import { getHook, getHookList } from '@/lib/api' export const generateStaticParams = async () => { const hooks = await getHookList() return hooks.map(hook => ({ slug: hook.slug })) } function stringifyDescription(description: string) { return description.replace(/\[([^\]]+)\]\([^)]+\)/g, '$1').replace(/`/g, '') } function getPostUrl(slug: string) { return `${siteConfig.url}/react-hook/${slug}` } function getImageUrl(name: string) { return `https://via.placeholder.com/1200x630.png/007ACC/fff/?text=${name}` } export const generateMetadata = async (props: { params: { slug: string } }): Promise => { const hooks = await getHookList() const hook = hooks.find(hook => hook.slug === props.params.slug) if (!hook) { return {} } const title = hook.name const description = stringifyDescription(hook.summary) const url = getPostUrl(hook.slug) const imageUrl = getImageUrl(title) return { title, description, openGraph: { title, description, type: 'article', url, images: [ { url: imageUrl, width: 1200, height: 630, alt: title, }, ], }, twitter: { card: 'summary_large_image', title, description, images: [imageUrl], }, } } export default async function HookPage({ params, }: { params: { slug: string } }) { const [{ frontmatter, content }, hookList] = await Promise.all([ getHook(params.slug), getHookList(), ]) const ldJson: WithContext
= { '@context': 'https://schema.org', '@type': 'Article', headline: frontmatter.name, description: stringifyDescription(frontmatter.summary), url: getPostUrl(frontmatter.slug), image: [getImageUrl(frontmatter.name)], author: [ { '@type': 'Organization', name: 'usehooks-ts', url: siteConfig.url, }, ], } return ( <>