vscode-json-languageservice
Advanced tools
Comparing version
@@ -0,1 +1,5 @@ | ||
5.5.0 / 2025-03-25 | ||
================ | ||
* `newJSONDocument` API now also accepts undefined as ASTRoots an optionally comment ranges. | ||
5.3.1 / 2023-02-24 | ||
@@ -21,3 +25,3 @@ ================ | ||
================ | ||
* new API option `FormattingOptions.keepLines` to indicate the formatter should keep the initial line positions | ||
* new API option `FormattingOptions.keepLines` to indicate the formatter should keep the initial line positions | ||
@@ -27,3 +31,3 @@ 5.0.0 / 2022-05-17 | ||
* Update to `vscode-languageserver-types@3.17` | ||
* Add more schema support | ||
* Add more schema support | ||
* Schema 2019-09: unevaluatedProperties, unevaluatedItems, minContains, maxContains, deprecated, dependentRequired, dependentSchemas, $defs, $anchor | ||
@@ -40,3 +44,3 @@ * Schema 2020-12: prefixItem | ||
* Replace minimatch with glob-to-regexp | ||
4.1.0 / 2021-04-24 | ||
@@ -62,7 +66,7 @@ ================ | ||
* new API `DocumentLanguageSettings.schemaValidation`. The severity of problems from schema validation. If set to 'ignore', schema validation will be skipped. If not set, 'warning' is used. | ||
* new API `DocumentLanguageSettings.schemaRequest`. The severity of problems that occurred while resolving and loading schemas. If set to 'ignore', schema resolving problems are not reported. If not set, 'warning' is used. | ||
* new API `DocumentLanguageSettings.schemaRequest`. The severity of problems that occurred while resolving and loading schemas. If set to 'ignore', schema resolving problems are not reported. If not set, 'warning' is used. | ||
3.8.0 / 2020-08-02 | ||
================= | ||
* new API `LanguageService.getMatchingSchemas`. Matches a document against its schema and list all AST nodes along with the matching sub schemas. | ||
* new API `LanguageService.getMatchingSchemas`. Matches a document against its schema and list all AST nodes along with the matching sub schemas. | ||
@@ -143,8 +147,8 @@ 3.7.0 / 2020-06-04 | ||
=================== | ||
* New API `LanguageService.getColorPresentations` returning presentations for a given color. | ||
* New API `LanguageService.getColorPresentations` returning presentations for a given color. | ||
* New API type `ColorPresentation` added. | ||
2.0.15 / 2017-08-28 | ||
=================== | ||
* New API `LanguageService.findDocumentColors` returning the location and value of all colors in a document. | ||
* New API `LanguageService.findDocumentColors` returning the location and value of all colors in a document. | ||
* New API types `ColorInformation` and `Color` added. | ||
@@ -151,0 +155,0 @@ * Deprecated `LanguageService.findColorSymbols`. Use `LanguageService.findDocumentColors` instead. |
@@ -12,3 +12,3 @@ import { 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, SortOptions } from './jsonLanguageTypes'; | ||
parseJSONDocument(document: TextDocument): JSONDocument; | ||
newJSONDocument(rootNode: ASTNode, syntaxDiagnostics?: Diagnostic[]): JSONDocument; | ||
newJSONDocument(rootNode: ASTNode | undefined, syntaxDiagnostics?: Diagnostic[], comments?: Range[]): JSONDocument; | ||
resetSchema(uri: string): boolean; | ||
@@ -15,0 +15,0 @@ getMatchingSchemas(document: TextDocument, jsonDocument: JSONDocument, schema?: JSONSchema): PromiseLike<MatchingSchema[]>; |
@@ -36,3 +36,3 @@ /*--------------------------------------------------------------------------------------------- | ||
parseJSONDocument: (document) => parseJSON(document, { collectComments: true }), | ||
newJSONDocument: (root, diagnostics) => newJSONDocument(root, diagnostics), | ||
newJSONDocument: (root, diagnostics, comments) => newJSONDocument(root, diagnostics, comments), | ||
getMatchingSchemas: jsonSchemaService.getMatchingSchemas.bind(jsonSchemaService), | ||
@@ -39,0 +39,0 @@ doResolve: jsonCompletion.doResolve.bind(jsonCompletion), |
@@ -208,4 +208,4 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
export function newJSONDocument(root, diagnostics = []) { | ||
return new JSONDocument(root, diagnostics, []); | ||
export function newJSONDocument(root, diagnostics = [], comments = []) { | ||
return new JSONDocument(root, diagnostics, comments); | ||
} | ||
@@ -212,0 +212,0 @@ export function getNodeValue(node) { |
@@ -12,3 +12,3 @@ import { 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, SortOptions } from './jsonLanguageTypes'; | ||
parseJSONDocument(document: TextDocument): JSONDocument; | ||
newJSONDocument(rootNode: ASTNode, syntaxDiagnostics?: Diagnostic[]): JSONDocument; | ||
newJSONDocument(rootNode: ASTNode | undefined, syntaxDiagnostics?: Diagnostic[], comments?: Range[]): JSONDocument; | ||
resetSchema(uri: string): boolean; | ||
@@ -15,0 +15,0 @@ getMatchingSchemas(document: TextDocument, jsonDocument: JSONDocument, schema?: JSONSchema): PromiseLike<MatchingSchema[]>; |
@@ -62,3 +62,3 @@ /*--------------------------------------------------------------------------------------------- | ||
parseJSONDocument: (document) => (0, jsonParser_1.parse)(document, { collectComments: true }), | ||
newJSONDocument: (root, diagnostics) => (0, jsonParser_1.newJSONDocument)(root, diagnostics), | ||
newJSONDocument: (root, diagnostics, comments) => (0, jsonParser_1.newJSONDocument)(root, diagnostics, comments), | ||
getMatchingSchemas: jsonSchemaService.getMatchingSchemas.bind(jsonSchemaService), | ||
@@ -65,0 +65,0 @@ doResolve: jsonCompletion.doResolve.bind(jsonCompletion), |
{ | ||
"name": "vscode-json-languageservice", | ||
"version": "5.4.5-next.0", | ||
"version": "5.5.0", | ||
"description": "Language service for JSON", | ||
@@ -20,9 +20,9 @@ "main": "./lib/umd/jsonLanguageService.js", | ||
"@types/node": "18.x", | ||
"@typescript-eslint/eslint-plugin": "^8.27.0", | ||
"@typescript-eslint/parser": "^8.27.0", | ||
"eslint": "^9.23.0", | ||
"@typescript-eslint/eslint-plugin": "^8.31.0", | ||
"@typescript-eslint/parser": "^8.31.0", | ||
"eslint": "^9.25.1", | ||
"json-schema-test-suite": "https://github.com/json-schema-org/JSON-Schema-Test-Suite.git#69acf52990b004240839ae19b4bec8fb01d50876", | ||
"mocha": "^11.1.0", | ||
"rimraf": "^6.0.1", | ||
"typescript": "^5.8.2" | ||
"typescript": "^5.8.3" | ||
}, | ||
@@ -29,0 +29,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
564456
0.05%1
-50%