npm ngx-monaco-editor-v2 22.0.6

33 minutes ago

Changed

  • Removed the unused CommonModule import from MonacoEditorModule, and moved the zone and
    resize handling shared by both components into the base class.
  • Angular 22.3: built and tested against Angular 22.3.0.
  • monaco-editor 0.58: built and tested against monaco-editor 0.58.0. The peer range is
    now >=0.56.0 <0.59.0, so 0.57 and 0.58 no longer trigger peer-dependency warnings.

Fixed

  • One failing editor no longer blocks the others: the shared monaco load promise is now
    resolved before the first editor initialises. Previously, if that first editor threw during
    init (for example a diff editor without its models yet), the promise never resolved and every
    later editor on the page silently never started.
  • Window resize runs outside Angular's zone: the resize listener no longer triggers change
    detection for the whole app on every resize event.
  • Editor created after destroy: a component destroyed while monaco was still loading
    was initialised anyway once loading finished, leaving an editor and a window resize
    subscription that were never disposed. Initialisation is now skipped for destroyed
    components.

Don't miss a new ngx-monaco-editor-v2 release

NewReleases is sending notifications on new releases.