fix: add undeclared dependencies and remove unused/misplaced dependencies (#26205)

* chore: lock all package versions to match yarn.lock

This commit pins all dependency versions in package.json files to exact
versions matching the yarn.lock file, removing ^ and ~ prefixes.

Changes:
- Locked 427 dependencies across 47 package.json files
- Versions now match exactly what is resolved in yarn.lock
- Ensures reproducible builds and prevents unexpected version drift

This change improves build reproducibility by ensuring that the versions
specified in package.json files match exactly what yarn.lock resolves to.

Co-Authored-By: Volnei Munhoz <[email protected]>

* fix: add undeclared dependencies to trpc, ui, and platform-types packages

- @calcom/trpc: add cookie, uuid and their type definitions
- @calcom/ui: add Lexical packages, Radix UI components, classnames, sonner, react-easy-crop, zod
- @calcom/platform-types: add @nestjs/common, @nestjs/swagger, libphonenumber-js, luxon, zod

These dependencies were being used in the code but not declared in package.json,
relying on hoisting from other packages.

Co-Authored-By: Volnei Munhoz <[email protected]>

* chore: update yarn.lock after adding undeclared dependencies

Co-Authored-By: Volnei Munhoz <[email protected]>

* fix: upgrade Prisma versions in example apps and pin remaining @types/node

- Upgraded @prisma/client to 6.16.1 in example apps to match main app
- Pinned @types/node to 20.17.23 in atoms, libraries, and example apps
- Pinned @types/react to 18.0.26 and @types/react-dom to 18.2.6 in example apps

Addresses PR review comments about Prisma version mismatch and unpinned @types/node

Co-Authored-By: Volnei Munhoz <[email protected]>

* chore: remove unused and misplaced dependencies

Removed unused dependencies:
- @calcom/web: mime-types, posthog-node, react-date-picker, react-multi-email, react-phone-number-input, recoil, @vercel/edge-functions-ui, lottie-react, jotai
- @calcom/features: @lexical/react, lexical, akismet-api, stripe-event-types

Removed misplaced dependencies from @calcom/web (already in @calcom/ui):
- @radix-ui/react-avatar, @radix-ui/react-dialog, @radix-ui/react-dropdown-menu
- @radix-ui/react-hover-card, @radix-ui/react-id, @radix-ui/react-popover
- @radix-ui/react-slider, @radix-ui/react-switch, @radix-ui/react-toggle-group
- react-colorful

Co-Authored-By: Volnei Munhoz <[email protected]>

* fix: add back jotai and react-phone-number-input dependencies

These dependencies were incorrectly removed in the previous commit:
- jotai: Required as peer dependency by @daily-co/daily-react
- react-phone-number-input: CSS imported in WorkflowStepContainer.tsx

Co-Authored-By: Volnei Munhoz <[email protected]>

* chore: update yarn.lock after Prisma version upgrade

Updates yarn.lock to reflect:
- @prisma/client upgraded from 6.7.0 to 6.16.1 in example apps
- Removed unused @prisma/[email protected] resolution

Co-Authored-By: Volnei Munhoz <[email protected]>

* fix: align dependency versions per PR review feedback

- @nestjs/common: 10.0.0 -> 10.3.3 in platform-types (match api-v2)
- cookie: ^0.7.0 -> 0.7.0 in trpc (pin exact version)
- uuid: ^8.3.2 -> 8.3.2 in trpc (pin exact version)
- @types/cookie: ^0.6.0 -> 0.6.0 in trpc (pin exact version)
- @types/uuid: ^8.3.4 -> 8.3.4 in trpc (pin exact version)

Co-Authored-By: Volnei Munhoz <[email protected]>

* refactor: move root dependencies to proper packages

- Remove all dependencies from root package.json (they were misplaced)
- Add @evyweb/ioctopus, city-timezones, date-fns-tz, p-limit to @calcom/features
- @daily-co/daily-js already exists in @calcom/web
- @vercel/functions already exists in @calcom/features
- date-fns already exists in @calcom/ui

Co-Authored-By: Volnei Munhoz <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2025-12-26 23:02:24 -03:00
1 parent ab64019e27
commit 38e4c568b8
7 files changed
+279 -334

No files matched your search

+4 -4
View File
@@ -17,15 +17,16 @@
"@calcom/lib": "workspace:*",
"@calcom/trpc": "workspace:*",
"@calcom/ui": "workspace:*",
"@lexical/react": "0.9.1",
"@evyweb/ioctopus": "1.2.0",
"@tanstack/react-table": "8.20.6",
"@tanstack/react-virtual": "3.10.9",
"@trigger.dev/sdk": "4.1.2",
"@vercel/functions": "1.4.0",
"akismet-api": "6.0.0",
"city-timezones": "1.2.1",
"class-variance-authority": "0.7.1",
"date-fns-tz": "3.2.0",
"framer-motion": "10.12.8",
"lexical": "0.9.1",
"p-limit": "6.2.0",
"react-select": "5.8.0",
"react-sticky-box": "2.0.4",
"recharts": "3.0.2",
@@ -34,7 +35,6 @@
"zustand": "4.5.2"
},
"peerDependencies": {
"date-fns-tz": "3.2.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-is": "^18.2.0",
+6 -1
View File
@@ -13,8 +13,13 @@
"dependencies": {
"@calcom/platform-constants": "workspace:*",
"@calcom/platform-enums": "workspace:*",
"@nestjs/common": "10.4.20",
"@nestjs/swagger": "7.3.0",
"class-transformer": "0.5.1",
"class-validator": "0.14.3"
"class-validator": "0.14.3",
"libphonenumber-js": "1.10.49",
"luxon": "3.4.4",
"zod": "3.25.76"
},
"devDependencies": {
"@types/express": "4.17.21"
+4
View File
@@ -19,7 +19,9 @@
"@trpc/next": "11.0.0-next-beta.222",
"@trpc/react-query": "11.0.0-next-beta.222",
"@trpc/server": "11.0.0-next-beta.222",
"cookie": "0.7.2",
"superjson": "1.9.1",
"uuid": "8.3.2",
"zod": "3.25.76"
},
"peerDependencies": {
@@ -29,6 +31,8 @@
},
"devDependencies": {
"@calcom/eslint-config": "workspace:*",
"@types/cookie": "0.6.0",
"@types/uuid": "8.3.4",
"typescript": "5.9.2"
}
}
+16 -1
View File
@@ -74,6 +74,16 @@
"dependencies": {
"@calcom/lib": "workspace:*",
"@formkit/auto-animate": "1.0.0-beta.5",
"@lexical/code": "0.9.0",
"@lexical/html": "0.9.0",
"@lexical/link": "0.9.0",
"@lexical/list": "0.9.0",
"@lexical/markdown": "0.9.0",
"@lexical/react": "0.9.0",
"@lexical/rich-text": "0.9.0",
"@lexical/selection": "0.9.0",
"@lexical/table": "0.9.0",
"@lexical/utils": "0.9.0",
"@radix-ui/react-avatar": "1.1.3",
"@radix-ui/react-checkbox": "1.0.4",
"@radix-ui/react-dialog": "1.0.4",
@@ -87,18 +97,23 @@
"@tanstack/react-table": "8.20.6",
"@wojtekmaj/react-daterange-picker": "3.4.0",
"class-variance-authority": "0.4.0",
"classnames": "2.3.1",
"cmdk": "0.2.0",
"cmk": "0.1.1",
"date-fns": "3.6.0",
"downshift": "6.1.9",
"lexical": "0.9.0",
"react": "18.2.0",
"react-colorful": "5.6.1",
"react-day-picker": "8.10.1",
"react-easy-crop": "5.0.0",
"react-hook-form": "7.43.3",
"react-inlinesvg": "4.1.3",
"react-select": "5.8.0",
"sonner": "1.7.4",
"tailwind-merge": "1.13.2",
"uuid": "11.1.0"
"uuid": "11.1.0",
"zod": "3.25.76"
},
"peerDependencies": {
"react-dom": "18.2.0"