unstale

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 init

@unstale/cli on npm

ngx-monaco-editor-v2 228 changes

Breaking changes 3

  • Adds support for Angular 22.

    22.0.4release notes

  • The minimum supported Node.js versions are now ^22.22.3 || ^24.15.0 || >=26.0.0.

    22.0.4release notes

  • 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.4release notes

New APIs and options 1

  • Adds the supported EditorComponent.setTheme(theme) method for changing the theme.

    22.0.4release notes

Behavior and default changes 1

  • The onInit event emits a typed editor, IStandaloneCodeEditor or IStandaloneDiffEditor, instead of any.

    22.0.4release notes

Fixes and other changes 3

  • The onDidChangeModelContent and onDidBlurEditorWidget listeners are disposed together with the editor.

    22.0.4release notes

  • 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.4release notes

  • Applies readOnly to a live editor immediately when a reactive form control is disabled or enabled, instead of waiting for re-init.

    22.0.4release notes