Skip to content

Update package.json - #49

Open
toolsmktup-frag wants to merge 1 commit into
thaleslaray:mainfrom
toolsmktup-frag:patch-1
Open

Update package.json#49
toolsmktup-frag wants to merge 1 commit into
thaleslaray:mainfrom
toolsmktup-frag:patch-1

Conversation

@toolsmktup-frag

@toolsmktup-frag toolsmktup-frag commented Apr 10, 2026

Copy link
Copy Markdown

Summary by CodeRabbit

  • Chores
    • Updated project dependencies to enhance compatibility and system stability.

@vercel

vercel Bot commented Apr 10, 2026

Copy link
Copy Markdown

@toolsmktup-frag is attempting to deploy a commit to the Thales Laray Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Apr 10, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Package.json dependency updates include adding Model Context Protocol SDK support, downgrading React and Next.js versions, and updating override configurations. This represents a shift in framework versions and new model integration capabilities.

Changes

Cohort / File(s) Summary
Dependency & Configuration Updates
package.json
Added @modelcontextprotocol/sdk@1.26.0 dependency; downgraded Next.js from ^16.1.6 to ^14.2.5 and React/ReactDOM from ^19.2.4 to 18.2.0; replaced jsondiffpatch override with @modelcontextprotocol/sdk override at ^1.26.0.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Poem

🐰 Fresh dependencies hop into place,
MCP SDK joins the race,
React and Next take a step back in time,
New protocols dance in perfect rhyme—
A rabbit's toolkit, refined and blessed! 🌙

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is vague and generic, using non-descriptive language that doesn't convey meaningful information about the specific changes made to package.json. Replace with a more specific title that describes the main changes, such as 'Add @modelcontextprotocol/sdk dependency and update Next.js and React versions' or similar.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@package.json`:
- Around line 48-49: The package.json has a missing trailing comma after the
"@modelcontextprotocol/sdk" dependency which makes the JSON invalid; open
package.json, locate the dependency entry for "@modelcontextprotocol/sdk" and
add a trailing comma at the end of that line so the subsequent "@dagrejs/dagre"
entry is properly delimited, then run a quick JSON lint or npm install to verify
the file parses correctly.
- Around line 108-110: Package.json has inconsistent React-related versions:
change "react-dom" to match the pinned "react" (use "18.2.0" instead of
"^18.2.0"), downgrade "@types/react" and "@types/react-dom" from "^19.0.0" to
versions that match React 18 (e.g., "^18.x" appropriate for your TS version),
and adjust "react-is" from "^19.2.4" down to a React-18-compatible release
(e.g., "^18.x") so all React runtime and type packages align; update the
dependency entries for "react", "react-dom", "@types/react", "@types/react-dom",
and "react-is" in package.json and run install to verify.
- Line 103: The package.json downgrade to Next.js 14.2.5 conflicts with Next
16-only config options; either restore Next.js 16.x in package.json or
remove/adjust the Next 16-specific settings in next.config.ts: remove the
top-level reactCompiler entry and delete the proxyClientMaxBodySize experimental
option, while keeping optimizePackageImports as-is (it's compatible with
14.2.5); ensure package.json's "next" version and next.config.ts options are
consistent before rebuilding.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bd846c47-5d76-4097-9f96-8bc7d1904803

📥 Commits

Reviewing files that changed from the base of the PR and between 17c69e2 and cf837bf.

📒 Files selected for processing (1)
  • package.json

Comment thread package.json
Comment on lines +48 to 49
"@modelcontextprotocol/sdk": "1.26.0"
"@dagrejs/dagre": "^1.1.8",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Missing comma causes invalid JSON syntax.

Line 48 is missing a trailing comma after the @modelcontextprotocol/sdk entry. This will cause npm install or yarn to fail with a JSON parse error.

🐛 Proposed fix
-    "@modelcontextprotocol/sdk": "1.26.0"
+    "@modelcontextprotocol/sdk": "1.26.0",
     "@dagrejs/dagre": "^1.1.8",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@modelcontextprotocol/sdk": "1.26.0"
"@dagrejs/dagre": "^1.1.8",
"@modelcontextprotocol/sdk": "1.26.0",
"@dagrejs/dagre": "^1.1.8",
🧰 Tools
🪛 Biome (2.4.10)

[error] 49-49: expected , but instead found "@dagrejs/dagre"

(parse)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` around lines 48 - 49, The package.json has a missing trailing
comma after the "@modelcontextprotocol/sdk" dependency which makes the JSON
invalid; open package.json, locate the dependency entry for
"@modelcontextprotocol/sdk" and add a trailing comma at the end of that line so
the subsequent "@dagrejs/dagre" entry is properly delimited, then run a quick
JSON lint or npm install to verify the file parses correctly.

Comment thread package.json
"motion": "^12.23.24",
"nanoid": "^5.1.6",
"next": "^16.1.6",
"next": "^14.2.5",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check next.config.ts for Next.js 16-specific features
echo "=== Checking next.config.ts for potentially incompatible features ==="
rg -n "optimizePackageImports|reactCompiler|proxyClientMaxBodySize" next.config.ts

Repository: thaleslaray/smartzap

Length of output: 272


🏁 Script executed:

#!/bin/bash
# Get context around the mentioned features in next.config.ts
echo "=== Full next.config.ts content ==="
cat -n next.config.ts

Repository: thaleslaray/smartzap

Length of output: 4407


🏁 Script executed:

#!/bin/bash
# Confirm package.json next version at line 103
echo "=== Checking Next.js version around line 103 ==="
sed -n '100,106p' package.json

Repository: thaleslaray/smartzap

Length of output: 295


🌐 Web query:

Next.js optimizePackageImports feature version introduced release

💡 Result:

optimizePackageImports was introduced in Next.js 13.5 (as an automatic successor to modularizeImports). [1], [2]

Config name at introduction: experimental.optimizePackageImports. [1], [2]

Sources:
[1] Next.js 13.5 release post (Next.js blog) (nextjs.org)
[2] Vercel Conformance rule docs (NEXTJS_MISSING_OPTIMIZE_PACKAGE_IMPORTS) (vercel.com)

Citations:


🌐 Web query:

Next.js reactCompiler top-level config when introduced version

💡 Result:

The reactCompiler top-level next.config.js option was introduced in Next.js 16, when the setting was promoted from experimental.reactCompiler to stable (reactCompiler). [1]

In Next.js 15 (RC and early support), React Compiler was enabled via experimental.reactCompiler instead. [2]

Sources:
[1] Next.js “Upgrading: Version 16” guide (React Compiler Support section) (nextjs.org)
[2] Next.js blog “Next.js 15 RC” (React Compiler (Experimental) section) (nextjs.org)

Citations:


🌐 Web query:

Next.js 14.2.5 vs 16 configuration compatibility breaking changes

💡 Result:

Key configuration / convention breaking changes you’ll hit going from Next.js 14.2.5 → Next.js 16 (most land in v15 and v16):

  • Turbopack becomes the default bundler (v16) for next dev and next build. If your project depends on Webpack-specific behavior, you may need to opt out by running with --webpack (e.g., in package.json scripts). Also: experimental.turbopack config moves to top-level turbopack in next.config.*. [1]
  • Sass ~ imports break under Turbopack (v16) (e.g. @import '~bootstrap/...'); remove the ~ or add an alias via turbopack.resolveAlias. [1]
  • Async Request APIs become mandatory (v16): APIs introduced as async in v15 (with temporary sync compatibility) have sync access removed in v16—notably cookies(), headers(), draftMode(), plus params/searchParams in App Router entrypoints. This often forces code changes, but it’s a major “compatibility break” when upgrading. [1], [2]
  • PPR config flags removed/changed (v16): Next.js 16 removes experimental PPR flags/config (including route segment experimental_ppr) and points to opting in via cacheComponents instead. [1]
  • middleware.ts convention deprecated/renamed to proxy (v16), with an important runtime implication: proxy runs on nodejs and does not support edge runtime (and cannot be configured). [1]
  • runtime = "experimental-edge" no longer allowed (v15): you must use runtime = "edge" (segment config). [2]
  • Some next.config.js options are renamed as APIs stabilize (v15), e.g.:
    • experimental.bundlePagesExternalsbundlePagesRouterDependencies
    • experimental.serverComponentsExternalPackagesserverExternalPackages [2]

Sources: Next.js official upgrade guides for v16 and v15, plus the Next.js 16 release post. [1], [2], [3]


🌐 Web query:

Next.js proxyClientMaxBodySize experimental option introduced version compatibility

💡 Result:

experimental.proxyClientMaxBodySize is the Next.js “proxy.ts era” rename of the older middleware setting, and it’s intended to be used when you have a proxy.ts file (the Proxy feature introduced in Next.js 16). [1], [2]

Version compatibility (practical):

  • Next.js 16.x: Use experimental.proxyClientMaxBodySize. It’s present at least by v16.0.1. [3], [1]
  • Next.js 15.x (and earlier, using middleware.ts): proxyClientMaxBodySize will be unrecognized; the corresponding config key was experimental.middlewareClientMaxBodySize and is renamed by the official codemod when migrating to proxy. [2], [4]

Migration note: The official upgrade codemod explicitly renames
experimental.middlewareClientMaxBodySizeexperimental.proxyClientMaxBodySize (along with middleware.tsproxy.ts). [2]

Sources

  1. Next.js docs: experimental.proxyClientMaxBodySize option. [1]
  2. Next.js upgrade codemod docs (middleware → proxy + config key renames). [2]
  3. Next.js 16.0.1 source fixture showing proxyClientMaxBodySize in config output. [3]
  4. Example project release notes noting Next 15 warns “Unrecognized key” and Next 16 enables proxyClientMaxBodySize. [4]

Next.js downgrade from 16.x to 14.x will break the build.

The next.config.ts uses Next.js 16-specific features that don't exist in 14.2.5:

  • reactCompiler at top-level (line 68; introduced in Next.js 16)
  • proxyClientMaxBodySize in experimental (line 50; new in Next.js 16 with the proxy feature)

The optimizePackageImports feature (line 44) is compatible with 14.2.5, as it was introduced in Next.js 13.5 and is safe to keep.

Either maintain Next.js 16.x or update next.config.ts to remove reactCompiler and proxyClientMaxBodySize.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` at line 103, The package.json downgrade to Next.js 14.2.5
conflicts with Next 16-only config options; either restore Next.js 16.x in
package.json or remove/adjust the Next 16-specific settings in next.config.ts:
remove the top-level reactCompiler entry and delete the proxyClientMaxBodySize
experimental option, while keeping optimizePackageImports as-is (it's compatible
with 14.2.5); ensure package.json's "next" version and next.config.ts options
are consistent before rebuilding.

Comment thread package.json
Comment on lines +108 to +110
"react": "18.2.0",
"react-day-picker": "^9.13.0",
"react-dom": "^19.2.4",
"react-dom": "^18.2.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

React version inconsistencies will cause issues.

  1. Inconsistent caret usage: react: 18.2.0 (pinned) vs react-dom: ^18.2.0 (range) — these should match.

  2. Type definition mismatch: @types/react and @types/react-dom at lines 141-142 are still ^19.0.0, which won't match React 18 APIs and will cause TypeScript errors.

  3. react-is mismatch: Line 113 has react-is: ^19.2.4 which should also be downgraded to match React 18.

🐛 Proposed fix for version alignment
-    "react": "18.2.0",
+    "react": "^18.2.0",

Additionally, update these devDependencies to match React 18:

-    "@types/react": "^19.0.0",
-    "@types/react-dom": "^19.0.0",
+    "@types/react": "^18.2.0",
+    "@types/react-dom": "^18.2.0",

And align react-is:

-    "react-is": "^19.2.4",
+    "react-is": "^18.2.0",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"react": "18.2.0",
"react-day-picker": "^9.13.0",
"react-dom": "^19.2.4",
"react-dom": "^18.2.0",
"react": "^18.2.0",
"react-day-picker": "^9.13.0",
"react-dom": "^18.2.0",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` around lines 108 - 110, Package.json has inconsistent
React-related versions: change "react-dom" to match the pinned "react" (use
"18.2.0" instead of "^18.2.0"), downgrade "@types/react" and "@types/react-dom"
from "^19.0.0" to versions that match React 18 (e.g., "^18.x" appropriate for
your TS version), and adjust "react-is" from "^19.2.4" down to a
React-18-compatible release (e.g., "^18.x") so all React runtime and type
packages align; update the dependency entries for "react", "react-dom",
"@types/react", "@types/react-dom", and "react-is" in package.json and run
install to verify.

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