vscode-json-languageservice 5.1.2 → 5.1.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.
@@ -6,8 +6,8 @@ export interface JSONWorkerContribution {
6
6
  collectDefaultCompletions(uri: string, result: CompletionsCollector): Thenable<any>;
7
7
  resolveCompletion?(item: CompletionItem): Thenable<CompletionItem>;
8
8
  }
9
- export declare type Segment = string | number;
10
- export declare type JSONPath = Segment[];
9
+ export type Segment = string | number;
10
+ export type JSONPath = Segment[];
11
11
  export interface CompletionsCollector {
12
12
  add(suggestion: CompletionItem): void;
13
13
  error(message: string): void;
@@ -1,6 +1,6 @@
1
1
  import { Thenable, ASTNode, Color, ColorInformation, ColorPresentation, LanguageServiceParams, LanguageSettings, DocumentLanguageSettings, FoldingRange, JSONSchema, SelectionRange, FoldingRangesContext, DocumentSymbolsContext, ColorInformationContext as DocumentColorsContext, TextDocument, Position, CompletionItem, CompletionList, Hover, Range, SymbolInformation, Diagnostic, TextEdit, FormattingOptions, DocumentSymbol, DefinitionLink, MatchingSchema, JSONLanguageStatus } from './jsonLanguageTypes';
2
2
  import { DocumentLink } from 'vscode-languageserver-types';
3
- export declare type JSONDocument = {
3
+ export type JSONDocument = {
4
4
  root: ASTNode | undefined;
5
5
  getNodeFromOffset(offset: number, includeRightBound?: boolean): ASTNode | undefined;
6
6
  };
@@ -28,7 +28,7 @@ export declare enum ErrorCode {
28
28
  SchemaResolveError = 768,
29
29
  SchemaUnsupportedFeature = 769
30
30
  }
31
- export declare type ASTNode = ObjectASTNode | PropertyASTNode | ArrayASTNode | StringASTNode | NumberASTNode | BooleanASTNode | NullASTNode;
31
+ export type ASTNode = ObjectASTNode | PropertyASTNode | ArrayASTNode | StringASTNode | NumberASTNode | BooleanASTNode | NullASTNode;
32
32
  export interface BaseASTNode {
33
33
  readonly type: 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
34
34
  readonly parent?: ASTNode;
@@ -93,7 +93,7 @@ export interface LanguageSettings {
93
93
  */
94
94
  schemas?: SchemaConfiguration[];
95
95
  }
96
- export declare type SeverityLevel = 'error' | 'warning' | 'ignore';
96
+ export type SeverityLevel = 'error' | 'warning' | 'ignore';
97
97
  export declare enum SchemaDraft {
98
98
  v3 = 3,
99
99
  v4 = 4,
@@ -1,4 +1,4 @@
1
- export declare type JSONSchemaRef = JSONSchema | boolean;
1
+ export type JSONSchemaRef = JSONSchema | boolean;
2
2
  export interface JSONSchema {
3
3
  id?: string;
4
4
  $id?: string;
@@ -6,8 +6,8 @@ export interface JSONWorkerContribution {
6
6
  collectDefaultCompletions(uri: string, result: CompletionsCollector): Thenable<any>;
7
7
  resolveCompletion?(item: CompletionItem): Thenable<CompletionItem>;
8
8
  }
9
- export declare type Segment = string | number;
10
- export declare type JSONPath = Segment[];
9
+ export type Segment = string | number;
10
+ export type JSONPath = Segment[];
11
11
  export interface CompletionsCollector {
12
12
  add(suggestion: CompletionItem): void;
13
13
  error(message: string): void;
@@ -1,6 +1,6 @@
1
1
  import { Thenable, ASTNode, Color, ColorInformation, ColorPresentation, LanguageServiceParams, LanguageSettings, DocumentLanguageSettings, FoldingRange, JSONSchema, SelectionRange, FoldingRangesContext, DocumentSymbolsContext, ColorInformationContext as DocumentColorsContext, TextDocument, Position, CompletionItem, CompletionList, Hover, Range, SymbolInformation, Diagnostic, TextEdit, FormattingOptions, DocumentSymbol, DefinitionLink, MatchingSchema, JSONLanguageStatus } from './jsonLanguageTypes';
2
2
  import { DocumentLink } from 'vscode-languageserver-types';
3
- export declare type JSONDocument = {
3
+ export type JSONDocument = {
4
4
  root: ASTNode | undefined;
5
5
  getNodeFromOffset(offset: number, includeRightBound?: boolean): ASTNode | undefined;
6
6
  };
@@ -28,7 +28,7 @@ export declare enum ErrorCode {
28
28
  SchemaResolveError = 768,
29
29
  SchemaUnsupportedFeature = 769
30
30
  }
31
- export declare type ASTNode = ObjectASTNode | PropertyASTNode | ArrayASTNode | StringASTNode | NumberASTNode | BooleanASTNode | NullASTNode;
31
+ export type ASTNode = ObjectASTNode | PropertyASTNode | ArrayASTNode | StringASTNode | NumberASTNode | BooleanASTNode | NullASTNode;
32
32
  export interface BaseASTNode {
33
33
  readonly type: 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null';
34
34
  readonly parent?: ASTNode;
@@ -93,7 +93,7 @@ export interface LanguageSettings {
93
93
  */
94
94
  schemas?: SchemaConfiguration[];
95
95
  }
96
- export declare type SeverityLevel = 'error' | 'warning' | 'ignore';
96
+ export type SeverityLevel = 'error' | 'warning' | 'ignore';
97
97
  export declare enum SchemaDraft {
98
98
  v3 = 3,
99
99
  v4 = 4,
@@ -1,4 +1,4 @@
1
- export declare type JSONSchemaRef = JSONSchema | boolean;
1
+ export type JSONSchemaRef = JSONSchema | boolean;
2
2
  export interface JSONSchema {
3
3
  id?: string;
4
4
  $id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vscode-json-languageservice",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "description": "Language service for JSON",
5
5
  "main": "./lib/umd/jsonLanguageService.js",
6
6
  "typings": "./lib/umd/jsonLanguageService",
@@ -17,20 +17,20 @@
17
17
  "devDependencies": {
18
18
  "@types/mocha": "^10.0.0",
19
19
  "@types/node": "16.x",
20
- "@typescript-eslint/eslint-plugin": "^5.42.1",
21
- "@typescript-eslint/parser": "^5.42.1",
22
- "eslint": "^8.27.0",
20
+ "@typescript-eslint/eslint-plugin": "^5.44.0",
21
+ "@typescript-eslint/parser": "^5.44.0",
22
+ "eslint": "^8.28.0",
23
23
  "json-schema-test-suite": "https://github.com/json-schema-org/JSON-Schema-Test-Suite.git#69acf52990b004240839ae19b4bec8fb01d50876",
24
- "mocha": "^10.0.0",
24
+ "mocha": "^10.1.0",
25
25
  "rimraf": "^3.0.2",
26
- "typescript": "^4.8.4"
26
+ "typescript": "^4.9.3"
27
27
  },
28
28
  "dependencies": {
29
29
  "jsonc-parser": "^3.2.0",
30
30
  "vscode-languageserver-textdocument": "^1.0.7",
31
31
  "vscode-languageserver-types": "^3.17.2",
32
32
  "vscode-uri": "^3.0.6",
33
- "@vscode/l10n": "^0.0.8"
33
+ "@vscode/l10n": "^0.0.10"
34
34
  },
35
35
  "scripts": {
36
36
  "prepack": "npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs",