From 257080b00d498e37f1cafba773433b3c5d15e4c6 Mon Sep 17 00:00:00 2001 From: rusconn Date: Sat, 24 Jun 2023 13:42:02 +0900 Subject: [PATCH] chore(deps): fast-deep-equal -> react-fast-compare --- components/configurations.tsx | 2 +- components/control-menu.tsx | 2 +- package.json | 2 +- pnpm-lock.yaml | 11 ++++++++--- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/components/configurations.tsx b/components/configurations.tsx index 4814aae..278faae 100644 --- a/components/configurations.tsx +++ b/components/configurations.tsx @@ -1,5 +1,5 @@ import { memo } from "react"; -import equal from "fast-deep-equal"; +import equal from "react-fast-compare"; type Props = { list: React.ReactNode[]; diff --git a/components/control-menu.tsx b/components/control-menu.tsx index 638ee53..63f22bb 100644 --- a/components/control-menu.tsx +++ b/components/control-menu.tsx @@ -1,5 +1,5 @@ import { memo } from "react"; -import equal from "fast-deep-equal"; +import equal from "react-fast-compare"; type Props = { list: React.ReactNode[]; diff --git a/package.json b/package.json index 7bdc451..c61ce69 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "clsx": "^1.2.1", "cmdk": "^0.2.0", "create-hash": "^1.2.0", - "fast-deep-equal": "^3.1.3", "fp-ts": "^2.16.0", "fuse.js": "^6.6.2", "html-escaper": "^3.0.3", @@ -48,6 +47,7 @@ "react": "18.2.0", "react-day-picker": "^8.7.1", "react-dom": "18.2.0", + "react-fast-compare": "^3.2.2", "sharp": "^0.32.1", "tailwind-merge": "^1.12.0", "tailwindcss-animate": "^1.0.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d976acc..57f7e90 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -34,9 +34,6 @@ dependencies: create-hash: specifier: ^1.2.0 version: 1.2.0 - fast-deep-equal: - specifier: ^3.1.3 - version: 3.1.3 fp-ts: specifier: ^2.16.0 version: 2.16.0 @@ -79,6 +76,9 @@ dependencies: react-dom: specifier: 18.2.0 version: 18.2.0(react@18.2.0) + react-fast-compare: + specifier: ^3.2.2 + version: 3.2.2 sharp: specifier: ^0.32.1 version: 0.32.1 @@ -2692,6 +2692,7 @@ packages: /fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + dev: true /fast-glob@3.2.12: resolution: {integrity: sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==} @@ -3907,6 +3908,10 @@ packages: scheduler: 0.23.0 dev: false + /react-fast-compare@3.2.2: + resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==} + dev: false + /react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} dev: true