- #138
aa27ad7
Thanks @thomasjahoda! - More robust conditional types support (thanks @thomasjahoda!)
-
#133
4fd7cc6
Thanks @imolorhe! - Get sub schema using parsed data for additional context -
#137
29e2da5
Thanks @xdavidwu! - Fix description markdown rendering in completion -
#144
ef7f336
Thanks @imolorhe! - updated to use fine grained shiki bundle -
#139
bfbe613
Thanks @NickTomlin! - Move non essential packages to devDependencies -
#140
bceace2
Thanks @NickTomlin! - Add CONTRIBUTING.md file
- #115
c8d2594
Thanks @acao! - set @codemirror/autocomplete as an optional peer, at a fix version for a bug with curly braces
- #112
ccffa61
Thanks @acao! - fixes bundling - remove .js imports and remains as moduleResolution: 'Node' to match cm6
- #85
c694451
Thanks @imolorhe! - Added YAML support, switched back to markdown for messages, provide markdown rendering, and fix some autocompletion issues
-
#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>
- upgrade
-
breaking change: only impacts those following the "custom usage" approach, it does not effect users using the high level, "bundled"
jsonSchema()
orjson5Schema()
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 forNodeNext
compatibility, however not all of our dependencies are compatible with this mode, thus we continue using the legacynodeResolution
strategy.
-
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
-
#37
1220706
Thanks @acao! - - fix hover on undefined schema props- configure
above: true
for the hover tooltip, to have vscode-like behavior, and prevent z-index clash with completion on smaller viewports
- configure
-
#36
23e5721
Thanks @imolorhe! - fixed autocompletion in object roots, etc, for json4 and json5
- d4cfe11: improve autocompletion with support for allOf, anyOf, oneOf
- 69ab7be: Fix bug on p/npm/yarn install with postinstall
- 4e80f37: hover bugs with complex types #26
- 0b34915: fix: hover format for anyOf
- 3a578e9: move everything codemirror related to a peer dependency. see readme for new install instructions
- d17f63f: fix readme
- 7f5af9d: Add formatting for complex types - oneOf, anyOf, allOf on hover
- 26bda14: add json5 support, simpler exports