From 5392728f22580ac107cad25a5ccfcde962133535 Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Mon, 17 Aug 2026 23:08:33 +0200 Subject: [PATCH] chore(ui): drop the orphaned next-themes dependency The sonner wrapper was the only consumer of next-themes; the Base UI toast that replaced it does not use the hook. knip flagged it as unused, and CI's `knip --fix` step removed it and then failed `pnpm check` against a lockfile that still listed it. --- packages/ui/package.json | 1 - pnpm-lock.yaml | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/packages/ui/package.json b/packages/ui/package.json index 1ece5eb63..cde966c6f 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -26,7 +26,6 @@ "@shadcn/react": "^0.3.0", "class-variance-authority": "^0.7.1", "cmdk": "^1.1.1", - "next-themes": "^0.4.6", "react": "^19.2.8", "react-dom": "^19.2.8", "react-resizable-panels": "^4.12.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 58d3830df..28eb6d36c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1163,9 +1163,6 @@ importers: cmdk: specifier: ^1.1.1 version: 1.1.1(@types/react-dom@19.2.4(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - next-themes: - specifier: ^0.4.6 - version: 0.4.6(react-dom@19.2.8(react@19.2.8))(react@19.2.8) react: specifier: ^19.2.8 version: 19.2.8 @@ -7189,12 +7186,6 @@ packages: resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} engines: {node: '>= 0.6'} - next-themes@0.4.6: - resolution: {integrity: sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==} - peerDependencies: - react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc - react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc - next@16.3.0: resolution: {integrity: sha512-NEdGOzH+08eTXMUp9UYkA99Nhi5N6Thrhc1jgFOQgfgnGK/dA2hRwBpXep+exdFQrnwlRf/3Wixyp8lLBUpE2A==} engines: {node: '>=20.9.0'} @@ -14541,11 +14532,6 @@ snapshots: negotiator@1.0.0: {} - next-themes@0.4.6(react-dom@19.2.8(react@19.2.8))(react@19.2.8): - dependencies: - react: 19.2.8 - react-dom: 19.2.8(react@19.2.8) - next@16.3.0(@babel/core@8.0.1)(@opentelemetry/api@1.9.1)(@playwright/test@1.62.1)(@types/node@26.2.0)(babel-plugin-macros@3.1.0)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8): dependencies: '@next/env': 16.3.0