@gql.tada/internal
Advanced tools
Comparing version 0.1.2-canary-be01f0f05b87d19f1c9f2837ee54229bb038b007 to 0.1.2-canary-ef55b0ec239f677e584c7d3a2a00dc021c50b298
# @gql.tada/internal | ||
## 0.1.2-canary-be01f0f05b87d19f1c9f2837ee54229bb038b007 | ||
## 0.1.2-canary-ef55b0ec239f677e584c7d3a2a00dc021c50b298 | ||
@@ -9,2 +9,6 @@ ### Patch Changes | ||
Submitted by [@kitten](https://github.com/kitten) (See [#163](https://github.com/0no-co/gql.tada/pull/163)) | ||
- Upgrade `@0no-co/graphql.web` to `1.0.5` | ||
Submitted by [@kitten](https://github.com/kitten) (See [#168](https://github.com/0no-co/gql.tada/pull/168)) | ||
- Update internal loader to merge them into one and incorporate `SchemaOrigin` parsing | ||
Submitted by [@kitten](https://github.com/kitten) (See [#165](https://github.com/0no-co/gql.tada/pull/165)) | ||
@@ -11,0 +15,0 @@ ## 0.1.1 |
@@ -38,7 +38,21 @@ import * as typescript from 'typescript'; | ||
interface SchemaLoaderResult { | ||
introspection: IntrospectionQuery; | ||
schema: GraphQLSchema; | ||
} | ||
type OnSchemaUpdate = (result: SchemaLoaderResult) => void; | ||
interface SchemaLoader { | ||
load(reload?: boolean): Promise<SchemaLoaderResult | null>; | ||
notifyOnUpdate(onUpdate: OnSchemaUpdate): () => void; | ||
/** @internal */ | ||
loadIntrospection(): Promise<IntrospectionQuery | null>; | ||
/** @internal */ | ||
loadSchema(): Promise<GraphQLSchema | null>; | ||
notifyOnUpdate(onUpdate: () => void): () => void; | ||
} | ||
type SchemaOrigin = | ||
| string | ||
| { | ||
url: string; | ||
headers?: HeadersInit; | ||
}; | ||
@@ -58,2 +72,10 @@ interface LoadFromSDLConfig { | ||
interface LoadConfig { | ||
origin: SchemaOrigin; | ||
rootPath?: string; | ||
fetchInterval?: number; | ||
assumeValid?: boolean; | ||
} | ||
declare function load(config: LoadConfig): SchemaLoader; | ||
declare function preprocessIntrospection({ __schema: schema }: IntrospectionQuery): string; | ||
@@ -74,3 +96,7 @@ | ||
export { | ||
type LoadConfig, | ||
type OnSchemaUpdate, | ||
type SchemaLoader, | ||
type SchemaLoaderResult, | ||
type SchemaOrigin, | ||
type VirtualCompilerHost, | ||
@@ -81,2 +107,3 @@ createProgram, | ||
importModule, | ||
load, | ||
loadFromSDL, | ||
@@ -83,0 +110,0 @@ loadFromURL, |
{ | ||
"name": "@gql.tada/internal", | ||
"version": "0.1.2-canary-be01f0f05b87d19f1c9f2837ee54229bb038b007", | ||
"version": "0.1.2-canary-ef55b0ec239f677e584c7d3a2a00dc021c50b298", | ||
"public": true, | ||
@@ -49,3 +49,3 @@ "description": "Internal logic for gql.tada’s CLI tool and GraphQLSP.", | ||
"dependencies": { | ||
"@0no-co/graphql.web": "^1.0.4", | ||
"@0no-co/graphql.web": "^1.0.5", | ||
"graphql": "^16.8.1" | ||
@@ -52,0 +52,0 @@ }, |
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
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
599205
8748
Updated@0no-co/graphql.web@^1.0.5