@gql.tada/internal
Advanced tools
Comparing version 0.2.0-canary-ae59fc21afa54d41a50822e7490ff798acedb898 to 0.2.0-canary-b1b8ba6594823e67815fe64acfc0b38f0084c4a0
# @gql.tada/internal | ||
## 0.2.0-canary-ae59fc21afa54d41a50822e7490ff798acedb898 | ||
## 0.2.0-canary-b1b8ba6594823e67815fe64acfc0b38f0084c4a0 | ||
@@ -16,2 +16,6 @@ ### Minor Changes | ||
Submitted by [@kitten](https://github.com/kitten) (See [#175](https://github.com/0no-co/gql.tada/pull/175)) | ||
- Support opting out of `includeDeprecated` on `__Directive` and `__Field` in accordance with the October 2021 spec | ||
Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#192](https://github.com/0no-co/gql.tada/pull/192)) | ||
- Replace `minifyIntrospectionQuery` utility with a version that sorts fields and types by name | ||
Submitted by [@kitten](https://github.com/kitten) (See [#185](https://github.com/0no-co/gql.tada/pull/185)) | ||
@@ -18,0 +22,0 @@ ## 0.1.3 |
@@ -79,5 +79,25 @@ import * as typescript from 'typescript'; | ||
/** Minifies an {@link IntrospectionQuery} for use with Graphcache or the `populateExchange`. | ||
* | ||
* @param schema - An {@link IntrospectionQuery} object to be minified. | ||
* @param opts - An optional {@link MinifySchemaOptions} configuration object. | ||
* @returns the minified {@link IntrospectionQuery} object. | ||
* | ||
* @remarks | ||
* `minifyIntrospectionQuery` reduces the size of an {@link IntrospectionQuery} by | ||
* removing data and information that a client-side consumer, like Graphcache or the | ||
* `populateExchange`, may not require. | ||
* | ||
* At the very least, it will remove system types, descriptions, depreactions, | ||
* and source locations. Unless disabled via the options passed, it will also | ||
* by default remove all scalars, enums, inputs, and directives. | ||
* | ||
* @throws | ||
* If `schema` receives an object that isn’t an {@link IntrospectionQuery}, a | ||
* {@link TypeError} will be thrown. | ||
*/ | ||
declare const minifyIntrospectionQuery: (schema: IntrospectionQuery) => IntrospectionQuery; | ||
declare function preprocessIntrospection({ __schema: schema }: IntrospectionQuery): string; | ||
declare function minifyIntrospection(introspection: IntrospectionQuery): IntrospectionQuery; | ||
interface OutputIntrospectionFileOptions { | ||
@@ -108,3 +128,3 @@ fileType: '.ts' | '.d.ts' | string; | ||
loadFromURL, | ||
minifyIntrospection, | ||
minifyIntrospectionQuery as minifyIntrospection, | ||
outputIntrospectionFile, | ||
@@ -111,0 +131,0 @@ preprocessIntrospection, |
@@ -99,27 +99,2 @@ MIT License | ||
## @urql/introspection | ||
MIT License | ||
Copyright (c) 2018–2020 Formidable, | ||
Copyright (c) urql GraphQL Team and other contributors | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
## wonka | ||
@@ -126,0 +101,0 @@ |
{ | ||
"name": "@gql.tada/internal", | ||
"version": "0.2.0-canary-ae59fc21afa54d41a50822e7490ff798acedb898", | ||
"version": "0.2.0-canary-b1b8ba6594823e67815fe64acfc0b38f0084c4a0", | ||
"public": true, | ||
@@ -41,3 +41,2 @@ "description": "Internal logic for gql.tada’s CLI tool and GraphQLSP.", | ||
"@urql/exchange-retry": "^1.2.1", | ||
"@urql/introspection": "^1.0.3", | ||
"json5": "^2.2.3", | ||
@@ -44,0 +43,0 @@ "graphql": "^16.8.1", |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
629549
9
0
100
8783