# What changed in ngx-monaco-editor-v2

> 8 changes in ngx-monaco-editor-v2 22 from its official release notes, upgrade guides and advisories: 3 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/ngx-monaco-editor-v2/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## ngx-monaco-editor-v2 22

### Breaking changes

- Adds support for Angular 22. (22.0.4) — [release notes](https://github.com/miki995/ngx-monaco-editor-v2/blob/a34231cfe9b80cfb708541d9bb2d742fd852f4fe/CHANGELOG.md#2204-2026-06-29)
- The minimum supported Node.js versions are now ^22.22.3 || ^24.15.0 || >=26.0.0. (22.0.4) — [release notes](https://github.com/miki995/ngx-monaco-editor-v2/blob/a34231cfe9b80cfb708541d9bb2d742fd852f4fe/CHANGELOG.md#2204-2026-06-29)
- setTheme() is no longer attached to the editor instance emitted by onInit; change themes through EditorComponent.setTheme(theme) or monaco.editor.setTheme(theme). (22.0.4) — [release notes](https://github.com/miki995/ngx-monaco-editor-v2/blob/a34231cfe9b80cfb708541d9bb2d742fd852f4fe/CHANGELOG.md#2204-2026-06-29)

### New APIs and options

- Adds the supported EditorComponent.setTheme(theme) method for changing the theme. (22.0.4) — [release notes](https://github.com/miki995/ngx-monaco-editor-v2/blob/a34231cfe9b80cfb708541d9bb2d742fd852f4fe/CHANGELOG.md#2204-2026-06-29)

### Behavior and default changes

- The onInit event emits a typed editor, IStandaloneCodeEditor or IStandaloneDiffEditor, instead of any. (22.0.4) — [release notes](https://github.com/miki995/ngx-monaco-editor-v2/blob/a34231cfe9b80cfb708541d9bb2d742fd852f4fe/CHANGELOG.md#2204-2026-06-29)

### Fixes and other changes

- The onDidChangeModelContent and onDidBlurEditorWidget listeners are disposed together with the editor. (22.0.4) — [release notes](https://github.com/miki995/ngx-monaco-editor-v2/blob/a34231cfe9b80cfb708541d9bb2d742fd852f4fe/CHANGELOG.md#2204-2026-06-29)
- Text models created by the editor and diff-editor are tracked and disposed on re-init and destroy, preventing them from lingering in monaco's global registry. (22.0.4) — [release notes](https://github.com/miki995/ngx-monaco-editor-v2/blob/a34231cfe9b80cfb708541d9bb2d742fd852f4fe/CHANGELOG.md#2204-2026-06-29)
- Applies readOnly to a live editor immediately when a reactive form control is disabled or enabled, instead of waiting for re-init. (22.0.4) — [release notes](https://github.com/miki995/ngx-monaco-editor-v2/blob/a34231cfe9b80cfb708541d9bb2d742fd852f4fe/CHANGELOG.md#2204-2026-06-29)
