Skip to content

Commit fd3e921

Browse files
hendrikebbersclaude
andcommitted
chore(deps): move implementation-detail deps from peer to regular
Tiptap, date-fns, react-day-picker, clsx, tailwind-merge, and class-variance-authority are pure implementation details of MarkdownEditor, Calendar, and the cn() utility. None of them leak into the public API or the dist/*.d.ts type surface, so consumers do not need to install or version-pin them. Move them to regular dependencies so they install transitively. Keep react, react-dom, @base-ui/react, radix-ui, and lucide-react as peer dependencies — these have a Singleton constraint (React) or are used via shared React Context (TooltipProvider via radix) where a version mismatch would silently break consumers. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d21f501 commit fd3e921

2 files changed

Lines changed: 42 additions & 50 deletions

File tree

package.json

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,26 @@
3939
"typecheck": "tsc --noEmit",
4040
"prepublishOnly": "pnpm run build"
4141
},
42-
"peerDependencies": {
43-
"react": "^19.0.0",
44-
"react-dom": "^19.0.0",
45-
"@base-ui/react": "^1.3.0",
46-
"radix-ui": "^1.4.0",
47-
"lucide-react": "^0.500.0",
42+
"dependencies": {
4843
"class-variance-authority": "^0.7.0",
4944
"clsx": "^2.1.0",
5045
"tailwind-merge": "^3.0.0",
51-
"react-day-picker": "^9.14.0",
5246
"date-fns": "^4.1.0",
47+
"react-day-picker": "^9.14.0",
5348
"@tiptap/core": "^3.22.0",
5449
"@tiptap/react": "^3.22.0",
5550
"@tiptap/starter-kit": "^3.22.0",
5651
"@tiptap/extension-link": "^3.22.0",
5752
"@tiptap/extension-placeholder": "^3.22.0",
5853
"tiptap-markdown": "^0.9.0"
5954
},
55+
"peerDependencies": {
56+
"react": "^19.0.0",
57+
"react-dom": "^19.0.0",
58+
"@base-ui/react": "^1.3.0",
59+
"radix-ui": "^1.4.0",
60+
"lucide-react": "^0.500.0"
61+
},
6062
"devDependencies": {
6163
"@types/react": "^19.0.0",
6264
"@types/react-dom": "^19.0.0",
@@ -74,17 +76,6 @@
7476
"react-dom": "^19.0.0",
7577
"@base-ui/react": "^1.3.0",
7678
"radix-ui": "^1.4.0",
77-
"lucide-react": "^0.500.0",
78-
"class-variance-authority": "^0.7.0",
79-
"clsx": "^2.1.0",
80-
"tailwind-merge": "^3.0.0",
81-
"react-day-picker": "^9.14.0",
82-
"date-fns": "^4.1.0",
83-
"@tiptap/core": "^3.22.0",
84-
"@tiptap/react": "^3.22.0",
85-
"@tiptap/starter-kit": "^3.22.0",
86-
"@tiptap/extension-link": "^3.22.0",
87-
"@tiptap/extension-placeholder": "^3.22.0",
88-
"tiptap-markdown": "^0.9.0"
79+
"lucide-react": "^0.500.0"
8980
}
9081
}

pnpm-lock.yaml

Lines changed: 32 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)