Skip to content

Conversation

techwithanirudh
Copy link

@techwithanirudh techwithanirudh commented Sep 9, 2025

Pull Request: Dependency & Tooling Upgrades + Improvements

This PR includes a broad set of updates to keep the codebase modern, consistent, and developer-friendly.

🔧 Upgrades & Tooling

  • Next.js: upgraded from 15.3 → 15.5 with support for typed routes
  • React: updated to the latest release
  • Framer Motion: bumped to the latest version
  • Biome: upgraded to 2.0
  • Zod: updated to v4
  • T3 Env: added for safer and stricter environment variable handling
  • cspell: integrated for code spell-checking (also fixed existing typos)

⚙️ CI & GitHub Actions

  • Updated CI script to include type checking for more reliable builds
  • Cleaned up GitHub Actions for better organization

- Refactored .gitignore to simplify environment file handling and added cspell cache.
- Updated biome.jsonc schema reference and adjusted file inclusion/exclusion rules.
- Added devcontainer.json for development environment setup.
- Introduced GitHub action for setup to streamline Node and pnpm installation.
- Modified CI workflow to include type checking and Biome linting.
- Updated Playwright workflow to utilize the new setup action.
- Refactored .gitignore to simplify environment file handling and added cspell cache.
- Updated biome.jsonc schema reference and adjusted file inclusion/exclusion rules.
- Added devcontainer.json for development environment setup.
- Introduced GitHub action for setup to streamline Node and pnpm installation.
- Modified CI workflow to include type checking and Biome linting.
- Updated Playwright workflow to utilize the new setup action.
Copy link

vercel bot commented Sep 9, 2025

@techwithanirudh is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

socket-security bot commented Sep 9, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​radix-ui/​react-label@​2.1.2 ⏵ 2.1.710010064 -391100
Updated@​radix-ui/​react-separator@​1.1.2 ⏵ 1.1.710010064 -391100
Updated@​radix-ui/​react-visually-hidden@​1.1.2 ⏵ 1.2.310010064 -391100
Updated@​radix-ui/​react-dropdown-menu@​2.1.6 ⏵ 2.1.169910069 -398100
Updated@​radix-ui/​react-alert-dialog@​1.1.6 ⏵ 1.1.159910069 -498100
Updated@​radix-ui/​react-dialog@​1.1.6 ⏵ 1.1.159910069 -398100
Updated@​radix-ui/​react-tooltip@​1.1.8 ⏵ 1.2.89910070 -398100
Updated@​vercel/​functions@​2.0.0 ⏵ 2.2.139910071 +298 -1100
Updated@​radix-ui/​react-select@​2.1.6 ⏵ 2.2.69810072 -398100
Updated@​types/​pdf-parse@​1.1.4 ⏵ 1.1.510010072 +277100
Updated@​types/​papaparse@​5.3.15 ⏵ 5.3.16100 +110072 +178100
Updated@​types/​react-dom@​18.3.5 ⏵ 19.1.910010073 -192100
Updatednext-auth@​5.0.0-beta.25 ⏵ 5.0.0-beta.29991007787100
Updatedprosemirror-schema-basic@​1.2.3 ⏵ 1.2.4100 +110077 +177100
Updatedprosemirror-inputrules@​1.4.0 ⏵ 1.5.0100 +110077 +177100
Updatedcodemirror@​6.0.1 ⏵ 6.0.210010078 +685100
Updatedprosemirror-markdown@​1.13.1 ⏵ 1.13.2100 +1100100 +178100
Updated@​types/​react@​18.3.18 ⏵ 19.1.12100 +110078 +194100
Updatednanoid@​5.1.3 ⏵ 5.1.51001007983100
Updatedpostgres@​3.4.5 ⏵ 3.4.799 +110010079100
Updated@​codemirror/​theme-one-dark@​6.1.2 ⏵ 6.1.31001008279100
Updated@​types/​node@​22.13.10 ⏵ 22.18.1100 +110080 +196100
Updatedtsx@​4.19.3 ⏵ 4.20.5100 +110080 +189100
Addedcross-env@​10.0.09910010080100
Updated@​codemirror/​lang-javascript@​6.2.3 ⏵ 6.2.4100 +1100100 +180100
Updatedpostcss@​8.5.3 ⏵ 8.5.699 +110081 +183100
Updated@​codemirror/​lang-python@​6.1.7 ⏵ 6.2.1100 +110088 +181100
Updatedprosemirror-model@​1.24.1 ⏵ 1.25.31001008185100
Added@​ai-sdk/​gateway@​1.0.201001008197100
Updatednext@​15.3.0-canary.31 ⏵ 15.5.1-canary.3582 +1100 +1390 +19870
Updatedprosemirror-view@​1.38.1 ⏵ 1.41.0100 +110081 +191 +5100
Updatedpapaparse@​5.5.2 ⏵ 5.5.3100 +110094 +182100
Updatedreact@​19.0.0-rc-45804af1-20241021 ⏵ 19.1.110010083 +197100
See 19 more rows in the dashboard

View full report

- Introduced .cspell.jsonc for code spell checking with custom dictionaries and ignore paths.
- Added .nvmrc to specify Node.js version.
- Created env.ts for environment variable management using T3 OSS.
- Updated next.config.ts to support typed routes and server actions.
- Enhanced package.json scripts for linting and spell checking.
- Modified GitHub workflows to include a spelling check job.
- Updated TODO.md with upcoming tasks and enhancements.
…e management

- Updated drizzle.config.ts, middleware.ts, playwright.config.ts, and other files to utilize the env module for accessing environment variables.
- Improved consistency and maintainability by centralizing environment variable management.
- Added new database schema files for user authentication and chat functionality.
- Updated drizzle configuration to point to the new schema index file.
- Refactored biome.jsonc to improve file inclusion/exclusion rules.
- Upgraded @biomejs/biome package version in package.json and pnpm-lock.yaml.
- Added a new TODO item for organizing database and authentication files.
- Upgraded various dependencies in package.json and pnpm-lock.yaml to their latest versions for improved performance and security.
- Notable updates include @ai-sdk/gateway to 1.0.20, @codemirror packages, and several @radix-ui components.
- Updated TypeScript and ESLint configurations to maintain compatibility with the latest versions.
- Upgraded various dependencies in package.json and pnpm-lock.yaml to their latest versions for improved performance and security.
- Notable updates include @ai-sdk/gateway to 1.0.20, @codemirror packages, and several @radix-ui components.
- Updated TypeScript and ESLint configurations to their latest versions for better compatibility and features.
@techwithanirudh
Copy link
Author

(this PR updates biome config, so you need to run pnpm check:unsafe after merging the PR, or there'll be like a hundred changes in this PR)

- Introduced a new database index file for improved ORM integration using drizzle-orm.
- Refactored queries to utilize the new database instance, enhancing code organization.
- Updated biome.jsonc to refine file exclusion rules by removing the ui components directory.
- Upgraded zod in package.json and pnpm-lock.yaml to version 4.1.5 for improved functionality and compatibility.
- Updated all references to zod in the lock file to reflect the new version.
- Updated biome.jsonc to include a new linting rule for unique element IDs, reflecting developer preferences.
- Enhanced TODO.md with additional tasks and warnings from lint checks.
- Addressed multiple instances of unused function parameters across various components, improving code quality and maintainability.
- Added a comment in components/message.tsx to ignore a specific lint warning regarding iterable callback returns.
@techwithanirudh
Copy link
Author

techwithanirudh commented Sep 9, 2025

@coderabbitai are you dead

EDIT: i guess i have to use the extension

- Removed dotenv configuration from drizzle.config.ts and playwright.config.ts to simplify environment handling.
- Updated package.json scripts to use pnpm with-env for environment variable management during development and build processes.
- Deleted the obsolete migrate.ts file to clean up the codebase.
- Enhanced devcontainer.json to include Playwright dependency installation in the post-create command.
- Created a new SQL migration to rename the "text" column to "kind" in the Document table.
- Updated the migration journal to include the new migration entry.
- Added a snapshot of the database schema reflecting the changes made in this migration.
- Adjusted the chat schema to align with the updated column name.
- Increased button padding in the Context component for improved UI consistency.
- Switched from using the env module to process.env for environment variable management in constants, enhancing compatibility.
@techwithanirudh techwithanirudh marked this pull request as ready for review September 9, 2025 09:11
- Replaced all instances of framer-motion with motion from the new motion library in component files for improved performance and consistency.
- Updated package.json and pnpm-lock.yaml to reflect the addition of the motion library and removal of framer-motion.
- Enhanced .cspell.jsonc by updating the ignore paths and adding new words for improved spell checking.
- Introduced a new CI workflow in .github/workflows/ci.yml to automate TypeScript type generation, type checking, and spelling checks, ensuring code quality and consistency.
@techwithanirudh
Copy link
Author

ready for review!

- Deleted the TODO.md file to streamline project documentation.
- Improved environment variable transformations in env.ts to handle false-like values more effectively.
- Updated package.json scripts to ensure consistent environment variable usage during type generation and testing.
techwithanirudh and others added 3 commits September 9, 2025 20:48
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
- Updated the REDIS_URL field in env.ts to be optional, allowing for more flexible environment setups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant