Socket
Socket
Sign inDemoInstall

graphql-language-service-types

Package Overview
Dependencies
Maintainers
13
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-language-service-types - npm Package Compare versions

Comparing version 1.7.0 to 1.8.0

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

# [1.8.0](https://github.com/graphql/graphiql/compare/graphql-language-service-types@1.7.0...graphql-language-service-types@1.8.0) (2021-01-07)
### Features
- implied or external fragments, for [#612](https://github.com/graphql/graphiql/issues/612) ([#1750](https://github.com/graphql/graphiql/issues/1750)) ([cfed265](https://github.com/graphql/graphiql/commit/cfed265e3cf31875b39ea517781a217fcdfcadc2))
# [1.7.0](https://github.com/graphql/graphiql/compare/graphql-language-service-types@1.6.3...graphql-language-service-types@1.7.0) (2021-01-03)

@@ -8,0 +14,0 @@

32

dist/index.d.ts

@@ -24,15 +24,19 @@ import type { Diagnostic as DiagnosticType, CompletionItem as CompletionItemType } from 'vscode-languageserver-types';

}
export declare type Position = {
export interface IPosition {
line: number;
character: number;
lessThanOrEqualTo?: (position: Position) => boolean;
};
export interface Range {
start: Position;
end: Position;
containsPosition: (position: Position) => boolean;
setLine(line: number): void;
setCharacter(character: number): void;
lessThanOrEqualTo(position: IPosition): boolean;
}
export interface IRange {
start: IPosition;
end: IPosition;
setEnd(line: number, character: number): void;
setStart(line: number, character: number): void;
containsPosition(position: IPosition): boolean;
}
export declare type CachedContent = {
query: string;
range: Range | null;
range: IRange | null;
};

@@ -94,4 +98,4 @@ export declare type Uri = string;

path: Uri;
position: Position;
range?: Range;
position: IPosition;
range?: IRange;
id?: string;

@@ -102,6 +106,2 @@ name?: string;

};
export declare type DefinitionQueryResult = {
queryRange: Range[];
definitions: Definition[];
};
export declare type TokenKind = 'keyword' | 'class-name' | 'constructor' | 'method' | 'param' | 'string' | 'whitespace' | 'plain' | 'type';

@@ -118,4 +118,4 @@ export declare type TextToken = {

kind: string;
startPosition: Position;
endPosition?: Position;
startPosition: IPosition;
endPosition?: IPosition;
children: OutlineTree[];

@@ -122,0 +122,0 @@ };

@@ -24,15 +24,19 @@ import type { Diagnostic as DiagnosticType, CompletionItem as CompletionItemType } from 'vscode-languageserver-types';

}
export declare type Position = {
export interface IPosition {
line: number;
character: number;
lessThanOrEqualTo?: (position: Position) => boolean;
};
export interface Range {
start: Position;
end: Position;
containsPosition: (position: Position) => boolean;
setLine(line: number): void;
setCharacter(character: number): void;
lessThanOrEqualTo(position: IPosition): boolean;
}
export interface IRange {
start: IPosition;
end: IPosition;
setEnd(line: number, character: number): void;
setStart(line: number, character: number): void;
containsPosition(position: IPosition): boolean;
}
export declare type CachedContent = {
query: string;
range: Range | null;
range: IRange | null;
};

@@ -94,4 +98,4 @@ export declare type Uri = string;

path: Uri;
position: Position;
range?: Range;
position: IPosition;
range?: IRange;
id?: string;

@@ -102,6 +106,2 @@ name?: string;

};
export declare type DefinitionQueryResult = {
queryRange: Range[];
definitions: Definition[];
};
export declare type TokenKind = 'keyword' | 'class-name' | 'constructor' | 'method' | 'param' | 'string' | 'whitespace' | 'plain' | 'type';

@@ -118,4 +118,4 @@ export declare type TextToken = {

kind: string;
startPosition: Position;
endPosition?: Position;
startPosition: IPosition;
endPosition?: IPosition;
children: OutlineTree[];

@@ -122,0 +122,0 @@ };

{
"name": "graphql-language-service-types",
"version": "1.7.0",
"version": "1.8.0",
"description": "Types for building GraphQL language services for IDEs",

@@ -33,3 +33,3 @@ "contributors": [

},
"gitHead": "4038cf235b71eaf9a576c86800707f204ded8865"
"gitHead": "464a8851e1a02e6ef255729b3acd6dcb0dc0abce"
}

@@ -7,2 +7,4 @@ # graphql-language-service-types

[Flow](https://flowtype.org/) type definitions for the [GraphQL Language Service](https://github.com/graphql/graphiql/tree/main/packages/graphql-language-service).
[API Docs](https://graphiql-test.netlify.app/typedoc/modules/graphql_language_service_types.html)
[Typescript](https://typescript.com) and [Flow](https://flowtype.org/) type definitions for the [GraphQL Language Service](https://github.com/graphql/graphiql/tree/main/packages/graphql-language-service) and other parts of the language ecosystem.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc