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

+1 -11
View File
@@ -82,7 +82,6 @@
"@todesktop/client-core": "1.20.0",
"@upstash/redis": "1.35.2",
"@vercel/edge-config": "0.1.1",
"@vercel/edge-functions-ui": "0.2.1",
"@vercel/og": "0.6.3",
"accept-language-parser": "1.5.0",
"async": "3.2.4",
@@ -104,12 +103,10 @@
"kbar": "0.1.0-beta.36",
"libphonenumber-js": "^1.11.18",
"lodash": "4.17.21",
"lottie-react": "2.3.1",
"markdown-it": "13.0.1",
"md5": "2.3.0",
"memory-cache": "0.2.0",
"micro": "10.0.1",
"mime-types": "2.1.35",
"next": "16.1.0",
"next-auth": "4.24.13",
"next-axiom": "0.17.0",
@@ -121,27 +118,22 @@
"openid-client": "6.5.0",
"otplib": "12.0.1",
"posthog-js": "1.274.1",
"posthog-node": "5.14.0",
"qrcode": "1.5.1",
"raw-body": "2.5.2",
"react": "18.2.0",
"react-colorful": "5.6.1",
"react-date-picker": "8.4.0",
"react-digit-input": "2.1.0",
"react-dom": "18.2.0",
"react-easy-crop": "3.5.3",
"react-hook-form": "7.43.3",
"react-i18next": "12.3.1",
"react-live-chat-loader": "2.8.1",
"react-multi-email": "0.5.3",
"react-phone-input-2": "2.15.1",
"react-phone-number-input": "3.2.7",
"react-phone-number-input": "3.4.12",
"react-schemaorg": "2.0.0",
"react-select": "5.8.0",
"react-timezone-select": "1.4.0",
"react-turnstile": "1.1.3",
"react-use-intercom": "5.5.0",
"recoil": "0.7.7",
"remove-markdown": "0.5.0",
"retell-client-js-sdk": "2.0.7",
"retell-sdk": "4.41.0",
@@ -178,12 +170,10 @@
"@types/md5": "2.3.2",
"@types/memory-cache": "0.2.2",
"@types/micro": "7.3.7",
"@types/mime-types": "2.1.1",
"@types/module-alias": "2.0.1",
"@types/nodemailer": "6.4.5",
"@types/qrcode": "1.4.3",
"@types/react": "18.0.26",
"@types/react-phone-number-input": "3.0.14",
"@types/remove-markdown": "0.3.1",
"@types/sanitize-html": "2.9.0",
"@types/stripe": "8.0.417",