Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@0no-co/graphqlsp

Package Overview
Dependencies
Maintainers
2
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0no-co/graphqlsp - npm Package Compare versions

Comparing version 1.11.0 to 1.12.0-canary-474ca19

28

CHANGELOG.md
# @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 @@

30

dist/api.d.ts
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 @@

4

package.json
{
"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

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