Skip to content

chore(deps): update JS sample dependencies and lockfiles to resolve security alerts - #4467

Merged
Yuan325 merged 3 commits into
mainfrom
chore/update-js-sample-lockfiles
Nov 11, 2026
Merged

Yuan325 merged 3 commits into
mainfrom
chore/update-js-sample-lockfiles

Conversation

@DylanVolz

Copy link
Copy Markdown
Contributor

Description

Refreshes the 6 JavaScript sample package.json and package-lock.json manifests under docs/en/documentation/**/js/** to resolve ~205 open Dependabot security alerts (and supersede the 16 open ungrouped JS Dependabot PRs and Renovate PR #4252):

  • Updates @toolbox-sdk/adk (^0.3.0 -> ^1.2.0) in the adk quickstart and pre/post-processing samples.
  • Updates genkit and @genkit-ai/google-genai (-> ^1.44.0) in the genkit quickstart sample.
  • Updates zod (^3.23.8 -> ^4.3.6) in the langchain pre/post-processing sample.
  • Regenerates package-lock.json across all 6 JS sample directories so npm ci stays in sync with package.json and transitive dependencies (axios, follow-redirects, hono, fast-uri, qs, brace-expansion, ip-address, body-parser, handlebars, proxy-addr, etc.) resolve to patched versions.

PR Checklist

Thank you for opening a Pull Request! Before submitting your PR, there are a
few things you can do to make sure it goes smoothly:

  • Make sure you reviewed
    CONTRIBUTING.md
  • Make sure to open an issue as a
    bug/issue
    before writing your code! That way we can discuss the change, evaluate
    designs, and agree on the general idea
  • Ensure you have manually reviewed the entire diff before requesting a
    review
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)
  • Make sure to add ! if this involve a breaking change

🛠️ Fixes #<issue_number_goes_here>

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates various Node.js dependencies across multiple documentation samples, including @toolbox-sdk/adk, @genkit-ai/google-genai, genkit, and zod. Feedback is provided regarding the update of zod to an unstable pre-release version (^4.3.6) in the LangChain pre-post-processing sample, suggesting a revert or update to a stable version like ^3.24.1 to ensure clean installation for users.

…in sample

4.6.7 is the official 'latest' stable dist-tag for zod on the public npm registry (supported by @toolbox-sdk/core >= 1.2.0) and is required to resolve High-severity Dependabot alert GHSA-mrhx-c7xc-m3w5 (CVE-2023-54404, fixed in >= 4.6.6).
@Yuan325
Yuan325 merged commit fc386bb into main Nov 11, 2026
31 checks passed
@Yuan325
Yuan325 deleted the chore/update-js-sample-lockfiles branch November 11, 2026 17:58
@github-actions

Copy link
Copy Markdown
Contributor

🧨 Preview deployments removed.

Cloudflare Pages environments for pr-4467 have been deleted.

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.

3 participants