Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codemirror-json-schema

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemirror-json-schema - npm Package Versions

134

0.6.1

Diff

Changelog

Source

0.6.1

Patch Changes

acao
published 0.6.0 •

Changelog

Source

0.6.0

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>
acao
published 0.5.1 •

Changelog

Source

0.5.1

Patch Changes

acao
published 0.5.1-canary.0 •

acao
published 0.5.1-canary •

acao
published 0.5.0 •

Changelog

Source

0.5.0

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),
    ];
    
  • upgrade to use full .js import paths for NodeNext compatibility, however not all of our dependencies are compatible with this mode, thus we continue using the legacy nodeResolution strategy.

acao
published 0.4.5 •

Changelog

Source

0.4.5

Patch Changes

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

Changelog

Source

0.4.4

Patch Changes

acao
published 0.4.3 •

Changelog

Source

0.4.3

Patch Changes

acao
published 0.4.2 •

Changelog

Source

0.4.2

Patch Changes

  • 14a26f8 Thanks @acao! - fix nested json4 completion bug (#55)

    • fix #54, expand properties inside nested objects as expected in json4
    • always advance cursor after property completions
    • add more test coverage
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc