From b4b06a7c6f34e63bf35d2b7daf35d5d1ced17f47 Mon Sep 17 00:00:00 2001 From: Moises Machuca Valverde Date: Tue, 21 Nov 2023 23:38:24 -0500 Subject: [PATCH] chore: delete unused debounce hooks --- packages/hooks/use-debounce-effect/README.md | 5 -- .../hooks/use-debounce-effect/package.json | 46 ------------------- .../hooks/use-debounce-effect/src/index.ts | 5 -- .../tests/use-debounce-effect.test.ts | 8 ---- packages/hooks/use-debounce-fn/README.md | 5 -- packages/hooks/use-debounce-fn/package.json | 46 ------------------- packages/hooks/use-debounce-fn/src/index.ts | 5 -- .../tests/use-debounce-fn.test.ts | 8 ---- pnpm-lock.yaml | 18 -------- 9 files changed, 146 deletions(-) delete mode 100644 packages/hooks/use-debounce-effect/README.md delete mode 100644 packages/hooks/use-debounce-effect/package.json delete mode 100644 packages/hooks/use-debounce-effect/src/index.ts delete mode 100644 packages/hooks/use-debounce-effect/tests/use-debounce-effect.test.ts delete mode 100644 packages/hooks/use-debounce-fn/README.md delete mode 100644 packages/hooks/use-debounce-fn/package.json delete mode 100644 packages/hooks/use-debounce-fn/src/index.ts delete mode 100644 packages/hooks/use-debounce-fn/tests/use-debounce-fn.test.ts diff --git a/packages/hooks/use-debounce-effect/README.md b/packages/hooks/use-debounce-effect/README.md deleted file mode 100644 index 17c8673..0000000 --- a/packages/hooks/use-debounce-effect/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# useDebounceEffect - - - -Please refer to the [documentation](https://www.raddix.website/docs/use-debounce-effect) for more information. \ No newline at end of file diff --git a/packages/hooks/use-debounce-effect/package.json b/packages/hooks/use-debounce-effect/package.json deleted file mode 100644 index 31e364c..0000000 --- a/packages/hooks/use-debounce-effect/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "@raddix/use-debounce-effect", - "description": "", - "version": "0.1.0", - "license": "MIT", - "main": "src/index.ts", - "author": "Moises Machuca Valverde (https://www.moisesmachuca.com)", - "homepage": "https://www.raddix.website", - "repository": { - "type": "git", - "url": "https://github.com/gdvu/raddix.git" - }, - "keywords": [ - "react-hook", - "react-debounce-effect-hook", - "react-use-debounce-effect", - "use-debounce-effect", - "use-debounce-effect-hook", - "hook-debounce-effect" - ], - "sideEffects": false, - "scripts": { - "lint": "eslint \"{src,tests}/*.{ts,tsx,css}\"", - "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", - "build": "tsup src --dts", - "prepack": "clean-package", - "postpack": "clean-package restore" - }, - "files": [ - "dist", - "README.md" - ], - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - }, - "clean-package": "../../../clean-package.config.json", - "tsup": { - "clean": true, - "target": "es2019", - "format": [ - "cjs", - "esm" - ] - } -} diff --git a/packages/hooks/use-debounce-effect/src/index.ts b/packages/hooks/use-debounce-effect/src/index.ts deleted file mode 100644 index f3c797c..0000000 --- a/packages/hooks/use-debounce-effect/src/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -type UseDebounceEffect = () => void; - -export const useDebounceEffect: UseDebounceEffect = () => { - return {}; -}; diff --git a/packages/hooks/use-debounce-effect/tests/use-debounce-effect.test.ts b/packages/hooks/use-debounce-effect/tests/use-debounce-effect.test.ts deleted file mode 100644 index 2cf3f20..0000000 --- a/packages/hooks/use-debounce-effect/tests/use-debounce-effect.test.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { renderHook, act } from '@testing-library/react'; -import { useDebounceEffect } from '../src'; - -describe('useDebounceEffect', () => { - it('should be defined', () => { - expect(0).toBe(0); - }); -}); diff --git a/packages/hooks/use-debounce-fn/README.md b/packages/hooks/use-debounce-fn/README.md deleted file mode 100644 index 59f9d89..0000000 --- a/packages/hooks/use-debounce-fn/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# useDebounceFn - - - -Please refer to the [documentation](https://www.raddix.website/docs/use-debounce-fn) for more information. \ No newline at end of file diff --git a/packages/hooks/use-debounce-fn/package.json b/packages/hooks/use-debounce-fn/package.json deleted file mode 100644 index ccf5eb2..0000000 --- a/packages/hooks/use-debounce-fn/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "@raddix/use-debounce-fn", - "description": "", - "version": "0.1.0", - "license": "MIT", - "main": "src/index.ts", - "author": "Moises Machuca Valverde (https://www.moisesmachuca.com)", - "homepage": "https://www.raddix.website", - "repository": { - "type": "git", - "url": "https://github.com/gdvu/raddix.git" - }, - "keywords": [ - "react-hook", - "react-debounce-fn-hook", - "react-use-debounce-fn", - "use-debounce-fn", - "use-debounce-fn-hook", - "hook-debounce-fn" - ], - "sideEffects": false, - "scripts": { - "lint": "eslint \"{src,tests}/*.{ts,tsx,css}\"", - "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", - "build": "tsup src --dts", - "prepack": "clean-package", - "postpack": "clean-package restore" - }, - "files": [ - "dist", - "README.md" - ], - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - }, - "clean-package": "../../../clean-package.config.json", - "tsup": { - "clean": true, - "target": "es2019", - "format": [ - "cjs", - "esm" - ] - } -} diff --git a/packages/hooks/use-debounce-fn/src/index.ts b/packages/hooks/use-debounce-fn/src/index.ts deleted file mode 100644 index 6d561c3..0000000 --- a/packages/hooks/use-debounce-fn/src/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -type UseDebounceFn = () => void; - -export const useDebounceFn: UseDebounceFn = () => { - return {}; -}; diff --git a/packages/hooks/use-debounce-fn/tests/use-debounce-fn.test.ts b/packages/hooks/use-debounce-fn/tests/use-debounce-fn.test.ts deleted file mode 100644 index e63b7ac..0000000 --- a/packages/hooks/use-debounce-fn/tests/use-debounce-fn.test.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { renderHook, act } from '@testing-library/react'; -import { useDebounceFn } from '../src'; - -describe('useDebounceFn', () => { - it('should be defined', () => { - expect(0).toBe(0); - }); -}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 06bc363..d087109 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -232,24 +232,6 @@ importers: specifier: '>=16.8.0' version: 18.2.0(react@18.2.0) - packages/hooks/use-debounce-effect: - dependencies: - react: - specifier: '>=16.8.0' - version: 18.2.0 - react-dom: - specifier: '>=16.8.0' - version: 18.2.0(react@18.2.0) - - packages/hooks/use-debounce-fn: - dependencies: - react: - specifier: '>=16.8.0' - version: 18.2.0 - react-dom: - specifier: '>=16.8.0' - version: 18.2.0(react@18.2.0) - packages/hooks/use-interval: dependencies: react: