Socket
Socket
Sign inDemoInstall

graphql-language-service-types

Package Overview
Dependencies
Maintainers
8
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.5.2 to 1.6.0-alpha.0

56

CHANGELOG.md

@@ -6,13 +6,14 @@ # Change Log

## [1.5.2](https://github.com/graphql/graphiql/compare/graphql-language-service-types@1.5.1...graphql-language-service-types@1.5.2) (2019-12-09)
# [1.6.0-alpha.0](https://github.com/graphql/graphiql/compare/graphql-language-service-types@1.5.2...graphql-language-service-types@1.6.0-alpha.0) (2020-01-18)
### Features
### Bug Fixes
- convert LSP Server to Typescript, remove watchman ([#1138](https://github.com/graphql/graphiql/issues/1138)) ([8e33dbb](https://github.com/graphql/graphiql/commit/8e33dbb))
* test output, webpack resolution, clean build ([3b1c2c1](https://github.com/graphql/graphiql/commit/3b1c2c1))
## [1.5.2](https://github.com/graphql/graphiql/compare/graphql-language-service-types@1.5.1...graphql-language-service-types@1.5.2) (2019-12-09)
### Bug Fixes
- test output, webpack resolution, clean build ([3b1c2c1](https://github.com/graphql/graphiql/commit/3b1c2c1))
## [1.5.1](https://github.com/graphql/graphiql/compare/graphql-language-service-types@1.5.0...graphql-language-service-types@1.5.1) (2019-12-03)

@@ -22,55 +23,28 @@

# 1.5.0 (2019-10-04)
### Features
* convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669))
- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669))
## 0.0.1 (2017-03-29)
# 1.4.0 (2019-10-04)
### Features
* convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669))
- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669))
## 0.0.1 (2017-03-29)
# 1.4.0-alpha.0 (2019-10-04)
### Features
* convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669))
- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669))
## 0.0.1 (2017-03-29)
## 1.3.1-alpha.1 (2019-09-01)
## 0.0.1 (2017-03-29)

@@ -80,10 +54,4 @@

## 1.3.1-alpha.0 (2019-09-01)
## 0.0.1 (2017-03-29)

@@ -93,12 +61,6 @@

## 1.3.1 (2019-09-01)
## 0.0.1 (2017-03-29)
**Note:** Version bump only for package graphql-language-service-types

75

dist/index.d.ts

@@ -0,1 +1,2 @@

import { Diagnostic as DiagnosticType, Position as PositionType, CompletionItem as CompletionItemType } from 'vscode-languageserver-protocol';
import { GraphQLSchema, KindEnum } from 'graphql';

@@ -21,3 +22,3 @@ import { ASTNode, DocumentNode, FragmentDefinitionNode, NamedTypeNode, TypeDefinitionNode } from 'graphql/language';

skipTo: (position: number) => void;
match: (pattern: TokenPattern, consume?: boolean | null | undefined, caseFold?: boolean | null | undefined) => Array<string> | boolean;
match: (pattern: TokenPattern, consume?: boolean | null | undefined, caseFold?: boolean | null | undefined) => string[] | boolean;
backUp: (num: number) => void;

@@ -36,4 +37,4 @@ column: () => number;

schemaPath?: string;
includes?: Array<string>;
excludes?: Array<string>;
includes?: string[];
excludes?: string[];
extensions?: GraphQLConfigurationExtension;

@@ -46,20 +47,19 @@ };

getGraphQLConfig: () => GraphQLConfig;
getObjectTypeDependencies: (query: string, fragmentDefinitions: Map<string, ObjectTypeInfo> | null | undefined) => Promise<Array<ObjectTypeInfo>>;
getObjectTypeDependenciesForAST: (parsedQuery: ASTNode, fragmentDefinitions: Map<string, ObjectTypeInfo>) => Promise<Array<ObjectTypeInfo>>;
getObjectTypeDependencies: (query: string, fragmentDefinitions: Map<string, ObjectTypeInfo>) => Promise<ObjectTypeInfo[]>;
getObjectTypeDependenciesForAST: (parsedQuery: ASTNode, fragmentDefinitions: Map<string, ObjectTypeInfo>) => Promise<ObjectTypeInfo[]>;
getObjectTypeDefinitions: (graphQLConfig: GraphQLProjectConfig) => Promise<Map<string, ObjectTypeInfo>>;
updateObjectTypeDefinition: (rootDir: Uri, filePath: Uri, contents: Array<CachedContent>) => Promise<undefined>;
updateObjectTypeDefinitionCache: (rootDir: Uri, filePath: Uri, exists: boolean) => Promise<undefined>;
getFragmentDependencies: (query: string, fragmentDefinitions: Map<string, FragmentInfo> | null | undefined) => Promise<Array<FragmentInfo>>;
getFragmentDependenciesForAST: (parsedQuery: ASTNode, fragmentDefinitions: Map<string, FragmentInfo>) => Promise<Array<FragmentInfo>>;
updateObjectTypeDefinition: (rootDir: Uri, filePath: Uri, contents: CachedContent[]) => Promise<void>;
updateObjectTypeDefinitionCache: (rootDir: Uri, filePath: Uri, exists: boolean) => Promise<void>;
getFragmentDependencies: (query: string, fragmentDefinitions: Map<string, FragmentInfo> | null | undefined) => Promise<FragmentInfo[]>;
getFragmentDependenciesForAST: (parsedQuery: ASTNode, fragmentDefinitions: Map<string, FragmentInfo>) => Promise<FragmentInfo[]>;
getFragmentDefinitions: (graphQLConfig: GraphQLProjectConfig) => Promise<Map<string, FragmentInfo>>;
updateFragmentDefinition: (rootDir: Uri, filePath: Uri, contents: Array<CachedContent>) => Promise<undefined>;
updateFragmentDefinitionCache: (rootDir: Uri, filePath: Uri, exists: boolean) => Promise<undefined>;
getSchema: (appName: string | null | undefined, queryHasExtensions?: boolean | null | undefined) => Promise<GraphQLSchema | null | undefined>;
handleWatchmanSubscribeEvent: (rootDir: string, projectConfig: GraphQLProjectConfig) => (result: Object) => undefined;
updateFragmentDefinition: (rootDir: Uri, filePath: Uri, contents: CachedContent[]) => Promise<void>;
updateFragmentDefinitionCache: (rootDir: Uri, filePath: Uri, exists: boolean) => Promise<void>;
getSchema: (appName?: string, queryHasExtensions?: boolean) => Promise<GraphQLSchema | null>;
}
export interface Position {
export declare type Position = PositionType & {
line: number;
character: number;
lessThanOrEqualTo: (position: Position) => boolean;
}
lessThanOrEqualTo?: (position: Position) => boolean;
};
export interface Range {

@@ -72,3 +72,3 @@ start: Position;

query: string;
range: Range | null | undefined;
range: Range | null;
};

@@ -92,3 +92,3 @@ export declare type RuleOrString = Rule | string;

level: number;
levels?: Array<number>;
levels?: number[];
prevState: State | null | undefined;

@@ -113,3 +113,4 @@ rule: ParseRule | null | undefined;

content: string;
asts: Array<DocumentNode>;
asts: DocumentNode[];
queries: CachedContent[];
size: number;

@@ -133,3 +134,3 @@ mtime: number;

argDef: GraphQLArgument | null | undefined;
argDefs: Array<GraphQLArgument> | null | undefined;
argDefs: GraphQLArgument[] | null | undefined;
objectFieldDefs: GraphQLInputFieldMap | null | undefined;

@@ -153,18 +154,7 @@ };

export declare type CustomValidationRule = (context: ValidationContext) => Record<string, any>;
export declare type Diagnostic = {
range: Range;
severity?: number;
code?: number | string;
source?: string;
message: string;
export declare type Diagnostic = DiagnosticType;
export declare type CompletionItem = CompletionItemType & {
isDeprecated?: boolean;
deprecationReason?: string;
};
export declare type CompletionItem = {
label: string;
kind?: number;
detail?: string;
sortText?: string;
documentation?: string | null | undefined;
isDeprecated?: boolean | null | undefined;
deprecationReason?: string | null | undefined;
};
export declare type Definition = {

@@ -176,8 +166,8 @@ path: Uri;

name?: string;
language: string;
language?: string;
projectRoot?: Uri;
};
export declare type DefinitionQueryResult = {
queryRange: Array<Range>;
definitions: Array<Definition>;
queryRange: Range[];
definitions: Definition[];
};

@@ -189,3 +179,3 @@ export declare type TokenKind = 'keyword' | 'class-name' | 'constructor' | 'method' | 'param' | 'string' | 'whitespace' | 'plain' | 'type';

};
export declare type TokenizedText = Array<TextToken>;
export declare type TokenizedText = TextToken[];
export declare type OutlineTree = {

@@ -197,10 +187,7 @@ plainText?: string;

endPosition?: Position;
children: Array<OutlineTree>;
children: OutlineTree[];
};
export declare type Outline = {
outlineTrees: Array<OutlineTree>;
outlineTrees: OutlineTree[];
};
export interface DidChangeWatchedFilesParams {
changes: FileEvent[];
}
export interface FileEvent {

@@ -207,0 +194,0 @@ uri: string;

@@ -0,1 +1,2 @@

import { Diagnostic as DiagnosticType, Position as PositionType, CompletionItem as CompletionItemType } from 'vscode-languageserver-protocol';
import { GraphQLSchema, KindEnum } from 'graphql';

@@ -21,3 +22,3 @@ import { ASTNode, DocumentNode, FragmentDefinitionNode, NamedTypeNode, TypeDefinitionNode } from 'graphql/language';

skipTo: (position: number) => void;
match: (pattern: TokenPattern, consume?: boolean | null | undefined, caseFold?: boolean | null | undefined) => Array<string> | boolean;
match: (pattern: TokenPattern, consume?: boolean | null | undefined, caseFold?: boolean | null | undefined) => string[] | boolean;
backUp: (num: number) => void;

@@ -36,4 +37,4 @@ column: () => number;

schemaPath?: string;
includes?: Array<string>;
excludes?: Array<string>;
includes?: string[];
excludes?: string[];
extensions?: GraphQLConfigurationExtension;

@@ -46,20 +47,19 @@ };

getGraphQLConfig: () => GraphQLConfig;
getObjectTypeDependencies: (query: string, fragmentDefinitions: Map<string, ObjectTypeInfo> | null | undefined) => Promise<Array<ObjectTypeInfo>>;
getObjectTypeDependenciesForAST: (parsedQuery: ASTNode, fragmentDefinitions: Map<string, ObjectTypeInfo>) => Promise<Array<ObjectTypeInfo>>;
getObjectTypeDependencies: (query: string, fragmentDefinitions: Map<string, ObjectTypeInfo>) => Promise<ObjectTypeInfo[]>;
getObjectTypeDependenciesForAST: (parsedQuery: ASTNode, fragmentDefinitions: Map<string, ObjectTypeInfo>) => Promise<ObjectTypeInfo[]>;
getObjectTypeDefinitions: (graphQLConfig: GraphQLProjectConfig) => Promise<Map<string, ObjectTypeInfo>>;
updateObjectTypeDefinition: (rootDir: Uri, filePath: Uri, contents: Array<CachedContent>) => Promise<undefined>;
updateObjectTypeDefinitionCache: (rootDir: Uri, filePath: Uri, exists: boolean) => Promise<undefined>;
getFragmentDependencies: (query: string, fragmentDefinitions: Map<string, FragmentInfo> | null | undefined) => Promise<Array<FragmentInfo>>;
getFragmentDependenciesForAST: (parsedQuery: ASTNode, fragmentDefinitions: Map<string, FragmentInfo>) => Promise<Array<FragmentInfo>>;
updateObjectTypeDefinition: (rootDir: Uri, filePath: Uri, contents: CachedContent[]) => Promise<void>;
updateObjectTypeDefinitionCache: (rootDir: Uri, filePath: Uri, exists: boolean) => Promise<void>;
getFragmentDependencies: (query: string, fragmentDefinitions: Map<string, FragmentInfo> | null | undefined) => Promise<FragmentInfo[]>;
getFragmentDependenciesForAST: (parsedQuery: ASTNode, fragmentDefinitions: Map<string, FragmentInfo>) => Promise<FragmentInfo[]>;
getFragmentDefinitions: (graphQLConfig: GraphQLProjectConfig) => Promise<Map<string, FragmentInfo>>;
updateFragmentDefinition: (rootDir: Uri, filePath: Uri, contents: Array<CachedContent>) => Promise<undefined>;
updateFragmentDefinitionCache: (rootDir: Uri, filePath: Uri, exists: boolean) => Promise<undefined>;
getSchema: (appName: string | null | undefined, queryHasExtensions?: boolean | null | undefined) => Promise<GraphQLSchema | null | undefined>;
handleWatchmanSubscribeEvent: (rootDir: string, projectConfig: GraphQLProjectConfig) => (result: Object) => undefined;
updateFragmentDefinition: (rootDir: Uri, filePath: Uri, contents: CachedContent[]) => Promise<void>;
updateFragmentDefinitionCache: (rootDir: Uri, filePath: Uri, exists: boolean) => Promise<void>;
getSchema: (appName?: string, queryHasExtensions?: boolean) => Promise<GraphQLSchema | null>;
}
export interface Position {
export declare type Position = PositionType & {
line: number;
character: number;
lessThanOrEqualTo: (position: Position) => boolean;
}
lessThanOrEqualTo?: (position: Position) => boolean;
};
export interface Range {

@@ -72,3 +72,3 @@ start: Position;

query: string;
range: Range | null | undefined;
range: Range | null;
};

@@ -92,3 +92,3 @@ export declare type RuleOrString = Rule | string;

level: number;
levels?: Array<number>;
levels?: number[];
prevState: State | null | undefined;

@@ -113,3 +113,4 @@ rule: ParseRule | null | undefined;

content: string;
asts: Array<DocumentNode>;
asts: DocumentNode[];
queries: CachedContent[];
size: number;

@@ -133,3 +134,3 @@ mtime: number;

argDef: GraphQLArgument | null | undefined;
argDefs: Array<GraphQLArgument> | null | undefined;
argDefs: GraphQLArgument[] | null | undefined;
objectFieldDefs: GraphQLInputFieldMap | null | undefined;

@@ -153,18 +154,7 @@ };

export declare type CustomValidationRule = (context: ValidationContext) => Record<string, any>;
export declare type Diagnostic = {
range: Range;
severity?: number;
code?: number | string;
source?: string;
message: string;
export declare type Diagnostic = DiagnosticType;
export declare type CompletionItem = CompletionItemType & {
isDeprecated?: boolean;
deprecationReason?: string;
};
export declare type CompletionItem = {
label: string;
kind?: number;
detail?: string;
sortText?: string;
documentation?: string | null | undefined;
isDeprecated?: boolean | null | undefined;
deprecationReason?: string | null | undefined;
};
export declare type Definition = {

@@ -176,8 +166,8 @@ path: Uri;

name?: string;
language: string;
language?: string;
projectRoot?: Uri;
};
export declare type DefinitionQueryResult = {
queryRange: Array<Range>;
definitions: Array<Definition>;
queryRange: Range[];
definitions: Definition[];
};

@@ -189,3 +179,3 @@ export declare type TokenKind = 'keyword' | 'class-name' | 'constructor' | 'method' | 'param' | 'string' | 'whitespace' | 'plain' | 'type';

};
export declare type TokenizedText = Array<TextToken>;
export declare type TokenizedText = TextToken[];
export declare type OutlineTree = {

@@ -197,10 +187,7 @@ plainText?: string;

endPosition?: Position;
children: Array<OutlineTree>;
children: OutlineTree[];
};
export declare type Outline = {
outlineTrees: Array<OutlineTree>;
outlineTrees: OutlineTree[];
};
export interface DidChangeWatchedFilesParams {
changes: FileEvent[];
}
export interface FileEvent {

@@ -207,0 +194,0 @@ uri: string;

{
"name": "graphql-language-service-types",
"version": "1.5.2",
"version": "1.6.0-alpha.0",
"description": "Types for building GraphQL language services for IDEs",

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

},
"gitHead": "6b091a7fd9793d1492023af1d3e1a8cb5a0509fb"
"gitHead": "917c3931634cf27eb31a0383ff7c15ffd902d221"
}
# graphql-language-service-types
[![NPM](https://img.shields.io/npm/v/graphql-language-service-types.svg?style=flat-square)](https://npmjs.com/graphql-language-service-types)
![npm downloads](https://img.shields.io/npm/dm/graphql-language-service-types?label=npm%20downloads)
[![License](https://img.shields.io/npm/l/graphql-language-service-types.svg?style=flat-square)](LICENSE)
[Flow](https://flowtype.org/) type definitions for the [GraphQL Language Service](https://github.com/graphql/graphiql/tree/master/packages/graphql-language-service).

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