Skip to content

Updated NextJS and other dependencies#8

Merged
Yavnik merged 1 commit into
mainfrom
update-version
Jun 6, 2026
Merged

Updated NextJS and other dependencies#8
Yavnik merged 1 commit into
mainfrom
update-version

Conversation

@Yavnik

@Yavnik Yavnik commented Jun 6, 2026

Copy link
Copy Markdown
Owner

This pull request upgrades the project to Next.js 16 and updates several dependencies, while also making changes to ESLint configuration and build tooling. The updates aim to keep the codebase current, improve compatibility, and simplify configuration.

Dependency and Tooling Upgrades:

  • Upgraded next to version 16.2.7, along with updates to react, react-dom, and many related dependencies for improved compatibility and new features.
  • Updated numerous other dependencies and devDependencies, including @radix-ui/*, drizzle-orm, framer-motion, ioredis, lucide-react, nanoid, postgres, posthog-js, posthog-node, tailwind-merge, zod, zustand, @types/*, drizzle-kit, eslint, eslint-config-next, prettier, tailwindcss, tsx, and typescript to their latest versions.

ESLint and Linting Configuration:

  • Rewrote eslint.config.mjs to use the new eslint-config-next flat config, directly importing core-web-vitals and typescript configs, and set React version to 19.2. Also, temporarily disabled new react-hooks rules introduced in the upgrade to avoid false positives until a dedicated refactor.
  • Changed the lint script in package.json to use eslint directly instead of next lint.

Build and Runtime Configuration:

  • Updated the Docker base image to use oven/bun:1.3-alpine for the latest Bun runtime.
  • Removed the custom cache-control headers for static assets from next.config.ts, relying on Next.js 16’s improved built-in static asset caching.
  • Changed the dev script to use the default Next.js dev server, removing the --turbopack flag.

Summary by CodeRabbit

  • Updates
    • Updated Next.js framework to version 16.2.7 with enhanced performance and features
    • Upgraded React to version 19.2.7
    • Updated core libraries and dependencies including UI components, authentication, and data utilities to latest stable versions
    • Optimized static asset caching configuration

Copilot AI review requested due to automatic review settings June 6, 2026 04:34
@coderabbitai

coderabbitai Bot commented Jun 6, 2026

Copy link
Copy Markdown

Worried about impact? Review this PR in Change Stack to explore blast radius before you approve or request changes.

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e3b7cf93-318a-4a34-bbb0-debedfbd0800

📥 Commits

Reviewing files that changed from the base of the PR and between 70f338f and b2b800c.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (5)
  • Dockerfile
  • eslint.config.mjs
  • next.config.ts
  • package.json
  • tsconfig.json

📝 Walkthrough

Walkthrough

This PR updates the Docker base image from Bun 1.2 to 1.3, upgrades major framework and tooling dependencies (Next.js 16.2.7, React 19.2.7, TypeScript 6.0.3, ESLint 10.4.1), migrates ESLint configuration to flat config format with direct imports, removes static asset caching headers, and reformats TypeScript configuration files.

Changes

Dependency Upgrades and Configuration Alignment

Layer / File(s) Summary
Docker runtime base image
Dockerfile
Base image tag updated from oven/bun:1.2-alpine to oven/bun:1.3-alpine across all build stages.
Dependency and tooling upgrades
package.json
Core framework dependencies upgraded (Next.js 15.3.6 → 16.2.7, React 19.1.1 → 19.2.7, TypeScript → 6.0.3, ESLint → 10.4.1). Dev dependency @eslint/eslintrc removed. npm scripts adjusted: dev removes --turbopack flag and lint command switches from next lint to eslint.
ESLint configuration migration
eslint.config.mjs
Configuration reworked from FlatCompat pattern to direct imports of eslint-config-next (core-web-vitals and typescript modules). Config explicitly ignores eslint.config.mjs, sets React version to 19.2, and disables two react-hooks/* rules now flagged by upgraded config.
Next.js static asset caching removal
next.config.ts
Removes the dedicated Cache-Control header rule for /_next/static/:path* route that set long expiry and immutable flag.
TypeScript configuration formatting and updates
tsconfig.json
compilerOptions.lib, paths, include, and exclude arrays reformatted from single-line to multi-line layout. include list expanded to add .next/dev/types/**/*.ts pattern. All compiler settings functionally preserved.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • Yavnik/commandops#1: Both PRs modify the Dockerfile's Bun base image configuration as part of runtime setup updates.

Poem

🐰 Hopping through configs with glee,
From Bun 1.2 to 1.3,
ESLint now flat, dependencies tall,
TypeScript formatted for all,
A version waltz, graceful and spry!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-version

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.

@Yavnik Yavnik merged commit 9ee5505 into main Jun 6, 2026
1 of 2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the app’s Next.js/React toolchain (including TypeScript/ESLint) and adjusts configuration to align with the new ecosystem defaults (linting, dev server, Docker runtime, and caching headers).

Changes:

  • Upgrade Next.js to 16.2.7 and refresh a broad set of runtime + dev dependencies (React, TypeScript, ESLint, Tailwind, etc.).
  • Switch linting to run eslint directly and move to eslint-config-next flat config, with targeted rule overrides.
  • Update build/runtime configuration: Bun base image bump, remove Turbopack flag for dev, and simplify next.config.ts headers.

Reviewed changes

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

Show a summary per file
File Description
tsconfig.json Adjust TS compiler options (notably jsx) and includes for updated Next/TS behavior.
package.json Update dependency versions; change scripts for dev and linting.
next.config.ts Remove custom static asset cache headers; keep HTML caching headers and rewrites.
eslint.config.mjs Replace FlatCompat usage with Next’s flat config imports and add rule overrides.
Dockerfile Bump Bun base image version used for builds and runtime.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread eslint.config.mjs
Comment on lines +5 to +7
{
ignores: ['eslint.config.mjs'],
},
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.

2 participants