npm / ngx-monaco-editor-v2
ngx-monaco-editor-v2
What changed in ngx-monaco-editor-v2 22, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
3 breaking1 new APIs and options1 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initngx-monaco-editor-v2 228 changes
Breaking changes 3
Adds support for Angular 22.
The minimum supported Node.js versions are now ^22.22.3 || ^24.15.0 || >=26.0.0.
setTheme() is no longer attached to the editor instance emitted by onInit; change themes through EditorComponent.setTheme(theme) or monaco.editor.setTheme(theme).
New APIs and options 1
Adds the supported EditorComponent.setTheme(theme) method for changing the theme.
Behavior and default changes 1
The onInit event emits a typed editor, IStandaloneCodeEditor or IStandaloneDiffEditor, instead of any.
Fixes and other changes 3
The onDidChangeModelContent and onDidBlurEditorWidget listeners are disposed together with the editor.
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.
Applies readOnly to a live editor immediately when a reactive form control is disabled or enabled, instead of waiting for re-init.