Skip to content

chore(deps): zod 4.6, the version the MCP server library can share - #1784

Merged
mobeenabdullah merged 1 commit into
mainfrom
chore/zod-4-6
Sep 11, 2026
Merged

mobeenabdullah merged 1 commit into
mainfrom
chore/zod-4-6

Conversation

@mobeenabdullah

Copy link
Copy Markdown
Collaborator

Decision D11, Phase 5.1. The MCP server library (@modelcontextprotocol/server@2.0.0) peers on zod ^4.2.0; the workspace held 4.1.12 in four manifests (root, nextly, admin, plugin-form-builder; 69 files import it), and pnpm would have installed a second zod beside it for the peer, so no schema of one would satisfy the other's instanceof. The ranges already stated (^4.1.12) permitted the current release, 4.6.2; only the lockfile held it back. One zod everywhere is what lets the coming MCP plugin describe its tools in the same language the rest of Nextly describes content.

What changes

  • The four manifests state ^4.6.2, the version tested here. Every lockfile line that changed names zod: the four importers, the package itself, and the peer suffixes drizzle-orm and zod-validation-error carry. pnpm install --frozen-lockfile is clean.
  • One behaviour moved with it. zod 4.4+ refuses a schema whose registrations collide on an id in z.toJSONSchema ("Duplicate schema id") rather than emitting a shorter schema. That is exactly the corruption the block-document emitter already guarded after the fact (prototype pollution of id). The emitter turns that refusal into its own SCHEMA_DERIVATION_FAILED, so a caller sees one error for one reason, and parseBlockDocument answers "cannot be checked" rather than throwing when its field list is derived cold under the corruption; its after-the-fact guard stays for a corruption zod does not see. One test updated, one added (a fresh module loaded with the pollution present), two mutation controls red and restored.
  • Changeset: .changeset/one-zod-the-mcp-server-can-share.md, patch across the group as every changeset here is.

What was read before bumping

The release notes 4.2 to 4.6 name real behaviour changes; the suites are the gate and these were checked by hand: .pick()/.omit()/.merge() on refined objects now throw (the two .merge() receivers here are plain z.objects; the .omit is generated text); string .min/.max/.length count code points; the email regex and its JSON-Schema pattern changed (no test here asserts on either); tuple defaults; CUID tightened (unused).

Verified

The MCP server library needs zod 4.2 or newer; the workspace held 4.1.12
in four manifests, and pnpm would have installed a second zod beside it
for the peer, so no schema of one would satisfy the other. The range the
manifests already stated permitted the current release; only the lockfile
held it back. Every lockfile line that changed names zod: the four
importers, the package itself, and the peer suffixes drizzle-orm and
zod-validation-error carry.

zod's JSON Schema converter now refuses a schema whose registrations
collide on an id, which is the corruption the block document emitter
already refused after the fact; the emitter gives that refusal its own
shape, so a caller sees one error for one reason, and a document checked
against a derivation that cannot be made is answered, not thrown at.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T11:59:19.432849Z e5af4bb Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 20d03c37-9895-493c-8d6a-990d7665e256

📥 Commits

Reviewing files that changed from the base of the PR and between ae9e600 and e5af4bb.

⛔ Files ignored due to path filters (2)
  • .changeset/one-zod-the-mcp-server-can-share.md is excluded by !.changeset/**
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • package.json
  • packages/admin/package.json
  • packages/nextly/package.json
  • packages/nextly/src/plugins/codegen/__tests__/block-document.test.ts
  • packages/nextly/src/plugins/codegen/block-document.ts
  • packages/plugin-form-builder/package.json

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.

@mobeenabdullah

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: e5af4bb4cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@pkg-pr-new

pkg-pr-new Bot commented Sep 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

@nextlyhq/adapter-drizzle

npm i https://pkg.pr.new/@nextlyhq/adapter-drizzle@e5af4bb

@nextlyhq/adapter-mysql

npm i https://pkg.pr.new/@nextlyhq/adapter-mysql@e5af4bb

@nextlyhq/adapter-postgres

npm i https://pkg.pr.new/@nextlyhq/adapter-postgres@e5af4bb

@nextlyhq/adapter-sqlite

npm i https://pkg.pr.new/@nextlyhq/adapter-sqlite@e5af4bb

@nextlyhq/admin

npm i https://pkg.pr.new/@nextlyhq/admin@e5af4bb

@nextlyhq/admin-css

npm i https://pkg.pr.new/@nextlyhq/admin-css@e5af4bb

@nextlyhq/blocks-engine

npm i https://pkg.pr.new/@nextlyhq/blocks-engine@e5af4bb

@nextlyhq/blocks-react

npm i https://pkg.pr.new/@nextlyhq/blocks-react@e5af4bb

@nextlyhq/builder

npm i https://pkg.pr.new/@nextlyhq/builder@e5af4bb

create-nextly-app

npm i https://pkg.pr.new/create-nextly-app@e5af4bb

@nextlyhq/eslint-plugin

npm i https://pkg.pr.new/@nextlyhq/eslint-plugin@e5af4bb

nextly

npm i https://pkg.pr.new/nextly@e5af4bb

@nextlyhq/plugin-form-builder

npm i https://pkg.pr.new/@nextlyhq/plugin-form-builder@e5af4bb

@nextlyhq/plugin-page-builder

npm i https://pkg.pr.new/@nextlyhq/plugin-page-builder@e5af4bb

@nextlyhq/plugin-sdk

npm i https://pkg.pr.new/@nextlyhq/plugin-sdk@e5af4bb

@nextlyhq/plugin-seo

npm i https://pkg.pr.new/@nextlyhq/plugin-seo@e5af4bb

@nextlyhq/storage-s3

npm i https://pkg.pr.new/@nextlyhq/storage-s3@e5af4bb

@nextlyhq/storage-uploadthing

npm i https://pkg.pr.new/@nextlyhq/storage-uploadthing@e5af4bb

@nextlyhq/storage-vercel-blob

npm i https://pkg.pr.new/@nextlyhq/storage-vercel-blob@e5af4bb

@nextlyhq/ui

npm i https://pkg.pr.new/@nextlyhq/ui@e5af4bb

commit: e5af4bb

@github-actions

Copy link
Copy Markdown
Contributor

Whole-Repository Code Hygiene Summary

Full dead-code, duplication, and complexity report for the PR branch as it stands now. Playground is excluded. Quality gate enforcement on introduced issues is performed by the Changed files job.

🌿 Fallow

Warning

Review needed

⚠️ 73 code issues · ⚠️ 694 clone groups · ⚠️ 1044 health findings

See inline review comments for per-finding details.

Code issues (73)
Category Count
Unused files 2
Unused exports 5
Unused dependencies 19
Unused devDependencies 6
Unresolved imports 2
Unlisted dependencies 1
Circular dependencies 38
Duplication (694 groups · 29077 lines · 4.1%)
Locations Lines Tokens
schemas/_dialect-bundles/mysql.relations.ts:40-134
schemas/_dialect-bundles/postgres.relations.ts:40-134
schemas/_dialect-bundles/sqlite.relations.ts:40-134
95 593
cli/commands/db-sync-demote.ts:70-75
cli/commands/db-sync-promote.ts:38-43
cli/commands/dev-build.ts:100-105
cli/commands/dev-build.ts:179-184
cli/commands/dev-build.ts:299-304
cli/commands/dev-build.ts:411-416
cli/commands/dev-build.ts:552-557
cli/commands/dev-server.ts:575-580
cli/commands/dev-server.ts:840-845
cli/commands/dev-server.ts:1143-1148
cli/commands/migrate-field-groups.ts:110-115
6 70
entries/EntryList/EntryTableSkeleton.tsx:74-98
collection/components/CollectionTableSkeleton.tsx:94-118
field-group/components/FieldGroupTableSkeleton.tsx:90-114
plugins/components/PluginsTableSkeleton.tsx:86-110
singles/components/SinglesTableSkeleton.tsx:77-101
src/components/table-skeleton.tsx:100-124
25 89
collections/config/validate-config.ts:380-433
field-groups/config/validate-field-group.ts:185-238
singles/config/validate-single.ts:190-243
54 152
dispatcher/handlers/collection-dispatcher.ts:922-964
field-groups/services/field-group-table-provisioning.ts:186-236
singles/services/reconcile-single-companion.ts:110-160
51 149

… and 689 more groups.

Across 423 files.

Complexity (1044 functions above threshold)
File Function Severity Cyclomatic Cognitive CRAP Lines
singles/services/single-mutation-service.ts:981 <arrow> critical 251 ! 324 ! 13859.2 ! 1625
collections/services/collection-mutation-service.ts:6209 <arrow> critical 174 ! 177 ! 6713.6 ! 1301
src/init/reload-config.ts:1319 applyReload critical 144 ! 228 ! 4623 ! 1433
shared/lib/entry-validation.ts:223 validateFieldValue critical 109 ! 157 ! 2675.3 ! 432
blocks-engine/src/measure-bytes.ts:646 surveyDocument critical 102 ! 250 ! 137.1 ! 658

4995 files, 76427 functions analyzed (thresholds: cyclomatic > 20, cognitive > 15, CRAP >= 30)

Codebase health

Metric Value
Maintainability 91.7 / 100
Avg complexity 1.8

Tip

Run fallow fix --dry-run to preview auto-fixes.
Add /** @public */ above exports to preserve them.

@mobeenabdullah

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: e5af4bb4cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mobeenabdullah
mobeenabdullah enabled auto-merge (squash) September 11, 2026 12:12
@mobeenabdullah
mobeenabdullah merged commit 4a34f1e into main Sep 11, 2026
22 of 23 checks passed
@github-actions github-actions Bot added scope: core nextly scope: admin @nextlyhq/admin type: docs Documentation only scope: plugin @nextlyhq/plugin-* packages dependencies Dependency updates (label applied by Dependabot) labels Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates (label applied by Dependabot) scope: admin @nextlyhq/admin scope: core nextly scope: plugin @nextlyhq/plugin-* packages type: docs Documentation only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant