Skip to content

Commit b3a0aa7

Browse files
Changesets: Versioning & Publication (#82)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Patch Changes - [#81](#81) [`ed534d7`](ed534d7) Thanks [@acao](https://github.com/acao)! - export `handleRefresh` - [#83](#83) [`efd54f0`](efd54f0) Thanks [@acao](https://github.com/acao)! - fix undefined position bug with json-schema-library upgrade Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent efd54f0 commit b3a0aa7

File tree

6 files changed

+57
-38
lines changed

6 files changed

+57
-38
lines changed

.changeset/rude-shirts-bake.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/stale-dolls-occur.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# codemirror-json-schema
22

3+
## 0.6.1
4+
5+
### Patch Changes
6+
7+
- [#81](https://github.com/acao/codemirror-json-schema/pull/81) [`ed534d7`](https://github.com/acao/codemirror-json-schema/commit/ed534d703801d174779e099891a2905e6b60a6af) Thanks [@acao](https://github.com/acao)! - export `handleRefresh`
8+
9+
- [#83](https://github.com/acao/codemirror-json-schema/pull/83) [`efd54f0`](https://github.com/acao/codemirror-json-schema/commit/efd54f022cad7ba924b444356ffa6f0f6c704916) Thanks [@acao](https://github.com/acao)! - fix undefined position bug with json-schema-library upgrade
10+
311
## 0.6.0
412

513
### Minor Changes

docs/modules/index.md

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
- [getJSONSchema](index.md#getjsonschema)
2727
- [getJsonPointerAt](index.md#getjsonpointerat)
28+
- [handleRefresh](index.md#handlerefresh)
2829
- [stateExtensions](index.md#stateextensions)
2930
- [updateSchema](index.md#updateschema)
3031

@@ -63,7 +64,7 @@ Full featured cm6 extension for json, including `@codemirror/lang-json`
6364

6465
#### Defined in
6566

66-
[bundled.ts:15](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/bundled.ts#L15)
67+
[bundled.ts:15](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/bundled.ts#L15)
6768

6869
## Codemirror Extensions
6970

@@ -97,7 +98,7 @@ provides a JSON schema enabled autocomplete extension for codemirror
9798

9899
#### Defined in
99100

100-
[json-completion.ts:808](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json-completion.ts#L808)
101+
[json-completion.ts:808](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json-completion.ts#L808)
101102

102103
---
103104

@@ -133,7 +134,7 @@ provides a JSON schema enabled tooltip extension for codemirror
133134

134135
#### Defined in
135136

136-
[json-hover.ts:42](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json-hover.ts#L42)
137+
[json-hover.ts:42](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json-hover.ts#L42)
137138

138139
---
139140

@@ -167,7 +168,7 @@ Helper for simpler class instantiaton
167168

168169
#### Defined in
169170

170-
[json-validation.ts:43](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json-validation.ts#L43)
171+
[json-validation.ts:43](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json-validation.ts#L43)
171172

172173
## Utilities
173174

@@ -190,7 +191,7 @@ retrieve a Map of all the json pointers in a document
190191

191192
#### Defined in
192193

193-
[utils/jsonPointers.ts:57](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/utils/jsonPointers.ts#L57)
194+
[utils/jsonPointers.ts:57](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/utils/jsonPointers.ts#L57)
194195

195196
---
196197

@@ -214,7 +215,7 @@ retrieve a JSON pointer for a given position in the editor
214215

215216
#### Defined in
216217

217-
[utils/jsonPointers.ts:45](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/utils/jsonPointers.ts#L45)
218+
[utils/jsonPointers.ts:45](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/utils/jsonPointers.ts#L45)
218219

219220
---
220221

@@ -241,7 +242,7 @@ Mimics the behavior of `json-source-map`'s `parseJSONDocument` function using co
241242

242243
#### Defined in
243244

244-
[utils/parseJSONDocument.ts:23](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/utils/parseJSONDocument.ts#L23)
245+
[utils/parseJSONDocument.ts:23](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/utils/parseJSONDocument.ts#L23)
245246

246247
---
247248

@@ -268,7 +269,7 @@ Return parsed data and json pointers for a given codemirror EditorState
268269

269270
#### Defined in
270271

271-
[utils/parseJSONDocument.ts:9](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/utils/parseJSONDocument.ts#L9)
272+
[utils/parseJSONDocument.ts:9](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/utils/parseJSONDocument.ts#L9)
272273

273274
## Functions
274275

@@ -288,7 +289,7 @@ Return parsed data and json pointers for a given codemirror EditorState
288289

289290
#### Defined in
290291

291-
[state.ts:25](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/state.ts#L25)
292+
[state.ts:25](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/state.ts#L25)
292293

293294
---
294295

@@ -309,7 +310,27 @@ Return parsed data and json pointers for a given codemirror EditorState
309310

310311
#### Defined in
311312

312-
[utils/jsonPointers.ts:12](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/utils/jsonPointers.ts#L12)
313+
[utils/jsonPointers.ts:12](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/utils/jsonPointers.ts#L12)
314+
315+
---
316+
317+
### handleRefresh
318+
319+
**handleRefresh**(`vu`): `boolean`
320+
321+
#### Parameters
322+
323+
| Name | Type |
324+
| :--- | :----------- |
325+
| `vu` | `ViewUpdate` |
326+
327+
#### Returns
328+
329+
`boolean`
330+
331+
#### Defined in
332+
333+
[json-validation.ts:33](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json-validation.ts#L33)
313334

314335
---
315336

@@ -329,7 +350,7 @@ Return parsed data and json pointers for a given codemirror EditorState
329350

330351
#### Defined in
331352

332-
[state.ts:29](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/state.ts#L29)
353+
[state.ts:29](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/state.ts#L29)
333354

334355
---
335356

@@ -350,7 +371,7 @@ Return parsed data and json pointers for a given codemirror EditorState
350371

351372
#### Defined in
352373

353-
[state.ts:19](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/state.ts#L19)
374+
[state.ts:19](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/state.ts#L19)
354375

355376
## Type Aliases
356377

@@ -367,7 +388,7 @@ Return parsed data and json pointers for a given codemirror EditorState
367388

368389
#### Defined in
369390

370-
[json-hover.ts:16](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json-hover.ts#L16)
391+
[json-hover.ts:16](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json-hover.ts#L16)
371392

372393
---
373394

@@ -377,7 +398,7 @@ Return parsed data and json pointers for a given codemirror EditorState
377398

378399
#### Defined in
379400

380-
[json-hover.ts:18](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json-hover.ts#L18)
401+
[json-hover.ts:18](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json-hover.ts#L18)
381402

382403
---
383404

@@ -395,7 +416,7 @@ Return parsed data and json pointers for a given codemirror EditorState
395416

396417
#### Defined in
397418

398-
[json-hover.ts:22](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json-hover.ts#L22)
419+
[json-hover.ts:22](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json-hover.ts#L22)
399420

400421
---
401422

@@ -405,7 +426,7 @@ Return parsed data and json pointers for a given codemirror EditorState
405426

406427
#### Defined in
407428

408-
[utils/jsonPointers.ts:8](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/utils/jsonPointers.ts#L8)
429+
[utils/jsonPointers.ts:8](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/utils/jsonPointers.ts#L8)
409430

410431
---
411432

@@ -422,7 +443,7 @@ Return parsed data and json pointers for a given codemirror EditorState
422443

423444
#### Defined in
424445

425-
[types.ts:4](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/types.ts#L4)
446+
[types.ts:4](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/types.ts#L4)
426447

427448
---
428449

@@ -441,7 +462,7 @@ Return parsed data and json pointers for a given codemirror EditorState
441462

442463
#### Defined in
443464

444-
[types.ts:9](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/types.ts#L9)
465+
[types.ts:9](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/types.ts#L9)
445466

446467
---
447468

@@ -451,7 +472,7 @@ Return parsed data and json pointers for a given codemirror EditorState
451472

452473
#### Defined in
453474

454-
[types.ts:18](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/types.ts#L18)
475+
[types.ts:18](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/types.ts#L18)
455476

456477
---
457478

@@ -468,7 +489,7 @@ Return parsed data and json pointers for a given codemirror EditorState
468489

469490
#### Defined in
470491

471-
[json-validation.ts:26](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json-validation.ts#L26)
492+
[json-validation.ts:26](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json-validation.ts#L26)
472493

473494
## Variables
474495

@@ -478,4 +499,4 @@ Return parsed data and json pointers for a given codemirror EditorState
478499

479500
#### Defined in
480501

481-
[state.ts:6](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/state.ts#L6)
502+
[state.ts:6](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/state.ts#L6)

docs/modules/json5.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Full featured cm6 extension for json5, including `codemirror-json5`
3939

4040
#### Defined in
4141

42-
[json5-bundled.ts:16](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json5-bundled.ts#L16)
42+
[json5-bundled.ts:16](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json5-bundled.ts#L16)
4343

4444
## Codemirror Extensions
4545

@@ -73,7 +73,7 @@ provides a JSON schema enabled autocomplete extension for codemirror and json5
7373

7474
#### Defined in
7575

76-
[json-completion.ts:819](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json-completion.ts#L819)
76+
[json-completion.ts:819](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json-completion.ts#L819)
7777

7878
---
7979

@@ -109,7 +109,7 @@ Instantiates a JSONHover instance with the JSON5 mode
109109

110110
#### Defined in
111111

112-
[json5-hover.ts:13](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json5-hover.ts#L13)
112+
[json5-hover.ts:13](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json5-hover.ts#L13)
113113

114114
---
115115

@@ -143,7 +143,7 @@ Instantiates a JSONValidation instance with the JSON5 mode
143143

144144
#### Defined in
145145

146-
[json5-validation.ts:12](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/json5-validation.ts#L12)
146+
[json5-validation.ts:12](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/json5-validation.ts#L12)
147147

148148
## Utilities
149149

@@ -170,7 +170,7 @@ Mimics the behavior of `json-source-map`'s `parseJSONDocument` function, for jso
170170

171171
#### Defined in
172172

173-
[utils/parseJSON5Document.ts:28](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/utils/parseJSON5Document.ts#L28)
173+
[utils/parseJSON5Document.ts:28](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/utils/parseJSON5Document.ts#L28)
174174

175175
---
176176

@@ -197,4 +197,4 @@ Return parsed data and json5 pointers for a given codemirror EditorState
197197

198198
#### Defined in
199199

200-
[utils/parseJSON5Document.ts:14](https://github.com/acao/codemirror-json-schema/blob/0aaf308/src/utils/parseJSON5Document.ts#L14)
200+
[utils/parseJSON5Document.ts:14](https://github.com/acao/codemirror-json-schema/blob/efd54f0/src/utils/parseJSON5Document.ts#L14)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "codemirror-json-schema",
33
"license": "MIT",
4-
"version": "0.6.0",
4+
"version": "0.6.1",
55
"description": "Codemirror 6 extensions that provide full JSONSchema support for `@codemirror/lang-json` and `codemirror-json5`",
66
"contributors": [
77
{

0 commit comments

Comments
 (0)