From dc873f7c7e0725b3f0ad7b665db4e0def11fcfab Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Mon, 11 Mar 2024 00:24:04 +0100 Subject: [PATCH] Drop client-only (#2910) --- env.d.ts | 1 - package.json | 1 - pnpm-lock.yaml | 8 +++++--- src/core/index.ts | 2 -- 4 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 env.d.ts diff --git a/env.d.ts b/env.d.ts deleted file mode 100644 index 6aec8a9b9..000000000 --- a/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'client-only' diff --git a/package.json b/package.json index 7afc1f2be..3b2145abc 100644 --- a/package.json +++ b/package.json @@ -172,7 +172,6 @@ "trailingComma": "none" }, "dependencies": { - "client-only": "^0.0.1", "use-sync-external-store": "^1.2.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3b5cbbdf3..badcd499a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,9 +4,6 @@ importers: .: dependencies: - client-only: - specifier: ^0.0.1 - version: 0.0.1 use-sync-external-store: specifier: ^1.2.0 version: 1.2.0(react@18.2.0) @@ -2330,6 +2327,7 @@ packages: /client-only@0.0.1: resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} + dev: true /cliui@7.0.4: resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} @@ -5662,3 +5660,7 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} dev: true + +settings: + autoInstallPeers: false + excludeLinksFromLockfile: false diff --git a/src/core/index.ts b/src/core/index.ts index afc1c9569..9bc09f5d1 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -1,5 +1,3 @@ -import 'client-only' - // useSWR import useSWR from './use-swr' export default useSWR