Skip to content

chore(deps): fix version mismatches and consolidate into bun catalog#2070

Merged
andrew-bierman merged 1 commit into
developmentfrom
chore/catalog-dep-consolidation
Apr 11, 2026
Merged

chore(deps): fix version mismatches and consolidate into bun catalog#2070
andrew-bierman merged 1 commit into
developmentfrom
chore/catalog-dep-consolidation

Conversation

@andrew-bierman
Copy link
Copy Markdown
Collaborator

Summary

  • Fix 6 version mismatches (ai, axios, chalk, radash, react, react-dom) by resolving each to the highest version used across the monorepo
  • Add catalog section to root package.json with 36 entries: the 6 fixed deps plus zod, typescript, tailwindcss, and all 27 @radix-ui/* packages shared between apps/landing and apps/guides
  • Replace all pinned versions in workspace package.json files with catalog: references (82 total substitutions across 6 packages)

Packages updated

File catalog: refs
apps/expo/package.json 8
apps/guides/package.json 35
apps/landing/package.json 32
packages/analytics/package.json 3
packages/api/package.json 3
packages/guards/package.json 1

Test plan

  • bun install completes successfully and lockfile is updated
  • Pre-commit biome lint passes
  • CI type-check passes
  • CI biome check passes

Copilot AI review requested due to automatic review settings April 11, 2026 13:46
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 11, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 87ea03bd-c5b6-401b-85a7-db10095d8d0c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/catalog-dep-consolidation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file api web labels Apr 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 11, 2026

Coverage Report for API Unit Tests Coverage (./packages/api)

Status Category Percentage Covered / Total
🔵 Lines 89.66% 902 / 1006
🔵 Statements 89.66% (🎯 80%) 902 / 1006
🔵 Functions 97.95% 48 / 49
🔵 Branches 89.74% 280 / 312
File CoverageNo changed files found.
Generated in workflow #144 for commit b039ff3 by the Vitest Coverage Report Action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 11, 2026

Coverage Report for Expo Unit Tests Coverage (./apps/expo)

Status Category Percentage Covered / Total
🔵 Lines 80.66% 534 / 662
🔵 Statements 80.66% (🎯 75%) 534 / 662
🔵 Functions 92.85% 52 / 56
🔵 Branches 92.27% 203 / 220
File CoverageNo changed files found.
Generated in workflow #144 for commit b039ff3 by the Vitest Coverage Report Action

@cloudflare-workers-and-pages
Copy link
Copy Markdown
Contributor

cloudflare-workers-and-pages Bot commented Apr 11, 2026

Deploying packrat-guides with  Cloudflare Pages  Cloudflare Pages

Latest commit: b039ff3
Status: ✅  Deploy successful!
Preview URL: https://cef5cf65.packrat-guides-6gq.pages.dev
Branch Preview URL: https://chore-catalog-dep-consolidat.packrat-guides-6gq.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown
Contributor

cloudflare-workers-and-pages Bot commented Apr 11, 2026

Deploying packrat-landing with  Cloudflare Pages  Cloudflare Pages

Latest commit: b039ff3
Status: ✅  Deploy successful!
Preview URL: https://7b4d26a0.packrat-landing.pages.dev
Branch Preview URL: https://chore-catalog-dep-consolidat.packrat-landing.pages.dev

View logs

@andrew-bierman andrew-bierman force-pushed the chore/catalog-dep-consolidation branch from e311793 to a1d30d1 Compare April 11, 2026 13:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Consolidates shared dependency versions across workspaces by introducing a root Bun catalog and switching workspace package.json files to catalog: references, with an updated bun.lock.

Changes:

  • Added a root-level catalog for commonly shared dependencies (including Radix UI packages).
  • Replaced pinned dependency versions with catalog: references in multiple workspace package.json files.
  • Updated bun.lock to reflect catalog references and resolved versions.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Adds the root catalog that centralizes versions for shared deps.
apps/landing/package.json Switches shared deps (Radix UI, React, Zod, Tailwind, TS) to catalog:.
apps/guides/package.json Switches shared deps (Radix UI, AI/Axios/Chalk, React, Zod, Tailwind, TS) to catalog:.
packages/api/package.json Switches ai, radash, and zod to catalog:.
packages/analytics/package.json Switches chalk, radash, and zod to catalog:.
packages/guards/package.json Switches radash to catalog:.
bun.lock Updates lockfile entries to reflect catalog: usage and new resolved versions.

Comment thread package.json
Comment on lines 46 to +52
},
"catalog": {
"ai": "^5.0.136",
"axios": "^1.12.0",
"chalk": "^5.6.2",
"radash": "^12.1.1",
"react": "19.1.0",
Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description says axios version mismatches were resolved across the monorepo and that workspace package.json files were converted to catalog: refs, but apps/expo/package.json still pins axios to ^1.8.4 (and doesn’t use catalog:), leaving an axios mismatch vs the root catalog (^1.12.0). Either update Expo to use the catalog entry (and confirm compatibility) or adjust the PR summary/catalog to reflect the intended divergence.

Copilot uses AI. Check for mistakes.
- Fix 6 version mismatches: ai, axios, chalk, radash, react, react-dom
- Move zod, typescript, tailwindcss, react, react-dom, ai, axios, chalk,
  radash, and all @radix-ui/* into root catalog
- All workspace packages now use catalog: references for shared deps
@andrew-bierman andrew-bierman force-pushed the chore/catalog-dep-consolidation branch from a1d30d1 to b039ff3 Compare April 11, 2026 14:07
@andrew-bierman andrew-bierman merged commit 9d66b05 into development Apr 11, 2026
9 of 10 checks passed
@andrew-bierman andrew-bierman deleted the chore/catalog-dep-consolidation branch April 11, 2026 15:13
andrew-bierman added a commit that referenced this pull request Apr 11, 2026
- Rebase onto development (resolve analytics/package.json conflict:
  keep @packrat/env dep + use catalog: for chalk)
- Fix @ts-ignore@ts-expect-error in useCreatePackFromPack.ts
- Add comment-stripping to no-circular-deps.ts (prevents JSDoc false positives)
- Break circular imports: catalog/types, profile/types, itemCalculations
  now point to specific type files instead of barrel indexes
- Create packs/input.ts and api/types/validation.ts to break dep cycles
- Fix schema.ts to import ValidationError from types/validation
- Convert apps/expo and packages/env deps to catalog: (bun catalog entries
  added by #2070 — ai, axios, radash, react, react-dom, tailwindcss, ts, zod)
- Sort package.json files
andrew-bierman added a commit that referenced this pull request Apr 11, 2026
Convert ai, axios, radash, react, react-dom, tailwindcss, typescript, and
zod in apps/expo/package.json to catalog: references. Apply biome formatter
fix to PackCard.tsx. Sort root package.json via sort-package-json.

All 4 CI checks pass: biome, no-circular-deps, no-duplicate-deps,
sort-package-json.
andrew-bierman added a commit that referenced this pull request Apr 11, 2026
- Rebase onto origin/development to pick up post-#2070 changes
- Convert explicit dep versions to catalog: in apps/expo/package.json
- Copy fixed files: no-circular-deps.ts, input.ts, catalog/types, profile/types, itemCalculations, api/types/validation, api/types/etl, api/db/schema, useCreatePackFromPack, PackCard
- Fix biome errors in new analytics files: remove unused drizzle-orm imports (lt, gt, sum, max), sort imports, apply formatter, suppress noNonNullAssertion with comment
andrew-bierman added a commit that referenced this pull request May 14, 2026
chore(deps): fix version mismatches and consolidate into bun catalog
andrew-bierman added a commit that referenced this pull request May 14, 2026
Convert ai, axios, radash, react, react-dom, tailwindcss, typescript, and
zod in apps/expo/package.json to catalog: references. Apply biome formatter
fix to PackCard.tsx. Sort root package.json via sort-package-json.

All 4 CI checks pass: biome, no-circular-deps, no-duplicate-deps,
sort-package-json.
andrew-bierman added a commit that referenced this pull request May 14, 2026
- Rebase onto development (resolve analytics/package.json conflict:
  keep @packrat/env dep + use catalog: for chalk)
- Fix @ts-ignore@ts-expect-error in useCreatePackFromPack.ts
- Add comment-stripping to no-circular-deps.ts (prevents JSDoc false positives)
- Break circular imports: catalog/types, profile/types, itemCalculations
  now point to specific type files instead of barrel indexes
- Create packs/input.ts and api/types/validation.ts to break dep cycles
- Fix schema.ts to import ValidationError from types/validation
- Convert apps/expo and packages/env deps to catalog: (bun catalog entries
  added by #2070 — ai, axios, radash, react, react-dom, tailwindcss, ts, zod)
- Sort package.json files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api dependencies Pull requests that update a dependency file web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants