@0no-co/graphqlsp
Advanced tools
Comparing version 1.0.3 to 1.0.4
# @0no-co/graphqlsp | ||
## 1.0.4 | ||
### Patch Changes | ||
- When we have a query like the following | ||
```graphql | ||
query { | ||
pokemon(id: 1) { | ||
id | ||
name | ||
} | ||
pokemons { | ||
id | ||
fleeRate | ||
} | ||
} | ||
``` | ||
and we perform | ||
```ts | ||
const Pokemons = () => { | ||
const [result] = useQuery({ | ||
query: PokemonQuery, | ||
}); | ||
return result.data.pokemons.map(pokemon => pokemon.fleeRate); | ||
}; | ||
``` | ||
Then it will see `pokemon` the variable inside our function closure as an | ||
allowed field due to `Query.pokemon` this PR fixes that by refining our search | ||
algorithm to only include valid built paths. | ||
Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#182](https://github.com/0no-co/GraphQLSP/pull/182)) | ||
## 1.0.3 | ||
@@ -4,0 +40,0 @@ |
{ | ||
"name": "@0no-co/graphqlsp", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "TypeScript LSP plugin that finds GraphQL documents in your code and provides hints and auto-generates types.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/graphqlsp.js", |
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 too big to display
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
3017818
26881