Skip to content

Releases: acao/codemirror-json-schema

v0.7.2

11 May 19:05
5e95143
Compare
Choose a tag to compare

Patch Changes

v0.7.1

23 Apr 17:47
Compare
Choose a tag to compare

Patch Changes

v0.7.0

23 Feb 02:18
Compare
Choose a tag to compare

Minor Changes

  • #85 c694451 Thanks @imolorhe! - Added YAML support, switched back to markdown for messages, provide markdown rendering, and fix some autocompletion issues

v0.6.1

05 Jan 18:18
b3a0aa7
Compare
Choose a tag to compare

Patch Changes

v0.6.0

04 Dec 00:38
1eac98a
Compare
Choose a tag to compare

Minor Changes

  • #64 0aaf308 Thanks @acao! - Breaking Change: replaces backticks with <code> blocks in hover and completion! This just seemed to make more sense.

    • upgrade json-schema-library to the latest 8.x with patch fixes, remove "forked" pointer step logic
    • after autocompleting a property, when there is empty value, provide full autocomplete options
    • as noted in the breaking change notice, all psuedo-markdown backtick ``delimiters are replaced with<code>

v0.5.1

29 Nov 22:52
Compare
Choose a tag to compare

Patch Changes

v0.5.0

08 Nov 05:52
Compare
Choose a tag to compare

Minor Changes

  • #63 a73c517 Thanks @acao! - breaking change: only impacts those following the "custom usage" approach, it does not effect users using the high level, "bundled" jsonSchema() or json5Schema() modes.

    Previously, we ask you to pass schema to each of the linter, completion and hover extensions.

    Now, we ask you to use these new exports to instantiate your schema like this, with stateExtensions(schema) as a new extension, and the only one that you pass schema to, like so:

    import type { JSONSchema7 } from "json-schema";
    import { json, jsonLanguage, jsonParseLinter } from "@codemirror/lang-json";
    import { hoverTooltip } from "@codemirror/view";
    import { linter } from "@codemirror/lint";
    
    import {
      jsonCompletion,
      handleRefresh,
      jsonSchemaLinter,
      jsonSchemaHover,
      stateExtensions,
    } from "codemirror-json-schema";
    
    import schema from "./myschema.json";
    
    // ...
    extensions: [
      json(),
      linter(jsonParseLinter()),
      linter(jsonSchemaLinter(), {
        needsRefresh: handleRefresh,
      }),
      jsonLanguage.data.of({
        autocomplete: jsonCompletion(),
      }),
      hoverTooltip(jsonSchemaHover()),
      // this is where we pass the schema!
      // very important!!!!
      stateExtensions(schema),
    ];

v0.4.5

06 Nov 19:50
Compare
Choose a tag to compare

Patch Changes

  • #70 4c9ca0a Thanks @acao! - Fix vulnerability message for json-schema type dependency

v0.4.4

17 Aug 06:36
241c77a
Compare
Choose a tag to compare

Patch Changes

v0.4.3

17 Aug 02:46
Compare
Choose a tag to compare

Patch Changes