Skip to content

Update Next.js to latest minor/patch versions - #1592

Merged
N2D4 merged 5 commits into
devfrom
devin/1781310648-update-nextjs-versions
Jun 15, 2026
Merged

N2D4 merged 5 commits into
devfrom
devin/1781310648-update-nextjs-versions

Conversation

@N2D4

@N2D4 N2D4 commented Jun 13, 2026 •

Copy link
Copy Markdown
Contributor
  • Next.js 15: 15.5.10 → 15.5.19
  • Next.js 16: 16.1.5/16.1.7 → 16.2.9
  • Next.js 14 packages already at latest (14.2.35), unchanged

Link to Devin session: https://app.devin.ai/sessions/000f8d810c7d425580b06fd493432b33
Requested by: @N2D4


Summary by cubic

Update next to the latest minor/patch across the monorepo; merged dev and regenerated pnpm-lock.yaml with [email protected] to restore overrides/patches and remove stale [email protected]. Includes a small dashboard lint fix for [email protected].

  • Dependencies

    • Bumped to [email protected]: apps/backend, apps/dashboard, apps/internal-tool, apps/mcp, apps/skills (per minimumReleaseAge).
    • Bumped to [email protected]: docs, examples/demo, examples/convex.
    • next@14 packages remain at 14.2.35 (no changes).
  • Bug Fixes

    • Dashboard widget playground: remove unnecessary optional chain and call props.reset() (non-nullable in [email protected]).

Written for commit 77a46ea. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Chores
    • Updated the underlying web framework version across multiple apps, examples, and documentation to newer patch releases.
  • Bug Fix
    • Improved widget error fallback: the “Reload widget” control now calls the reset handler directly (instead of conditionally), providing more consistent recovery behavior if the handler is missing.

- 15.5.10 → 15.5.19 (docs, examples/demo, examples/convex)
- 16.1.5/16.1.7 → 16.2.9 (apps/backend, apps/dashboard, apps/skills, apps/mcp, apps/internal-tool)
- 14.x packages already at latest (14.2.35), no changes needed

Co-Authored-By: Konstantin Wohlwend <[email protected]>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Jun 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stack-auth-hosted-components Ready Ready Preview, Comment Jun 15, 2026 7:36pm
stack-auth-internal-tool Ready Ready Preview, Comment Jun 15, 2026 7:36pm
stack-auth-mcp Ready Ready Preview, Comment Jun 15, 2026 7:36pm
stack-auth-skills Ready Ready Preview, Comment Jun 15, 2026 7:36pm
stack-backend Ready Ready Preview, Comment Jun 15, 2026 7:36pm
stack-dashboard Ready Ready Preview, Comment Jun 15, 2026 7:36pm
stack-demo Ready Ready Preview, Comment Jun 15, 2026 7:36pm
stack-docs Error Error Jun 15, 2026 7:36pm
stack-preview-backend Ready Ready Preview, Comment Jun 15, 2026 7:36pm
stack-preview-dashboard Ready Ready Preview, Comment Jun 15, 2026 7:36pm

@coderabbitai

coderabbitai Bot commented Jun 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 45d60033-6d0b-466a-90e4-f6e358acbff2

📥 Commits

Reviewing files that changed from the base of the PR and between f7dc8e2 and 77a46ea.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (8)
  • apps/backend/package.json
  • apps/dashboard/package.json
  • apps/internal-tool/package.json
  • apps/mcp/package.json
  • apps/skills/package.json
  • docs/package.json
  • examples/convex/package.json
  • examples/demo/package.json
✅ Files skipped from review due to trivial changes (2)
  • apps/skills/package.json
  • apps/backend/package.json
🚧 Files skipped from review as they are similar to previous changes (6)
  • apps/mcp/package.json
  • examples/demo/package.json
  • apps/internal-tool/package.json
  • examples/convex/package.json
  • docs/package.json
  • apps/dashboard/package.json

📝 Walkthrough

Walkthrough

Bump Next.js versions across apps, docs, and examples; and change the widget playground error-boundary reload button to call props.reset() unguarded.

Changes

Next.js Dependency Updates + Widget reload fix

Layer / File(s) Summary
Core applications v16 upgrade
apps/backend/package.json, apps/dashboard/package.json, apps/internal-tool/package.json, apps/mcp/package.json, apps/skills/package.json
Next.js dependency is bumped to 16.2.7 in these core application packages.
Examples and documentation v15 upgrade
docs/package.json, examples/convex/package.json, examples/demo/package.json
Next.js dependency is bumped to 15.5.19 in docs and example project packages.
Widget reload handler
apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/widget-playground/page-client.tsx
Runtime error fallback "Reload widget" handler changed from props.reset?.() to props.reset().

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through package rows tonight,
Tucked versions snug and set them right.
A single call I made more bold —
Reset now runs, no guard to hold. 🥕

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: updating Next.js dependencies across the monorepo to latest minor/patch versions.
Description check ✅ Passed The description provides clear details about version updates, affected packages, and includes a lint fix explanation. It meets the minimal template requirements.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch devin/1781310648-update-nextjs-versions

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.

@coderabbitai coderabbitai Bot 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
examples/convex/package.json (1)

35-35: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Critical: eslint-config-next major version mismatch with next.

The eslint-config-next is pinned to 14.2.5, but next was upgraded to 15.5.19. This is a major version incompatibility (14 vs 15). ESLint configurations are tightly coupled to their corresponding Next.js versions and contain version-specific rules, rule updates, and semantics. With a 14.x config applied to 15.x code, linting will either fail on valid Next.js 15 patterns (e.g., async cookies, headers, params) or fail to catch violations of Next.js 15 requirements. This breaks the linting contract and introduces silent rule-checking failures.

🔧 Proposed fix
-    "eslint-config-next": "14.2.5",
+    "eslint-config-next": "15.5.19",
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/convex/package.json` at line 35, The package.json pins
"eslint-config-next" to 14.2.5 while "next" is at 15.5.19, causing a
major-version mismatch; update the "eslint-config-next" dependency in
package.json to a 15.x version that matches or is compatible with "next" 15
(e.g., bump "eslint-config-next" to the corresponding 15.y.z release), then run
npm/yarn install and re-run linting to verify no config-rule conflicts; ensure
both "next" and "eslint-config-next" versions align going forward.
🧹 Nitpick comments (1)
docs/package.json (1)

68-68: 📐 Maintainability & Code Quality | ⚡ Quick win

Consider aligning eslint-config-next version with next for consistency.

The eslint-config-next is pinned to 15.3.2, while next was just upgraded to 15.5.19. Although both are within the Next.js 15.x family, ESLint configurations can diverge across minor versions (e.g., new rules, rule updates, or semantic changes). Aligning the versions ensures consistent linting behavior.

📋 Proposed fix
-    "eslint-config-next": "15.3.2",
+    "eslint-config-next": "15.5.19",
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/package.json` at line 68, The eslint-config-next dependency in
package.json ("eslint-config-next") is pinned to 15.3.2 while the "next" package
was upgraded to 15.5.19; update the "eslint-config-next" entry to match the
"next" version (15.5.19) in package.json, then reinstall dependencies (npm/yarn
install) and run the linter/CI to verify no rule changes break the codebase.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@examples/convex/package.json`:
- Line 35: The package.json pins "eslint-config-next" to 14.2.5 while "next" is
at 15.5.19, causing a major-version mismatch; update the "eslint-config-next"
dependency in package.json to a 15.x version that matches or is compatible with
"next" 15 (e.g., bump "eslint-config-next" to the corresponding 15.y.z release),
then run npm/yarn install and re-run linting to verify no config-rule conflicts;
ensure both "next" and "eslint-config-next" versions align going forward.

---

Nitpick comments:
In `@docs/package.json`:
- Line 68: The eslint-config-next dependency in package.json
("eslint-config-next") is pinned to 15.3.2 while the "next" package was upgraded
to 15.5.19; update the "eslint-config-next" entry to match the "next" version
(15.5.19) in package.json, then reinstall dependencies (npm/yarn install) and
run the linter/CI to verify no rule changes break the codebase.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ad4fb98b-c61e-49ed-ad7b-e681f2e8ce43

📥 Commits

Reviewing files that changed from the base of the PR and between 6de2536 and 45bece2.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (8)
  • apps/backend/package.json
  • apps/dashboard/package.json
  • apps/internal-tool/package.json
  • apps/mcp/package.json
  • apps/skills/package.json
  • docs/package.json
  • examples/convex/package.json
  • examples/demo/package.json

@greptile-apps

greptile-apps Bot commented Jun 13, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR bumps Next.js across the monorepo — five apps from 16.1.x to 16.2.9 and three projects from 15.5.10 to 15.5.19. While the package.json changes are clean minor/patch version pins, the regenerated pnpm-lock.yaml is inconsistent with pnpm-workspace.yaml.

  • Next.js 16 apps (backend, dashboard, internal-tool, mcp, skills): 16.1.x → 16.2.9, picking up ~80% faster dev startup, stable server fast-refresh, and 2–20x faster ImageResponse.
  • Next.js 15 projects (docs, examples/convex, examples/demo): 15.5.10 → 15.5.19, bug-fix and stability patch.
  • Lock file regression: The new pnpm-lock.yaml is missing the overrides, packageExtensionsChecksum, and patchedDependencies blocks that pnpm-workspace.yaml still declares — meaning [email protected] is now installed without the patches/[email protected] that forces aadIssValidation = true, and the @types/react/@types/react-dom version pins are no longer enforced.

Confidence Score: 3/5

The Next.js version bumps themselves are safe, but the lock file was regenerated in a way that drops the openid-client patch and workspace overrides, which could silently break Azure AD OAuth token validation in the backend.

The [email protected] patch (aadIssValidation = true) is no longer applied despite pnpm-workspace.yaml still requiring it. This patch was introduced specifically to fix Microsoft OAuth flows. Anyone using Azure AD multi-tenant authentication could see token validation failures after this is deployed.

pnpm-lock.yaml — regenerated without the workspace overrides and patchedDependencies; needs to be regenerated from the root with the full pnpm-workspace.yaml context.

Security Review

  • [email protected] patch unapplied: The patch at patches/[email protected] — introduced to fix Microsoft/Azure AD OAuth (Fix MS OAuth #457) — is no longer referenced in the lock file. The patch hardcodes aadIssValidation = true; without it, issuer validation for Azure AD multi-tenant tokens reverts to the upstream default (meta[AAD_MULTITENANT]), which was previously known to cause authentication failures.

Important Files Changed

Filename Overview
pnpm-lock.yaml Lock file was regenerated without the overrides, packageExtensionsChecksum, and patchedDependencies fields from pnpm-workspace.yaml — the [email protected] patch is now unapplied and @types/react version overrides are missing.
apps/backend/package.json Bumps next from 16.1.7 to 16.2.9; also has a minor sharp specifier regression in the lock file (^0.34.5 → ^0.34.4) but resolved version is unchanged.
apps/dashboard/package.json Bumps next from 16.1.7 to 16.2.9; straightforward version pin update.
apps/internal-tool/package.json Bumps next from 16.1.5 to 16.2.9; straightforward version pin update.
apps/mcp/package.json Bumps next from 16.1.7 to 16.2.9; straightforward version pin update.
apps/skills/package.json Bumps next from 16.1.7 to 16.2.9; straightforward version pin update.
docs/package.json Bumps next from 15.5.10 to 15.5.19; straightforward minor/patch update.
examples/convex/package.json Bumps next from 15.5.10 to 15.5.19; straightforward minor/patch update.
examples/demo/package.json Bumps next from 15.5.10 to 15.5.19; straightforward minor/patch update.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    WS[pnpm-workspace.yaml
overrides + patchedDependencies
openid-client patch declared] -->|should drive| LF[pnpm-lock.yaml]
    LF -->|actual install| NM[node_modules]

    subgraph Before PR
        LF_OLD[pnpm-lock.yaml
overrides: types-react 19.2.7
patchedDependencies: openid-client] --> NM_OLD[openid-client 5.6.4
PATCHED ✓]
    end

    subgraph After PR
        LF_NEW[pnpm-lock.yaml
no overrides
no patchedDependencies] --> NM_NEW[openid-client 5.6.4
UNPATCHED ✗]
        LF_NEW --> NEXT[next 16.2.9 ✓
next 15.5.19 ✓]
    end

    WS -->|inconsistency| LF_NEW
    style NM_NEW fill:#f99,stroke:#c00
    style LF_NEW fill:#fdd,stroke:#c00
    style NEXT fill:#9f9,stroke:#090
Loading

Comments Outside Diff (1)

  1. pnpm-lock.yaml, line 1-6 (link)

    P1 security openid-client patch silently dropped despite pnpm-workspace.yaml still requiring it

    The lock file no longer contains the patchedDependencies entry for [email protected], even though pnpm-workspace.yaml still declares patchedDependencies: [email protected]: patches/[email protected] (file still exists at patches/[email protected]). As a result, openid-client is now installed as the unpatched upstream version (the resolved specifier changed from 5.6.4(patch_hash=99fe...) to 5.6.4).

    The patch itself hardcodes aadIssValidation = true (overriding the default meta[AAD_MULTITENANT]), which was introduced in "Fix MS OAuth (Fix MS OAuth #457)". Without the patch, issuer validation for Azure AD multi-tenant flows reverts to the upstream default, which was known to break Microsoft OAuth at the time the patch was added.

    The lock file was apparently regenerated without respecting pnpm-workspace.yaml — the overrides, packageExtensionsChecksum, and patchedDependencies blocks are all absent from the new file header. Running pnpm install from the root with the current pnpm-workspace.yaml should reintroduce these entries and re-apply the patch.

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: pnpm-lock.yaml
    Line: 1-6
    
    Comment:
    **`openid-client` patch silently dropped despite `pnpm-workspace.yaml` still requiring it**
    
    The lock file no longer contains the `patchedDependencies` entry for `[email protected]`, even though `pnpm-workspace.yaml` still declares `patchedDependencies: [email protected]: patches/[email protected]` (file still exists at `patches/[email protected]`). As a result, `openid-client` is now installed as the unpatched upstream version (the resolved specifier changed from `5.6.4(patch_hash=99fe...)` to `5.6.4`).
    
    The patch itself hardcodes `aadIssValidation = true` (overriding the default `meta[AAD_MULTITENANT]`), which was introduced in "Fix MS OAuth (#457)". Without the patch, issuer validation for Azure AD multi-tenant flows reverts to the upstream default, which was known to break Microsoft OAuth at the time the patch was added.
    
    The lock file was apparently regenerated without respecting `pnpm-workspace.yaml` — the `overrides`, `packageExtensionsChecksum`, and `patchedDependencies` blocks are all absent from the new file header. Running `pnpm install` from the root with the current `pnpm-workspace.yaml` should reintroduce these entries and re-apply the patch.
    
    How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
pnpm-lock.yaml:1-6
**`openid-client` patch silently dropped despite `pnpm-workspace.yaml` still requiring it**

The lock file no longer contains the `patchedDependencies` entry for `[email protected]`, even though `pnpm-workspace.yaml` still declares `patchedDependencies: [email protected]: patches/[email protected]` (file still exists at `patches/[email protected]`). As a result, `openid-client` is now installed as the unpatched upstream version (the resolved specifier changed from `5.6.4(patch_hash=99fe...)` to `5.6.4`).

The patch itself hardcodes `aadIssValidation = true` (overriding the default `meta[AAD_MULTITENANT]`), which was introduced in "Fix MS OAuth (#457)". Without the patch, issuer validation for Azure AD multi-tenant flows reverts to the upstream default, which was known to break Microsoft OAuth at the time the patch was added.

The lock file was apparently regenerated without respecting `pnpm-workspace.yaml` — the `overrides`, `packageExtensionsChecksum`, and `patchedDependencies` blocks are all absent from the new file header. Running `pnpm install` from the root with the current `pnpm-workspace.yaml` should reintroduce these entries and re-apply the patch.

Reviews (1): Last reviewed commit: "Downgrade Next.js 16 to 16.2.7 (passes m..." | Re-trigger Greptile

…on-nullable in Next.js 16.2.7)

Co-Authored-By: Konstantin Wohlwend <[email protected]>

This branch was successfully deployed

5 active deployments
Preview – stack-preview-backend — 77a46ea5 Deployed Jun 15, 2026 by vercel[bot]
Preview – stack-preview-dashboard — 77a46ea5 Deployed Jun 15, 2026 by vercel[bot]
Preview – stack-auth-internal-tool — 77a46ea5 Deployed Jun 15, 2026 by vercel[bot]
Preview – stack-auth-mcp — 77a46ea5 Deployed Jun 15, 2026 by vercel[bot]
Preview – stack-auth-skills — 77a46ea5 Deployed Jun 15, 2026 by vercel[bot]
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