---
title: "@monaco-editor/react 4.0.0 Breaking Changes on npm"
description: "What each @monaco-editor/react release removed, renamed or changed: 21 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@monaco-editor/react
last_updated: 2026-12-04
---

# @monaco-editor/react breaking changes

@monaco-editor/react 4.0.0 (January 17, 2021) is its newest release with breaking changes, 21 of them. The first: Removed ControlledEditor. Every breaking API change we have recorded in @monaco-editor/react on npm: 21 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.7.0`, released February 13, 2025. 

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## @monaco-editor/react 4.0.0 breaking changes

@monaco-editor/react 4.0.0, released January 17, 2021: 21 breaking changes.

- **Removed** `ControlledEditor`  

ControlledEditor is removed; the Editor component now handles both controlled and uncontrolled modes. [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Removed** `ControlledEditorOnChange`  

ControlledEditorOnChange was removed in @monaco-editor/react 4.0.0 [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Removed** `ControlledEditorProps`  

ControlledEditorProps was removed in @monaco-editor/react 4.0.0 [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Removed** `DiffEditorDidMount`  

DiffEditorDidMount was removed in @monaco-editor/react 4.0.0 [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Removed** `DiffEditorProps.editorDidMount`  

DiffEditorProps.editorDidMount was removed in @monaco-editor/react 4.0.0 [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Removed** `DiffEditorProps.line`  

DiffEditorProps.line was removed in @monaco-editor/react 4.0.0 [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Removed** `Editor._isControlledMode`  

The \_isControlledMode prop is removed. Code passing it must stop doing so. [github.com](https://github.com/suren-atoyan/monaco-react/releases/tag/v4.0.0)
- **Removed** `EditorDidMount`  

EditorDidMount was removed in @monaco-editor/react 4.0.0 [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Removed** `EditorProps.editorDidMount`  

EditorProps.editorDidMount was removed in @monaco-editor/react 4.0.0 [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Renamed** `Editor.editorDidMount`  

The editorDidMount prop is now called onMount. Update code that passes editorDidMount to use onMount. [github.com](https://github.com/suren-atoyan/monaco-react/releases/tag/v4.0.0)
- **Renamed** `monaco`  

The main utility object monaco is renamed to loader. Update imports and calls that use monaco. [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Behavior changed** `Editor.defaultValue`  

The defaultValue prop is now used during default model creation, which may change the initial content shown. [github.com](https://github.com/suren-atoyan/monaco-react/releases/tag/v4.0.0)
- **Signature changed** `DiffEditorProps.modified`  

Was modified?: string | null; now modified?: string. [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Signature changed** `DiffEditorProps.options`  

Was options?: monacoEditor.editor.IDiffEditorConstructionOptions; now options?: monaco.editor.IDiffEditorConstructionOptions. [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Signature changed** `DiffEditorProps.original`  

Was original?: string | null; now original?: string. [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Signature changed** `DiffEditorProps.theme`  

Was theme?: Theme; now theme?: Theme | string. [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Signature changed** `Editor.onMount`  

onMount receives the editor instance first and the monaco instance second. Handlers that rely on the old argument list should be checked. [github.com](https://github.com/suren-atoyan/monaco-react/releases/tag/v4.0.0)
- **Signature changed** `EditorProps.options`  

Was options?: monacoEditor.editor.IStandaloneEditorConstructionOptions; now options?: monaco.editor.IStandaloneEditorConstructionOptions. [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Signature changed** `EditorProps.overrideServices`  

Was overrideServices?: monacoEditor.editor.IEditorOverrideServices; now overrideServices?: monaco.editor.IEditorOverrideServices. [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Signature changed** `EditorProps.value`  

Was value?: string | null; now value?: string. [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)
- **Signature changed** `Monaco`  

Was type Monaco = typeof monacoEditor; now type Monaco = typeof monaco. [npmjs.com](https://www.npmjs.com/package/@monaco-editor/react/v/4.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
