Skip to content

chore(deps): upgrade monaco-editor to 0.57.0 - #9892

Merged
waleedlatif1 merged 1 commit into
stagingfrom
chore/deps-monaco
Nov 11, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
chore/deps-monaco

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Upgrades monaco-editor 0.55.1 → 0.57.0. @monaco-editor/react stays on 4.7.0: it's the latest stable release and its peer range is >= 0.25.0 < 1.
  • 0.56 reorganized the package exports. "./*" now maps to ./esm/vs/*.js, so the old monaco-editor/esm/vs/language/<lang>/<lang>.worker and monaco-editor/esm/vs/editor/editor.worker specifiers resolve to esm/vs/esm/vs/..., which doesn't exist. The file editor's MonacoEnvironment.getWorker now uses the supported entry points monaco-editor/languages/features/<lang>/<lang>.worker and monaco-editor/editor/editor.worker.
  • Nothing else in Sim changes. The other 0.56 breaking changes (stackOridinal → stackOrdinal, removing IMirrorModel/IWorkerContext) don't affect Sim. Sim doesn't use languages.typescript/json defaults. MonacoEnvironment.getWorker still takes priority over the built-in worker factory (internal/common/workers.js). The root import('monaco-editor') still exports editor, KeyMod, and KeyCode, and the editor CSS is still imported through the same side-effect imports. 0.57 is additive (new options, DOMPurify bump, which the root dompurify override already covers).

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other: dependency upgrade

Testing

  • Resolution (esbuild, exports-map aware, resolved from apps/sim) against 0.57.0: the old esm/vs/language/json/json.worker and esm/vs/editor/editor.worker specifiers fail with "Could not resolve". All five new worker specifiers and monaco-editor bundle.
  • Real browser (headless Chromium via Playwright): I bundled monaco-editor 0.57.0 with a getWorker that has the same label→worker routing as text-editor.tsx, using the new specifiers, and created editors. The JSON worker reported "Trailing comma", CSS reported "Unknown property", the TS worker reported a type error, and the diff editor got its line changes from the editor worker. There were no page or console errors.
  • tsc --noEmit scoped to text-editor.tsx (+ app ambient types): clean.
  • bun install --frozen-lockfile: clean. The lockfile only changed for monaco-editor.
  • I didn't run next build locally, so CI covers the Turbopack bundle. Reviewers: please open a code/JSON file in the Files editor on the preview and check that syntax validation and the find widget work.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

🤖 Generated with Claude Code

0.56 reorganized the package exports so subpaths map under esm/vs; the
old monaco-editor/esm/vs/... worker URLs no longer resolve. Point the
file editor's workers at the new supported entry points.
@waleedlatif1
waleedlatif1 requested a review from a team as a code owner November 11, 2026 21:10
@vercel

vercel Bot commented Nov 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Building Building Preview Nov 11, 2026 9:10pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defects were found.

Summary

Upgrades monaco-editor from 0.55.1 to 0.57.0.

  • The Files editor loads Monaco workers from paths supported by version 0.57.0.

Reviews (1) · Last reviewed commit: "chore(deps): upgrade monaco-editor to 0...." · Reviewed by Greptile

This branch was successfully deployed

1 active deployment
Preview — 6e3a9b94 Deployed Nov 11, 2026 by vercel[bot]
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.

1 participant