Skip to content

chore: update goja to latest and document ES2020+ support#330

Merged
Dumbris merged 1 commit intomainfrom
worktree-agent-a357ca02
Mar 10, 2026
Merged

chore: update goja to latest and document ES2020+ support#330
Dumbris merged 1 commit intomainfrom
worktree-agent-a357ca02

Conversation

@Dumbris
Copy link
Contributor

@Dumbris Dumbris commented Mar 10, 2026

Summary

  • Update github.com/dop251/goja from v0.0.0-20251103 to v0.0.0-20260305 (latest)
  • Update all docs and MCP tool descriptions from "ES5.1" to "ES2020+" reflecting actual goja capabilities
  • Modernize all 13 code execution examples to use arrow functions, const/let, template literals, destructuring, etc.
  • Remove incorrect troubleshooting guidance that told users to avoid modern JS syntax

Changes

  • go.mod/go.sum: Upgraded goja dependency
  • internal/server/mcp.go: Updated code_execution tool description for agents
  • docs/code_execution/: Updated overview, examples, API reference, troubleshooting
  • docs/features/code-execution.md: Updated feature docs
  • CLAUDE.md: Updated ES version references
  • internal/jsruntime/modern_js_test.go: 18 new tests covering arrow functions, const/let, template literals, destructuring, spread/rest, classes, Promises, Symbols, Map/Set, optional chaining, nullish coalescing, generators, Proxy/Reflect, and modern JS + tool calling

Test plan

  • All 19 existing jsruntime tests pass with -race
  • All 18 new modern JS tests pass with -race
  • Server MCP E2E tests pass
  • Both personal and server editions compile
  • Pre-commit hooks pass

🤖 Generated with Claude Code

The goja JavaScript engine already supports modern ES2020+ features but
all documentation and MCP tool descriptions said "ES5.1" which was
outdated and unnecessarily restrictive for AI agents writing code.

Changes:
- Update dop251/goja from 20251103 to 20260305 (latest)
- Update MCP tool description to advertise ES2020+ features (arrow
  functions, const/let, template literals, destructuring, optional
  chaining, nullish coalescing, classes, for-of, Map/Set, etc.)
- Update all docs/code_execution/ examples to use modern JS syntax
- Update CLAUDE.md and docs/features/code-execution.md references
- Add comprehensive modern JS feature test suite (18 tests covering
  arrow functions, const/let, template literals, destructuring,
  spread/rest, default parameters, classes, for-of, Promises, Symbols,
  Map/Set, optional chaining, nullish coalescing, generators,
  Proxy/Reflect, computed properties, shorthand properties)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: e3abf07
Status: ✅  Deploy successful!
Preview URL: https://18f2b5d5.mcpproxy-docs.pages.dev
Branch Preview URL: https://worktree-agent-a357ca02.mcpproxy-docs.pages.dev

View logs

@github-actions
Copy link

📦 Build Artifacts

Workflow Run: View Run
Branch: worktree-agent-a357ca02

Available Artifacts

  • archive-darwin-amd64 (24 MB)
  • archive-darwin-arm64 (21 MB)
  • archive-linux-amd64 (13 MB)
  • archive-linux-arm64 (11 MB)
  • archive-windows-amd64 (23 MB)
  • archive-windows-arm64 (21 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (26 MB)
  • installer-dmg-darwin-arm64 (24 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 22897381263 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris Dumbris merged commit 93cc912 into main Mar 10, 2026
40 checks passed
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.

2 participants