vscode-json-languageservice 5.6.2 → 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,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.2",
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",
@@ -17,13 +17,13 @@
17
17
  "devDependencies": {
18
18
  "@types/mocha": "^10.0.10",
19
19
  "@types/node": "22.x",
20
- "@typescript-eslint/eslint-plugin": "^8.45.0",
21
- "@typescript-eslint/parser": "^8.45.0",
22
- "eslint": "^9.36.0",
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.2",
25
- "rimraf": "^6.0.1",
26
- "typescript": "^5.9.2"
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",