vscode-json-languageservice 5.6.1 → 5.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,276 @@
1
+ declare const _default: {
2
+ $id: string;
3
+ $schema: string;
4
+ title: string;
5
+ type: string[];
6
+ properties: {
7
+ definitions: {
8
+ $comment: string;
9
+ type: string;
10
+ additionalProperties: {
11
+ $ref: string;
12
+ };
13
+ default: {};
14
+ };
15
+ dependencies: {
16
+ $comment: string;
17
+ type: string;
18
+ additionalProperties: {
19
+ anyOf: {
20
+ $ref: string;
21
+ }[];
22
+ };
23
+ };
24
+ $id: {
25
+ type: string;
26
+ format: string;
27
+ $comment: string;
28
+ pattern: string;
29
+ };
30
+ $schema: {
31
+ type: string;
32
+ format: string;
33
+ };
34
+ $anchor: {
35
+ type: string;
36
+ pattern: string;
37
+ };
38
+ $ref: {
39
+ type: string;
40
+ format: string;
41
+ };
42
+ $dynamicRef: {
43
+ type: string;
44
+ format: string;
45
+ };
46
+ $vocabulary: {
47
+ type: string;
48
+ propertyNames: {
49
+ type: string;
50
+ format: string;
51
+ };
52
+ additionalProperties: {
53
+ type: string;
54
+ };
55
+ };
56
+ $comment: {
57
+ type: string;
58
+ };
59
+ $defs: {
60
+ type: string;
61
+ additionalProperties: {
62
+ $ref: string;
63
+ };
64
+ default: {};
65
+ };
66
+ prefixItems: {
67
+ $ref: string;
68
+ };
69
+ items: {
70
+ $ref: string;
71
+ };
72
+ contains: {
73
+ $ref: string;
74
+ };
75
+ additionalProperties: {
76
+ $ref: string;
77
+ };
78
+ properties: {
79
+ type: string;
80
+ additionalProperties: {
81
+ $ref: string;
82
+ };
83
+ default: {};
84
+ };
85
+ patternProperties: {
86
+ type: string;
87
+ additionalProperties: {
88
+ $ref: string;
89
+ };
90
+ propertyNames: {
91
+ format: string;
92
+ };
93
+ default: {};
94
+ };
95
+ dependentSchemas: {
96
+ type: string;
97
+ additionalProperties: {
98
+ $ref: string;
99
+ };
100
+ };
101
+ propertyNames: {
102
+ $ref: string;
103
+ };
104
+ if: {
105
+ $ref: string;
106
+ };
107
+ then: {
108
+ $ref: string;
109
+ };
110
+ else: {
111
+ $ref: string;
112
+ };
113
+ allOf: {
114
+ $ref: string;
115
+ };
116
+ anyOf: {
117
+ $ref: string;
118
+ };
119
+ oneOf: {
120
+ $ref: string;
121
+ };
122
+ not: {
123
+ $ref: string;
124
+ };
125
+ unevaluatedItems: {
126
+ $ref: string;
127
+ };
128
+ unevaluatedProperties: {
129
+ $ref: string;
130
+ };
131
+ multipleOf: {
132
+ type: string;
133
+ exclusiveMinimum: number;
134
+ };
135
+ maximum: {
136
+ type: string;
137
+ };
138
+ exclusiveMaximum: {
139
+ type: string;
140
+ };
141
+ minimum: {
142
+ type: string;
143
+ };
144
+ exclusiveMinimum: {
145
+ type: string;
146
+ };
147
+ maxLength: {
148
+ $ref: string;
149
+ };
150
+ minLength: {
151
+ $ref: string;
152
+ };
153
+ pattern: {
154
+ type: string;
155
+ format: string;
156
+ };
157
+ maxItems: {
158
+ $ref: string;
159
+ };
160
+ minItems: {
161
+ $ref: string;
162
+ };
163
+ uniqueItems: {
164
+ type: string;
165
+ default: boolean;
166
+ };
167
+ maxContains: {
168
+ $ref: string;
169
+ };
170
+ minContains: {
171
+ $ref: string;
172
+ default: number;
173
+ };
174
+ maxProperties: {
175
+ $ref: string;
176
+ };
177
+ minProperties: {
178
+ $ref: string;
179
+ };
180
+ required: {
181
+ $ref: string;
182
+ };
183
+ dependentRequired: {
184
+ type: string;
185
+ additionalProperties: {
186
+ $ref: string;
187
+ };
188
+ };
189
+ const: boolean;
190
+ enum: {
191
+ type: string;
192
+ items: boolean;
193
+ };
194
+ type: {
195
+ anyOf: ({
196
+ $ref: string;
197
+ type?: undefined;
198
+ items?: undefined;
199
+ minItems?: undefined;
200
+ uniqueItems?: undefined;
201
+ } | {
202
+ type: string;
203
+ items: {
204
+ $ref: string;
205
+ };
206
+ minItems: number;
207
+ uniqueItems: boolean;
208
+ $ref?: undefined;
209
+ })[];
210
+ };
211
+ title: {
212
+ type: string;
213
+ };
214
+ description: {
215
+ type: string;
216
+ };
217
+ default: boolean;
218
+ deprecated: {
219
+ type: string;
220
+ default: boolean;
221
+ };
222
+ readOnly: {
223
+ type: string;
224
+ default: boolean;
225
+ };
226
+ writeOnly: {
227
+ type: string;
228
+ default: boolean;
229
+ };
230
+ examples: {
231
+ type: string;
232
+ items: boolean;
233
+ };
234
+ format: {
235
+ type: string;
236
+ };
237
+ contentMediaType: {
238
+ type: string;
239
+ };
240
+ contentEncoding: {
241
+ type: string;
242
+ };
243
+ contentSchema: {
244
+ $ref: string;
245
+ };
246
+ };
247
+ $defs: {
248
+ schemaArray: {
249
+ type: string;
250
+ minItems: number;
251
+ items: {
252
+ $ref: string;
253
+ };
254
+ };
255
+ nonNegativeInteger: {
256
+ type: string;
257
+ minimum: number;
258
+ };
259
+ nonNegativeIntegerDefault0: {
260
+ $ref: string;
261
+ default: number;
262
+ };
263
+ simpleTypes: {
264
+ enum: string[];
265
+ };
266
+ stringArray: {
267
+ type: string;
268
+ items: {
269
+ type: string;
270
+ };
271
+ uniqueItems: boolean;
272
+ default: never[];
273
+ };
274
+ };
275
+ };
276
+ export default _default;
@@ -0,0 +1,307 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ (function (factory) {
6
+ if (typeof module === "object" && typeof module.exports === "object") {
7
+ var v = factory(require, exports);
8
+ if (v !== undefined) module.exports = v;
9
+ }
10
+ else if (typeof define === "function" && define.amd) {
11
+ define(["require", "exports"], factory);
12
+ }
13
+ })(function (require, exports) {
14
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ // This file is generated - do not edit directly!
17
+ // Derived from https://json-schema.org/draft/2020-12
18
+ exports.default = {
19
+ $id: 'https://json-schema.org/draft/2020-12/schema',
20
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
21
+ title: '(Flattened static) Core and Validation specifications meta-schema',
22
+ type: [
23
+ 'object',
24
+ 'boolean',
25
+ ],
26
+ properties: {
27
+ definitions: {
28
+ $comment: 'While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.',
29
+ type: 'object',
30
+ additionalProperties: {
31
+ $ref: '#',
32
+ },
33
+ default: {},
34
+ },
35
+ dependencies: {
36
+ $comment: '"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',
37
+ type: 'object',
38
+ additionalProperties: {
39
+ anyOf: [
40
+ {
41
+ $ref: '#',
42
+ },
43
+ {
44
+ $ref: '#/$defs/stringArray',
45
+ },
46
+ ],
47
+ },
48
+ },
49
+ $id: {
50
+ type: 'string',
51
+ format: 'uri-reference',
52
+ $comment: 'Non-empty fragments not allowed.',
53
+ pattern: '^[^#]*#?$',
54
+ },
55
+ $schema: {
56
+ type: 'string',
57
+ format: 'uri',
58
+ },
59
+ $anchor: {
60
+ type: 'string',
61
+ pattern: '^[A-Za-z_][-A-Za-z0-9._]*$',
62
+ },
63
+ $ref: {
64
+ type: 'string',
65
+ format: 'uri-reference',
66
+ },
67
+ $dynamicRef: {
68
+ type: 'string',
69
+ format: 'uri-reference',
70
+ },
71
+ $vocabulary: {
72
+ type: 'object',
73
+ propertyNames: {
74
+ type: 'string',
75
+ format: 'uri',
76
+ },
77
+ additionalProperties: {
78
+ type: 'boolean',
79
+ },
80
+ },
81
+ $comment: {
82
+ type: 'string',
83
+ },
84
+ $defs: {
85
+ type: 'object',
86
+ additionalProperties: {
87
+ $ref: '#',
88
+ },
89
+ default: {},
90
+ },
91
+ prefixItems: {
92
+ $ref: '#/$defs/schemaArray',
93
+ },
94
+ items: {
95
+ $ref: '#',
96
+ },
97
+ contains: {
98
+ $ref: '#',
99
+ },
100
+ additionalProperties: {
101
+ $ref: '#',
102
+ },
103
+ properties: {
104
+ type: 'object',
105
+ additionalProperties: {
106
+ $ref: '#',
107
+ },
108
+ default: {},
109
+ },
110
+ patternProperties: {
111
+ type: 'object',
112
+ additionalProperties: {
113
+ $ref: '#',
114
+ },
115
+ propertyNames: {
116
+ format: 'regex',
117
+ },
118
+ default: {},
119
+ },
120
+ dependentSchemas: {
121
+ type: 'object',
122
+ additionalProperties: {
123
+ $ref: '#',
124
+ },
125
+ },
126
+ propertyNames: {
127
+ $ref: '#',
128
+ },
129
+ if: {
130
+ $ref: '#',
131
+ },
132
+ then: {
133
+ $ref: '#',
134
+ },
135
+ else: {
136
+ $ref: '#',
137
+ },
138
+ allOf: {
139
+ $ref: '#/$defs/schemaArray',
140
+ },
141
+ anyOf: {
142
+ $ref: '#/$defs/schemaArray',
143
+ },
144
+ oneOf: {
145
+ $ref: '#/$defs/schemaArray',
146
+ },
147
+ not: {
148
+ $ref: '#',
149
+ },
150
+ unevaluatedItems: {
151
+ $ref: '#',
152
+ },
153
+ unevaluatedProperties: {
154
+ $ref: '#',
155
+ },
156
+ multipleOf: {
157
+ type: 'number',
158
+ exclusiveMinimum: 0,
159
+ },
160
+ maximum: {
161
+ type: 'number',
162
+ },
163
+ exclusiveMaximum: {
164
+ type: 'number',
165
+ },
166
+ minimum: {
167
+ type: 'number',
168
+ },
169
+ exclusiveMinimum: {
170
+ type: 'number',
171
+ },
172
+ maxLength: {
173
+ $ref: '#/$defs/nonNegativeInteger',
174
+ },
175
+ minLength: {
176
+ $ref: '#/$defs/nonNegativeIntegerDefault0',
177
+ },
178
+ pattern: {
179
+ type: 'string',
180
+ format: 'regex',
181
+ },
182
+ maxItems: {
183
+ $ref: '#/$defs/nonNegativeInteger',
184
+ },
185
+ minItems: {
186
+ $ref: '#/$defs/nonNegativeIntegerDefault0',
187
+ },
188
+ uniqueItems: {
189
+ type: 'boolean',
190
+ default: false,
191
+ },
192
+ maxContains: {
193
+ $ref: '#/$defs/nonNegativeInteger',
194
+ },
195
+ minContains: {
196
+ $ref: '#/$defs/nonNegativeInteger',
197
+ default: 1,
198
+ },
199
+ maxProperties: {
200
+ $ref: '#/$defs/nonNegativeInteger',
201
+ },
202
+ minProperties: {
203
+ $ref: '#/$defs/nonNegativeIntegerDefault0',
204
+ },
205
+ required: {
206
+ $ref: '#/$defs/stringArray',
207
+ },
208
+ dependentRequired: {
209
+ type: 'object',
210
+ additionalProperties: {
211
+ $ref: '#/$defs/stringArray',
212
+ },
213
+ },
214
+ const: true,
215
+ enum: {
216
+ type: 'array',
217
+ items: true,
218
+ },
219
+ type: {
220
+ anyOf: [
221
+ {
222
+ $ref: '#/$defs/simpleTypes',
223
+ },
224
+ {
225
+ type: 'array',
226
+ items: {
227
+ $ref: '#/$defs/simpleTypes',
228
+ },
229
+ minItems: 1,
230
+ uniqueItems: true,
231
+ },
232
+ ],
233
+ },
234
+ title: {
235
+ type: 'string',
236
+ },
237
+ description: {
238
+ type: 'string',
239
+ },
240
+ default: true,
241
+ deprecated: {
242
+ type: 'boolean',
243
+ default: false,
244
+ },
245
+ readOnly: {
246
+ type: 'boolean',
247
+ default: false,
248
+ },
249
+ writeOnly: {
250
+ type: 'boolean',
251
+ default: false,
252
+ },
253
+ examples: {
254
+ type: 'array',
255
+ items: true,
256
+ },
257
+ format: {
258
+ type: 'string',
259
+ },
260
+ contentMediaType: {
261
+ type: 'string',
262
+ },
263
+ contentEncoding: {
264
+ type: 'string',
265
+ },
266
+ contentSchema: {
267
+ $ref: '#',
268
+ },
269
+ },
270
+ $defs: {
271
+ schemaArray: {
272
+ type: 'array',
273
+ minItems: 1,
274
+ items: {
275
+ $ref: '#',
276
+ },
277
+ },
278
+ nonNegativeInteger: {
279
+ type: 'integer',
280
+ minimum: 0,
281
+ },
282
+ nonNegativeIntegerDefault0: {
283
+ $ref: '#/$defs/nonNegativeInteger',
284
+ default: 0,
285
+ },
286
+ simpleTypes: {
287
+ enum: [
288
+ 'array',
289
+ 'boolean',
290
+ 'integer',
291
+ 'null',
292
+ 'number',
293
+ 'object',
294
+ 'string',
295
+ ],
296
+ },
297
+ stringArray: {
298
+ type: 'array',
299
+ items: {
300
+ type: 'string',
301
+ },
302
+ uniqueItems: true,
303
+ default: [],
304
+ },
305
+ },
306
+ };
307
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vscode-json-languageservice",
3
- "version": "5.6.1",
3
+ "version": "5.6.3",
4
4
  "description": "Language service for JSON",
5
5
  "main": "./lib/umd/jsonLanguageService.js",
6
6
  "typings": "./lib/umd/jsonLanguageService",
@@ -16,14 +16,14 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/mocha": "^10.0.10",
19
- "@types/node": "18.x",
20
- "@typescript-eslint/eslint-plugin": "^8.35.1",
21
- "@typescript-eslint/parser": "^8.33.0",
22
- "eslint": "^9.30.0",
19
+ "@types/node": "22.x",
20
+ "@typescript-eslint/eslint-plugin": "^8.46.3",
21
+ "@typescript-eslint/parser": "^8.46.3",
22
+ "eslint": "^9.39.0",
23
23
  "json-schema-test-suite": "https://github.com/json-schema-org/JSON-Schema-Test-Suite.git#69acf52990b004240839ae19b4bec8fb01d50876",
24
- "mocha": "^11.7.1",
25
- "rimraf": "^6.0.1",
26
- "typescript": "^5.8.3"
24
+ "mocha": "^11.7.4",
25
+ "rimraf": "^6.1.0",
26
+ "typescript": "^5.9.3"
27
27
  },
28
28
  "dependencies": {
29
29
  "jsonc-parser": "^3.3.1",