Skip to content

Releases: esm-dev/modern-monaco

v0.3.7

15 Jan 15:48
@ije ije

Choose a tag to compare

  • Add support for multiple themes (#53 by @curtis-allan)
    import { init } from "modern-monaco";
    const monaco = await init({
      themes: [
        "one-light",
        "one-dark-pro",
      ],
    });
    
    monaco.editor.create(document.getElementById("editor"), {
      theme: "one-light",
    })
    // update the editor theme
    monaco.editor.setTheme("one-dark-pro");
  • Deprecate theme option in favor of defaultTheme and themes (#53 by @curtis-allan)
  • Update shiki to 3.21.0
  • Update tm-grammars to 1.28.0
  • Update tm-themes to 1.10.15
  • Update vscode-css-languageservice to 6.3.9
  • Update vscode-html-languageservice to 5.6.1
  • Update vscode-json-languageservice to 5.7.1

v0.3.6

06 Dec 13:37
@ije ije

Choose a tag to compare

  • Update sideEffects: ["dist/index.mjs"] in package.json (#48 by @dimaMachina)
  • Update import statements to use webpackIgnore annotation (#47 by @dimaMachina)

v0.3.5

03 Dec 05:24
@ije ije

Choose a tag to compare

  • Add dataProviders option to LSPConfig.css
  • Add hideEndTagSuggestions option to LSPConfig.html
  • Update options of LSPConfig.json
    export interface JSONLanguageConfig {
      /** By default, the validator will return syntax and semantic errors. Set to false to disable the validator. */
      validate?: boolean;
      /** Defines whether comments are allowed or not. Default is disallowed. */
      allowComments?: boolean;
      /** A list of known schemas and/or associations of schemas to file names. */
      schemas?: JSONSchemaSource[];
      /** The severity of reported comments. Default is "error". */
      comments?: SeverityLevel;
      /** The severity of reported trailing commas. Default is "error". */
      trailingCommas?: SeverityLevel;
      /** The severity of problems from schema validation. Default is "warning". */
      schemaValidation?: SeverityLevel;
      /** The severity of problems that occurred when resolving and loading schemas. Default is "warning". */
      schemaRequest?: SeverityLevel;
    }

v0.3.4

03 Dec 04:45
@ije ije

Choose a tag to compare

  • Use bun as the scripts runner
  • Validate and normalize theme option
  • Fix normalizeColor function (close #45)

v0.3.3

03 Dec 04:45
@ije ije

Choose a tag to compare

  • Fix theme option for init funtion
  • Fix creating nested directories using default FS (#43 by @xkcm)

v0.3.2

28 Nov 02:22
@ije ije

Choose a tag to compare

  • Upgrade shiki to 3.17.0
  • Fix typescript import from CDN

v0.3.1

28 Nov 02:22
@ije ije

Choose a tag to compare

  • lsp: Fix "Cannot destructure property 'editor' of 'monaco' as it is undefined."

v0.3.0

28 Nov 02:22
@ije ije

Choose a tag to compare

  • Fix lps modules loading from CDN
  • Upgrade monaco-editor-core to 0.55.1
  • Fix custom theme names and custom theme objects (#42 by @hybridherbst)

v0.2.2

26 Sep 10:46
@ije ije

Choose a tag to compare

  • Fix missing colon in protocol check (#30 by @ayu-exorcist)
  • Loading monaco-editor-core and builtin lsp from esm.sh CDN (#28)

v0.2.1

15 Sep 13:26
@ije ije

Choose a tag to compare

Fix package export.