chore: update goja to latest and document ES2020+ support#330
Merged
Conversation
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>
Deploying mcpproxy-docs with
|
| 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 |
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 22897381263 --repo smart-mcp-proxy/mcpproxy-go
|
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.
Summary
github.com/dop251/gojafromv0.0.0-20251103tov0.0.0-20260305(latest)const/let, template literals, destructuring, etc.Changes
go.mod/go.sum: Upgraded goja dependencyinternal/server/mcp.go: Updatedcode_executiontool description for agentsdocs/code_execution/: Updated overview, examples, API reference, troubleshootingdocs/features/code-execution.md: Updated feature docsCLAUDE.md: Updated ES version referencesinternal/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 callingTest plan
-race-race🤖 Generated with Claude Code