Repository navigation
Fix all 56 Dependabot alerts and preserve Gemini compatibility - #134
Merged
Merged
Conversation
|
Deployment #320 deployed successfully
Deployed on Manufact.com |
YahiaBakour
marked this pull request as ready for review
November 9, 2026 05:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current lockfile triggers 56 Dependabot alerts across 16 packages: 2 critical, 19 high, 28 medium, and 7 low. This updates the affected direct dependencies, overrides, and transitive packages; every installed version is outside all 56 reported vulnerable ranges, and npm audit reports zero vulnerabilities.
Zod now emits primitive unions as type arrays. That broke Gemini compatibility for the brand tool's phone and MCC fields. Convert those published unions to anyOf while preserving constraints and nullability, with regression tests exercising the actual Zod output and schema acceptance.
Validation:
Dependabot alerts on main should resolve after this PR is merged and GitHub rescans the dependency graph.
Note
Medium Risk
Dependency and override churn can affect runtime behavior (HTTP stack, validation), but changes are mostly security pins plus a schema-widening publish step with tests; CI now enforces clean audit on two Node versions.
Overview
Addresses 56 Dependabot alerts by bumping direct dependencies (
hono,undici,zod) and tighteningpackage.jsonoverrides (MCP SDK, DOMPurify, KaTeX,ip-address,proxy-addr, nestedzod, etc.), with an updated lockfile.CI now runs tests on a Node 20 and 22 matrix with
fail-fast: falseand fails the job onnpm audit --audit-level=low.After the Zod upgrade, primitive unions show up as
typearrays in published JSON Schema, which Gemini rejects.compactPublishedSchemagainsexpandTypeUnionto rewrite those intoanyOfwhile preserving constraints and nullability; regression tests cover real Zod output and equivalence with the full validator.Reviewed by Cursor Bugbot for commit 4235197. Bugbot is set up for automated code reviews on this repo. Configure here.