Skip to content

Commit

Permalink
chore(release): changesets versioning & publication
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and acao committed Nov 8, 2023
1 parent a73c517 commit 04d9368
Show file tree
Hide file tree
Showing 5 changed files with 169 additions and 96 deletions.
42 changes: 0 additions & 42 deletions .changeset/strange-chicken-smell.md

This file was deleted.

43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# codemirror-json-schema

## 0.5.0

### Minor Changes

- [#63](https://github.com/acao/codemirror-json-schema/pull/63) [`a73c517`](https://github.com/acao/codemirror-json-schema/commit/a73c517722bbe9d37124993117c091e259eb6998) Thanks [@acao](https://github.com/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:

```ts
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),
];
```

## 0.4.5

### Patch Changes
Expand Down

0 comments on commit 04d9368

Please sign in to comment.