Skip to content

Commit

Permalink
fix: remove lodash in favor of radash
Browse files Browse the repository at this point in the history
  • Loading branch information
nahoc committed May 24, 2024
1 parent db10f2e commit 00577a6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
6 changes: 3 additions & 3 deletions hooks/use-local-storage.ts
Original file line number Diff line number Diff line change
@@ -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<T> = Dispatch<SetStateAction<T>>;

/**
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
"version": "0.0.79",
"version": "0.0.80",
"sideEffects": false,
"type": "module",
"scripts": {
Expand Down Expand Up @@ -31,26 +31,25 @@
"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",
"string-ts": "2.1.1",
"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",
Expand Down

0 comments on commit 00577a6

Please sign in to comment.