@0no-co/graphqlsp
Advanced tools
Comparing version 1.11.0 to 1.12.0-canary-474ca19
# @0no-co/graphqlsp | ||
## 1.12.0-canary-474ca19 | ||
### Minor Changes | ||
- Add support for defining multiple indepenent schemas through a new config property called `schemas`, you can | ||
pass a config like the following: | ||
```json | ||
{ | ||
"name": "@0no-co/graphqlsp", | ||
"schemas": [ | ||
{ | ||
"name": "pokemons", | ||
"schema": "./pokemons.graphql", | ||
"tadaOutputLocation": "./pokemons-introspection.d.ts" | ||
}, | ||
{ | ||
"name": "weather", | ||
"schema": "./weather.graphql", | ||
"tadaOutputLocation": "./weather-introspection.d.ts" | ||
} | ||
] | ||
} | ||
``` | ||
The LSP will depending on what `graphql()` template you use figure out what API you are reaching out to. | ||
Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#303](https://github.com/0no-co/GraphQLSP/pull/303)) | ||
- Expose `findAllCallExpressions` on `@0no-co/graphqlsp/api` | ||
Submitted by [@kitten](https://github.com/kitten) (See [#308](https://github.com/0no-co/GraphQLSP/pull/308)) | ||
## 1.11.0 | ||
@@ -4,0 +32,0 @@ |
import ts from 'typescript/lib/tsserverlibrary'; | ||
import { GraphQLSchema, FragmentDefinitionNode } from 'graphql'; | ||
import { SchemaRef as SchemaRef$1, SchemaLoaderResult } from '@gql.tada/internal'; | ||
/*!@ts-ignore*/ | ||
import { FragmentDefinitionNode } from 'graphql'; | ||
declare function init(modules: { typescript: typeof ts }): void; | ||
type SchemaRef = SchemaRef$1<SchemaLoaderResult | null>; | ||
declare function getGraphQLDiagnostics( | ||
filename: string, | ||
schema: { | ||
current: GraphQLSchema | null; | ||
version: number; | ||
}, | ||
schema: SchemaRef, | ||
info: ts.server.PluginCreateInfo | ||
@@ -20,5 +21,23 @@ ): ts.Diagnostic[] | undefined; | ||
): FragmentDefinitionNode[]; | ||
declare function findAllCallExpressions( | ||
sourceFile: ts.SourceFile, | ||
info: ts.server.PluginCreateInfo, | ||
shouldSearchFragments?: boolean | ||
): { | ||
nodes: Array<{ | ||
node: ts.NoSubstitutionTemplateLiteral; | ||
schema: string | null; | ||
}>; | ||
fragments: Array<FragmentDefinitionNode>; | ||
}; | ||
declare function findAllPersistedCallExpressions( | ||
sourceFile: ts.SourceFile | ||
): Array<ts.CallExpression>; | ||
declare function findAllPersistedCallExpressions( | ||
sourceFile: ts.SourceFile, | ||
info: ts.server.PluginCreateInfo | ||
): Array<{ | ||
node: ts.CallExpression; | ||
schema: string | null; | ||
}>; | ||
@@ -43,2 +62,3 @@ declare const getDocumentReferenceFromTypeQuery: ( | ||
export { | ||
findAllCallExpressions, | ||
findAllPersistedCallExpressions, | ||
@@ -45,0 +65,0 @@ getDocumentReferenceFromDocumentNode, |
@@ -7,2 +7,4 @@ Object.defineProperty(exports, "__esModule", { | ||
exports.findAllCallExpressions = e.findAllCallExpressions; | ||
exports.findAllPersistedCallExpressions = e.findAllPersistedCallExpressions; | ||
@@ -9,0 +11,0 @@ |
{ | ||
"name": "@0no-co/graphqlsp", | ||
"version": "1.11.0", | ||
"version": "1.12.0-canary-474ca19", | ||
"description": "TypeScript LSP plugin that finds GraphQL documents in your code and provides hints and auto-generates types.", | ||
@@ -49,3 +49,3 @@ "main": "./dist/graphqlsp", | ||
"dependencies": { | ||
"@gql.tada/internal": "^0.1.2", | ||
"@gql.tada/internal": "0.3.0-canary-8711af177005f46fa3e06d990b6ba28e353e7f9b", | ||
"graphql": "^16.8.1", | ||
@@ -52,0 +52,0 @@ "node-fetch": "^2.0.0" |
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 too big to display
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 too big to display
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1360278
13618
2
+ Added@gql.tada/internal@0.3.0-canary-8711af177005f46fa3e06d990b6ba28e353e7f9b(transitive)
- Removed@gql.tada/internal@0.1.3(transitive)
Updated@gql.tada/internal@0.3.0-canary-8711af177005f46fa3e06d990b6ba28e353e7f9b