chore(deps): update all packages to latest stable #145
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
javascript
question
severity: high
severity: low
severity: medium
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
isyuricunha/website!145
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/update-all-deps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Major dependency refresh of the monorepo (pnpm + turbo), alongside the fixes needed to keep lint, type-check, tests, and build green.
What changed
1. Migrated pnpm config to
pnpm-workspace.yamlpnpm 10 no longer reads
pnpm.*frompackage.json. This PR movesoverrides,packageExtensions, andonlyBuiltDependenciesto the workspace file (where they're actually applied) and removes the stale block frompackage.json.2. Notable upgrades
pnpm update -r --latest.^6.0.3—@typescript-eslint/*@8.69.0requirestypescript <6.1.0. Going to v7 would break lint + typecheck, so we stay on TS 6 for compatibility.@tanstack/react-tablestays on^8—packages/uideclarespeerDependencies: { "@tanstack/react-table": "^8" }. v9 is a full rewrite (newconstructTableAPI + feature registration) and would require rewritingdata-table.tsx. Kept at v8 for now.better-calloverride removed — it was pinning1.3.5forbetter-authcompatibility. The current[email protected]declares^1.3.5, so the pin was both obsolete and blocking the upgrade.@types/hastdeduplicated —overridesforces^3.0.5to align the hust types fromshikiwith the peer ofhast-util-to-jsx-runtime.3. Code changes required by the new versions
packages/utils/src/range.ts— renamei -> index(unicorn autofix).packages/emails/src/components/{footer,logo}.tsx— default export as arrow function (unicorn/default-export-style).packages/env/src/index.ts— ternary-conditional object spreads replaced with&&short-circuit (unicorn/consistent-conditional-object-spread).packages/mdx-plugins/src/rehype/rehype-code.ts— replaced.then()withawait(unicorn/prefer-await).packages/mdx-plugins/src/rehype/rehype-inline-code.ts— highlighter cache rewritten as a closure-factory (unicorn/no-top-level-assignment-in-function).packages/prettier-plugin-package-json/src/index.ts— renames (obj → result,pkg → packageJson).packages/ui/src/sidebar.tsx—keydownhandler now uses early return (unicorn/prefer-early-return).packages/ui/src/data-table.tsx—String(x)instead of template literals for numbers (unicorn/prefer-string-raw).packages/ui/src/hooks/use-is-mobile.ts— lazyuseStateinitializer (SSR-safe).apps/docs/content-collections.ts— extractedlinkSchemaanddocMetaSchema.apps/docs/src/components/layout/search.tsx— early return in theCtrl+Khandler.scripts/translate-site.mjs— resolved unicorn/sonarjs violations (simplified loops, regex fixes, etc.).apps/web/src/app/api/cron/alerts/route.ts— declarations moved after early-return guards.apps/web/src/lib/announcement-ui.tsxand other files — prettier pass.4. ESLint rules disabled in the shared config
Rules introduced by the updated plugins that conflict with conventions already used across the codebase. Turned off centrally to avoid sprinkling
// eslint-disableeverywhere:unicorn/name-replacementsunicorn/default-export-styleunicorn/consistent-boolean-nameunicorn/no-declarations-before-early-exitunicorn/single-line-block-comment-stylesonarjs/no-redundant-optional@eslint-react/web-api-no-leaked-event-listener5. Other changes
eslint-disablefromscripts/translate-site.mjsafter the rule was disabled globally.pnpm format:writeacross the affected files to satisfy the CIformat:checkstep.Validation
pnpm install— clean, no pnpm 10 warningspnpm type-check— 13/13 taskspnpm lint— 14/14 (0 errors, 0 warnings)pnpm test:unit— 42 files, 182 tests passingpnpm build— 8/8 (all apps and packages)The latest updates on your projects. Learn more about Vercel for GitHub.