diff --git a/README.md b/README.md index e3d1e39..0cd3a29 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ https://www.npmjs.com/package/@risc0/ui | Statements | Branches | Functions | Lines | | --------------------------- | ----------------------- | ------------------------- | ----------------- | -| ![Statements](https://img.shields.io/badge/statements-48.29%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-76.19%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-56%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-48.29%25-red.svg?style=flat) | +| ![Statements](https://img.shields.io/badge/statements-48.33%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-76.19%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-56%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-48.33%25-red.svg?style=flat) | diff --git a/hooks/use-local-storage.ts b/hooks/use-local-storage.ts index a2b8ab7..4f7f026 100644 --- a/hooks/use-local-storage.ts +++ b/hooks/use-local-storage.ts @@ -1,10 +1,10 @@ -import isEqual from "lodash-es/isEqual"; -import isFunction from "lodash-es/isFunction"; -import isNil from "lodash-es/isNil"; +import { isEqual, isFunction } from "radash"; import { type Dispatch, type SetStateAction, useEffect, useRef, useState } from "react"; import { parseJson } from "../utils/parse-json"; import { useEventListener } from "./use-event-listener"; +const isNil = (val) => val == null; + type SetValue = Dispatch>; /** diff --git a/package.json b/package.json index 1323027..e21bba7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@risc0/ui", - "version": "0.0.79", + "version": "0.0.80", "sideEffects": false, "type": "module", "scripts": { @@ -31,9 +31,9 @@ "class-variance-authority": "0.7.1-canary.2", "clsx": "2.1.1", "cmdk": "0.2.0", - "lodash-es": "4.17.21", "lucide-react": "0.379.0", "next-themes": "0.3.0", + "radash": "12.1.0", "react-hook-form": "7.51.5", "simplebar-react": "3.2.5", "sonner": "1.4.41", @@ -41,16 +41,15 @@ "tailwind-merge": "2.3.0", "tailwindcss": "3.4.3", "tailwindcss-animate": "1.0.7", - "typescript": "5.5.0-dev.20240521" + "typescript": "5.5.0-dev.20240523" }, "devDependencies": { - "@biomejs/biome": "1.7.3", + "@biomejs/biome": "1.7.4-nightly.125f34b", "@testing-library/jest-dom": "6.4.5", "@testing-library/react": "15.0.7", "@testing-library/react-hooks": "8.0.1", "@types/jest": "29.5.12", - "@types/lodash-es": "4.17.12", - "@vitejs/plugin-react-swc": "3.6.0", + "@vitejs/plugin-react-swc": "3.7.0", "@vitest/coverage-v8": "2.0.0-beta.3", "happy-dom": "14.11.0", "istanbul-badges-readme": "1.9.0",