Skip to content

v5.0.0

Compare
Choose a tag to compare
@remcohaszing remcohaszing released this 27 Aug 14:21
· 26 commits to main since this release
v5.0.0
9aa735d

Breaking changes

In order to support Monaco editor coming from different sources, it must now be passed to monaco-yaml. The opportinity of a breaking change was also used to rename the export.

- import { setDiagnosticsOptions } from 'monaco-yaml';
+ import * as monaco from 'monaco-editor'
+ import { configureMonacoYaml } from 'monaco-yaml'

  // Configure monaco-yaml first
- setDiagnosticsOptions({
+ const monacoYaml = configureMonacoYaml(monaco, {
    // …
  })

  // Reconfigure monaco-yaml later

- setDiagnosticsOptions({
+ monacoYaml.update({
    // …
  })