Repository navigation
fix(deps): update npm lockfiles for open Dependabot advisories - #9110
Conversation
Root package-lock.json (npm audit fix --package-lock-only): - adm-zip, smol-toml, re2js and katex drop out of the tree: mint 4.2.1205 -> 4.3.67 (within ^4.2.1205) no longer pulls them in - fast-xml-parser: the nested 5.7.3 copies under @mintlify go away, leaving 5.12.1 - qs: the nested 6.14.3 under @mintlify/previewing goes away - launch-editor 2.14.1 -> 2.14.2 apps/web: - vite ^7.3.6 -> ^7.3.7 (resolves 7.3.8); @ladle/react's vite 6.4.3 -> 6.4.6 - seroval 1.5.6 -> 1.8.2, zod 4.4.1 -> 4.6.7, @vitest/mocker 5.0.0 -> 5.1.1, decode-uri-component 0.5.0 -> 0.5.1, source-map-js 1.2.1 -> 1.2.4, esbuild 0.27.7 -> 0.28.2 npm audit goes from 31 to 7 findings at the root and from 12 to 0 in apps/web. The rest needs a breaking change: sharp is held at 0.33.5 by @mintlify/cli, and minimatch 10.x comes from the glob ^13 devDependency and c8 11 (via test-exclude), which need glob 14 and c8 12 majors. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — lockfile-only Dependabot security update.
What I checked:
- Diff touches only
package-lock.json(root),apps/web/package-lock.json, and a singlevite^7.3.6→^7.3.7devDependency bump inapps/web/package.json. - No protocol surface touched:
static/schemas/source/**,docs/reference/**,dist/**, task definitions, and release scripts are all untouched — so no changeset is required (correctly omitted per playbook). - All version movements (vite 7.3.8, esbuild 0.28.2, @ladle/react's vite 6.4.6, mint 4.3.67 within ^4.2.1205) are dev deps moving inside existing ranges; no hand-edited
versionfields, no downgrades. high_risk: false,gated_paths: false, no no-auto-approve team match.
Decision path: No critical/high findings (row 1 n/a). gated_paths false (row 2 n/a). Not high-risk (rows 3/5 n/a). No medium findings of any category (rows 4/8 n/a). No prior escalation (row 6 n/a). No team gate (row 7 n/a). Falls through to row 9 → approve.
Note: review_decision is REVIEW_REQUIRED, but that only forces escalation when gated_paths is true (row 2), which it is not here.
…ansitively The mint 4.3 tree no longer pulls in @types/cors or the packages whose typings loaded the DOM lib, so tsc failed on `Document`, `DocumentFragment` and the `cors` import. Add @types/cors as a devDependency and a `/// <reference lib="dom" />` to the four files that cast linkedom/DOMPurify results to DOM types, rather than widening the server-wide lib. Co-Authored-By: Claude Opus 5.5 <[email protected]>
💡 Codex ReviewLine 2136 in 3bf9389 Checking both npm lockfiles shows that this refresh removes every root-tree copy of ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — dependency maintenance with no actionable findings.
This PR is pure dependency/lockfile maintenance: adds @types/cors devDependency, refreshes package.json/package-lock.json at both root and apps/web, and adds four identical /// <reference lib="dom" /> directives on server files that cast linkedom/DOMPurify output to Document/DocumentFragment. The reviewer verified document references originate from parseHTML(html) (linkedom), not browser globals, so the DOM lib supplies type names only with no runtime dependency.
No protocol surface (static/schemas/source/**) touched, so schema↔docs coherence, oneOf discriminator, changeset-scope, and 3.1.x patch-eligibility gates do not apply; the omitted changeset is correct for an app/infra-only change.
High-risk flag is true only because two server/src/addie/** files were (modified), but the reviewer found no medium-or-higher concerns on them, so row 5 does not fire. gated_paths is false; no no-auto-approve team match. Prior decision was approve with no findings, and this run also surfaces none. No decision-table rows 1–8 fire → row 9 approve.
Adding the DOM lib (previous commit) conflicted with Node's global JsonWebKey in the training-agent signing code. Instead, take the document type from Readability's constructor and drop the DocumentFragment casts on DOMPurify results; their consumers already take `any`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — type-only cleanup in server/** following a dependency update.
This PR removes /// <reference lib="dom" /> directives and replaces DOM-lib casts (as unknown as DocumentFragment, as unknown as Document → ConstructorParameters<typeof Readability>[0]) across 4 server TypeScript files, plus lockfile/package.json dependency updates. No runtime behavior change, no protocol surface touched (static/schemas/source/, docs/reference/, dist/** all untouched), and server-only changes carry no changeset obligation.
Decision table walkthrough:
- No critical/high findings (row 1 no).
- gated_paths is false (row 2 no).
- high_risk is true, but all reasons are
(modified)— none(deleted)(row 3 no). - No medium findings at all (rows 4, 5, 8 no).
- Prior decision was
approve, notescalate(row 6 no). - No no-auto-approve team match (row 7 no).
- Falls through to row 9 → approve.
The high_risk flag fired on server/src/addie/** modifications, but per the risk-reading guidance a (modified) sensitive file with no medium-or-higher finding is presumed safe. Reviewer confirms this is a mechanical, type-only delta with no wire-shape or governance implications. Prior clean pass stands.
Codex was right about |
…tly (#9113) scripts/dev-docs.mjs imports chokidar and scripts/google-oauth-setup.ts imports open, but neither was declared. Both came from the Mintlify dependency tree, and #9110 pruned that tree, so `npm run dev:docs` and the OAuth setup script now fail with ERR_MODULE_NOT_FOUND after a clean install. Declare them as root devDependencies on the majors the scripts already ran against (chokidar 3, open 8). Co-authored-by: Claude Opus 5.5 <[email protected]>
Lockfile-only security update for the two npm manifests with open Dependabot alerts, plus a patch bump of
viteinapps/web. No major version changes and no--force.What changed
package-lock.json(root):npm audit fix --package-lock-only --ignore-scripts.mintmoves 4.2.1205 -> 4.3.67, inside the existing^4.2.1205range. Its smaller tree dropsadm-zip,smol-toml,re2jsandkatex, along with the nestedfast-xml-parser5.7.3 andqs6.14.3 copies.launch-editorgoes 2.14.1 -> 2.14.2.apps/web/package.json:vite^7.3.6->^7.3.7.apps/web/package-lock.json: refreshed withnpm install --package-lock-only, thennpm audit fix --package-lock-only. Changes: vite 7.3.6 -> 7.3.8, @ladle/react's vite 6.4.3 -> 6.4.6 (under the existing^6.4.3override), seroval 1.5.6 -> 1.8.2, zod 4.4.1 -> 4.6.7, @vitest/mocker 5.0.0 -> 5.1.1, decode-uri-component 0.5.0 -> 0.5.1, source-map-js 1.2.1 -> 1.2.4, esbuild 0.27.7 -> 0.28.2.Server types: the old Mintlify tree brought in
@types/corsand typings that declaredDocument/DocumentFragment, andtscforserver/depended on them without saying so. This adds@types/corsas a devDependency. In the two linkedom-to-Readability call sites, the document type now comes from Readability's constructor, and theDocumentFragmentcasts on DOMPurify results are gone because their consumers already takeany. I tried adding the DOM lib, but it conflicts with Node's globalJsonWebKeyin the training-agent signing code.npm auditdrops from 31 to 7 findings at the root and from 12 to 0 inapps/web.npm ls --all --package-lock-onlyreports no missing or invalid packages that weren't already there. The lockfiles were generated with npm 10.9.4, which matchespackageManager.No changeset, because this is dependency maintenance with no protocol change (see
.agents/playbook.md).Dependabot alerts cleared (36)
package-lock.json(14): adm-zip Replace package status enum with paused boolean #239, Add template formats with deterministic format IDs #244, Metabase analytics integration and security improvements #262, Add team membership features with security hardening #267 · smol-toml Fix Addie performance and add cache invalidation #387, Add user simulation and impersonation support for Addie #390 · fast-xml-parser Improve individual account handling in UI and emails #391 · re2js Add member thank you email and dashboard navigation refactor #375 · katex Fix npm vulnerabilities, remove unused deps, improve security docs #308 · qs feat: add preview_creative task and creative agent framework #94, Improve creative documentation testability and clarity #364 · launch-editor Disable auto_stop_machines to fix intermittent CF 523 errors #325, Add automated IPR agreement workflow #338, Remove agent registry and consolidate to member directory #339apps/web/package-lock.json(22): vite Fix docs search bar being covered by header overlay #320, Hide billing button until user subscribes, move membership to top #321, Fix allOf + additionalProperties validation and add oneOf titles #334, Remove defaults and example URLs from adagents.json #335, Fix MCP response format docs to use flat structure #336, Fix schema versioning to preserve released versions #337, Search in docs obscured; cannot search docs #341, Fix governance page terminology and update headshot #342, core/error.json doesn't specify data type of the "details" property #343, Fix Fly deploy: remove deleted registry directory from Dockerfile #344 · seroval Add logging and error handling for member profile API #304, Use full name for personal workspace display names #305, Fix Slack signature verification by excluding routes from global JSON parser #370, Fix Slack account linking to show user's actual organizations #371, Add working group member sync from Slack #372, Add Individual/Company filtering and subscription tracking #373 · zod Fix reporting_webhook schema to enable additionalProperties validation #357 · @vitest/mocker Fix Fly deploy: remove deleted registry from Dockerfile #345, Remove custom nav from Mintlify docs #346 · decode-uri-component Add member engagement tracking with signals and interest levels #376 · source-map-js Cache validated sessions to reduce WorkOS API calls #303 · esbuild Make brand_manifest optional for backwards compatibility #103Still open, out of scope (4)
@mintlify/cli(throughmint) pins[email protected]. The top-level[email protected]is already patched. Fixing the nested copy needs a Mintlify release or an override that moves sharp across a major.[email protected]comes from theglob ^13devDependency and fromc8@11throughtest-exclude. The fix is in minimatch 11, which needsglob14 andc812, both majors.Rust alerts in
apps/desktop/src-tauri/Cargo.lockand the Pythonuv.lockalerts aren't touched here. A separate PR coversuv.lock.🤖 Generated with Claude Code