Skip to content

chore(dependencies): upgrade Next.js, Payload CMS, and Prisma versions; update configuration for compatibility#20

Merged
Z4phxr merged 5 commits intomainfrom
chore/security_uplift
Apr 22, 2026
Merged

chore(dependencies): upgrade Next.js, Payload CMS, and Prisma versions; update configuration for compatibility#20
Z4phxr merged 5 commits intomainfrom
chore/security_uplift

Conversation

@Z4phxr
Copy link
Copy Markdown
Owner

@Z4phxr Z4phxr commented Apr 22, 2026

This pull request upgrades the core framework and CMS dependencies to address security advisories and maintain compatibility, along with minor adjustments to configuration and API code. The most important changes are grouped below:

Framework, CMS, and Tooling Upgrades:

  • Upgraded next to 16.2.4, payload and related @payloadcms/* packages to 3.83.0, and prisma toolchain to 7.8.0 for security and compatibility. Updated eslint-config-next, test libraries, and applied dependency overrides for patched transitive packages (dompurify, @hono/node-server, esbuild). [1] [2] [3] [4] [5] [6] [7]

  • Updated documentation and changelogs to reflect the new stack and release, including a new changelog entry for the security uplift. [1] [2] [3] [4]

Build and Configuration Changes:

  • Changed the build script to use the --webpack flag for Next.js 16 and removed the custom ESLint build-time configuration from next.config.ts (now relying on CI linting). [1] [2] [3]

  • Updated TypeScript config to use the react-jsx JSX transform, aligning with React 19 and Next.js 16.

API and Backend Improvements:

Migration Script Adjustment:

  • Refined the database migration for media.id to use a direct type conversion without CASCADE, clarifying the migration log message and SQL. [1] [2]

Copilot AI review requested due to automatic review settings April 22, 2026 15:59
Copy link
Copy Markdown

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

Upgrades the LearningPlatform stack (Next.js, Payload CMS, Prisma, and test tooling) to address security advisories and keep the app compatible, with small config and API adjustments to match the new versions.

Changes:

  • Bumped core dependencies (Next.js 16.2.4, Payload 3.83.0, Prisma 7.8.0) and added overrides for patched transitive deps.
  • Updated build/config/docs for the new stack (Next build mode, TS JSX transform, technology docs + changelog entry).
  • Updated API routes to call revalidateTag with an additional argument.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Updates badges and stack wording to reflect new versions.
LearningPlatform/tsconfig.json Switches JSX transform to react-jsx.
LearningPlatform/src/payload/migrations/2026-04-20_convert_payload_media_id_to_uuid.ts Adjusts the media.id UUID conversion SQL (removes CASCADE, clarifies logging/docs).
LearningPlatform/package.json Upgrades core deps, changes build script, adds dependency overrides.
LearningPlatform/next.config.ts Updates Next.js version notes and removes custom build-time ESLint config block.
LearningPlatform/documentation/changelog/README.md Adds an index entry for the security uplift.
LearningPlatform/documentation/changelog/2026-04-22-payload-security-upgrade.md Adds a dedicated changelog entry describing the dependency uplift.
LearningPlatform/documentation/TECHNOLOGY_STACK.md Updates documented stack versions (Next/Payload/Prisma/Vitest/Playwright/etc).
LearningPlatform/app/api/tags/route.ts Updates revalidateTag invocation.
LearningPlatform/app/api/tags/[id]/route.ts Updates revalidateTag invocations.
LearningPlatform/app/api/flashcards/route.ts Updates revalidateTag invocation.
LearningPlatform/app/api/flashcards/[id]/route.ts Updates revalidateTag invocations.

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

Comment thread LearningPlatform/package.json
… for improved performance and responsiveness
Copy link
Copy Markdown

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

Copilot reviewed 38 out of 39 changed files in this pull request and generated 6 comments.


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

Comment thread LearningPlatform/components/theme-toggle.tsx Outdated
Comment thread LearningPlatform/components/admin/topbar.tsx Outdated
Comment thread LearningPlatform/components/useIsDark.tsx Outdated
Comment thread LearningPlatform/components/admin/sidebar.tsx Outdated
Comment thread LearningPlatform/components/settings/lesson-reading-size.tsx Outdated
Z4phxr added 2 commits April 22, 2026 18:43
… ORM for migration execution, improving CI compatibility and simplifying the migration process
@Z4phxr Z4phxr merged commit ad44de1 into main Apr 22, 2026
4 checks passed
@Z4phxr Z4phxr deleted the chore/security_uplift branch April 24, 2026 21:07
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